/*
 * PerfumeMarket: homepage sections and product cards.
 * Colours come from the theme palette (Appearance > Editor > Styles).
 */

/* ---------- Spacing between sections ---------- */
.pm-section { margin-top: var(--wp--preset--spacing--60) !important; margin-bottom: 0 !important; }
.pm-section:first-child,
.pm-hero { margin-top: var(--wp--preset--spacing--40) !important; }
.pm-section p { margin: 0; }

/* Section heading row */
.pm-section-head { margin-bottom: 22px !important; gap: 10px 24px; }
.pm-section-titles > * { margin: 0 !important; }
.pm-section-title { font-size: clamp(1.5rem, 2.6vw, 1.875rem) !important; font-weight: 800; letter-spacing: -0.02em; }
.pm-section-sub { color: var(--wp--preset--color--muted); font-size: 14.5px; margin-top: 4px !important; }
.pm-view-all a {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}
.pm-view-all a:hover { text-decoration: underline; }

.pm-eyebrow {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

/* ---------- Buttons ---------- */
.pm-buttons { gap: 12px; }
.pm-buttons .wp-block-button__link { padding: 12px 24px; font-size: 14px; font-weight: 800; }
.pm-btn-gold .wp-block-button__link { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--primary-dark); }
.pm-btn-gold .wp-block-button__link:hover { background: var(--wp--preset--color--accent); filter: brightness(0.95); color: var(--wp--preset--color--primary-dark); }
.pm-btn-teal .wp-block-button__link { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
.pm-btn-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--primary); box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--primary); }
.pm-btn-outline .wp-block-button__link:hover { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
.pm-btn-outline-light .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.pm-btn-outline-light .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Banners (hero, background photo + text) ---------- */
.pm-banner {
	position: relative;
	border-radius: var(--wp--custom--radius--medium);
	overflow: hidden;
	display: flex;
	color: #fff;
	background-color: var(--wp--preset--color--primary);
	min-height: 220px;
}
.pm-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--primary-dark) 84%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--primary-dark) 55%, transparent) 45%, color-mix(in srgb, var(--wp--preset--color--primary-dark) 0%, transparent) 78%);
	pointer-events: none;
}
.pm-banner-text {
	position: relative;
	z-index: 1;
	align-self: center;
	max-width: 60%;
	padding: clamp(22px, 3.5vw, 44px);
}
.pm-banner-text > * { margin: 0 !important; }
.pm-banner-text > * + * { margin-top: 12px !important; }
.pm-banner-text .pm-buttons { margin-top: 20px !important; }
.pm-banner-title { color: #fff !important; font-size: clamp(1.6rem, 3.2vw, 2.6rem) !important; line-height: 1.12; letter-spacing: -0.02em; }
.pm-banner-desc { color: color-mix(in srgb, #fff 88%, var(--wp--preset--color--primary)); font-size: 15.5px; line-height: 1.55; }
.pm-banner--small .pm-banner-text { max-width: 72%; padding: 26px; }
.pm-banner--small .pm-banner-title { font-size: clamp(1.15rem, 1.6vw, 1.4rem) !important; }
.pm-banner--small .pm-banner-desc { font-size: 13.5px; }
.pm-banner--small .pm-buttons .wp-block-button__link { padding: 9px 18px; font-size: 13px; }

/* Hero A: mosaic */
.pm-hero--mosaic { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; height: clamp(380px, 38vw, 500px); }
.pm-hero--mosaic > * { margin: 0 !important; }
.pm-hero--mosaic .pm-banner--big { height: 100%; }
.pm-hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.pm-hero-side > * { margin: 0 !important; min-height: 0; }
/* Without the small banners, the big banner fills the width. */
.pm-hero--mosaic:not(:has(.pm-hero-side)) { grid-template-columns: 1fr; }
.pm-hero--single .pm-banner--big { min-height: clamp(360px, 36vw, 480px); }

/* Hero B: full-width banner */
.pm-banner--wide { min-height: clamp(380px, 34vw, 460px); }
.pm-banner--wide .pm-banner-text { max-width: 540px; padding: clamp(28px, 4.5vw, 56px); }

/* Hero C: split */
.pm-split {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	background: var(--wp--preset--color--tint);
	border-radius: var(--wp--custom--radius--large);
	overflow: hidden;
	min-height: 440px;
}
.pm-split > * { margin: 0 !important; }
.pm-split-text { padding: clamp(28px, 4.5vw, 56px); align-self: center; }
.pm-split-text > * { margin: 0 !important; }
.pm-split-text > * + * { margin-top: 14px !important; }
.pm-split-text .pm-eyebrow { color: var(--wp--preset--color--primary); }
.pm-split-text .pm-banner-title { color: var(--wp--preset--color--contrast) !important; }
.pm-split-text .pm-banner-desc { color: var(--wp--preset--color--muted); }
.pm-split-text .pm-buttons { margin-top: 22px !important; }
.pm-split-points { margin-top: 26px !important; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 18%, var(--wp--preset--color--tint)); color: var(--wp--preset--color--primary); font-size: 14px; }
.pm-split-image { position: relative; margin: 0 !important; }
.pm-split-image img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: 45% 40%; border-radius: 0 !important; }

/* Tablet */
@media (max-width: 1023px) {
	.pm-hero--mosaic { grid-template-columns: 1fr; height: auto; }
	.pm-hero--mosaic .pm-banner--big { min-height: 0; aspect-ratio: 16 / 9; }
	.pm-hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
	.pm-hero-side .pm-banner { aspect-ratio: 4 / 3; }
	.pm-split { grid-template-columns: 1fr; }
	.pm-split-image { order: -1; aspect-ratio: 16 / 9; }
}

/* Phone: text and button over the photo, like on computers, on a dark fade from the bottom */
@media (max-width: 599px) {
	.pm-hide-phone { display: none !important; }
	.pm-banner,
	.pm-hero--mosaic .pm-banner--big {
		aspect-ratio: auto !important;
		height: auto !important;
		min-height: 360px !important;
		background-size: cover !important;
		background-position: 72% center !important;
	}
	.pm-banner--small { min-height: 220px !important; }
	.pm-banner::before {
		display: block;
		background: linear-gradient(0deg, color-mix(in srgb, var(--wp--preset--color--primary-dark) 94%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--primary-dark) 72%, transparent) 42%, color-mix(in srgb, var(--wp--preset--color--primary-dark) 0%, transparent) 78%);
	}
	.pm-banner-text { max-width: none !important; align-self: flex-end; padding: 18px 18px 20px !important; }
	.pm-banner-text > * + * { margin-top: 8px !important; }
	.pm-banner-text .pm-buttons { margin-top: 14px !important; }
	.pm-banner-title { font-size: 1.4rem !important; }
	.pm-banner-desc { font-size: 14px; line-height: 1.5; }
	.pm-banner .pm-buttons .wp-block-button { flex: 1 1 auto; }
	.pm-banner .pm-buttons .wp-block-button__link { display: block; text-align: center; padding-top: 12px; padding-bottom: 12px; }
	.pm-split-text .pm-buttons .wp-block-button { flex: 1 1 auto; }
	.pm-split-text .pm-buttons .wp-block-button__link { display: block; text-align: center; padding-left: 12px; padding-right: 12px; }
	.pm-split-image { aspect-ratio: 16 / 10; }
}

/* ---------- Highlights strip ---------- */
.pm-highlights {
	background: var(--wp--preset--color--tint);
	border-radius: var(--wp--custom--radius--medium);
	overflow: hidden;
	padding: 13px 0;
	margin-top: 16px !important;
}
.pm-highlights-track { gap: 0 !important; width: max-content; animation: pm-scroll 40s linear infinite; }
.pm-highlights:hover .pm-highlights-track { animation-play-state: paused; }
.pm-highlights-track p {
	margin: 0 !important;
	white-space: nowrap;
	font-weight: 700;
	font-size: 15px;
	color: var(--wp--preset--color--primary);
	padding: 0 22px;
	position: relative;
}
.pm-highlights-track p::after {
	content: "";
	position: absolute;
	right: -3px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
}
@keyframes pm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.pm-highlights-track { animation: none; flex-wrap: wrap !important; width: auto; justify-content: center; row-gap: 8px !important; }
}
@media (max-width: 599px) { .pm-highlights-track p { font-size: 13px; padding: 0 16px; } }

/* ---------- Categories ---------- */
.pm-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pm-cats > * { margin: 0 !important; }
.pm-cat { position: relative; margin: 0; }
.pm-cat a { display: block; text-decoration: none; }
.pm-cat img { display: block; width: 100%; }
.pm-cat figcaption { margin: 0; }

/* 1. Image tiles */
.pm-cats--tiles .pm-cat { border-radius: var(--wp--custom--radius--medium); overflow: hidden; }
.pm-cats--tiles .pm-cat img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0 !important; transition: transform 0.4s ease; }
.pm-cats--tiles .pm-cat:hover img { transform: scale(1.04); }
.pm-cats--tiles .pm-cat a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--wp--preset--color--primary-dark) 86%, transparent), color-mix(in srgb, var(--wp--preset--color--primary-dark) 0%, transparent) 55%); }
.pm-cats--tiles figcaption {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 14px;
	z-index: 1;
	color: #fff;
	font-weight: 800;
	font-size: 17px;
	text-align: left;
	display: flex;
	justify-content: space-between;
	align-items: center;
	pointer-events: none;
}
.pm-cats--tiles figcaption::after {
	content: "→";
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--primary-dark);
	display: grid;
	place-items: center;
	font-size: 15px;
	flex-shrink: 0;
}

/* 2. Circles */
.pm-cats--circles .pm-cat {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--medium);
	padding: 22px 10px 16px;
	text-align: center;
}
.pm-cats--circles .pm-cat img {
	width: 130px !important;
	height: 130px;
	margin: 0 auto;
	border-radius: 50% !important;
	object-fit: cover;
	box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--wp--preset--color--line);
}
.pm-cats--circles figcaption { margin-top: 12px; font-weight: 700; font-size: 15px; color: var(--wp--preset--color--contrast); pointer-events: none; }

/* 3. Pills */
.pm-cats--pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pm-cats--pills .pm-cat {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill);
	padding: 6px 22px 6px 6px;
}
.pm-cats--pills .pm-cat a { position: static; }
.pm-cats--pills .pm-cat a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pm-cats--pills .pm-cat img { width: 52px !important; height: 52px; border-radius: 50% !important; object-fit: cover; }
.pm-cats--pills figcaption { font-weight: 700; font-size: 15px; color: var(--wp--preset--color--contrast); pointer-events: none; }

/* Tablets: four shorter tiles in one row */
@media (min-width: 600px) and (max-width: 1023px) {
	.pm-cats--tiles { gap: 12px; }
	.pm-cats--tiles .pm-cat img { aspect-ratio: 4 / 5; }
	.pm-cats--tiles figcaption { font-size: 14px; left: 12px; right: 12px; bottom: 12px; }
}
@media (max-width: 599px) {
	.pm-cats--tiles .pm-cat img { aspect-ratio: 1 / 1; object-position: center 18%; }
}
@media (max-width: 599px) {
	.pm-cats--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pm-cats--tiles figcaption { font-size: 14px; left: 12px; right: 12px; bottom: 12px; }
	.pm-cats--tiles figcaption::after { width: 26px; height: 26px; font-size: 13px; }
	.pm-cats--circles { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; padding-bottom: 4px; }
	.pm-cats--circles .pm-cat { flex: 0 0 40%; scroll-snap-align: start; padding: 14px 6px 12px; }
	.pm-cats--circles .pm-cat img { width: 88px !important; height: 88px; }
	.pm-cats--circles figcaption { font-size: 13px; }
	.pm-cats--pills { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
	.pm-cats--pills .pm-cat { flex: 0 0 auto; padding: 5px 16px 5px 5px; }
	.pm-cats--pills .pm-cat img { width: 42px !important; height: 42px; }
	.pm-cats--pills figcaption { font-size: 13.5px; white-space: nowrap; }
}

/* ---------- Seller banner ---------- */
.pm-cta {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-radius: var(--wp--custom--radius--large);
	overflow: hidden;
}
.pm-cta > * { margin: 0 !important; }
.pm-cta-text { padding: clamp(28px, 4.5vw, 52px); align-self: center; }
.pm-cta-text > * { margin: 0 !important; }
.pm-cta-text > * + * { margin-top: 12px !important; }
.pm-cta-title { color: #fff !important; font-size: clamp(1.5rem, 2.8vw, 2.1rem) !important; line-height: 1.18; }
.pm-cta-text p:not(.pm-eyebrow) { color: color-mix(in srgb, #fff 78%, var(--wp--preset--color--primary)); max-width: 460px; }
.pm-cta-text .pm-buttons { margin-top: 22px !important; }
.pm-cta-image { position: relative; margin: 0 !important; min-height: 260px; }
.pm-cta-image img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 !important; }
@media (max-width: 781px) {
	/* Phones and small tablets: photo behind the text instead of above it (less scrolling) */
	.pm-cta { grid-template-columns: 1fr; position: relative; min-height: 340px; }
	.pm-cta-image { position: absolute !important; inset: 0; min-height: 0; }
	.pm-cta::after {
		content: ""; position: absolute; inset: 0; pointer-events: none;
		background: linear-gradient(0deg, color-mix(in srgb, var(--wp--preset--color--primary-dark) 95%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--primary-dark) 78%, transparent) 50%, color-mix(in srgb, var(--wp--preset--color--primary-dark) 20%, transparent) 100%);
	}
	.pm-cta-text { position: relative; z-index: 1; align-self: end; padding: 22px 18px 20px; }
	.pm-cta-text > * + * { margin-top: 8px !important; }
	.pm-cta-text .pm-buttons { margin-top: 16px !important; }
	.pm-cta-title { font-size: 1.4rem !important; }
	.pm-cta-text p:not(.pm-eyebrow) { color: color-mix(in srgb, #fff 88%, var(--wp--preset--color--primary)); font-size: 14.5px; }
	.pm-cta-text .pm-buttons .wp-block-button { flex: 1 1 auto; }
	.pm-cta-text .pm-buttons .wp-block-button__link { display: block; text-align: center; }
}

/* ---------- Calculator promo ---------- */
.pm-calc {
	background: var(--wp--preset--color--tint);
	border-radius: var(--wp--custom--radius--large);
	padding: clamp(24px, 3.5vw, 40px);
	gap: 18px 32px;
	align-items: center;
}
.pm-calc > * { margin: 0 !important; }
.pm-calc-text { flex: 1 1 420px; }
.pm-calc-text > * { margin: 0 !important; }
.pm-calc-text > * + * { margin-top: 8px !important; }
.pm-calc .pm-eyebrow { color: var(--wp--preset--color--primary); }
.pm-calc-title { font-size: clamp(1.3rem, 2.2vw, 1.6rem) !important; }
.pm-calc-text p:not(.pm-eyebrow) { color: var(--wp--preset--color--muted); }

/* ---------- SEO text ---------- */
.pm-seo,
.is-layout-constrained > .pm-seo.alignwide { max-width: 860px !important; margin-left: auto !important; margin-right: auto !important; }
.pm-seo .pm-section-title { margin-bottom: 14px !important; }
.pm-seo p { color: var(--wp--preset--color--muted); line-height: 1.75; }

/* ---------- Product cards (Product Collection) ---------- */
.pm-products .wc-block-product-template,
.is-style-pm-bordered .wc-block-product-template,
.is-style-pm-soft .wc-block-product-template,
.is-style-pm-minimal .wc-block-product-template { gap: 18px; }

:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product {
	display: flex !important;
	flex-direction: column;
	text-align: left;
	margin: 0;
}
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product > * { margin-top: 0 !important; margin-bottom: 0 !important; }
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-components-product-image {
	position: relative;
	margin: 0 0 12px !important;
	overflow: hidden;
	background: #eef1f0;
}
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-components-product-image img {
	aspect-ratio: var(--pm-card-ratio, 1 / 0.92);
	object-fit: cover;
	width: 100%;
	transition: transform 0.4s ease;
}
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.03); }

/* Discount badge: top left, red pill */
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-components-product-sale-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	right: auto;
	z-index: 2;
	margin: 0;
	background: var(--wp--preset--color--sale);
	color: #fff;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	padding: 4px 10px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: none;
}

/* Sold by */
.pm-sold-by {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: var(--wp--preset--color--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 4px !important;
}
.pm-sold-by svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.pm-sold-by a { color: var(--wp--preset--color--primary); font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.pm-sold-by a:hover { text-decoration: underline; }

/* Title, price */
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wp-block-post-title {
	font-size: 15px !important;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	margin-bottom: 8px !important;
}
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-components-product-price {
	font-size: 16px;
	font-weight: 800;
	color: var(--wp--preset--color--contrast);
	text-align: left;
}
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-components-product-price:has(del) {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	align-items: baseline;
	flex-wrap: wrap;
	column-gap: 7px;
}
.is-style-pm-soft .wc-block-components-product-price:has(del) { justify-content: center; }
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-components-product-price del { color: #9aa6a3; font-weight: 500; font-size: 13px; }
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-components-product-price ins { text-decoration: none; }

/* Button at the bottom, so all cards line up */
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-components-product-button {
	margin-top: auto !important;
	padding-top: 14px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-components-product-button .wp-block-button__link {
	width: 100%;
	font-size: 14px;
	font-weight: 700;
	padding: 11px 12px;
	text-align: center;
	justify-content: center;
}
:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-components-product-button .added_to_cart { margin-top: 8px; font-size: 13px; font-weight: 700; text-align: center; }

/* Style 1: Bordered */
.is-style-pm-bordered .wc-block-product {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--medium);
	overflow: hidden;
	padding-bottom: 16px;
}
.is-style-pm-bordered .wc-block-product > :not(.wc-block-components-product-image) { margin-left: 16px !important; margin-right: 16px !important; }
.is-style-pm-bordered .wc-block-components-product-button .wp-block-button__link { border-radius: var(--wp--custom--radius--pill); min-height: 44px; }

/* Style 2: Soft shadow */
.is-style-pm-soft .wc-block-product {
	background: #fff;
	border-radius: var(--wp--custom--radius--large);
	padding: 10px 10px 14px;
	box-shadow: var(--wp--preset--shadow--soft);
	text-align: center;
}
.is-style-pm-soft .wc-block-components-product-image { border-radius: var(--wp--custom--radius--medium); }
.is-style-pm-soft .wc-block-product > :not(.wc-block-components-product-image) { margin-left: 6px !important; margin-right: 6px !important; }
.is-style-pm-soft .pm-sold-by { justify-content: center; }
.is-style-pm-soft .wc-block-components-product-price { text-align: center; }
.is-style-pm-soft .wc-block-components-product-button .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--primary);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--primary);
}
.is-style-pm-soft .wc-block-components-product-button .wp-block-button__link:hover { background: var(--wp--preset--color--primary); color: #fff; }

/* Style 3: Minimal */
.is-style-pm-minimal .wc-block-components-product-image { border-radius: var(--wp--custom--radius--medium); }
.is-style-pm-minimal .wc-block-product > :not(.wc-block-components-product-image) { margin-left: 2px !important; margin-right: 2px !important; }
.is-style-pm-minimal .wc-block-components-product-button { align-items: flex-start; padding-top: 10px; }
.is-style-pm-minimal .wc-block-components-product-button .wp-block-button__link {
	width: auto;
	padding: 8px 16px;
	font-size: 13px;
	background: transparent;
	color: var(--wp--preset--color--primary);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--line);
}
.is-style-pm-minimal .wc-block-components-product-button .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--primary); }

/* Phones: two cards per row */
@media (max-width: 599px) {
	:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product-template {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-product { width: auto !important; max-width: none !important; }
	.is-style-pm-bordered .wc-block-product { padding-bottom: 12px; }
	.is-style-pm-bordered .wc-block-product > :not(.wc-block-components-product-image) { margin-left: 11px !important; margin-right: 11px !important; }
	:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wp-block-post-title { font-size: 13.5px !important; }
	:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-components-product-price { font-size: 14.5px; }
	:is(.is-style-pm-bordered, .is-style-pm-soft, .is-style-pm-minimal) .wc-block-components-product-button .wp-block-button__link { font-size: 13px; padding: 9px 8px; }
	.pm-sold-by svg { display: none; }
}

/* Random products: extra products stay hidden until the browser picks */
.pm-random .pm-random-extra { display: none !important; }

/* Less space between the header and the first homepage section */
.wp-block-post-content > .pm-section:first-child,
.wp-block-post-content > .wp-block-group:first-child { margin-top: 0 !important; }

/* Long text with "Read more" (any paragraph with the class pm-clamp) */
.pm-clamp:not(.is-open) {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--pm-clamp-lines, 3);
	line-clamp: var(--pm-clamp-lines, 3);
	overflow: hidden;
}
.pm-clamp-more {
	display: block;
	margin: 8px auto 0;
	background: none;
	border: 0;
	padding: 0;
	color: var(--wp--preset--color--primary);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.pm-clamp-more:hover { text-decoration: underline; }

/* ---------- How to sell (3 steps) ---------- */
.pm-steps { gap: 18px; margin-top: 4px !important; }
.pm-step {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--large);
	padding: 24px;
}
.pm-step > * { margin: 0 !important; }
.pm-step > * + * { margin-top: 8px !important; }
.pm-step-num {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--primary);
	font-weight: 800;
	font-size: 17px;
}
.pm-step-title { font-size: 1.1rem !important; margin-top: 14px !important; }
.pm-step p:not(.pm-step-num) { color: var(--wp--preset--color--muted); line-height: 1.6; }
.pm-sell-steps .pm-buttons { margin-top: 22px !important; }

/* ---------- Questions and answers ---------- */
.pm-faq-list { max-width: 900px; display: grid; gap: 10px; }
.pm-faq-list > * { margin: 0 !important; }
.pm-faq {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--medium);
	padding: 0 18px;
}
.pm-faq > summary {
	list-style: none;
	cursor: pointer;
	padding: 16px 0;
	font-weight: 700;
	display: flex;
	justify-content: space-between;
	gap: 14px;
}
.pm-faq > summary::-webkit-details-marker { display: none; }
.pm-faq > summary::after { content: "+"; color: var(--wp--preset--color--primary); font-size: 20px; line-height: 1; }
.pm-faq[open] > summary::after { content: "–"; }
.pm-faq > p { margin: 0 0 16px !important; color: var(--wp--preset--color--muted); line-height: 1.7; }

/* ---------- Latest blog posts ---------- */
.pm-post-cards .wp-block-post-template { gap: 18px; }
.pm-post-cards .wp-block-post {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--large);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.pm-post-cards .wp-block-post-featured-image { margin: 0 !important; }
.pm-post-cards .wp-block-post-featured-image img { width: 100%; object-fit: cover; }
.pm-post-card-body { padding: 16px 18px 20px; }
.pm-post-card-body > * { margin: 0 !important; }
.pm-post-card-body > * + * { margin-top: 8px !important; }
.pm-post-card-date { font-size: 12.5px; color: var(--wp--preset--color--muted); }
.pm-post-card-title { font-size: 1.05rem !important; line-height: 1.35; }
.pm-post-card-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.pm-post-card-title a:hover { color: var(--wp--preset--color--primary); }
.pm-post-cards .wp-block-post-excerpt__excerpt { color: var(--wp--preset--color--muted); font-size: 14px; line-height: 1.6; margin: 0; }
@media (max-width: 781px) {
	.pm-post-cards .wp-block-post-template { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Homepage product sections: columns per device come from Theme settings
   (--pm-hc-d computers, --pm-hc-t tablets, --pm-hc-m phones). */
.pm-product-section .wc-block-product-template > .wc-block-product { width: auto !important; max-width: none !important; margin: 0 !important; }
@media (min-width: 1000px) {
	.pm-product-section .wc-block-product-template {
		display: grid !important;
		grid-template-columns: repeat(var(--pm-hc-d, 4), minmax(0, 1fr)) !important;
	}
}
@media (max-width: 999px) {
	.pm-rows-grid .pm-product-section .wc-block-product-template {
		display: grid !important;
		grid-template-columns: repeat(var(--pm-hc-t, 4), minmax(0, 1fr)) !important;
		gap: 14px !important;
	}
}
@media (max-width: 599px) {
	.pm-rows-grid .pm-product-section .wc-block-product-template { grid-template-columns: repeat(var(--pm-hc-m, 2), minmax(0, 1fr)) !important; gap: 12px !important; }
}

/* "Swipe" setting: one row that swipes sideways, with arrow buttons; a slice of the next card peeks in */
@media (max-width: 999px) {
	.pm-rows-swipe .pm-product-section .wc-block-product-template {
		--pm-hc: var(--pm-hc-t, 3);
		display: flex !important;
		flex-wrap: nowrap !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 12px !important;
		padding-bottom: 6px;
		scrollbar-width: none;
	}
	.pm-rows-swipe .pm-product-section .wc-block-product-template::-webkit-scrollbar { display: none; }
	.pm-rows-swipe .pm-product-section .wc-block-product-template > .wc-block-product {
		flex: 0 0 calc((100% - 12px * (var(--pm-hc) - 1)) / (var(--pm-hc) + 0.2)) !important;
		width: auto !important;
		scroll-snap-align: start;
	}
}
@media (max-width: 599px) {
	.pm-rows-swipe .pm-product-section .wc-block-product-template { --pm-hc: var(--pm-hc-m, 2); }
}

/* Blog list: cards */
.pm-post-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--large);
	overflow: hidden;
	height: 100%;
	padding-bottom: 20px;
	transition: box-shadow 0.15s, transform 0.15s;
}
.pm-post-card:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07); transform: translateY(-2px); }
.pm-post-card { display: flex; flex-direction: column; }
.pm-post-card > * { margin: 0 !important; }
.pm-post-card > .pm-post-card-cat { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px !important; }
.pm-post-card > .pm-post-card-cat a { color: var(--wp--preset--color--primary); text-decoration: none; }
.pm-post-card > .pm-post-card-cat a:not(:first-of-type) { display: none; }
.pm-post-card > .pm-post-card-more { margin-top: auto !important; padding-top: 14px; font-size: 14px; font-weight: 800; color: var(--wp--preset--color--primary); text-decoration: none; align-self: flex-start; }
.pm-post-card > .pm-post-card-more:hover { text-decoration: underline; }
.pm-post-card > :not(.wp-block-post-featured-image) { padding-left: 20px; padding-right: 20px; }
.pm-post-card > .wp-block-post-featured-image { margin-bottom: 16px !important; }
.pm-post-card > .wp-block-post-featured-image img { border-radius: 0; }
.pm-post-card > .wp-block-post-date { font-size: 12.5px; color: var(--wp--preset--color--muted); margin-bottom: 6px !important; }
.pm-post-card > .wp-block-post-title { font-size: 1.15rem !important; line-height: 1.35; margin-bottom: 8px !important; }
.pm-post-card > .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.pm-post-card > .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }
.pm-post-card .wp-block-post-excerpt__excerpt { color: var(--wp--preset--color--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.pm-blog-cats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; margin: 0 0 26px !important; }
.pm-blog-cats li { margin: 0; }
.pm-blog-cats a {
	display: inline-block; padding: 7px 14px; border-radius: var(--wp--custom--radius--pill);
	background: #fff; border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--contrast); font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.pm-blog-cats a:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.pm-blog-cats .current-cat a { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.pm-blog-head { margin-bottom: 18px !important; }
.pm-blog-head > * { margin: 0 !important; }
.pm-blog-head .pm-breadcrumbs { margin-bottom: 8px !important; }
.pm-blog-head h1 { font-size: clamp(1.6rem, 3vw, 2.15rem) !important; line-height: 1.15; letter-spacing: -0.01em; }
.pm-blog-head p,
.pm-blog-head .wp-block-term-description { color: var(--wp--preset--color--muted); font-size: 15.5px; line-height: 1.55; margin-top: 6px !important; max-width: 640px; }
.pm-blog-head .wp-block-term-description p { margin: 0 !important; }
@media (max-width: 599px) {
	.pm-blog-head h1 { font-size: 1.55rem !important; }
	.pm-blog-head p, .pm-blog-head .wp-block-term-description { font-size: 14px; }
	.pm-blog-cats { margin-bottom: 18px !important; }
	.pm-blog-cats a { padding-top: 7px !important; padding-bottom: 7px !important; font-size: 13.5px !important; }
}

/* Pagination (blog, search) */
.wp-block-query-pagination { gap: 6px; }
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--wp--custom--radius--small); border: 1px solid var(--wp--preset--color--line); background: #fff;
	color: var(--wp--preset--color--contrast); text-decoration: none; font-weight: 700; font-size: 14px;
}
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }

/* 404: popular perfumes below */
.pm-404-products { margin-top: var(--wp--preset--spacing--40) !important; }


/* Swipe arrows (added by theme.js; only shown when the row can scroll) */
.pm-swipe { position: relative; }
.pm-swipe-btn {
	position: absolute; top: 34%; z-index: 3;
	width: 38px; height: 38px; border-radius: 50%;
	display: none; align-items: center; justify-content: center;
	background: #fff; color: var(--wp--preset--color--primary);
	border: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
	cursor: pointer; padding: 0; transition: opacity 0.15s;
}
.pm-swipe-btn svg { width: 18px; height: 18px; }
.pm-swipe-btn--prev { left: -6px; }
.pm-swipe-btn--next { right: -6px; }
.pm-swipe-btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 999px) {
	.pm-rows-swipe .pm-swipe.is-scrollable .pm-swipe-btn { display: inline-flex; }
}

/* Phones: blog category chips in one swipeable row */
@media (max-width: 599px) {
	.pm-blog-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px !important; }
	.pm-blog-cats::-webkit-scrollbar { display: none; }
	.pm-blog-cats li { flex: 0 0 auto; }
}


/* ---------- Category tiles: arrow styles (Theme settings → Layout) ---------- */
.pm-cat-arrow-white .pm-cats--tiles figcaption::after { background: #fff; color: var(--wp--preset--color--primary); }
.pm-cat-arrow-outline .pm-cats--tiles figcaption::after { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85); }
.pm-cat-arrow-plain .pm-cats--tiles figcaption::after { background: none; color: var(--wp--preset--color--accent); width: auto; height: auto; font-size: 20px; }
.pm-cat-arrow-none .pm-cats--tiles figcaption::after { display: none; }
.pm-cats--tiles .pm-cat:hover figcaption::after { transform: translateX(3px); }
.pm-cats--tiles figcaption::after { transition: transform 0.2s ease; }


/* ---------- Highlights strip: colours, sizes, places (Theme settings → Layout) ---------- */
.pm-highlights { --pm-hl-bg: var(--wp--preset--color--tint); --pm-hl-color: var(--wp--preset--color--primary); --pm-hl-dot: var(--wp--preset--color--accent); background: var(--pm-hl-bg); }
.pm-highlights .pm-highlights-track p { color: var(--pm-hl-color); }
.pm-highlights .pm-highlights-track p::after { background: var(--pm-hl-dot); }
.pm-hl--teal { --pm-hl-bg: var(--wp--preset--color--primary); --pm-hl-color: #fff; }
.pm-hl--gold { --pm-hl-bg: var(--wp--preset--color--accent); --pm-hl-color: var(--wp--preset--color--primary-dark); --pm-hl-dot: var(--wp--preset--color--primary); }
.pm-hl--dark { --pm-hl-bg: #14201d; --pm-hl-color: var(--wp--preset--color--accent); --pm-hl-dot: rgba(255, 255, 255, 0.5); }
.pm-hl--grad-teal { --pm-hl-bg: linear-gradient(90deg, var(--wp--preset--color--primary-dark), var(--wp--preset--color--primary) 50%, var(--wp--preset--color--primary-dark)); --pm-hl-color: #fff; }
.pm-hl--grad-gold { --pm-hl-bg: linear-gradient(90deg, #e7b23c, #f6d27a 50%, #e7b23c); --pm-hl-color: var(--wp--preset--color--primary-dark); --pm-hl-dot: var(--wp--preset--color--primary); }
.pm-hl--grad-sunset { --pm-hl-bg: linear-gradient(90deg, #7a2e3a, #b5523b 50%, #d98b3a); --pm-hl-color: #fff; --pm-hl-dot: #ffd98a; }
.pm-hl--custom { --pm-hl-dot: currentColor; }
.pm-hl--custom .pm-highlights-track p::after { opacity: 0.6; }
.pm-hl--small { padding-top: 8px !important; padding-bottom: 8px !important; }
.pm-hl--small .pm-highlights-track p { font-size: 13px; padding: 0 18px; }
.pm-hl--large { padding-top: 18px !important; padding-bottom: 18px !important; }
.pm-hl--large .pm-highlights-track p { font-size: 17px; padding: 0 28px; }
.pm-hl--static .pm-highlights-track { animation: none; width: auto; flex-wrap: wrap !important; justify-content: center; row-gap: 6px !important; }
.pm-hl--static .pm-highlights-track p[aria-hidden="true"] { display: none; }
.pm-highlights .pm-highlights-track { display: flex; flex-wrap: nowrap; }
/* Top of every page and above the footer: full width, no rounded corners */
.pm-hl-place--top, .pm-hl-place--footer { border-radius: 0 !important; margin: 0 !important; padding-top: 9px; padding-bottom: 9px; }
.pm-hl-place--top .pm-highlights-track p { font-size: 13px; }
.pm-hl-place--top.pm-hl--large .pm-highlights-track p, .pm-hl-place--footer.pm-hl--large .pm-highlights-track p { font-size: 15px; }
@media (max-width: 599px) {
	.pm-hl--large .pm-highlights-track p { font-size: 15px; padding: 0 20px; }
	.pm-hl--static .pm-highlights-track p { padding: 0 12px; }
}

/* ---------- Category section styles (Theme settings → Layout) ---------- */
/* Whole card clickable when the name sits outside the photo */
.pm-cats--below .pm-cat a::before,
.pm-cats--arch .pm-cat a::before,
.pm-cats--circles .pm-cat a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
/* Name below the photo */
.pm-cats--below .pm-cat img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--wp--custom--radius--medium) !important; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.pm-cats--below .pm-cat:hover img { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12); }
.pm-cats--below figcaption,
.pm-cats--arch figcaption { margin-top: 12px; font-weight: 800; font-size: 16px; color: var(--wp--preset--color--contrast); display: flex; justify-content: center; align-items: center; gap: 6px; }
.pm-cats--below figcaption { justify-content: flex-start; }
.pm-cats--below figcaption::after,
.pm-cats--arch figcaption::after { content: "→"; color: var(--wp--preset--color--accent); transition: transform 0.2s ease; }
.pm-cats--below .pm-cat:hover figcaption::after,
.pm-cats--arch .pm-cat:hover figcaption::after { transform: translateX(3px); }
.pm-cat-arrow-none :is(.pm-cats--below, .pm-cats--arch) figcaption::after { display: none; }
/* Arch: rounded top */
.pm-cats--arch .pm-cat img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px var(--wp--custom--radius--medium) var(--wp--custom--radius--medium) !important; }
.pm-cats--arch .pm-cat:hover img { filter: brightness(1.04); }
@media (max-width: 599px) {
	.pm-cats--below, .pm-cats--arch { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
	.pm-cats--below .pm-cat img { aspect-ratio: 1 / 1; object-position: center 18%; }
	.pm-cats--arch .pm-cat img { aspect-ratio: 4 / 5; object-position: center 18%; }
	.pm-cats--below figcaption, .pm-cats--arch figcaption { font-size: 14px; margin-top: 8px; }
}
@media (min-width: 600px) and (max-width: 1023px) {
	.pm-cats--below, .pm-cats--arch { gap: 14px; }
	.pm-cats--below figcaption, .pm-cats--arch figcaption { font-size: 14.5px; }
}


/* ---------- Category photo height (Theme settings → Layout) ---------- */
@media (min-width: 1024px) {
	.pm-cat-size-compact .pm-cats--tiles .pm-cat img,
	.pm-cat-size-compact .pm-cats--below .pm-cat img { aspect-ratio: 5 / 4; object-position: center 22%; }
	.pm-cat-size-compact .pm-cats--arch .pm-cat img { aspect-ratio: 1 / 1; object-position: center 22%; }
	.pm-cat-size-medium .pm-cats--tiles .pm-cat img,
	.pm-cat-size-medium .pm-cats--below .pm-cat img { aspect-ratio: 1 / 1; object-position: center 20%; }
	.pm-cat-size-medium .pm-cats--arch .pm-cat img { aspect-ratio: 4 / 5; }
	.pm-cat-size-compact .pm-cats--tiles figcaption { font-size: 16px; }
}
@media (min-width: 600px) and (max-width: 1023px) {
	.pm-cat-size-compact .pm-cats--tiles .pm-cat img,
	.pm-cat-size-compact .pm-cats--below .pm-cat img { aspect-ratio: 1 / 1; object-position: center 20%; }
}

/* Focus point of each theme category photo, so wide crops keep the subject (faces, bottles) in view */
.pm-cats .pm-cat img[src*="cat-men"] { object-position: 45% 26% !important; }
.pm-cats .pm-cat img[src*="cat-women"] { object-position: 50% 6% !important; }
.pm-cats .pm-cat img[src*="cat-unisex"] { object-position: 50% 30% !important; }
.pm-cats .pm-cat img[src*="cat-gifts"] { object-position: 50% 50% !important; }

/* Your own category photos: cropped from the centre */
.pm-cats .pm-cat img.pm-cat-own { object-position: 50% 50% !important; }

/* ---------- Moving text bars (Theme settings → Moving text) ---------- */
/* Speed: the animation length is set by theme.js from --pm-mt-speed (pixels per second). */
.pm-mt.pm-highlights:hover .pm-highlights-track { animation-play-state: running; }
.pm-mt.pm-mt--pause:hover .pm-highlights-track,
.pm-mt.pm-mt--pause.is-paused .pm-highlights-track { animation-play-state: paused; }
.pm-mt--dir-right .pm-highlights-track { animation-direction: reverse; }
/* Separators, centred in the gap between two messages */
.pm-mt .pm-highlights-track p::after { right: 0; margin-top: 0; transform: translate(50%, -50%); }
.pm-mt--sep-none .pm-highlights-track p::after { display: none; }
.pm-mt--sep-diamond .pm-highlights-track p::after { border-radius: 1px; transform: translate(50%, -50%) rotate(45deg); }
.pm-mt--sep-line .pm-highlights-track p::after { width: 1.5px; height: 1em; border-radius: 0; opacity: 0.55; }
.pm-mt--sep-star .pm-highlights-track p::after { content: "✦"; width: auto; height: auto; border-radius: 0; background: none !important; color: var(--pm-hl-dot); font-size: 0.8em; line-height: 1; }
.pm-hl--custom.pm-mt--sep-star .pm-highlights-track p::after { color: currentColor; }
/* Devices */
@media (min-width: 782px) { .pm-mt--phones { display: none !important; } }
@media (max-width: 781px) { .pm-mt--computers { display: none !important; } }
/* Shop and product pages, and the block */
.pm-hl-place--shop { margin: 0 0 18px !important; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; align-self: stretch; order: 3; }
.pm-hl-place--product { margin: 14px 0 0 !important; }
.pm-summary > .pm-hl-place--product { order: 7; }
.pm-hl-place--block { margin-top: 0 !important; }
/* Inside the announcement bar: the bar's colours, no box of its own */
.pm-announce:has(.pm-announce__moving) { padding-top: 0; padding-bottom: 0; gap: 14px; }
.pm-announce__moving { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.pm-mt--in-announce { --pm-hl-bg: transparent; --pm-hl-color: currentColor; --pm-hl-dot: currentColor; background: transparent; border-radius: 0 !important; margin: 0 !important; padding: 8px 0 !important; }
.pm-mt--in-announce .pm-highlights-track p { font-size: 13.5px; font-weight: 600; }
.pm-mt--in-announce .pm-highlights-track p::after { opacity: 0.6; }
.pm-announce__text--link { flex: 0 0 auto; }
/* No gap between a bar at the top and the header, or between a bar and the footer */
.wp-site-blocks > .pm-announce + header,
.wp-site-blocks > .pm-announce + .wp-block-template-part,
.wp-site-blocks > .pm-announce + .pm-hl-place--top,
.wp-site-blocks > .pm-hl-place--top + header,
.wp-site-blocks > .pm-hl-place--top + .wp-block-template-part,
.wp-site-blocks > .pm-hl-place--footer + footer,
.wp-site-blocks > .pm-hl-place--footer + .wp-block-template-part { margin-top: 0 !important; }
.wp-site-blocks > .pm-hl-place--footer + footer .pm-footer { margin-top: 0 !important; }
