/**
 * adorit_set30_leuchtie.css — SET shell v2, DESIGNED PARENT UI (dev 900001)
 * setp30v11 (16.10, impl-H): header cart badge/link removed (owner: the
 * shop's top-right cart suffices); LEUCHTIE hero joins the collar hero's
 * 1.348 window (equal width + height, tops flush via the module's
 * alignHeroes, "+" centered on the band) — one aligned hero box.
 * setp30v8 (16.10, impl-G): collar hero = the P30 studio's own crop window
 * (aspect-ratio 1.348 frame + JS-oversized mirrored render, applyCollarCrop)
 * so the collar coverage matches the standalone P30 page; description block
 * (products_description tab) moved into the shell below the main grid.
 * setp30v4 (16.10, impl-F): P362-style product-name H1 + sub line, collar
 * FRONT/REAR view tabs (studio colours), LEUCHTIE colour chip + popup
 * (hex dots), dead glowchip-grid rules removed. Size/sensor chips unchanged.
 * setp30v2: full page in the owner-approved P362 fieldtrial-set design
 * language (RAILS/HEROES/CONTROLS + right buy column + mobile slim bar).
 * Terracotta #c2562d step badges (gold standard §9), warm card family
 * (#faf7f3 / #e7ded2), white 308px §3 popup, WhatsApp white/green-border.
 * Own namespace .s30- — touches nothing outside the 900001 shell.
 */

.s30-shell {
	max-width: 1240px;
	margin: 0 auto;
	padding: 4px 12px 8px 12px;
	box-sizing: border-box;
	font-family: inherit;
	color: #2f2a24;
}
.s30-shell *,
.s30-shell *::before,
.s30-shell *::after { box-sizing: border-box; }

/* ---------------- intro strip ---------------- */
.s30-intro { padding: 10px 2px 6px 2px; }
.s30-intro-kicker {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: #c2562d;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 6px;
}
/* fix 4 (owner 16.10): H1 = the product's own name, EXACT P362 title
   treatment (.ats-intro-title: 21px / 700 / #1f2937); the former page title
   ("Stelle dein SET zusammen") sits below as the muted sub line. */
.s30-intro-title {
	margin: 0 0 6px 0;
	font-size: 21px;
	line-height: 1.2;
	font-weight: 700;
	color: #1f2937;
}
.s30-cfgsub {
	margin: 0 0 7px 0;
	font-size: 15.5px;
	font-weight: 700;
	color: #6b5f4f;
	line-height: 1.3;
}
.s30-expl {
	margin: 0 0 8px 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: #57534e;
	max-width: 720px;
}
/* impl-H fix 1 (owner: "wtf is this"): the header cart badge + "Zum
   Warenkorb" link are REMOVED (rules deleted with them) — the shop's own
   top-right cart is the cart surface; toast + buy-column CTA stay. */

/* ---------------- main grid ----------------
   Desktop (>=1100px): [collar 1fr | + 36px | leuchtie 1fr | buy 264px]
   Below: everything stacks; the buy column becomes a card (861-1099) and
   the fixed slim bottom bar (<=860, gold standard §2 overlap gate). */
.s30-main { display: block; }
@media (min-width: 1100px) {
	.s30-main {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 264px;
		grid-template-rows: auto auto;
		column-gap: 14px;
		align-items: start;
	}
	.s30-card-collar { grid-column: 1; grid-row: 1; }
	.s30-plus { grid-column: 2; grid-row: 1; }
	.s30-card-lc { grid-column: 3; grid-row: 1; }
	.s30-advisor { grid-column: 1 / 4; grid-row: 2; }
	.s30-buy {
		grid-column: 4;
		grid-row: 1 / 3;
		position: sticky;
		top: 74px;
	}
}
@media (min-width: 861px) and (max-width: 1099px) {
	.s30-buy { margin-top: 10px; }
}

.s30-plus {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	font-weight: 300;
	color: #c2562d;
	line-height: 1;
	user-select: none;
	padding-top: 150px;
}
@media (max-width: 1099px) {
	.s30-plus { display: none; }
}

/* ---------------- cards ---------------- */
.s30-card {
	background: #fff;
	border: 1.5px solid #e7ded2;
	border-radius: 14px;
	padding: 12px 12px 12px 14px;
	margin: 0 0 12px 0;
}
.s30-herolabel {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px 1px;
}
.s30-herotitle { font-size: 15px; font-weight: 800; color: #2f2a24; margin-right: 6px; }

/* ---------------- collar view tabs (fix 1) ----------------
   Same anatomy + active colours as the P30 studio's own view tabs
   (.ahc-mtab): white idle / dark active, print tab = logo green #809858,
   front tab = terracotta #c2562d. REAR (print) is the default. */
.s30-viewtabs {
	display: flex;
	gap: 8px;
	margin: 0 0 8px 0;
}
.s30-viewtab {
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.25;
	padding: 9px 6px;
	border-radius: 8px;
	border: 1px solid #e6dfd3;
	background: #fff;
	color: #6f6858;
	cursor: pointer;
	font-family: inherit;
}
.s30-viewtab:hover { border-color: #c9bfae; }
.s30-viewtab.s30-on { background: #262019; color: #fff; border-color: #262019; }
.s30-viewtab[data-view="rear"].s30-on { background: #809858; border-color: #809858; color: #fff; }
.s30-viewtab[data-view="front"].s30-on { background: #c2562d; border-color: #c2562d; color: #fff; }
.s30-viewtab:focus-visible { outline: 3px solid #262019; outline-offset: 2px; }

/* ---------------- heroes ----------------
   setp30v8 collar-hero zoom (owner: collar read too small in grey studio
   background — standalone P30 hero shows it much larger): the frame is the
   P30 studio's own COLLAR-ASPECT window (aspect-ratio = crop.w/crop.h of the
   v16 crop config, byte-copied from AHC_PRODUCTS['30'].crop), and the mirrored
   render is oversized/shifted by JS (applyCollarCrop) so exactly the crop
   window fills the frame — same coverage as the standalone P30 page.
   Display-level only: render files and the studio are untouched. */
.s30-collarhero {
	position: relative;
	border: 1px solid #e6dfd3;
	border-radius: 12px;
	background: #faf7f3;
	overflow: hidden;
	aspect-ratio: 1.348;
	min-height: 200px;
}
.s30-collarhero img#s30-collarimg {
	position: absolute;
	display: block;
	transition: opacity 0.25s ease;
}
/* impl-H fix 5 (owner: "align the two heroes"): the LEUCHTIE hero shares the
   collar hero's 1.348 window — same grid column width, same aspect-ratio and
   same card padding give EQUAL rendered width AND height; alignHeroes() in
   the module puts the TOPS flush (the lc card has no view-tab row) and
   centers the terracotta "+" on the shared band; no uneven grey gaps. */
.s30-lchero {
	position: relative;
	border: 1px solid #e6dfd3;
	border-radius: 12px;
	background: #2b2b2e;
	overflow: hidden;
	aspect-ratio: 1.348;
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	transition: box-shadow 0.3s ease;
}
.s30-lchero img#s30-lcimg {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	transition: opacity 0.25s ease;
}
/* print-side picture-in-picture (never fake imagery: only shown with text) */
.s30-pip {
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 132px;
	background: #fff;
	border: 1.5px solid #c2562d;
	border-radius: 10px;
	padding: 5px 5px 4px;
	box-shadow: 0 8px 22px rgba(20, 18, 15, 0.22);
}
.s30-pip[hidden] { display: none; }
.s30-pip img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 6px;
}
.s30-piplab {
	display: block;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #6b5f4f;
	text-align: center;
	padding-top: 3px;
}
.s30-heroloading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 13.5px;
	color: #6b7280;
	background: #faf7f3;
	z-index: 2;
	pointer-events: none;
}
.s30-lchero .s30-heroloading { background: #2b2b2e; color: #d8d5cd; }
.s30-heroloading.s30-done { display: none; }
.s30-spinner {
	width: 20px;
	height: 20px;
	border: 3px solid #e6dfd3;
	border-top-color: #c2562d;
	border-radius: 50%;
	animation: s30spin 0.9s linear infinite;
	flex: 0 0 auto;
}
@keyframes s30spin { to { transform: rotate(360deg); } }
.s30-frameerror {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
	font-size: 13.5px;
	color: #b91c1c;
	background: #fff;
	z-index: 3;
}
.s30-frameerror.s30-show { display: flex; }

/* ---------------- pickers + fields ---------------- */
.s30-picks { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; }
.s30-field { margin: 0; min-width: 0; }
#s30-field-text, #s30-field-size { grid-column: 1 / -1; }
/* H3 space efficiency (owner 16.10: "wasting 50% with empty space"): the
   LEUCHTIE control zone becomes ONE band — colour pick left (~40%, capped
   126px so tablet widths stay sane), the 15 size chips flow through the FULL
   remaining width (4-5 per row), Standard/Premium sit side by side (~50%
   each) instead of stacked. Scoped to the LEUCHTIE card and to >=861px — on
   <=860px the previous single-column flow is the COMPACTER shape (measured
   390px: band 490px vs flow 406px), so it stays there. */
@media (min-width: 861px) {
	.s30-card-lc .s30-picks {
		grid-template-columns: minmax(132px, 40%) minmax(0, 1fr);
		grid-template-areas:
			"lcc lcs"
			"note note"
			"lcsn lcsn";
		gap: 5px 10px;
		margin-top: 6px;
	}
	.s30-card-lc #s30-field-lcc { grid-area: lcc; }
	.s30-card-lc #s30-field-lcs { grid-area: lcs; }
	.s30-card-lc #s30-field-lcsn { grid-area: lcsn; }
	.s30-card-lc .s30-harmonynote { grid-area: note; margin: 0 1px; }
}
.s30-card-lc .s30-sensorchip { padding: 6px 9px; }
.s30-card-lc .s30-sensor-txt small { line-height: 1.2; }
.s30-card-lc .s30-fieldlabel { margin: 0 0 3px 1px; }
.s30-card-lc .s30-heroprice { margin-top: 6px; }
.s30-fieldlabel {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	row-gap: 2px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #6b5f4f;
	margin: 0 0 4px 1px;
}
.s30-stepnum {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: #c2562d;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	margin-right: 7px;
	flex: 0 0 21px;
	vertical-align: middle;
	position: relative;
}
.s30-stepcheck {
	display: none;
	position: absolute;
	top: -5px;
	right: -6px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #2e7d32;
	color: #fff;
	font-size: 9px;
	line-height: 14px;
	text-align: center;
	font-weight: 800;
}
.s30-stepnum.s30-done .s30-stepcheck { display: block; }
.s30-stepnum.s30-done { box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.35); }
.s30-harmonynote {
	font-size: 10.5px;
	color: #8a8177;
	margin: 3px 2px 0 2px;
	line-height: 1.35;
}
.s30-pick { min-width: 0; }
.s30-pickbtn {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	min-height: 44px;
	padding: 5px 9px;
	background: #faf7f3;
	border: 1.5px solid #e7ded2;
	border-radius: 10px;
	cursor: pointer;
	font: inherit;
	color: #2f2a24;
	text-align: left;
}
.s30-pickbtn:hover { border-color: #c2562d; }
.s30-pickbtn .s30-pickdot {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	overflow: hidden;
	background: #efe9df;
	display: flex;
	align-items: center;
	justify-content: center;
}
.s30-pickdot img { width: 100%; height: 100%; object-fit: cover; display: block; outline: 1px solid rgba(31, 27, 22, 0.30); outline-offset: -1px; }
.s30-pickname {
	flex: 1 1 auto;
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}
.s30-pickname.s30-railpending { color: #9a8d7c; font-size: 12.5px; }
.s30-pickchev { flex: 0 0 auto; color: #b45f38; font-size: 11px; }
.s30-railpending { font-size: 12.5px; color: #9ca3af; padding: 4px 2px; }

.s30-input {
	width: 100%;
	box-sizing: border-box;
	border: 1.4px solid #2f2a24;
	border-radius: 6px;
	height: 40px;
	padding: 0 12px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
	outline: none;
	background: #fff;
	color: #2f2a24;
	transition: border-color 0.18s ease, color 0.18s ease;
}
.s30-input:focus { border-color: #c2562d; box-shadow: 0 0 0 2px rgba(194, 86, 45, 0.18); }
.s30-input::placeholder { color: inherit; opacity: 0.45; font-weight: 600; letter-spacing: 0.06em; }
.s30-field-size { position: relative; }
.s30-sizewrap { display: inline-flex; align-items: center; gap: 8px; }
.s30-input-size { max-width: 150px; text-align: left; }
.s30-hcm { font-size: 13px; font-weight: 700; color: #8a8177; }
.s30-guide-link, .s30-guide-link-pop {
	color: #b45f38;
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
	margin-left: 8px;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
}
.s30-guide-link-pop { display: inline-block; margin: 8px 0 0 0; font-weight: 700; }
.s30-fmsg {
	display: none;
	margin: 4px 1px 0 1px;
	font-size: 12px;
	font-weight: 600;
	color: #b91c1c;
	line-height: 1.3;
}
.s30-fielderr .s30-input { outline: 2px solid #c0392b; outline-offset: 1px; }
.s30-field.s30-fielderr .s30-fmsg { display: block; }

/* ---------------- LEUCHTIE colour chip (fix 2) ----------------
   The 12-colour grid is gone; the lc hex dot rides the shared pick-button
   anatomy (.s30-pickdot 24px) and reappears in the §3 popup (.s30-palitem).
   Size chips + sensor chips below stay visible as rows. */
.s30-glowdot {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: block;
	box-shadow: inset 0 0 0 1px rgba(31, 27, 22, 0.25), 0 0 8px rgba(43, 43, 46, 0.18);
}
#s30-pickdot-lc { background: transparent; }
#s30-pickdot-lc .s30-glowdot { width: 24px; height: 24px; }
.s30-palitem .s30-glowdot.s30-palhexdot { width: 36px; height: 36px; }

.s30-sizechips { display: flex; flex-wrap: wrap; gap: 3px; }
.s30-sizechip {
	flex: 0 0 auto;
	min-width: 30px;
	min-height: 44px;
	padding: 5px 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #e7ded2;
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	color: #374151;
	cursor: pointer;
	text-align: center;
	line-height: 1.2;
}
.s30-sizechip:hover { border-color: #c2562d; }
.s30-sizechip.s30-sel {
	border-color: #c2562d;
	box-shadow: inset 0 0 0 1px #c2562d;
	background: #fdf3ee;
	color: #1f2937;
	font-weight: 700;
}

.s30-sensors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.s30-sensorchip {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 10px;
	background: #fff;
	border: 1.5px solid #e7ded2;
	border-radius: 10px;
	cursor: pointer;
	font: inherit;
	text-align: left;
	position: relative;
	min-width: 0;
}
.s30-sensorchip:hover { border-color: #c2562d; }
.s30-sensorchip.s30-sel { border-color: #c2562d; box-shadow: inset 0 0 0 1px #c2562d; background: #fdf3ee; }
.s30-sensor-radio {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid #c9c0b2;
	background: #fff;
	box-sizing: border-box;
}
.s30-sensorchip.s30-sel .s30-sensor-radio { border-color: #c2562d; background: radial-gradient(circle, #c2562d 45%, #fff 50%); }
.s30-sensor-txt { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.s30-sensor-txt strong { display: block; font-size: 13px; color: #2f2a24; }
.s30-sensor-txt small { display: block; font-size: 10.5px; color: #8a8177; }
.s30-sensorplus {
	position: absolute;
	top: -8px;
	right: 8px;
	background: #c2562d;
	color: #fff;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	padding: 1px 7px;
}

/* ---------------- harmony advisor strip ---------------- */
.s30-advisor {
	background: #faf7f3;
	border: 1.5px solid #e7ded2;
	border-radius: 14px;
	padding: 12px 14px;
	margin: 0 0 12px 0;
}
.s30-advhead { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.s30-advtitle {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #6b5f4f;
}
.s30-advlead { font-size: 14px; font-weight: 700; color: #2f2a24; margin: 0 0 10px 1px; }
.s30-advdots { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.s30-advdot {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid rgba(31, 27, 22, 0.18);
	cursor: pointer;
	padding: 0;
	position: relative;
	transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.s30-advdot::after {
	content: '';
	position: absolute;
	inset: -13px;
	border-radius: 50%;
}
.s30-advdot:hover { transform: scale(1.08); }
.s30-advdot.s30-adv-rec {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(46, 125, 50, 0.55), 0 0 10px rgba(46, 125, 50, 0.35);
	border-color: #fff;
}
.s30-advdot.s30-adv-caution { opacity: 0.32; filter: grayscale(0.9); cursor: help; }
.s30-advdot.s30-adv-sel {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #c2562d, 0 0 12px rgba(194, 86, 45, 0.45);
}

/* ---------------- heroprice captions ---------------- */
.s30-heroprice {
	font-size: 15px;
	font-weight: 700;
	color: #2f2a24;
	margin: 10px 2px 0 2px;
}

/* ---------------- buy column ---------------- */
.s30-buy {
	background: #fff;
	border: 1.5px solid #e7ded2;
	border-radius: 14px;
	padding: 14px;
	box-sizing: border-box;
	box-shadow: 0 6px 22px rgba(20, 18, 15, 0.07);
}
.s30-buy .s30-err { width: 100%; }
.s30-pricebox { display: flex; flex-direction: column; gap: 8px; }
.s30-comp-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: #6b5f4f; }
.s30-comp-line span:first-child { white-space: normal; min-width: 0; }
.s30-comp-line span:last-child { flex-shrink: 0; white-space: nowrap; }
.s30-comp-line span:last-child { font-weight: 700; color: #2f2a24; }
.s30-price-line { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; flex-wrap: nowrap; white-space: nowrap; }
.s30-orig { text-decoration: line-through; color: #9a8d7c; font-size: 13px; font-weight: 600; }
.s30-pctbadge {
	background: #c2562d;
	color: #fff;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	padding: 2px 8px;
	letter-spacing: 0.03em;
	line-height: 1.4;
	margin: 0 2px;
	white-space: nowrap;
}
.s30-total-price { font-size: 24px; font-weight: 800; color: #2f2a24; margin-left: auto; }
.s30-save-line { font-size: 12px; color: #2e7d32; font-weight: 700; text-align: right; }
.s30-buybtn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 13px 10px;
	background: #c2562d;
	color: #fff;
	border: 0;
	border-radius: 10px;
	font: inherit;
	font-size: 15.5px;
	font-weight: 800;
	cursor: pointer;
	line-height: 1.2;
	margin-top: 4px;
}
.s30-buybtn:hover { background: #a9481f; }
.s30-buybtn:disabled,
.s30-buybtn.s30-disabled { background: #e5ddd2; color: #9a9285; cursor: not-allowed; }
.s30-stepnum-btn { margin-right: 8px; width: 22px; height: 22px; flex: 0 0 22px; background: #fff; color: #c2562d; }
.s30-wa {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 11px 10px;
	background: #fff;
	border: 1.5px solid #25a244;
	border-radius: 10px;
	color: #1c7c33;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	margin-top: 8px;
}
.s30-wa:hover { background: #f2fbf5; }
.s30-trust {
	border-top: 1px solid #efe9df;
	padding-top: 10px;
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.s30-trustrow { font-size: 13.5px; color: #4b4237; line-height: 1.45; }
.s30-err {
	display: none;
	background: #fef2f2;
	border: 1.5px solid #fca5a5;
	color: #b91c1c;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 14px;
	line-height: 1.4;
	margin-bottom: 8px;
}
.s30-err.s30-show { display: block; }
.s30-err button {
	margin-left: 10px;
	background: #b91c1c;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 4px 12px;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}
.s30-mobtrust { display: none; }

/* ---------------- hidden frames (offscreen-parked, JS alive) ----------------
   P362 leash-frame pattern: laid out at desktop size, parked offscreen so
   both product pages' JS boots and updates — never visibility:hidden. */
.s30-frame {
	position: absolute;
	left: -12000px;
	top: 0;
	width: 1240px;
	height: 2000px;
	opacity: 0;
	pointer-events: none;
	border: 0;
	background: #fff;
}
#s30-frame-b { height: 2400px; }

/* ---------------- dot gallery popup (§3) ---------------- */
.s30-palbackdrop { position: fixed; inset: 0; background: rgba(20, 18, 15, 0.35); z-index: 5090; }
[hidden].s30-palbackdrop { display: none; }
.s30-pal {
	position: fixed;
	z-index: 5100;
	width: 308px;
	max-width: calc(100vw - 16px);
	max-height: 62vh;
	overflow: auto;
	background: #fff;
	border: 1px solid #e7ded2;
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(20, 18, 15, 0.18);
	padding: 12px 12px 14px;
	box-sizing: border-box;
}
.s30-pal[hidden] { display: none; }
.s30-palhead { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px 2px; }
.s30-paltitle {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #6b5f4f;
}
.s30-palclose { background: none; border: 0; font-size: 15px; line-height: 1; color: #9a8d7c; cursor: pointer; padding: 4px 6px; }
.s30-palgrid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.s30-palitem {
	width: 78px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 7px 3px 5px;
	background: #fff;
	border: 1.5px solid #eee6da;
	border-radius: 10px;
	cursor: pointer;
	font: inherit;
}
.s30-palitem img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; outline: 1px solid rgba(31, 27, 22, 0.30); outline-offset: -1px; }
.s30-palitem .s30-dotless { width: 36px; height: 36px; border-radius: 50%; background: #efe9df; display: inline-block; }
.s30-palname { font-size: 10.5px; color: #4b4237; text-align: center; line-height: 1.15; max-width: 100%; overflow: hidden; }
.s30-palitem:hover { border-color: #c2562d; }
.s30-palitem.s30-sel { border-color: #c2562d; box-shadow: 0 0 0 2px rgba(194, 86, 45, 0.25); }
.s30-palitem.s30-sel .s30-palname { font-weight: 700; color: #2f2a24; }

/* ---------------- tip popovers ---------------- */
.s30-tipbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: #fff;
	border: 1.5px solid #c2562d;
	color: #c2562d;
	font-size: 11px;
	font-style: italic;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	margin-left: 5px;
	flex: 0 0 19px;
	font-family: Georgia, serif;
	position: relative;
}
.s30-tipbtn:hover { background: #c2562d; color: #fff; }
/* overlay-control tap-target law (gold standard §9): small control on a big
   surface gets an effective >=44px hit area via a transparent ::after */
.s30-tipbtn::after { content: ''; position: absolute; inset: -13px; border-radius: 50%; }
.s30-tipbox {
	position: fixed;
	z-index: 5150;
	width: 272px;
	max-width: calc(100vw - 20px);
	background: #fff;
	border: 1px solid #e7ded2;
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(20, 18, 15, 0.16);
	padding: 10px 12px;
}
.s30-tipbox[hidden] { display: none; }
.s30-tipbox-txt { font-size: 12.5px; color: #4b4237; line-height: 1.45; }

/* ---------------- measuring-guide modal ---------------- */
.s30-gmodal {
	position: fixed;
	inset: 0;
	z-index: 5200;
	background: rgba(20, 18, 15, 0.92);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 16px;
}
.s30-gmodal[hidden] { display: none; }
.s30-gmodal-card {
	position: relative;
	background: #fff;
	border-radius: 12px;
	width: min(680px, 94vw);
	height: min(80vh, 720px);
	overflow: hidden;
	margin-top: 6vh;
}
.s30-gmodal-close { position: absolute; top: 10px; right: 12px; z-index: 2; background: #fff; border: 0; font-size: 20px; color: #6b5f4f; cursor: pointer; }
.s30-gmodal-card iframe { width: 100%; height: 100%; border: 0; }

/* ---------------- toast ---------------- */
.s30-toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	transform: translateX(-50%);
	background: #1f2937;
	color: #fff;
	padding: 11px 18px;
	border-radius: 9px;
	font-size: 14px;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transition: opacity 0.25s;
	z-index: 9999;
	pointer-events: none;
	max-width: 88vw;
}
.s30-toast.s30-on { opacity: 1; }

/* ======================================================================
   TABLET (861-1099px): cards stack full width, buy becomes an in-flow card
   ====================================================================== */
@media (max-width: 1099px) {
	.s30-advisor { margin-top: 2px; }
}

/* ======================================================================
   MOBILE (<=860px): stacked cards + fixed slim bottom bar
   ====================================================================== */
@media (max-width: 860px) {
	.s30-shell { padding: 2px 10px 6px 10px; }
	.s30-intro { padding: 6px 0 2px 0; }
	.s30-intro-title { font-size: 17px; }
	.s30-cfgsub { font-size: 14px; }
	.s30-viewtab { font-size: 11.5px; padding: 8px 4px; }
	.s30-expl { font-size: 12.5px; }
	.s30-card { padding: 10px 10px 10px 12px; margin-bottom: 10px; }
	.s30-collarhero, .s30-lchero { min-height: 200px; }
	.s30-lchero img#s30-lcimg { max-height: 100%; }
	.s30-pip { width: 104px; }
	.s30-picks { grid-template-columns: minmax(0, 1fr); }
	.s30-heroprice { margin-top: 8px; font-size: 14px; }
	.s30-sensors { grid-template-columns: minmax(0, 1fr); }
	.s30-advdots { gap: 14px; }
	/* mobile in-flow trust + WhatsApp block */
	.s30-mobtrust {
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 6px 10px 4px;
	}
	.s30-mobtrust .s30-wa { display: flex; }
	.s30-mobtrust .s30-trust { display: flex; }
	.s30-mobtrust .adorit-product-shipping-teaser { margin: 0; }
	/* fixed slim bottom bar: CURRENT price + savings hint + add button only
	   (gold standard §2 — the slim bar stays price+button) */
	.s30-buy {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		z-index: 4900;
		border-radius: 14px 14px 0 0;
		border-left: 0;
		border-right: 0;
		border-bottom: 0;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
		box-shadow: 0 -8px 24px rgba(20, 18, 15, 0.12);
		margin: 0;
	}
	.s30-buy .s30-pricebox { flex: 1 1 auto; min-width: 0; overflow: hidden; gap: 0; }
	.s30-buy .s30-comp-line, .s30-buy .s30-pctbadge, .s30-buy .s30-orig { display: none !important; }
	.s30-buy .s30-price-line { margin: 0; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
	.s30-buy .s30-total-price { font-size: 19px !important; font-weight: 800 !important; margin-left: 0 !important; white-space: nowrap; }
	.s30-buy .s30-save-line { font-size: 10.5px !important; text-align: left !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
	.s30-buy .s30-buybtn { width: auto; flex: 0 0 auto; padding: 11px 14px; font-size: 14px; white-space: nowrap; margin-top: 0; flex-direction: row; }
	.s30-buy .s30-trust, .s30-buy .s30-wa { display: none !important; }
	.s30-buy .s30-err { flex: 1 1 100%; order: 3; }
	.s30-err { flex-basis: 100%; }
	/* popup becomes a bottom sheet above the sticky bar */
	.s30-pal {
		left: 0 !important;
		right: 0 !important;
		top: auto !important;
		bottom: 76px !important;
		width: auto;
		max-width: none;
		border-radius: 16px 16px 0 0;
		max-height: 60vh;
		padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
	}
	.s30-tipbox { left: 10px !important; right: 10px !important; width: auto; }
	body.s30-active { padding-bottom: 96px !important; }
	.s30-advdot { width: 32px; height: 32px; }
}
@media (max-width: 419px) {
	.s30-intro-title { font-size: 16px; }
	.s30-cfgsub { font-size: 13.5px; }
	.s30-viewtab { font-size: 10.5px; padding: 8px 3px; }
}

/* desktop body spacer for the sticky column is unnecessary; only the fixed
   mobile bar needs page bottom padding (handled above). */

/* setp30v19: contain the moved description block (the share-widget row
   overflowed the viewport by ~95px on mobile); keep inner Gambio widgets
   within the shell width. */
.s30-desc { max-width: 100%; overflow-x: clip; }
.s30-desc .shariff, .s30-desc [class*="shariff"], .s30-desc .tab-content, .s30-desc .nav-tabs { max-width: 100%; }
