/**
 * Codehive Product Manager: The website layout: the frame, header bar, main area and full-height sidebar, About box and copyright line.
 *
 * From Codehive WARC Manager 1.0.287, made Codehive's own.
 *
 * Build:     1.0.5
 * Changelog:
 * 1.0.5 New.
 */

/* The plugin's own page (site header removed). */
body.chpm-mk-own-page {
	margin: 0;
	background: #fff;
}

.chpm-mk {
	--chpm-mk-line: rgba(0, 0, 0, 0.1);
	width: 100%;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #1d2327;
}

.chpm-mk *,
.chpm-mk *::before,
.chpm-mk *::after {
	box-sizing: border-box;
}

/* Header bar */
.chpm-mk-bar {
	position: relative;
	z-index: 50;
	background: var(--chpm-mk-bar-bg, #fff);
	color: var(--chpm-mk-bar-text, #1d2327);
	border-bottom: 1px solid var(--chpm-mk-line);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.chpm-mk-bar-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	max-width: var(--chpm-mk-max, 1280px);
	min-height: 72px;
	margin: 0 auto;
	padding: 10px 24px;
}

.chpm-mk-logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.chpm-mk-logo img,
.chpm-mk-logo .chpm-mk-logo-img {
	display: block;
	width: auto;
	max-width: 260px;
	height: var(--chpm-mk-logo-h, 44px);
	object-fit: contain;
}

.chpm-mk-logo-text {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.chpm-mk-tools {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 6px;
}

.chpm-mk-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	text-decoration: none;
	box-shadow: none;
}

.chpm-mk-icon:hover,
.chpm-mk-icon:focus-visible,
.chpm-mk-icon[aria-expanded="true"] {
	background: rgba(0, 0, 0, 0.06);
	color: inherit;
}

.chpm-mk-btn1 {
	display: inline-flex;
	align-items: center;
	margin: 0 0 0 8px;
	padding: 10px 20px;
	border: 0;
	border-radius: 4px;
	background: var(--chpm-mk-accent, #d63638);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	transition: filter 0.15s ease;
}

.chpm-mk-btn1:hover,
.chpm-mk-btn1:focus-visible {
	color: #fff;
	filter: brightness(0.9);
}

/* Search */
.chpm-mk-search {
	display: flex;
	gap: 8px;
	max-width: var(--chpm-mk-max, 1280px);
	margin: 0 auto;
	padding: 0 24px 14px;
}

.chpm-mk-search[hidden] {
	display: none;
}

.chpm-mk-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	color: #1d2327;
	font: inherit;
	font-size: 16px;
}

.chpm-mk-search button {
	margin: 0;
	padding: 10px 18px;
	border: 0;
	border-radius: 4px;
	background: var(--chpm-mk-bar-text, #1d2327);
	color: var(--chpm-mk-bar-bg, #fff);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* Page frame: the listings column, and the sidebar running the full height of the page beside it
   (from under the banner slider to the bottom, alongside the header bar). */
.chpm-mk-frame {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--chpm-mk-side-width, 340px);
	min-height: 100vh;
}

.chpm-mk-side-left {
	grid-template-columns: var(--chpm-mk-side-width, 340px) minmax(0, 1fr);
}

.chpm-mk-side-left .chpm-mk-sidebar {
	order: -1;
	border-right: 1px solid var(--chpm-mk-line);
	border-left: 0;
}

.chpm-mk-side-none {
	grid-template-columns: minmax(0, 1fr);
}

.chpm-mk-col {
	min-width: 0;
}

.chpm-mk-body {
	max-width: var(--chpm-mk-max, 1280px);
	margin: 0 auto;
	padding: 32px 24px 48px;
}

.chpm-mk-main {
	min-width: 0;
}

.chpm-mk-heading {
	position: relative;
	margin: 0 0 24px;
	padding: 0;
	color: #1d2327;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.25;
}

.chpm-mk-sidebar {
	min-width: 0;
	border-left: 1px solid var(--chpm-mk-line);
	background: var(--chpm-mk-side-bg, #eceef1);
	box-shadow: inset 6px 0 12px -10px rgba(0, 0, 0, 0.25);
}

/* Stays in view while the listings scroll: the top is left free for now, the About box sits at the bottom. */
.chpm-mk-side-inner {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	display: flex;
	flex-direction: column;
	height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	min-height: 420px;
}

/* Slim footer (own page only) */
.chpm-mk-footer {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	background: #f6f7f7;
	color: #50575e;
	font-size: 14px;
}

.chpm-mk-footer-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 18px 24px;
}

.chpm-mk-footer a {
	margin-left: 12px;
	color: inherit;
}

@media (max-width: 1000px) {
	.chpm-mk-bar-inner {
		flex-wrap: wrap;
		gap: 10px 16px;
	}

	.chpm-mk-logo {
		flex: 1 1 0;
		min-width: 0;
	}

	.chpm-mk-logo-text {
		display: block;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.chpm-mk-tools {
		margin-left: auto;
	}

	

	

	.chpm-mk-frame,
	.chpm-mk-side-left {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.chpm-mk-side-left .chpm-mk-sidebar {
		order: 0;
	}

	.chpm-mk-sidebar {
		border-top: 1px solid var(--chpm-mk-line);
		border-left: 0;
		border-right: 0;
	}

	.chpm-mk-side-inner {
		position: static;
		height: auto;
	}
}

/* Phone */
@media (max-width: 600px) {
	.chpm-mk-bar-inner,
	.chpm-mk-search,
	.chpm-mk-body {
		padding-left: 16px;
		padding-right: 16px;
	}

	

	.chpm-mk-logo img,
	.chpm-mk-logo .chpm-mk-logo-img {
		max-width: 150px;
		height: min(var(--chpm-mk-logo-h, 44px), 36px);
	}

	.chpm-mk-logo-text {
		font-size: 18px;
	}

	.chpm-mk-btn1 {
		padding: 8px 12px;
		font-size: 13px;
	}

	.chpm-mk-icon {
		width: 36px;
		height: 36px;
	}

	.chpm-mk-body {
		padding-top: 24px;
	}
}

.chpm-mk-btn1 {
	white-space: nowrap;
}

.chpm-mk-about {
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 0;
	padding: 14px 16px 10px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	background: var(--chpm-mk-about-bg, #f6f7f7);
	color: var(--chpm-mk-about-text, #1d2327);
}

.chpm-mk-about h3 {
	margin: 0 0 6px;
	color: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

.chpm-mk-about ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.chpm-mk-about li {
	margin: 0 0 3px;
	padding: 0;
	font-size: 11px;
	line-height: 1.4;
}

.chpm-mk-about a {
	color: inherit;
	text-decoration: none;
}

.chpm-mk-about li a:hover,
.chpm-mk-about li a:focus-visible {
	text-decoration: underline;
}

.chpm-mk-social-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.chpm-mk-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--chpm-mk-social, #1e3a5f);
	color: #fff !important;
	transition: opacity 0.15s ease;
}

.chpm-mk-social svg {
	width: 14px;
	height: 14px;
}

.chpm-mk-social:hover,
.chpm-mk-social:focus-visible {
	opacity: 0.8;
}

.chpm-mk-copy {
	flex: 0 0 auto;
	margin: 0;
	padding: 8px 16px 12px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	background: var(--chpm-mk-about-bg, #f6f7f7);
	color: #50575e;
	font-size: 11px;
	line-height: 1.4;
}

.chpm-mk-about + .chpm-mk-copy {
	margin-top: 0;
}

@media (max-width: 600px) {
	.chpm-mk-logo {
		flex: 1 1 100%;
		overflow: hidden;
	}

	.chpm-mk-tools {
		flex: 1 1 100%;
		flex-wrap: wrap;
		margin-left: 0;
	}

	.chpm-mk-tools .chpm-mk-btn1 {
		margin-left: auto;
	}
}

/* Website name beside the logo (as the example: two short lines, bold capitals). */
.chpm-mk-logo {
	gap: 10px;
}

.chpm-mk-logo-name {
	display: block;
	max-width: 190px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.1;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

@media (max-width: 600px) {
	.chpm-mk-logo-name {
		max-width: 150px;
		font-size: 13px;
	}
}

/* ---------- Sidebar top (left free for now) ---------- */
.chpm-mk-side-top {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

.chpm-mk-listings {
	min-height: 200px;
}

.chpm-mk-empty {
	margin: 0;
	padding: 48px 24px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	background: #f6f7f7;
	color: #50575e;
	font-size: 15px;
	text-align: center;
}

.chpm-mk-footer .chpm-mk-copy {
	max-width: var(--chpm-mk-max, 1280px);
	margin: 0 auto;
	padding: 18px 24px;
	border: 0;
	background: transparent;
	font-size: 13px;
}

.chpm-mk .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Banner slider (Commercial Settings) ---------- */
.chpm-mk-slider {
	position: relative;
	z-index: 60;
	overflow: hidden;
	/* Full height on wide screens; on narrower ones it shrinks in step with a 1500 pixel wide banner. */
	height: min(var(--chpm-mk-slider-h, 140px), calc(100vw * var(--chpm-mk-slider-n, 140) / 1500));
	min-height: 32px;
	background: var(--chpm-mk-slider-bg, #1d2327);
}

.chpm-mk-slides {
	position: relative;
	display: flex;
	height: 100%;
	transition: transform 0.6s ease;
}

.chpm-mk-slide {
	flex: 0 0 100%;
	height: 100%;
}

.chpm-mk-slide a {
	display: block;
	height: 100%;
}

.chpm-mk-slide img,
.chpm-mk-slide-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain; /* The whole banner is always shown. */
}

/* Fade: the banners sit on top of one another. */
.chpm-mk-effect-fade .chpm-mk-slides {
	display: block;
	transition: none;
}

.chpm-mk-effect-fade .chpm-mk-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.chpm-mk-effect-fade .chpm-mk-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.8s ease, visibility 0s;
}

.chpm-mk-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: -18px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
}

.chpm-mk-prev {
	left: 12px;
}

.chpm-mk-next {
	right: 12px;
}

.chpm-mk-slider:hover .chpm-mk-arrow,
.chpm-mk-arrow:focus-visible {
	opacity: 1;
}

.chpm-mk-arrow:hover,
.chpm-mk-arrow:focus-visible {
	background: rgba(0, 0, 0, 0.7);
}

.chpm-mk-dots {
	position: absolute;
	right: 0;
	bottom: 8px;
	left: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.chpm-mk-dot {
	width: 9px;
	height: 9px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.3);
	cursor: pointer;
}

.chpm-mk-dot.is-active {
	background: #fff;
}

.chpm-mk-dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (hover: none) {
	.chpm-mk-arrow {
		opacity: 0.85;
	}
}

/* Tablets and phones: the sidebar sits below the listings, but the Filters move up between
   the header bar and the listings (the boxes around them step aside so they can be reordered). */
@media (max-width: 1000px) {
	.chpm-mk-side-inner {
		min-height: 0;
	}

	.chpm-mk-frame,
	.chpm-mk-frame.chpm-mk-side-left {
		display: flex;
		flex-direction: column;
	}

	.chpm-mk-col,
	.chpm-mk-sidebar,
	.chpm-mk-side-inner {
		display: contents;
	}

	.chpm-mk-bar {
		order: 1;
	}

	.chpm-mk-side-top {
		order: 2;
		overflow: visible;
		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
		background: var(--chpm-mk-side-bg, #eceef1);
	}

	.chpm-mk-body {
		order: 3;
		width: 100%;
	}

	.chpm-mk-about,
	.chpm-mk-copy {
		order: 4;
	}
}

/* Phones: swipe instead of arrows, smaller dots. */
@media (max-width: 600px) {
	.chpm-mk-arrow {
		display: none;
	}

	.chpm-mk-dots {
		bottom: 4px;
		gap: 4px;
	}

	.chpm-mk-dot {
		width: 6px;
		height: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.chpm-mk-slides,
	.chpm-mk-effect-fade .chpm-mk-slide,
	.chpm-mk-effect-fade .chpm-mk-slide.is-active {
		transition: none;
	}
}

/* ---------- Build 1.0.79: header bar with the page title in the centre ---------- */
.chpm-mk-bar-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 16px;
}

.chpm-mk-logo {
	justify-self: start;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

.chpm-mk-logo-text,
.chpm-mk-logo-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.chpm-mk-title {
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-align: center;
	white-space: nowrap;
}

.chpm-mk-tools {
	justify-self: end;
	margin-left: 0;
}

.chpm-mk-btn1 {
	margin-left: 8px;
}

.chpm-mk-heading {
	font-size: 20px;
}

.chpm-mk-back {
	margin: 0 0 16px;
	font-size: 14px;
}

.chpm-mk-back a {
	color: inherit;
}

/* Tablets: the title takes a line of its own under the logo and buttons. */
@media (max-width: 1000px) {
	.chpm-mk-bar-inner {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px 16px;
	}

	.chpm-mk-title {
		grid-column: 1 / -1;
		grid-row: 2;
		font-size: 20px;
		white-space: normal;
	}
}

/* With the sidebar beside it there is less room: the title moves to its own line sooner. */
@media (max-width: 1280px) and (min-width: 1001px) {
	.chpm-mk-frame:not(.chpm-mk-side-none) .chpm-mk-bar-inner {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px 16px;
	}

	.chpm-mk-frame:not(.chpm-mk-side-none) .chpm-mk-title {
		grid-column: 1 / -1;
		grid-row: 2;
		white-space: normal;
	}
}

@media (max-width: 600px) {
	.chpm-mk-title {
		font-size: 18px;
	}
}

/* ---------- Build 1.0.81: listing tiles (laid out as the news tiles) ---------- */
.chpm-mk-grid {
	display: grid;
	grid-template-columns: repeat(var(--chpm-mk-cols, 3), minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.chpm-mk-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	overflow: hidden;
	padding: 16px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease;
}

.chpm-mk-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chpm-mk-card-image {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 3px;
	background: #f0f0f1;
}

.chpm-mk-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain; /* The whole photo is shown, never cut off. */
}

.chpm-mk-nophoto {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 160px;
	background: #eceef1;
	color: #a7aaad;
}

.chpm-mk-card-content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 6px;
	min-width: 0;
}

.chpm-mk-card-cat {
	color: #646970;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.chpm-mk-card-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}

.chpm-mk-card-title a {
	color: #1d2327;
	text-decoration: none;
}

/* The whole tile opens the listing; the buttons sit above that. */
.chpm-mk-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.chpm-mk-card:hover .chpm-mk-card-title a,
.chpm-mk-card-title a:focus-visible {
	color: var(--chpm-mk-accent, #2e7d32);
}

.chpm-mk-card-price {
	color: var(--chpm-mk-accent, #2e7d32);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
}

.chpm-mk-card-meta,
.chpm-mk-item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	color: #50575e;
	font-size: 13px;
}

.chpm-mk-card-meta span,
.chpm-mk-item-meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.chpm-mk-card-meta svg,
.chpm-mk-item-meta svg {
	flex: 0 0 auto;
}

.chpm-mk-card-excerpt {
	color: #2c3338;
	font-size: 14px;
	line-height: 1.55;
}

.chpm-mk-card-footer {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
}

.chpm-mk-card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 12px;
	border: 1px solid var(--chpm-mk-accent, #2e7d32);
	border-radius: 4px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: filter 0.15s ease, background 0.15s ease;
}

.chpm-mk-card-view {
	background: #fff;
	color: var(--chpm-mk-accent, #2e7d32);
}

.chpm-mk-card-view:hover,
.chpm-mk-card-view:focus-visible {
	background: #f6f7f7;
	color: var(--chpm-mk-accent, #2e7d32);
}

.chpm-mk-card-contact {
	background: var(--chpm-mk-accent, #2e7d32);
	color: #fff;
}

.chpm-mk-card-contact:hover,
.chpm-mk-card-contact:focus-visible {
	color: #fff;
	filter: brightness(0.9);
}

@media (max-width: 1024px) {
	.chpm-mk-grid {
		grid-template-columns: repeat(min(var(--chpm-mk-cols, 3), 2), minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.chpm-mk-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Build 1.0.81: the full-page listing (laid out as a news article) ---------- */
.chpm-mk-item-head {
	margin: 0 0 20px;
	padding: 0 0 16px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.chpm-mk-item-title {
	margin: 4px 0 10px;
	color: #1d2327;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.2;
}

.chpm-mk-item-body {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
	gap: 24px;
	align-items: start;
}

.chpm-mk-gallery-main {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 6px;
	background: #f0f0f1;
}

.chpm-mk-gallery-main img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.chpm-mk-gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.chpm-mk-thumb {
	width: 72px;
	height: 72px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 4px;
	background: #f0f0f1;
	cursor: pointer;
}

.chpm-mk-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.chpm-mk-thumb.is-active,
.chpm-mk-thumb:focus-visible {
	border-color: var(--chpm-mk-accent, #2e7d32);
}

.chpm-mk-item-box {
	padding: 20px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.chpm-mk-item-price {
	margin: 0 0 12px;
	color: var(--chpm-mk-accent, #2e7d32);
	font-size: 32px;
	font-weight: 800;
	line-height: 1.1;
}

.chpm-mk-item-facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 14px;
	margin: 0 0 18px;
	font-size: 14px;
}

.chpm-mk-item-facts dt {
	color: #646970;
	font-weight: 600;
}

.chpm-mk-item-facts dd {
	margin: 0;
	color: #1d2327;
}

.chpm-mk-item-facts ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.chpm-mk-item-facts li + li {
	margin-top: 3px;
}

.chpm-mk-item-contact {
	display: flex;
	width: 100%;
	padding: 12px 16px;
	font-size: 16px;
}

.chpm-mk-item-text {
	max-width: 760px;
	margin: 28px 0 0;
	color: #2c3338;
	font-size: 16px;
	line-height: 1.7;
}

.chpm-mk-item-text h3 {
	margin: 0 0 10px;
	color: #1d2327;
	font-size: 18px;
}

.chpm-mk-enquiry-about {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 700;
}

@media (max-width: 800px) {
	.chpm-mk-item-body {
		grid-template-columns: minmax(0, 1fr);
	}

	.chpm-mk-item-title {
		font-size: 24px;
	}
}

/* ---------- Build 1.0.83: Filters at the top of the sidebar ---------- */
.chpm-mk-filters {
	padding: 18px 16px 20px;
	font-size: 13px;
}

.chpm-mk-filters-title {
	margin: 0 0 14px;
	color: #1d2327;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.chpm-mk-filter {
	margin: 0 0 14px;
}

.chpm-mk-filter > label,
.chpm-mk-filter-label {
	display: block;
	margin: 0 0 5px;
	color: #1d2327;
	font-size: 13px;
	font-weight: 700;
}

.chpm-mk-filter select {
	display: block;
	width: 100%;
	height: 38px;
	margin: 0;
	padding: 0 8px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background-color: #fff;
	color: #1d2327;
	font: inherit;
	font-size: 14px;
}

.chpm-mk-price-range {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.chpm-mk-money {
	display: grid;
	grid-template-columns: auto auto 1fr;
	align-items: center;
	gap: 4px;
	margin: 0;
}

.chpm-mk-money span {
	color: #50575e;
}

.chpm-mk-money b {
	color: #1d2327;
	font-weight: 700;
}

.chpm-mk-money input {
	width: 100%;
	min-width: 0;
	height: 38px;
	margin: 0;
	padding: 0 6px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	color: #1d2327;
	font: inherit;
	font-size: 14px;
}

.chpm-mk-filter-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-top: 4px;
}

.chpm-mk-filter-actions .chpm-mk-card-btn {
	cursor: pointer;
	font-family: inherit;
}

.chpm-mk-filter-clear,
.chpm-mk-count a {
	color: inherit;
	font-size: 13px;
}

.chpm-mk-count {
	margin: 0 0 14px;
	color: #50575e;
	font-size: 14px;
}

/* Five tiles a row only where there is room for them. */
@media (max-width: 1500px) {
	.chpm-mk-grid {
		grid-template-columns: repeat(min(var(--chpm-mk-cols, 3), 4), minmax(0, 1fr));
	}
}

@media (max-width: 1280px) {
	.chpm-mk-grid {
		grid-template-columns: repeat(min(var(--chpm-mk-cols, 3), 3), minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.chpm-mk-grid {
		grid-template-columns: repeat(min(var(--chpm-mk-cols, 3), 2), minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.chpm-mk-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 1000px) {
	.chpm-mk-filters {
		max-width: var(--chpm-mk-max, 1280px);
		margin: 0 auto;
		padding: 14px 24px 16px;
	}

	.chpm-mk-filters form,
	.chpm-mk-filters {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 16px;
	}

	.chpm-mk-filters-title,
	.chpm-mk-filter-actions {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.chpm-mk-filters {
		grid-template-columns: minmax(0, 1fr);
		padding: 14px 16px;
	}
}

/* ---------- Build 1.0.85: tighter tiles ---------- */
.chpm-mk-grid {
	gap: 14px;
}

.chpm-mk-card {
	gap: 8px;
	padding: 10px;
}

.chpm-mk-card-content {
	gap: 3px;
}

.chpm-mk-card-title {
	font-size: 16px;
}

.chpm-mk-card-price {
	font-size: 20px;
}

.chpm-mk-card-footer {
	gap: 6px;
	padding-top: 6px;
}

.chpm-mk-card-footer .chpm-mk-card-btn {
	padding: 7px 8px;
	font-size: 13px;
}

/* ---------- Build 1.0.86: Terms and Conditions button and box ---------- */
.chpm-mk-terms-wrap {
	flex: 0 0 auto;
	padding: 10px 16px 12px;
}

.chpm-mk-terms-btn {
	display: block;
	width: 100%;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid var(--chpm-mk-accent, #2e7d32);
	border-radius: 4px;
	background: transparent;
	color: var(--chpm-mk-accent, #2e7d32);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.15s ease;
}

.chpm-mk-terms-btn:hover,
.chpm-mk-terms-btn:focus-visible {
	background: rgba(0, 0, 0, 0.04);
	color: var(--chpm-mk-accent, #2e7d32);
}

.chpm-mk-terms {
	width: min(820px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #fff;
	color: #1d2327;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.chpm-mk-terms[open] {
	display: flex;
	flex-direction: column;
}

.chpm-mk-terms::backdrop {
	background: rgba(0, 0, 0, 0.55);
}

.chpm-mk-terms-head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 22px 14px;
	border-bottom: 1px solid #dcdcde;
}

.chpm-mk-terms-head h2 {
	flex: 1 1 auto;
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}

.chpm-mk-terms-close {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	margin: -4px -6px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #50575e;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.chpm-mk-terms-close:hover,
.chpm-mk-terms-close:focus-visible {
	background: #f0f0f1;
	color: #1d2327;
}

.chpm-mk-terms-body {
	overflow-y: auto;
	padding: 6px 22px 16px;
	font-size: 14px;
	line-height: 1.6;
}

.chpm-mk-terms-body h3 {
	margin: 18px 0 6px;
	font-size: 16px;
	font-weight: 800;
}

.chpm-mk-terms-body ul {
	margin: 0 0 6px;
	padding-left: 20px;
}

.chpm-mk-terms-body ul ul {
	margin: 4px 0 4px;
	list-style: circle;
}

.chpm-mk-terms-body li {
	margin: 0 0 6px;
}

.chpm-mk-terms-body p {
	margin: 0 0 10px;
}

.chpm-mk-terms-foot {
	padding: 12px 22px 16px;
	border-top: 1px solid #dcdcde;
	text-align: right;
}

.chpm-mk-terms-foot .chpm-mk-terms-btn {
	display: inline-block;
	width: auto;
	min-width: 120px;
}

@media (max-width: 1000px) {
	.chpm-mk-terms-wrap {
		order: 4;
		padding: 14px 24px;
		background: var(--chpm-mk-about-bg, #f6f7f7);
		border-top: 1px solid rgba(0, 0, 0, 0.1);
	}

	.chpm-mk-terms-wrap .chpm-mk-terms-btn {
		max-width: 320px;
	}
}

/* ---------- Build 1.0.88: sold tiles, item number, seller notices ---------- */
.chpm-mk-card.is-sold,
.chpm-mk-card.is-sold:hover {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	cursor: default;
}

.chpm-mk-card.is-sold .chpm-mk-card-image img {
	opacity: 0.6;
}

.chpm-mk-card-price.chpm-mk-sold {
	color: #c8102e;
	font-weight: 900;
	letter-spacing: 0.08em;
}

.chpm-mk-item-no {
	padding: 1px 8px;
	border: 1px solid #c3c4c7;
	border-radius: 999px;
	color: #1d2327;
	font-weight: 700;
}

.chpm-mk-notice {
	max-width: 720px;
	padding: 20px 24px;
	border: 1px solid #dcdcde;
	border-left: 4px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
}

.chpm-mk-notice.is-ok {
	border-left-color: var(--chpm-mk-accent, #2e7d32);
}

.chpm-mk-notice h2 {
	margin: 0 0 8px;
	font-size: 20px;
}

.chpm-mk-notice p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
}

.chpm-mk-admin-note {
	display: inline-block;
	margin: 0 0 14px;
	padding: 6px 12px;
	border-radius: 4px;
	background: #fff8ec;
	color: #8a4b0f;
	font-size: 14px;
	font-weight: 600;
}

.chpm-mk-notice p + p {
	margin-top: 10px;
}

/* ---------- Build 1.0.91: payment page ---------- */
.chpm-mk-pay {
	max-width: 620px;
	padding: 24px 26px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.chpm-mk-pay h2 {
	margin: 0 0 6px;
	font-size: 22px;
}

.chpm-mk-pay-intro {
	margin: 0 0 16px;
	color: #50575e;
	font-size: 15px;
}

.chpm-mk-pay-sum {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 18px;
	margin: 0 0 18px;
	padding: 14px 16px;
	border-radius: 6px;
	background: #f6f7f7;
	font-size: 15px;
}

.chpm-mk-pay-sum dt {
	color: #646970;
	font-weight: 600;
}

.chpm-mk-pay-sum dd {
	margin: 0;
}

.chpm-mk-pay-sum .chpm-mk-pay-total {
	padding-top: 8px;
	border-top: 1px solid #dcdcde;
	color: #1d2327;
	font-size: 18px;
	font-weight: 800;
}

.chpm-mk-pay-code {
	margin: 0 0 16px;
}

.chpm-mk-pay-code label {
	display: block;
	margin: 0 0 5px;
	font-size: 14px;
	font-weight: 700;
}

.chpm-mk-pay-code div {
	display: flex;
	gap: 8px;
}

.chpm-mk-pay-code input {
	flex: 0 1 220px;
	min-width: 0;
	height: 40px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font: inherit;
	text-transform: uppercase;
}

.chpm-mk-pay-code button {
	height: 40px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--chpm-mk-accent, #2e7d32);
	border-radius: 4px;
	background: #fff;
	color: var(--chpm-mk-accent, #2e7d32);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.chpm-mk-pay-msg {
	margin: 6px 0 0;
	font-size: 14px;
}

.chpm-mk-pay-msg:empty {
	display: none;
}

.chpm-mk-pay-msg.is-bad {
	color: #b32d2e;
	font-weight: 600;
}

.chpm-mk-pay-buttons {
	max-width: 420px;
	margin: 6px 0 0;
}

.chpm-mk-pay-free .chpm-mk-card-btn {
	cursor: pointer;
	font-family: inherit;
}

.chpm-mk-pay-sandbox {
	margin: 10px 0 0;
	color: #8a4b0f;
	font-size: 13px;
	font-weight: 600;
}

.chpm-mk-pay-cancel {
	margin: 18px 0 0;
}

.chpm-mk-pay-cancel button {
	padding: 0;
	border: 0;
	background: none;
	color: #50575e;
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- Build 1.0.97: "Just listed" and Featured Tiles (advertisements) ---------- */
.chpm-mk-card-image {
	position: relative;
}
.chpm-mk-new {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	padding: 5px 10px;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
	color: #1d2327;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}
.chpm-mk-ad-name {
	color: #50575e;
	font-size: 14px;
	font-weight: 600;
}
.chpm-mk-ad-label {
	color: #646970;
	font-style: italic;
}
.chpm-mk-ad-footer {
	grid-template-columns: 1fr;
}

/* ---------- Build 1.0.98: header bar stays put; Sidebar Featured Area ---------- */
/* The header bar stays at the top while the listings scroll (the banners above it scroll away). */
.chpm-mk-bar {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
}

.chpm-mk-feature {
	padding: 0 16px 20px;
	font-size: 14px;
	line-height: 1.5;
}

.chpm-mk-feature-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.chpm-mk-feature-text p {
	margin: 0 0 10px;
}

.chpm-mk-feature-html {
	overflow-wrap: anywhere;
}

.chpm-mk-feature-html img,
.chpm-mk-feature-html iframe,
.chpm-mk-feature-html video {
	max-width: 100%;
}

/* Tablets and phones: Filters above the listings, the featured area after them. */
@media (max-width: 1000px) {
	.chpm-mk-side-top {
		display: contents;
	}

	.chpm-mk-filters {
		order: 2;
		width: 100%;
		max-width: none;
		padding-left: max(24px, calc((100% - var(--chpm-mk-max, 1280px)) / 2 + 24px));
		padding-right: max(24px, calc((100% - var(--chpm-mk-max, 1280px)) / 2 + 24px));
		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
		background: var(--chpm-mk-side-bg, #eceef1);
	}

	.chpm-mk-feature {
		order: 4;
		width: 100%;
		padding: 20px 24px;
		border-top: 1px solid rgba(0, 0, 0, 0.1);
		background: var(--chpm-mk-side-bg, #eceef1);
	}

	.chpm-mk-feature > * {
		max-width: 600px;
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 600px) {
	.chpm-mk-filters,
	.chpm-mk-feature {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* ---------- Build 1.0.99: scrolling the sidebar never moves the page behind it ---------- */
.chpm-mk-side-top {
	overscroll-behavior: contain;
}

/* ---------- Build 1.0.101: no bounce ---------- */
/* On a Mac, scrolling past the top or bottom makes the whole page bounce, header bar and sidebar
   included, so everything looks as if it scrolls together. Turned off on these pages. */
html:has(> body.chpm-market-page),
html:has(> body.chpm-main-page),
body.chpm-market-page,
body.chpm-main-page {
	overscroll-behavior-y: none;
}

/* Footer (1.0.121): across the bottom of the main area, the About box's height (set by footer.js). */
@media (min-width: 1001px) {
	.chpm-mk-col.chpm-has-ft {
		display: flex;
		flex-direction: column;
	}

	.chpm-mk-col.chpm-has-ft > .chpm-mk-body {
		flex: 1 0 auto;
		width: 100%;
	}
}

.chpm-ft {
	flex: 0 0 auto;
	height: var(--chpm-ft-h, 160px);
	overflow-y: auto;
	overscroll-behavior: contain;
	border-top: 1px solid var(--chpm-ft-line, #dcdcde);
	background: var(--chpm-ft-bg, #f6f7f7);
	color: var(--chpm-ft-text, #1d2327);
	font-size: 14px;
	line-height: 1.5;
}

.chpm-ft-fixed {
	position: sticky;
	bottom: 0;
	z-index: 5;
}

.chpm-ft-inner {
	max-width: var(--chpm-mk-max, 1280px);
	margin: 0 auto;
	padding: 14px 24px;
}

.chpm-ft-inner > :first-child {
	margin-top: 0;
}

.chpm-ft-inner > :last-child {
	margin-bottom: 0;
}

.chpm-ft a {
	color: var(--chpm-ft-link, #2271b1);
}

.chpm-ft img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 1000px) {
	.chpm-ft {
		order: 5;
		width: 100%;
	}
}

/* Phones: a fixed footer would cover too much of the screen, so it sits at the end of the page. */
@media (max-width: 600px) {
	.chpm-ft-fixed {
		position: static;
	}

	.chpm-ft-inner {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* ---------- Build 1.0.122: marketplace tiles, the look of the example ---------- */
/* A white box (1.0.124): the photo with rounded corners, then the price, the title on one line and the town in grey. */
.chpm-mk .chpm-mk-card.chpm-mk-tile {
	gap: 10px;
	padding: 10px 10px 12px;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.chpm-mk .chpm-mk-card.chpm-mk-tile.is-sold,
.chpm-mk .chpm-mk-card.chpm-mk-tile.is-sold:hover {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.chpm-mk .chpm-mk-card.chpm-mk-tile.chpm-mk-ad {
	border: 5px solid #f5c400;
}

.chpm-mk-tile .chpm-mk-card-image {
	border-radius: 8px;
}

.chpm-mk-tile .chpm-mk-card-content {
	gap: 2px;
}

.chpm-mk-tile .chpm-mk-card-price {
	color: #1d2327;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
}

.chpm-mk-tile .chpm-mk-card-price.chpm-mk-sold {
	color: #c8102e;
	font-weight: 900;
}

.chpm-mk-tile .chpm-mk-card-title {
	overflow: hidden;
	color: #1d2327;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chpm-mk-tile .chpm-mk-card-title a {
	color: inherit;
}

.chpm-mk-tile:hover .chpm-mk-card-title a,
.chpm-mk-tile .chpm-mk-card-title a:focus-visible {
	color: inherit;
	text-decoration: underline;
}

.chpm-mk-tile .chpm-mk-card-meta {
	display: block;
	overflow: hidden;
	color: #8c8f94;
	font-size: 15px;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chpm-mk-tile .chpm-mk-card-listed {
	margin-top: 6px;
	color: #8c8f94;
	font-size: 12px;
	line-height: 1.3;
}

.chpm-mk-tile.is-sold .chpm-mk-card-title {
	color: #646970;
}

.chpm-mk-tile .chpm-mk-ad-name {
	font-size: 13px;
}

/* A little more room between the rows of marketplace tiles. */
.chpm-mk-grid:has(> .chpm-mk-tile) {
	row-gap: 18px;
}
