/*
 * dmhm-product.css — «قالب محصول مارکت», design «د · برگهٔ مشخصات». Every rule is scoped under .dmhm-pp.
 * Colours / radius / font come from the theme settings (custom properties printed on :root by inc/settings.php);
 * each read carries the house default as fallback. Class names are verbatim from the approved mockup
 * (prd/dmhouse-theme-market/dmhouse-theme-market-product-variants.html, variant D).
 */

.dmhm-pp {
	--p: var(--dmhm-primary, #3e68ff);
	--d: var(--dmhm-dark, #06061c);
	--a: var(--dmhm-accent, #ef3e63);
	--ink: var(--dmhm-ink, #13163a);
	--mu: var(--dmhm-muted, #6d6e85);
	--sf: var(--dmhm-surface, #fff);
	--so: var(--dmhm-soft, #f5f8ff);
	--ln: var(--dmhm-line, #e0e1e5);
	--r: var(--dmhm-radius, 10px);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	/* one spacing scale and one type scale for the whole page */
	--s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
	--t-display: 52px; --t-h2: 32px; --t-h3: 20px; --t-body: 16px; --t-small: 14px; --t-micro: 12.5px;
	position: relative;
	overflow-x: clip;
	/* no page background of our own: the site's own surface shows through (cards are white, hairlines do the rest) */
	background: transparent;
	color: var(--ink);
	font-family: var(--dmhm-font, 'Vazirmatn', Tahoma, Arial, sans-serif);
	line-height: 1.9;
	direction: rtl;
	text-align: start;
}

.dmhm-pp,
.dmhm-pp *,
.dmhm-pp *::before,
.dmhm-pp *::after {
	box-sizing: border-box;
}

.dmhm-pp [hidden] {
	display: none !important;
}

.dmhm-pp .dmhm-wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1450px;
	margin-inline: auto;
	padding-inline: var(--s3);
}

.dmhm-pp .dmhm-i {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.dmhm-pp .dmhm-card {
	background: var(--sf);
	border: 1px solid var(--ln);
	border-radius: calc(var(--r) + 6px);
}

/* ---------- breadcrumb + WooCommerce notices ---------- */
.dmhm-pp .dmhm-crumbs {
	margin-block: var(--s2) var(--s3);
	font-size: 11px;
	text-align: center;
	color: color-mix(in srgb, var(--mu) 65%, var(--sf));
}

.dmhm-pp .dmhm-crumbs a {
	color: inherit;
	text-decoration: none;
}

.dmhm-pp .dmhm-crumbs a:hover {
	color: var(--p);
}

.dmhm-pp .woocommerce-message,
.dmhm-pp .woocommerce-info,
.dmhm-pp .woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--s1) var(--s2);
	margin: 0 0 var(--s3);
	padding: var(--s2) var(--s3);
	border: 1px solid var(--ln);
	border-inline-start: 5px solid #1fa971;
	border-radius: calc(var(--r) + 4px);
	background: var(--sf);
	color: var(--ink);
	font-size: var(--t-small);
	font-weight: 700;
	list-style: none;
}

.dmhm-pp .woocommerce-error {
	border-inline-start-color: var(--a);
}

.dmhm-pp .woocommerce-message .button,
.dmhm-pp .woocommerce-info .button {
	order: 2;
	padding: 8px var(--s2);
	border-radius: var(--r);
	background: var(--d);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

/* =====================================================================
   HERO GRID: top + rail + rest. DOM order = reading order: title, buy rail, then the content.
   ===================================================================== */
.dmhm-pp .dmhm-hd {
	padding-block: var(--s1) 0;
}

.dmhm-pp .dmhm-hd__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	grid-template-areas: 'top rail' 'rest rail';
	column-gap: var(--s5);
	align-items: start;
}

.dmhm-pp .dmhm-hd__top {
	grid-area: top;
	min-width: 0;
	padding-block-start: var(--s2);
}

.dmhm-pp .dmhm-hd__rest {
	grid-area: rest;
	min-width: 0;
}

.dmhm-pp .dmhm-hd__rail {
	grid-area: rail;
	align-self: stretch;
}

.dmhm-pp .dmhm-hd__lead {
	max-width: 58ch;
	margin: 0 0 var(--s4);
	font-size: 18px;
	color: var(--mu);
}

.dmhm-pp .dmhm-hd__lead p {
	margin: 0 0 var(--s1);
}

/* ---------- the animated plate ---------- */
.dmhm-pp .dmhm-plate {
	position: relative;
	margin: 0 0 var(--s3);
	padding: var(--s2);
	border: 1px solid var(--ln);
	border-radius: 16px;
	background: var(--sf);
}

.dmhm-pp .dmhm-plate__stage {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #13163a;
}

.dmhm-pp .has-scenes .dmhm-plate__stage {
	aspect-ratio: 600 / 380;
}

.dmhm-pp .dmhm-plate__img {
	display: block;
	width: 100%;
	height: auto;
}

.dmhm-pp .dmhm-scene {
	display: none;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	font-family: var(--dmhm-font, 'Vazirmatn', Tahoma, Arial, sans-serif);
}

.dmhm-pp .dmhm-scene.is-on {
	display: block;
}

.dmhm-pp .dmhm-plate__cap {
	display: flex;
	justify-content: space-between;
	gap: var(--s2);
	margin-block-start: 12px;
	font-size: var(--t-micro);
	color: var(--mu);
}

.dmhm-pp .dmhm-plate__prog {
	display: flex;
	gap: var(--s1);
	margin-block-start: var(--s2);
}

/* each segment is a button: a click plays that scene. The hit area is taller than the 4px bar. */
.dmhm-pp .dmhm-plate__prog .dmhm-plate__seg,
.dmhm-pp .dmhm-plate__prog .dmhm-plate__seg:hover,
.dmhm-pp .dmhm-plate__prog .dmhm-plate__seg:focus {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	height: 4px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: var(--ln);
	box-shadow: none;
	cursor: pointer;
	transition: height 0.2s;
}

.dmhm-pp .dmhm-plate__prog .dmhm-plate__seg::before {
	content: '';
	position: absolute;
	inset: -12px 0;
}

.dmhm-pp .dmhm-plate__prog .dmhm-plate__seg:hover {
	height: 7px;
}

.dmhm-pp .dmhm-plate__prog .dmhm-plate__seg:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--p) 60%, transparent);
	outline-offset: 3px;
}

.dmhm-pp .dmhm-plate__seg b {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 4px;
	background: var(--p);
}

.dmhm-pp .dmhm-plate__seg.is-done b {
	width: 100%;
}

.dmhm-pp .dmhm-plate__seg.is-on b {
	animation: dmhm-fill 6s linear forwards;
}

/* scene artwork */
.dmhm-pp .sc-bg { fill: #13163a; }
.dmhm-pp .sc-card { fill: rgba(255, 255, 255, 0.07); stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.5; }
.dmhm-pp .sc-card--hi { fill: rgba(62, 104, 255, 0.24); stroke: #3e68ff; }
.dmhm-pp .sc-card--pink { fill: rgba(239, 62, 99, 0.22); stroke: #ef3e63; }
.dmhm-pp .sc-bar { fill: rgba(255, 255, 255, 0.34); }
.dmhm-pp .sc-bar--s { fill: rgba(255, 255, 255, 0.16); }
.dmhm-pp .sc-t { fill: #fff; font-weight: 800; }
.dmhm-pp .sc-t--m { fill: rgba(255, 255, 255, 0.72); font-weight: 600; }
.dmhm-pp .sc-live { fill: #4ade80; }
.dmhm-pp .sc-img { fill: rgba(62, 104, 255, 0.35); }
.dmhm-pp .sc-op { fill: rgba(255, 255, 255, 0.7); font-weight: 800; }
.dmhm-pp .sc-track { fill: rgba(255, 255, 255, 0.1); }
.dmhm-pp .sc-seg--1 { fill: #3e68ff; }
.dmhm-pp .sc-seg--2 { fill: #ffffff; }
.dmhm-pp .sc-seg--3 { fill: #ef3e63; }
.dmhm-pp .sc-btn { fill: #ef3e63; }
.dmhm-pp .sc-box { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 2; }
.dmhm-pp .sc-tick { fill: none; stroke: #4ade80; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; }
.dmhm-pp .sc-ring { stroke: #ef3e63; stroke-width: 3; }
.dmhm-pp .sc-line { stroke: #ffffff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.dmhm-pp .sc-flow { fill: none; stroke: #3e68ff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 12; }
.dmhm-pp .sc-p, .dmhm-pp .sc-v { opacity: 0; }
.dmhm-pp .sc-pill, .dmhm-pp .sc-result, .dmhm-pp .sc-seg, .dmhm-pp .sc-bulk, .dmhm-pp .sc-ring, .dmhm-pp .sc-src, .dmhm-pp .sc-target, .dmhm-pp .sc-rowbg { transform-box: fill-box; transform-origin: center; }
.dmhm-pp .sc-pill, .dmhm-pp .sc-result { opacity: 0; }
.dmhm-pp .sc-seg { transform-origin: right center; transform: scaleX(0); }

.dmhm-pp .dmhm-scene.is-on .sc-flow { animation: sc-dash 1.1s linear infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-flow--2 { animation-duration: 0.9s; }
.dmhm-pp .dmhm-scene.is-on .sc-flow--3 { animation-duration: 1.3s; }
.dmhm-pp .dmhm-scene.is-on .sc-live { animation: dmhm-blink 1.6s ease-in-out infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-src { animation: sc-in 0.6s var(--ease) both; }
.dmhm-pp .dmhm-scene.is-on .sc-src--2 { animation-delay: 0.15s; }
.dmhm-pp .dmhm-scene.is-on .sc-src--3 { animation-delay: 0.3s; }
.dmhm-pp .dmhm-scene.is-on .sc-target { animation: sc-in 0.7s 0.4s var(--ease) both; }
.dmhm-pp .dmhm-scene.is-on .sc-p1 { animation: sc-c1 3.6s 0.8s infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-p2 { animation: sc-c2 3.6s 0.8s infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-p3 { animation: sc-c3 3.6s 0.8s infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-line { animation: dmhm-draw 2.2s 0.9s var(--ease) forwards; }
.dmhm-pp .dmhm-scene.is-on .sc-pill { animation: sc-pop 0.55s var(--ease) both; }
.dmhm-pp .dmhm-scene.is-on .sc-pill--1 { animation-delay: 0.2s; }
.dmhm-pp .dmhm-scene.is-on .sc-pill--2 { animation-delay: 0.9s; }
.dmhm-pp .dmhm-scene.is-on .sc-pill--3 { animation-delay: 1.6s; }
.dmhm-pp .dmhm-scene.is-on .sc-pill--4 { animation-delay: 2.3s; }
.dmhm-pp .dmhm-scene.is-on .sc-seg { animation: sc-grow 0.8s var(--ease) both; }
.dmhm-pp .dmhm-scene.is-on .sc-seg--1 { animation-delay: 1.1s; }
.dmhm-pp .dmhm-scene.is-on .sc-seg--2 { animation-delay: 1.9s; }
.dmhm-pp .dmhm-scene.is-on .sc-seg--3 { animation-delay: 2.6s; }
.dmhm-pp .dmhm-scene.is-on .sc-result { animation: sc-pop 0.7s 3.3s var(--ease) both; }
.dmhm-pp .dmhm-scene.is-on .sc-ring { animation: sc-ring 5.4s ease-in-out infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-v1 { animation: sc-c1 5.4s infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-v2 { animation: sc-c2 5.4s infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-v3 { animation: sc-c3 5.4s infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-tick { animation: dmhm-draw 0.45s var(--ease) forwards; }
.dmhm-pp .dmhm-scene.is-on .sc-row--1 .sc-tick { animation-delay: 0.5s; }
.dmhm-pp .dmhm-scene.is-on .sc-row--2 .sc-tick { animation-delay: 1.2s; }
.dmhm-pp .dmhm-scene.is-on .sc-row--3 .sc-tick { animation-delay: 1.9s; }
.dmhm-pp .dmhm-scene.is-on .sc-row--4 .sc-tick { animation-delay: 2.6s; }
.dmhm-pp .dmhm-scene.is-on .sc-row .sc-rowbg { animation: sc-hit 0.5s both; }
.dmhm-pp .dmhm-scene.is-on .sc-row--1 .sc-rowbg { animation-delay: 0.5s; }
.dmhm-pp .dmhm-scene.is-on .sc-row--2 .sc-rowbg { animation-delay: 1.2s; }
.dmhm-pp .dmhm-scene.is-on .sc-row--3 .sc-rowbg { animation-delay: 1.9s; }
.dmhm-pp .dmhm-scene.is-on .sc-row--4 .sc-rowbg { animation-delay: 2.6s; }
.dmhm-pp .dmhm-scene.is-on .sc-bulk { animation: sc-rise 0.7s 3.4s var(--ease) both; opacity: 0; }

/* ---------------------------------------------------------------------
   SCENE KIT — the vocabulary an AI-made scene set is composed from (see prd/dmhouse-theme-market/prompt-animated-scenes.md).
   Static looks: sc-bg sc-card sc-card--hi sc-card--pink sc-bar sc-bar--s sc-t sc-t--m sc-live sc-img sc-btn sc-op sc-track sc-box
                 sc-f-p/-w/-a (fills) · sc-s-p/-w/-a/-g (strokes) · sc-path (line style)
   Motion (plays when the scene is on): sc-a-in sc-a-pop sc-a-rise sc-a-grow-x sc-a-grow-y sc-a-draw (needs pathLength="100")
                 sc-a-flow sc-a-blink sc-a-float sc-a-spin sc-a-pulse sc-a-c1 sc-a-c2 sc-a-c3 · delays sc-d1…sc-d12 (0.25s steps)
   --------------------------------------------------------------------- */
.dmhm-pp .sc-f-p { fill: #3e68ff; }
.dmhm-pp .sc-f-w { fill: #ffffff; }
.dmhm-pp .sc-f-a { fill: #ef3e63; }
.dmhm-pp .sc-s-p { stroke: #3e68ff; }
.dmhm-pp .sc-s-w { stroke: #ffffff; }
.dmhm-pp .sc-s-a { stroke: #ef3e63; }
.dmhm-pp .sc-s-g { stroke: #4ade80; }
.dmhm-pp .sc-path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dmhm-pp .sc-a-in, .dmhm-pp .sc-a-pop, .dmhm-pp .sc-a-rise, .dmhm-pp .sc-a-c1, .dmhm-pp .sc-a-c2, .dmhm-pp .sc-a-c3 { opacity: 0; }
.dmhm-pp .sc-a-in, .dmhm-pp .sc-a-pop, .dmhm-pp .sc-a-rise, .dmhm-pp .sc-a-grow-x, .dmhm-pp .sc-a-grow-y, .dmhm-pp .sc-a-float, .dmhm-pp .sc-a-spin, .dmhm-pp .sc-a-pulse { transform-box: fill-box; transform-origin: center; }
.dmhm-pp .sc-a-grow-x { transform-origin: right center; transform: scaleX(0); }
.dmhm-pp .sc-a-grow-y { transform-origin: center bottom; transform: scaleY(0); }
.dmhm-pp .sc-a-draw { stroke-dasharray: 100; stroke-dashoffset: 100; }
.dmhm-pp .sc-a-flow { stroke-dasharray: 4 12; }

.dmhm-pp .dmhm-scene.is-on .sc-a-in { animation: sc-in 0.6s var(--ease) both; }
.dmhm-pp .dmhm-scene.is-on .sc-a-pop { animation: sc-pop 0.55s var(--ease) both; }
.dmhm-pp .dmhm-scene.is-on .sc-a-rise { animation: sc-rise 0.7s var(--ease) both; }
.dmhm-pp .dmhm-scene.is-on .sc-a-grow-x { animation: sc-grow 0.8s var(--ease) both; }
.dmhm-pp .dmhm-scene.is-on .sc-a-grow-y { animation: sc-growy 0.8s var(--ease) both; }
.dmhm-pp .dmhm-scene.is-on .sc-a-draw { animation: dmhm-draw 1.6s var(--ease) both; }
.dmhm-pp .dmhm-scene.is-on .sc-a-flow { animation: sc-dash 1.1s linear infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-a-blink { animation: dmhm-blink 1.6s ease-in-out infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-a-float { animation: sc-float 3.2s ease-in-out infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-a-spin { animation: sc-spin 8s linear infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-a-pulse { animation: sc-pulse 1.8s ease-in-out infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-a-c1 { animation: sc-c1 3.6s infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-a-c2 { animation: sc-c2 3.6s infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-a-c3 { animation: sc-c3 3.6s infinite; }
.dmhm-pp .dmhm-scene.is-on .sc-d1 { animation-delay: 0.25s; }
.dmhm-pp .dmhm-scene.is-on .sc-d2 { animation-delay: 0.5s; }
.dmhm-pp .dmhm-scene.is-on .sc-d3 { animation-delay: 0.75s; }
.dmhm-pp .dmhm-scene.is-on .sc-d4 { animation-delay: 1s; }
.dmhm-pp .dmhm-scene.is-on .sc-d5 { animation-delay: 1.25s; }
.dmhm-pp .dmhm-scene.is-on .sc-d6 { animation-delay: 1.5s; }
.dmhm-pp .dmhm-scene.is-on .sc-d7 { animation-delay: 1.75s; }
.dmhm-pp .dmhm-scene.is-on .sc-d8 { animation-delay: 2s; }
.dmhm-pp .dmhm-scene.is-on .sc-d9 { animation-delay: 2.25s; }
.dmhm-pp .dmhm-scene.is-on .sc-d10 { animation-delay: 2.5s; }
.dmhm-pp .dmhm-scene.is-on .sc-d11 { animation-delay: 2.75s; }
.dmhm-pp .dmhm-scene.is-on .sc-d12 { animation-delay: 3s; }
@keyframes sc-growy { to { transform: scaleY(1); } }
@keyframes sc-float { 50% { transform: translateY(-8px); } }
@keyframes sc-spin { to { transform: rotate(360deg); } }
@keyframes sc-pulse { 50% { transform: scale(1.08); } }

/* ---------- numbered feature notes (they drive the plate) ---------- */
/* columns are chosen by JS from the real text: 4 per row when every note fits on one line, else 3, else 2 (--cols) */
.dmhm-pp .dmhm-notes {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	gap: 0 var(--s3);
	margin: 0 0 var(--s5);
	padding: 0;
	list-style: none;
	counter-reset: note;
}

.dmhm-pp .dmhm-notes__li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 11px 0;
	border-block-end: 1px solid var(--ln);
	font-size: 13.5px;
	line-height: 1.7;
	counter-increment: note;
	transition: color 0.2s;
}

.dmhm-pp .dmhm-notes__li::before {
	content: counter(note, persian);
	flex: 0 0 22px;
	height: 22px;
	margin-block-start: 1px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1.5px solid var(--d);
	font-size: 11.5px;
	font-weight: 800;
	line-height: 1;
	transition: background 0.2s, color 0.2s;
}

.dmhm-pp .dmhm-notes__li .dmhm-notes__b,
.dmhm-pp .dmhm-notes__li .dmhm-notes__b:hover,
.dmhm-pp .dmhm-notes__li .dmhm-notes__b:focus {
	flex: 1 1 auto;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 600;
	text-align: start;
}

.dmhm-pp .dmhm-notes__li button.dmhm-notes__b {
	cursor: pointer;
}

.dmhm-pp .dmhm-notes__li:hover {
	color: var(--p);
}

.dmhm-pp .dmhm-notes__li.is-hot {
	color: var(--p);
	border-block-end-color: var(--p);
}

.dmhm-pp .dmhm-notes__li.is-hot::before {
	background: var(--p);
	border-color: var(--p);
	color: #fff;
}

/* ---------- buy rail ---------- */
.dmhm-pp .dmhm-rail {
	position: sticky;
	/* the site header is not sticky: offset 0 (set --dmhm-sticky-top if a header ever becomes sticky) */
	top: calc(var(--dmhm-sticky-top, 0px) + var(--s2));
	margin-block-start: var(--s2);
	padding: var(--s3);
	border: 1px solid var(--d);
	border-radius: 16px;
	background: var(--sf);
	box-shadow: 8px 8px 0 var(--d);
}

/* the product image heads the rail at full width, in the ratio chosen in the theme settings (proportional file, never a square crop) */
.dmhm-pp .dmhm-rail__media {
	margin: 0 0 var(--s2);
}

.dmhm-pp .dmhm-rail__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--dmhm-image-ratio, 16 / 9);
	object-fit: cover;
	border: 1px solid var(--ln);
	border-radius: calc(var(--r) + 2px);
}

.dmhm-pp .dmhm-rail__rate {
	margin-block-end: var(--s1);
}

.dmhm-pp .dmhm-rate {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mu);
	text-decoration: none;
}

.dmhm-pp .dmhm-rate .dmhm-i {
	width: 16px;
	height: 16px;
	color: #f5a623;
}

.dmhm-pp .dmhm-rail__label {
	margin: var(--s3) 0 var(--s1);
	font-size: var(--t-micro);
	font-weight: 700;
	color: var(--mu);
}

.dmhm-pp .dmhm-rail__title {
	margin: var(--s2) 0 0;
	font-size: var(--t-small);
	line-height: 1.6;
	font-weight: 700;
	text-align: center;
	color: var(--mu);
}

.dmhm-pp .dmhm-rail__price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--s1) var(--s2);
	margin: var(--s1) 0 var(--s2);
	font-size: var(--t-h2);
	font-weight: 900;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
	color: var(--d);
}

.dmhm-pp .dmhm-rail__label + .dmhm-rail__chooser + .dmhm-rail__price,
.dmhm-pp .dmhm-rail__price:first-of-type {
	margin-block-start: var(--s3);
}

.dmhm-pp .dmhm-rail__price .woocommerce-Price-currencySymbol {
	font-size: 0.5em;
	font-weight: 700;
	margin-inline-start: 4px;
	color: var(--mu);
}

.dmhm-pp .dmhm-rail__price del,
.dmhm-pp .dmhm-pbar__price del,
.dmhm-pp .dmhm-cta__price del {
	opacity: 0.55;
	font-size: 0.6em;
	font-weight: 500;
	margin-inline-end: var(--s1);
}

.dmhm-pp .dmhm-rail__price ins,
.dmhm-pp .dmhm-pbar__price ins,
.dmhm-pp .dmhm-cta__price ins {
	text-decoration: none;
}

.dmhm-pp .dmhm-off {
	padding: 2px 12px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--a) 17%, transparent);
	color: color-mix(in srgb, var(--a) 72%, var(--d));
	font-size: 13px;
	font-weight: 800;
}

/* plan chooser: built by JS from the variation selects (segmented control) */
.dmhm-pp .dmhm-seg {
	display: flex;
	gap: 0;
	padding: 4px;
	border: 1px solid var(--ln);
	border-radius: 12px;
	background: var(--so);
}

.dmhm-pp .dmhm-seg + .dmhm-seg {
	margin-block-start: var(--s1);
}

.dmhm-pp .dmhm-seg .dmhm-seg__b {
	flex: 1 1 0;
	min-width: 0;
	padding: 9px 6px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--mu);
	font: inherit;
	font-size: var(--t-small);
	font-weight: 800;
	text-align: center;
	cursor: pointer;
	transition: background 0.25s, color 0.25s;
}

.dmhm-pp .dmhm-seg .dmhm-seg__b[aria-checked='true'],
.dmhm-pp .dmhm-seg .dmhm-seg__b[aria-checked='true']:hover {
	background: var(--d);
	color: #fff;
}

.dmhm-pp .dmhm-seg .dmhm-seg__b[aria-disabled='true'] {
	opacity: 0.4;
	text-decoration: line-through;
	cursor: not-allowed;
}

.dmhm-pp select.dmhm-seg__select {
	width: 100%;
	min-height: 44px;
	padding: 6px 12px;
	border: 1px solid var(--ln);
	border-radius: 12px;
	background: var(--sf);
	color: var(--ink);
	font: inherit;
	font-size: var(--t-small);
}

/* the WooCommerce form stays in the DOM (it is the real form); its own chooser UI is replaced */
.dmhm-pp.is-enhanced table.variations,
.dmhm-pp.is-enhanced .reset_variations {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.dmhm-pp .woocommerce-variation-price,
.dmhm-pp .woocommerce-variation-description,
.dmhm-pp .dmhm-rail .quantity {
	display: none;
}

.dmhm-pp .woocommerce-variation-availability:empty {
	display: none;
}

.dmhm-pp .woocommerce-variation-availability {
	margin-block-end: var(--s1);
	font-size: var(--t-small);
	color: var(--mu);
}

.dmhm-pp .dmhm-rail__form table.variations {
	display: block;
	width: 100%;
	margin: 0 0 var(--s2);
	border: 0;
}

.dmhm-pp .dmhm-rail__form table.variations tbody,
.dmhm-pp .dmhm-rail__form table.variations tr,
.dmhm-pp .dmhm-rail__form table.variations th,
.dmhm-pp .dmhm-rail__form table.variations td {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	text-align: start;
}

.dmhm-pp .dmhm-rail__form select {
	width: 100%;
	min-height: 44px;
	padding: 6px 12px;
	border: 1px solid var(--ln);
	border-radius: 12px;
	background: var(--sf);
	color: var(--ink);
	font: inherit;
}

/* specificity is deliberate: WooCommerce's own `.woocommerce button.button.alt` (purple) would otherwise win */
.dmhm-pp .dmhm-rail__form .single_add_to_cart_button.button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	float: none;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 10px var(--s3);
	border: 0;
	border-radius: var(--r);
	background: var(--d);
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: var(--t-body);
	font-weight: 800;
	line-height: 1.5;
	text-shadow: none;
	text-transform: none;
	cursor: pointer;
	overflow: hidden;
	transition: background 0.25s, transform 0.25s var(--ease);
}

.dmhm-pp .dmhm-rail__form .single_add_to_cart_button.button::after,
.dmhm-pp .dmhm-btn::after {
	content: '';
	position: absolute;
	inset-block: 0;
	inset-inline-start: -60%;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: skewX(-20deg);
	animation: dmhm-shine 4.2s ease-in-out infinite;
}

.dmhm-pp .dmhm-rail__form .single_add_to_cart_button.button:hover {
	background: var(--p);
	color: #fff;
	transform: translateY(-2px);
}

.dmhm-pp .dmhm-rail__form .single_add_to_cart_button.button.disabled,
.dmhm-pp .dmhm-rail__form .single_add_to_cart_button.button:disabled,
.dmhm-pp .dmhm-rail__form .single_add_to_cart_button.button.disabled:hover {
	background: var(--d);
	color: #fff;
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.dmhm-pp .dmhm-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 10px var(--s4);
	border: 0;
	border-radius: var(--r);
	background: var(--d);
	color: #fff;
	font: inherit;
	font-size: var(--t-body);
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	overflow: hidden;
	transition: background 0.25s, transform 0.25s var(--ease);
}

.dmhm-pp .dmhm-btn:hover {
	background: var(--p);
	transform: translateY(-2px);
}

.dmhm-pp .dmhm-btn[aria-disabled='true'] {
	opacity: 0.5;
}

.dmhm-pp .dmhm-btn--ghost {
	border: 2px solid var(--ln);
	background: var(--sf);
	color: var(--ink);
	font-size: var(--t-small);
}

.dmhm-pp .dmhm-btn--ghost::after {
	display: none;
}

.dmhm-pp .dmhm-btn--ghost:hover {
	background: var(--sf);
	border-color: var(--p);
	color: var(--p);
}

.dmhm-pp .dmhm-rail__form .single_add_to_cart_button.button:focus-visible,
.dmhm-pp .dmhm-btn:focus-visible,
.dmhm-pp .dmhm-seg__b:focus-visible,
.dmhm-pp .dmhm-notes__b:focus-visible,
.dmhm-pp .dmhm-tabs__a:focus-visible,
.dmhm-pp .dmhm-faq__item summary:focus-visible,
.dmhm-pp .dmhm-rail__link:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--p) 60%, transparent);
	outline-offset: 2px;
}

.dmhm-pp .dmhm-rail.is-attn,
.dmhm-pp .dmhm-pbar__plans.is-attn {
	animation: dmhm-attn 0.9s ease;
}

/* "pick a plan first" notice */
.dmhm-pp .dmhm-hint {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s1) var(--s2);
	margin: var(--s2) 0 0;
	padding: 12px var(--s2);
	border: 1px solid color-mix(in srgb, var(--p) 22%, var(--sf));
	border-radius: var(--r);
	background: color-mix(in srgb, var(--p) 7%, var(--sf));
	color: var(--ink);
	font-size: var(--t-small);
	font-weight: 600;
	line-height: 1.8;
}

.dmhm-pp .dmhm-hint::before {
	content: '';
	flex: 0 0 20px;
	height: 20px;
	background: var(--p);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dmhm-pp .dmhm-hint a:link,
.dmhm-pp .dmhm-hint a:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-inline-start: auto;
	padding: 4px var(--s2);
	border: 1px solid color-mix(in srgb, var(--p) 35%, var(--sf));
	border-radius: 999px;
	background: var(--sf);
	color: color-mix(in srgb, var(--p) 80%, var(--d));
	font-size: var(--t-micro);
	font-weight: 800;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.dmhm-pp .dmhm-hint a::after {
	content: '←';
}

.dmhm-pp .dmhm-hint a:link:hover {
	background: var(--p);
	border-color: var(--p);
	color: #fff;
}

/* cart button + preview share one row: the button takes the free width, the preview only what its label needs */
.dmhm-pp .dmhm-rail__form form.cart:not(.variations_form),
.dmhm-pp .dmhm-rail__form .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: stretch;
	gap: var(--s1);
}

.dmhm-pp .dmhm-rail__form .single_add_to_cart_button.button {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}

/* text on the start (right) side, a left-pointing arrow on the far end — no play-button look */
.dmhm-pp .dmhm-rail .dmhm-rail__link,
.dmhm-pp .dmhm-rail .dmhm-rail__link:visited {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex: 0 0 auto;
	min-height: 54px;
	padding: 8px var(--s2);
	border: 1.5px solid var(--d);
	border-radius: var(--r);
	background: var(--sf);
	color: var(--d);
	font: inherit;
	font-size: var(--t-small);
	font-weight: 800;
	text-decoration: none;
	transition: background 0.2s, box-shadow 0.2s;
}

.dmhm-pp .dmhm-rail .dmhm-rail__link .dmhm-i {
	width: 20px;
	height: 20px;
	color: var(--d);
	transition: transform 0.25s var(--ease);
}

.dmhm-pp .dmhm-rail .dmhm-rail__link:hover {
	background: var(--so);
	color: var(--d);
	box-shadow: 3px 3px 0 var(--d);
}

.dmhm-pp .dmhm-rail .dmhm-rail__link:hover .dmhm-i {
	transform: translateX(-4px);
}

.dmhm-pp .dmhm-facts {
	margin: var(--s3) 0 0;
	padding: var(--s2) 0 0;
	border-block-start: 1px solid var(--ln);
	font-variant-numeric: tabular-nums;
}

.dmhm-pp .dmhm-facts__row {
	display: flex;
	align-items: baseline;
	gap: var(--s1);
	padding-block: 4px;
	font-size: 13.5px;
}

.dmhm-pp .dmhm-facts__dt {
	margin: 0;
	color: var(--mu);
}

.dmhm-pp .dmhm-facts__dots {
	flex: 1 1 auto;
	border-block-end: 1.5px dotted var(--ln);
	transform: translateY(-4px);
}

.dmhm-pp .dmhm-facts__dd {
	margin: 0;
	font-weight: 800;
}

/* =====================================================================
   SECTIONS: numbered, hairline, flat
   ===================================================================== */
.dmhm-pp .dmhm-hd__rest {
	counter-reset: sec;
}

.dmhm-pp .dmhm-sec {
	counter-increment: sec;
	margin-block-end: var(--s6);
	scroll-margin-top: calc(var(--dmhm-sticky-top, 0px) + 72px);
}

.dmhm-pp .dmhm-eyebrow {
	display: flex;
	align-items: center;
	gap: var(--s2);
	margin: 0 0 var(--s2);
	color: var(--mu);
	font-size: var(--t-small);
	font-weight: 700;
}

.dmhm-pp .dmhm-eyebrow::before {
	content: '۰' counter(sec, persian);
	font-size: 40px;
	font-weight: 900;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--d);
}

.dmhm-pp .dmhm-h2,
.dmhm-pp .dmhm-related .related > h2 {
	position: relative;
	margin: 0 0 var(--s3);
	padding-block-end: var(--s2);
	font-size: var(--t-h2);
	font-weight: 900;
	line-height: 1.5;
	letter-spacing: -0.01em;
	color: var(--d);
}

.dmhm-pp .dmhm-h2::after,
.dmhm-pp .dmhm-related .related > h2::after {
	content: '';
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	width: 44px;
	height: 3px;
	background: var(--p);
}

.dmhm-pp .dmhm-tabs {
	position: sticky;
	top: var(--dmhm-sticky-top, 0px);
	z-index: 8;
	display: flex;
	gap: var(--s3);
	margin-block-end: var(--s4);
	padding: 0;
	border-block-end: 1px solid var(--ln);
	/* solid: content scrolling underneath must never show through the bar */
	background: var(--sf);
	overflow-x: auto;
	scrollbar-width: none;
}

.dmhm-pp .dmhm-tabs::-webkit-scrollbar {
	display: none;
}

.dmhm-pp .dmhm-tabs .dmhm-tabs__a,
.dmhm-pp .dmhm-tabs .dmhm-tabs__a:visited {
	flex: 0 0 auto;
	padding: 14px 2px;
	border-block-end: 3px solid transparent;
	color: var(--mu);
	font-size: var(--t-small);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.25s, border-color 0.25s;
}

.dmhm-pp .dmhm-tabs .dmhm-tabs__a:hover {
	color: var(--p);
}

.dmhm-pp .dmhm-tabs .dmhm-tabs__a.is-active,
.dmhm-pp .dmhm-tabs .dmhm-tabs__a.is-active:hover {
	color: var(--d);
	border-block-end-color: var(--p);
}

/* ---------------------------------------------------------------------
   RICH TEXT (.dmhm-rich): every authored HTML area — the main intro and the closing description.
   Designed tags: h2 h3 h4 h5 h6 p ul ol li (nested) a strong em blockquote img figure/figcaption hr table code pre.
   --------------------------------------------------------------------- */
.dmhm-pp .dmhm-prose {
	padding: var(--s4);
}

.dmhm-pp .dmhm-rich {
	font-size: var(--t-body);
	line-height: 2.05;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.dmhm-pp .dmhm-rich > :first-child { margin-block-start: 0; }
.dmhm-pp .dmhm-rich > :last-child { margin-block-end: 0; }
.dmhm-pp .dmhm-rich p { margin: 0 0 1em; }
.dmhm-pp .dmhm-rich h2 { margin: 1.9em 0 0.7em; padding-block-end: 12px; border-block-end: 1px solid var(--ln); font-size: 28px; font-weight: 900; line-height: 1.5; color: var(--d); }
.dmhm-pp .dmhm-rich h3 { margin: 1.7em 0 0.6em; padding-inline-start: 12px; border-inline-start: 4px solid var(--p); font-size: 22px; font-weight: 800; line-height: 1.6; color: var(--d); }
.dmhm-pp .dmhm-rich h4 { margin: 1.5em 0 0.5em; font-size: 19px; font-weight: 800; line-height: 1.6; color: var(--d); }
.dmhm-pp .dmhm-rich h5 { margin: 1.4em 0 0.4em; font-size: 16px; font-weight: 800; line-height: 1.7; color: var(--p); }
.dmhm-pp .dmhm-rich h6 { margin: 1.3em 0 0.4em; font-size: 14px; font-weight: 800; line-height: 1.7; letter-spacing: 0.02em; color: var(--mu); }
.dmhm-pp .dmhm-rich a { color: var(--p); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.dmhm-pp .dmhm-rich a:hover { color: var(--d); }
.dmhm-pp .dmhm-rich strong, .dmhm-pp .dmhm-rich b { font-weight: 800; color: var(--d); }
.dmhm-pp .dmhm-rich ul, .dmhm-pp .dmhm-rich ol { margin: 0 0 1.1em; padding-inline-start: 1.6em; }
.dmhm-pp .dmhm-rich li { margin-block: 0.45em; padding-inline-start: 0.2em; }
.dmhm-pp .dmhm-rich li > ul, .dmhm-pp .dmhm-rich li > ol { margin-block: 0.4em 0; }
.dmhm-pp .dmhm-rich ul { list-style: disc; }
.dmhm-pp .dmhm-rich ul ul { list-style: circle; }
.dmhm-pp .dmhm-rich ol { list-style: persian; }
.dmhm-pp .dmhm-rich li::marker { color: var(--p); font-weight: 800; }
.dmhm-pp .dmhm-rich blockquote { margin: 1.4em 0; padding: var(--s2) var(--s3); border-inline-start: 4px solid var(--a); border-radius: 0 var(--r) var(--r) 0; background: var(--so); color: var(--ink); font-weight: 600; }
.dmhm-pp .dmhm-rich blockquote > :last-child { margin-block-end: 0; }
.dmhm-pp .dmhm-rich hr { margin: 2em 0; border: 0; border-block-start: 1px solid var(--ln); }
.dmhm-pp .dmhm-rich img { max-width: 100%; height: auto; border-radius: 25px; padding: 10px; background: var(--so); }
.dmhm-pp .dmhm-rich figure, .dmhm-pp .dmhm-rich .wp-caption { max-width: 100%; margin: 1.4em 0; }
.dmhm-pp .dmhm-rich figcaption, .dmhm-pp .dmhm-rich .wp-caption-text { margin-block-start: 6px; color: var(--mu); font-size: var(--t-micro); text-align: center; }
.dmhm-pp .dmhm-rich .aligncenter, .dmhm-pp .dmhm-rich figure.aligncenter { display: block; margin-inline: auto; text-align: center; }
.dmhm-pp .dmhm-rich .alignleft { float: left; margin: 0 var(--s3) var(--s2) 0; }
.dmhm-pp .dmhm-rich .alignright { float: right; margin: 0 0 var(--s2) var(--s3); }
.dmhm-pp .dmhm-rich::after { content: ''; display: table; clear: both; }
.dmhm-pp .dmhm-rich table:not(.price-list) { display: block; width: 100%; max-width: 100%; margin: 1.4em 0; overflow-x: auto; border-collapse: collapse; font-size: var(--t-small); }
.dmhm-pp .dmhm-rich table:not(.price-list) th, .dmhm-pp .dmhm-rich table:not(.price-list) td { padding: 10px var(--s2); border: 1px solid var(--ln); text-align: start; }
.dmhm-pp .dmhm-rich table:not(.price-list) th { background: var(--so); font-weight: 800; color: var(--d); }
.dmhm-pp .dmhm-rich code { padding: 2px 6px; border-radius: 6px; background: var(--so); font-size: 0.9em; direction: ltr; unicode-bidi: isolate; }
.dmhm-pp .dmhm-rich pre { margin: 1.4em 0; padding: var(--s2); border-radius: var(--r); background: var(--d); color: #fff; font-size: var(--t-small); direction: ltr; text-align: left; overflow-x: auto; }
.dmhm-pp .dmhm-rich pre code { padding: 0; background: none; color: inherit; }

/* the small variant: closing description (SEO) */
.dmhm-pp .dmhm-rich--s { font-size: var(--t-small); line-height: 2; color: var(--mu); }
.dmhm-pp .dmhm-rich--s h2 { font-size: var(--t-h3); padding-block-end: 8px; }
.dmhm-pp .dmhm-rich--s h3 { font-size: var(--t-body); }
.dmhm-pp .dmhm-rich--s h4 { font-size: var(--t-small); }
.dmhm-pp .dmhm-rich--s strong, .dmhm-pp .dmhm-rich--s b { color: var(--ink); }

/* plans table (.price-list). Ported from the owner's CSS; scoped, colours via tokens */
.dmhm-pp .price-list { width: 100%; margin-block-start: 55px; padding: 15px; border-collapse: separate; border-spacing: 0; border-radius: 20px; background: linear-gradient(to right, color-mix(in srgb, var(--p) 88%, #fff), var(--p)); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); position: relative; }
.dmhm-pp .price-list tbody { display: block; position: relative; z-index: 1; margin-block-start: -50px; border-radius: 20px; }
.dmhm-pp .price-list tbody tr { display: table; width: 100%; table-layout: fixed; }
.dmhm-pp .price-list tbody tr:nth-child(odd) { background-color: var(--sf); border: none; }
.dmhm-pp .price-list tbody > tr:nth-child(odd) > td, .dmhm-pp .price-list tbody > tr:nth-child(odd) > th { background-color: var(--sf); }
.dmhm-pp .price-list tbody tr:nth-child(even) { background-color: color-mix(in srgb, var(--p) 8%, var(--sf)); border: none; }
.dmhm-pp .price-list td, .dmhm-pp .price-list th { border: 1px solid color-mix(in srgb, var(--p) 18%, var(--sf)); }
.dmhm-pp .price-list thead th { text-align: center; vertical-align: middle; }
.dmhm-pp .price-list tbody tr td { padding: 12px 15px; }
.dmhm-pp .price-list tbody tr:last-child td { border-bottom: none; }
.dmhm-pp .price-list tr:first-child { position: relative; z-index: 2; background-color: transparent; border-radius: 20px 0 0 0; }
.dmhm-pp .price-list tr:first-child td:nth-child(2), .dmhm-pp .price-list tr:first-child td:nth-child(3), .dmhm-pp .price-list tr:first-child td:nth-child(4) { position: relative; z-index: 3; margin-top: -30px; padding: 30px 20px 15px; border: 1px solid color-mix(in srgb, var(--p) 18%, var(--sf)); border-radius: 20px 20px 0 0; background-color: var(--sf); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); color: var(--ink); font-size: 22px; font-weight: bold; text-align: center; }
.dmhm-pp .price-list tr:first-child td:nth-child(2) span, .dmhm-pp .price-list tr:first-child td:nth-child(3) span, .dmhm-pp .price-list tr:first-child td:nth-child(4) span { padding-top: 10px; color: var(--p); font-size: 14px; line-height: 2.4em; }
.dmhm-pp .price-list tr:first-child td:nth-child(3) { margin-inline: -10px; overflow: hidden; border: 1px solid var(--d); background: var(--d); color: #fff; }
.dmhm-pp .price-list tr:first-child td:nth-child(3) span { color: #fff; }
.dmhm-pp .price-list tr:first-child td:nth-child(3)::after { content: 'پیشنهادی'; position: absolute; top: 11px; left: -22px; padding: 2px 23px 2px 20px; background-color: var(--a); color: #fff; font-size: 12px; transform: rotate(-45deg); }
.dmhm-pp .price-list th:nth-child(1), .dmhm-pp .price-list td:nth-child(1) { font-weight: bold; text-align: right; vertical-align: middle; }
.dmhm-pp .price-list th:nth-child(2), .dmhm-pp .price-list td:nth-child(2), .dmhm-pp .price-list th:nth-child(3), .dmhm-pp .price-list td:nth-child(3), .dmhm-pp .price-list th:nth-child(4), .dmhm-pp .price-list td:nth-child(4) { text-align: center; vertical-align: middle; }
.dmhm-pp .price-list td[colspan="4"] { padding: 15px 10px; border: none; background: linear-gradient(to right, color-mix(in srgb, var(--p) 88%, #fff), var(--p)); color: #fff; font-size: 20px; font-weight: bold; text-align: center !important; vertical-align: middle; }
.dmhm-pp .price-list tr:first-child th:first-child, .dmhm-pp .price-list tr:first-child td:first-child { padding-bottom: 19px; border: none; background-color: transparent; color: #fff; font-size: 20px; font-weight: bold; text-align: center; vertical-align: bottom; }
.dmhm-pp .price-list tbody tr:nth-child(2) td:first-child, .dmhm-pp .price-list tbody tr:nth-child(2) { border-top-right-radius: 15px; }
.dmhm-pp .price-list tbody tr:last-child td:last-child, .dmhm-pp .price-list tbody tr:last-child { border-bottom-left-radius: 15px; }
.dmhm-pp .price-list tbody tr:last-child td:first-child, .dmhm-pp .price-list tbody tr:last-child { border-bottom-right-radius: 15px; }

/* tech sheet */
.dmhm-pp .dmhm-sheet { margin: 0; padding: var(--s1) var(--s3); }
.dmhm-pp .dmhm-sheet__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); padding: 14px 0; border-block-end: 1px dashed var(--ln); }
.dmhm-pp .dmhm-sheet__row:last-child { border-block-end: 0; }
.dmhm-pp .dmhm-sheet__dt { margin: 0; color: var(--mu); font-size: var(--t-small); }
.dmhm-pp .dmhm-sheet__dd { margin: 0; font-size: 15px; font-weight: 800; }
.dmhm-pp .dmhm-sheet__dd a { color: var(--p); text-decoration: none; }

/* FAQ */
.dmhm-pp .dmhm-faq { display: grid; gap: var(--s2); counter-reset: faq; }
.dmhm-pp .dmhm-faq__item { border: 1px solid var(--ln); border-radius: calc(var(--r) + 6px); background: var(--sf); overflow: hidden; }
.dmhm-pp .dmhm-faq__item[open] { border-color: color-mix(in srgb, var(--p) 50%, var(--ln)); }
.dmhm-pp .dmhm-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s3); font-size: var(--t-body); font-weight: 800; cursor: pointer; list-style: none; }
.dmhm-pp .dmhm-faq__item summary::-webkit-details-marker { display: none; }
.dmhm-pp .dmhm-faq__plus { position: relative; flex: 0 0 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--p) 11%, var(--sf)); transition: transform 0.4s var(--ease), background 0.3s; }
.dmhm-pp .dmhm-faq__plus::before, .dmhm-pp .dmhm-faq__plus::after { content: ''; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--p); transition: transform 0.4s var(--ease), background 0.3s; }
.dmhm-pp .dmhm-faq__plus::after { transform: rotate(90deg); }
.dmhm-pp .dmhm-faq__item[open] .dmhm-faq__plus { background: var(--p); transform: rotate(180deg); }
.dmhm-pp .dmhm-faq__item[open] .dmhm-faq__plus::before, .dmhm-pp .dmhm-faq__item[open] .dmhm-faq__plus::after { background: #fff; }
.dmhm-pp .dmhm-faq__item[open] .dmhm-faq__plus::after { transform: rotate(0); }
.dmhm-pp .dmhm-faq__a { padding: 0 var(--s3) var(--s3); color: var(--mu); font-size: var(--t-small); animation: dmhm-fade 0.4s var(--ease); }
.dmhm-pp .dmhm-faq__a p { margin: 0 0 var(--s1); }

/* ---------- related products (WooCommerce loop; card plugins keep their hooks) ---------- */
.dmhm-pp .dmhm-related ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--s3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.dmhm-pp .dmhm-related ul.products::before,
.dmhm-pp .dmhm-related ul.products::after {
	display: none;
}

.dmhm-pp .dmhm-related ul.products li.product.type-product {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: auto;
	margin: 0;
	padding: 12px;
	float: none;
	border: 1px solid var(--ln);
	border-radius: 14px;
	background: var(--sf);
	text-align: start;
	transition: box-shadow 0.3s;
}

.dmhm-pp .dmhm-related ul.products li.product.type-product:hover {
	box-shadow: 6px 6px 0 var(--d);
}

.dmhm-pp .dmhm-related ul.products li.product img {
	width: 100%;
	height: auto;
	margin: 0 0 12px;
	aspect-ratio: var(--dmhm-image-ratio, 16 / 9);
	object-fit: cover;
	border-radius: var(--r);
}

.dmhm-pp .dmhm-related .woocommerce-loop-product__title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 800;
	color: var(--d);
}

.dmhm-pp .dmhm-related .price {
	margin-block-end: 12px;
	font-weight: 800;
	font-size: var(--t-small);
	color: var(--p);
}

.dmhm-pp .dmhm-related a.button {
	margin-block-start: auto;
	padding: 9px var(--s2);
	border-radius: 12px;
	background: var(--p);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.dmhm-pp .onsale {
	position: absolute;
	inset-block-start: var(--s2);
	inset-inline-start: var(--s2);
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 2px 12px;
	border-radius: 999px;
	background: var(--a);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.7;
}

/* closing call to action: the same hard-shadow card as the buy rail, copy beside the product image */
.dmhm-pp .dmhm-cta {
	padding-block: var(--s2) var(--s6);
}

.dmhm-pp .dmhm-cta__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	overflow: hidden;
	border: 1px solid var(--d);
	border-radius: 16px;
	background: var(--sf);
	box-shadow: 8px 8px 0 var(--d);
}

.dmhm-pp .dmhm-cta__card.has-media {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.dmhm-pp .dmhm-cta__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: var(--s2);
	padding: var(--s5);
}

.dmhm-pp .dmhm-cta__kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: var(--t-micro);
	font-weight: 800;
	color: var(--mu);
}

.dmhm-pp .dmhm-cta__kicker::before {
	content: '';
	width: 22px;
	height: 3px;
	background: var(--p);
}

.dmhm-pp .dmhm-cta__title {
	max-width: 22ch;
	margin: 0;
	font-size: var(--t-h2);
	font-weight: 900;
	line-height: 1.45;
	color: var(--d);
	text-wrap: balance;
}

.dmhm-pp .dmhm-cta__price {
	font-size: 28px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	color: var(--d);
}

.dmhm-pp .dmhm-cta .dmhm-btn {
	min-width: 240px;
}

.dmhm-pp .dmhm-cta__facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.dmhm-pp .dmhm-cta__facts li {
	padding: 3px 12px;
	border: 1px solid var(--ln);
	border-radius: 999px;
	font-size: var(--t-micro);
	font-weight: 700;
	color: var(--mu);
}

.dmhm-pp .dmhm-cta__media {
	display: flex;
	align-items: center;
	margin: 0;
	padding: var(--s3);
	border-inline-start: 1px solid var(--ln);
	background: var(--so);
}

.dmhm-pp .dmhm-cta__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--dmhm-image-ratio, 16 / 9);
	object-fit: cover;
	border: 1px solid var(--ln);
	border-radius: calc(var(--r) + 4px);
	background: var(--sf);
}

/* closing SEO text: real text, clamped, "show more" */
.dmhm-pp .dmhm-seo {
	padding-block: var(--s6);
}

/* full section width like every other block; "show more" opens to a fixed height and scrolls inside, it never grows without bound */
.dmhm-pp .dmhm-seo__box {
	padding: var(--s4);
	border: 1px solid var(--ln);
	border-radius: calc(var(--r) + 6px);
	background: var(--sf);
}

.dmhm-pp .dmhm-seo__text {
	position: relative;
	max-height: 13.5em;
	overflow: hidden;
}

.dmhm-pp .dmhm-seo__text::after {
	content: '';
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: 5em;
	background: linear-gradient(to top, var(--sf), transparent);
	pointer-events: none;
}

.dmhm-pp .dmhm-seo__box.is-open .dmhm-seo__text {
	max-height: 560px;
	overflow-y: auto;
	padding-inline-end: var(--s2);
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--d) 35%, transparent) transparent;
}

.dmhm-pp .dmhm-seo__box.is-open .dmhm-seo__text::after {
	display: none;
}

.dmhm-pp .dmhm-seo__more { margin-block-start: var(--s2); min-height: 46px; padding-inline: var(--s3); }
.dmhm-pp .dmhm-seo__more .dmhm-i { transition: transform 0.3s var(--ease); }
.dmhm-pp .dmhm-seo__box.is-open .dmhm-seo__more .dmhm-i { transform: rotate(180deg); }

/* phone bar: the ONE add-to-cart control on small screens */
.dmhm-pp .dmhm-pbar {
	display: none;
	position: sticky;
	bottom: 0;
	z-index: 20;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--ln);
	border-radius: 22px 22px 0 0;
	background: var(--sf);
	box-shadow: 0 -12px 34px -10px color-mix(in srgb, var(--d) 35%, transparent);
}

.dmhm-pp .dmhm-pbar__plans {
	margin-block-end: var(--s1);
}

.dmhm-pp .dmhm-pbar__plans:empty {
	display: none;
}

.dmhm-pp .dmhm-pbar__plans .dmhm-seg .dmhm-seg__b[aria-checked='true'],
.dmhm-pp .dmhm-pbar__plans .dmhm-seg .dmhm-seg__b[aria-checked='true']:hover {
	background: var(--p);
}

.dmhm-pp .dmhm-pbar__row {
	display: flex;
	align-items: center;
	gap: var(--s2);
}

.dmhm-pp .dmhm-pbar__price {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 15px;
	font-weight: 900;
	color: var(--d);
}

.dmhm-pp .dmhm-pbar .dmhm-btn {
	flex: 0 0 auto;
	min-height: 46px;
	padding: 6px var(--s3);
	font-size: var(--t-small);
}

/* "more details" + slide-up sheet: only exist as controls on phones; on desktop the sheet is just the facts list in the rail */
.dmhm-pp .dmhm-rail__more,
.dmhm-pp .dmhm-drawer__head,
.dmhm-pp .dmhm-drawer__bd,
.dmhm-pp .dmhm-drawer__demo {
	display: none;
}

/* keyframes */
@keyframes dmhm-pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes dmhm-shine { 0%, 55% { inset-inline-start: -60%; } 100% { inset-inline-start: 130%; } }
@keyframes dmhm-blink { 50% { opacity: 0.2; } }
@keyframes dmhm-draw { to { stroke-dashoffset: 0; } }
@keyframes dmhm-fade { from { opacity: 0; transform: translateY(-6px); } }
@keyframes dmhm-attn { 30% { box-shadow: 0 0 0 5px color-mix(in srgb, #ef3e63 40%, transparent); } }
@keyframes dmhm-fill { to { width: 100%; } }
@keyframes sc-dash { to { stroke-dashoffset: -32; } }
@keyframes sc-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes sc-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes sc-grow { to { transform: scaleX(1); } }
@keyframes sc-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes sc-hit { from { fill: rgba(255, 255, 255, 0.07); } to { fill: rgba(62, 104, 255, 0.3); } }
@keyframes sc-c1 { 0%, 30% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes sc-c2 { 0%, 30% { opacity: 0; } 33%, 63% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes sc-c3 { 0%, 63% { opacity: 0; } 66%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sc-ring { 0%, 28% { transform: translateX(0); } 38%, 62% { transform: translateX(-180px); } 72%, 100% { transform: translateX(-360px); } }

/* =====================================================================
   PHONE: exactly ONE add-to-cart control — the sticky bar. The page prints no other plan
   chooser, price block or cart button (the real WooCommerce form stays in the DOM, hidden, and the bar drives it).
   ===================================================================== */
@media (max-width: 900px) {
	.dmhm-pp .dmhm-wrap { padding-inline: var(--s2); }
	.dmhm-pp .dmhm-hd__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'rail' 'top' 'rest'; row-gap: var(--s3); }
	.dmhm-pp .dmhm-rail__title { font-size: 26px; line-height: 1.3; font-weight: 900; color: var(--d); }
	.dmhm-pp .dmhm-hd__lead { font-size: var(--t-body); }
	/* entry: only the cover image and the name, in one clean card */
	.dmhm-pp .dmhm-rail { position: static; margin-block-start: 0; padding: 10px; border-color: var(--ln); border-radius: 20px; box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--d) 35%, transparent); }
	.dmhm-pp .dmhm-rail__img { border: 0; border-radius: 14px; }
	.dmhm-pp .dmhm-rail__media { margin: 0; }
	.dmhm-pp .dmhm-rail__title { margin: 12px 4px 0; }
	.dmhm-pp .dmhm-rail__rate { display: flex; justify-content: center; margin: 6px 0 0; }
	.dmhm-pp .dmhm-rail__more { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; margin: 4px 0 2px; padding: 8px; border: 0; background: none; color: var(--mu); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
	.dmhm-pp .dmhm-rail__more .dmhm-i { width: 14px; height: 14px; transform: rotate(90deg); }
	.dmhm-pp .dmhm-drawer { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; max-height: 70vh; overflow-y: auto; padding: 8px var(--s3) calc(var(--s3) + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--sf); box-shadow: 0 -16px 40px -12px color-mix(in srgb, var(--d) 45%, transparent); transform: translateY(105%); visibility: hidden; transition: transform 0.32s var(--ease), visibility 0s 0.32s; }
	.dmhm-pp .dmhm-drawer.is-open { transform: none; visibility: visible; transition: transform 0.32s var(--ease); }
	.dmhm-pp .dmhm-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding-block: 8px 4px; font-size: var(--t-small); }
	.dmhm-pp .dmhm-drawer__x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--so); color: var(--d); font-size: 20px; line-height: 1; cursor: pointer; }
	.dmhm-pp .dmhm-drawer__bd { display: block; position: fixed; inset: 0; z-index: 55; background: color-mix(in srgb, var(--d) 45%, transparent); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }
	.dmhm-pp .dmhm-drawer__bd.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s; }
	.dmhm-pp .dmhm-drawer__demo { display: flex; align-items: center; justify-content: space-between; margin-block-start: var(--s2); padding: 12px var(--s2); border: 1.5px solid var(--d); border-radius: var(--r); color: var(--d); font-size: var(--t-small); font-weight: 800; text-decoration: none; }
	.dmhm-pp .dmhm-drawer__demo .dmhm-i { width: 18px; height: 18px; }
	/* sticky bar: slim — plans as small chips, price and button in one thin row */
	.dmhm-pp .dmhm-pbar { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px -12px color-mix(in srgb, var(--d) 30%, transparent); }
	.dmhm-pp .dmhm-pbar__plans { margin-block-end: 6px; }
	.dmhm-pp .dmhm-pbar__plans .dmhm-seg__b { min-height: 32px; padding: 4px 10px; font-size: 12px; }
	.dmhm-pp .dmhm-pbar__plans select { min-height: 36px; font-size: 13px; }
	.dmhm-pp .dmhm-pbar__row { gap: var(--s1); }
	.dmhm-pp .dmhm-pbar__price { font-size: 14px; }
	.dmhm-pp .dmhm-pbar .dmhm-btn { min-height: 40px; padding: 4px var(--s2); border-radius: 12px; font-size: 13px; }
	.dmhm-pp .dmhm-pbar .dmhm-btn::after { display: none; }
	.dmhm-pp .dmhm-pbar .dmhm-btn .dmhm-i { width: 16px; height: 16px; }
	.dmhm-pp .dmhm-rail__label,
	.dmhm-pp .dmhm-rail__chooser,
	.dmhm-pp .dmhm-rail__price,
	.dmhm-pp .dmhm-rail__form,
	.dmhm-pp .dmhm-hint,
	.dmhm-pp .dmhm-cta { display: none; }
	.dmhm-pp .dmhm-plate { margin-block-end: var(--s2); }
	/* notes: always two per row, one line each (ellipsis instead of wrapping) */
	.dmhm-pp .dmhm-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s2); }
	.dmhm-pp .dmhm-notes__li { min-width: 0; gap: 6px; padding: 9px 0; font-size: 12px; line-height: 1.5; align-items: center; }
	.dmhm-pp .dmhm-notes__li::before { flex-basis: 18px; height: 18px; margin: 0; font-size: 10px; }
	.dmhm-pp .dmhm-notes__li .dmhm-notes__b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.dmhm-pp .dmhm-eyebrow::before { font-size: 32px; }
	.dmhm-pp .dmhm-h2, .dmhm-pp .dmhm-related .related > h2 { font-size: 26px; }
	.dmhm-pp .dmhm-sec { margin-block-end: var(--s5); }
	.dmhm-pp .dmhm-tabs { gap: var(--s3); margin-block-end: var(--s3); }
	.dmhm-pp .dmhm-prose { padding: var(--s3); }
	.dmhm-pp .dmhm-pbar { display: block; }
	.dmhm-pp .dmhm-pbar[hidden] { display: none !important; }
	.dmhm-pp .dmhm-related ul.products { display: flex; overflow-x: auto; gap: 14px; padding-block-end: var(--s1); scroll-snap-type: x mandatory; scrollbar-width: none; }
	.dmhm-pp .dmhm-related ul.products li.product.type-product { flex: 0 0 72%; scroll-snap-align: start; }
	.dmhm-pp .price-list { margin-block-start: 65px; padding: 5px; font-size: 10px !important; }
	.dmhm-pp .price-list tr:first-child td:nth-child(2), .dmhm-pp .price-list tr:first-child td:nth-child(3), .dmhm-pp .price-list tr:first-child td:nth-child(4) { padding: 30px 0 15px; font-size: 13px; }
	.dmhm-pp .price-list tr:first-child td:nth-child(2) span, .dmhm-pp .price-list tr:first-child td:nth-child(3) span, .dmhm-pp .price-list tr:first-child td:nth-child(4) span { font-size: 10px; }
	.dmhm-pp .price-list tr:first-child td:nth-child(3)::after { top: 6px; left: -24px; padding: 2px 20px; font-size: 10px; }
	.dmhm-pp .price-list tr:first-child th:first-child, .dmhm-pp .price-list tr:first-child td:first-child { padding-bottom: 10px; font-size: 13px; }
	.dmhm-pp .price-list td[colspan="4"] { font-size: 16px; }
}

@media (max-width: 1100px) and (min-width: 901px) {
	.dmhm-pp .dmhm-hd__grid { grid-template-columns: minmax(0, 1fr) 340px; column-gap: var(--s4); }
	.dmhm-pp .dmhm-related ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	.dmhm-pp *,
	.dmhm-pp *::before,
	.dmhm-pp *::after {
		animation: none !important;
		transition: none !important;
	}

	/* no autoplay, but every scene still shows its finished frame */
	.dmhm-pp .sc-pill, .dmhm-pp .sc-result, .dmhm-pp .sc-p1, .dmhm-pp .sc-v1, .dmhm-pp .sc-bulk,
	.dmhm-pp .sc-a-in, .dmhm-pp .sc-a-pop, .dmhm-pp .sc-a-rise, .dmhm-pp .sc-a-c1 { opacity: 1; }
	.dmhm-pp .sc-seg, .dmhm-pp .sc-a-grow-x, .dmhm-pp .sc-a-grow-y { transform: none; }
	.dmhm-pp .sc-a-draw { stroke-dashoffset: 0; }
	.dmhm-pp .sc-tick, .dmhm-pp .sc-line { stroke-dashoffset: 0; }
}

/* numbered questions: a ringed numeral that fills when the answer opens */
.dmhm-pp .dmhm-faq__item { counter-increment: faq; }
.dmhm-pp .dmhm-faq__item summary::before {
	content: counter(faq, persian);
	flex: 0 0 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--d);
	border-radius: 50%;
	font-size: 15px;
	font-weight: 900;
	line-height: 1;
	color: var(--d);
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.dmhm-pp .dmhm-faq__item summary > span { flex: 1 1 auto; min-width: 0; }
.dmhm-pp .dmhm-faq__item[open] summary::before,
.dmhm-pp .dmhm-faq__item summary:hover::before { background: var(--p); border-color: var(--p); color: #fff; }
.dmhm-pp .dmhm-faq__a { padding-inline-start: calc(var(--s3) + 34px + var(--s2)); }
@media (max-width: 900px) {
	.dmhm-pp .dmhm-faq__item summary::before { flex-basis: 28px; height: 28px; font-size: 13px; }
	.dmhm-pp .dmhm-faq__a { padding-inline-start: var(--s3); }
}

/* breadcrumb: slim — no inherited paragraph/nav margins, small gaps above and below */
.dmhm-pp .dmhm-crumbs { margin-block: 6px 8px; line-height: 1.4; }
.dmhm-pp .dmhm-crumbs p,
.dmhm-pp .dmhm-crumbs nav,
.dmhm-pp .dmhm-crumbs ol,
.dmhm-pp .dmhm-crumbs ul { margin: 0; padding: 0; }
.dmhm-pp .dmhm-hd { padding-block-start: 0; }
.dmhm-pp .dmhm-hd__top { padding-block-start: 0; }
.dmhm-pp .dmhm-rail { margin-block-start: 0; }

/* phone entry, final: breadcrumb + product name only (right-aligned, no card). "More details" lives in the sticky bar. */
.dmhm-pp .dmhm-pbar__more { display: none; }
@media (max-width: 900px) {
	.dmhm-pp .dmhm-rail { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
	.dmhm-pp .dmhm-rail__media,
	.dmhm-pp .dmhm-rail__rate { display: none; }
	.dmhm-pp .dmhm-rail__title { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 800; text-align: start; color: var(--d); }
	.dmhm-pp .dmhm-hd__grid { row-gap: var(--s2); }
	.dmhm-pp .dmhm-crumbs { text-align: start; }
	.dmhm-pp .dmhm-pbar__more { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; margin: 0 0 6px; padding: 2px 0; border: 0; background: none; color: var(--mu); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
	.dmhm-pp .dmhm-pbar__more .dmhm-i { width: 13px; height: 13px; transform: rotate(90deg); }
}

/* desktop rail, slimmer: tighter padding and gaps, title and price share one line */
@media (min-width: 901px) {
	.dmhm-pp .dmhm-rail { padding: 12px; border-radius: 14px; box-shadow: 4px 4px 0 var(--d); }
	.dmhm-pp .dmhm-rail__media { margin: 0 0 10px; }
	.dmhm-pp .dmhm-rail__img { border-radius: 10px; }
	.dmhm-pp .dmhm-rail__rate { margin: 0 0 6px; font-size: 12px; }
	.dmhm-pp .dmhm-rail__head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-block-end: 10px; }
	.dmhm-pp .dmhm-rail__title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 15px; line-height: 1.5; font-weight: 800; text-align: start; color: var(--ink); }
	.dmhm-pp .dmhm-rail__head .dmhm-rail__price { flex: 0 0 auto; margin: 0; justify-content: flex-end; font-size: 20px; line-height: 1.3; }
	.dmhm-pp .dmhm-rail__label { margin: 6px 0 4px; }
	.dmhm-pp .dmhm-rail__form .single_add_to_cart_button.button { min-height: 46px; padding: 6px var(--s2); font-size: 14px; }
	.dmhm-pp .dmhm-rail .dmhm-rail__link { min-height: 46px; padding: 6px 14px; font-size: 13px; }
	.dmhm-pp .dmhm-hint { margin-block-start: 8px; padding: 8px 12px; }
	.dmhm-pp .dmhm-facts { margin-block-start: 10px; padding-block-start: 8px; }
	.dmhm-pp .dmhm-facts__row { padding-block: 2px; font-size: 12.5px; }
}

/* phone spacing (owner's values) */
@media (max-width: 900px) {
	.dmhm-pp .dmhm-wrap { padding: 15px; }
	.dmhm-pp .dmhm-hd__grid { row-gap: 6px; }
	.dmhm-pp .dmhm-plate { padding: 10px; margin-block-end: 5px; }
	.dmhm-pp .dmhm-notes { margin: 0 0 10px; }
	.dmhm-pp .dmhm-rich h2 { font-size: 20px; }
}

/* plan chooser, final: separate outlined chips (clearly clickable) instead of one grey track; the chosen one is filled with a tick */
.dmhm-pp .dmhm-seg { flex-wrap: wrap; gap: 6px; padding: 0; border: 0; border-radius: 0; background: none; }
.dmhm-pp .dmhm-seg + .dmhm-seg { margin-block-start: 6px; }
.dmhm-pp .dmhm-seg .dmhm-seg__b {
	flex: 1 1 auto;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	padding: 6px 12px;
	border: 1.5px solid var(--ln);
	border-radius: 999px;
	background: var(--sf);
	color: var(--ink);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.dmhm-pp .dmhm-seg .dmhm-seg__b::before {
	content: '';
	flex: 0 0 14px;
	height: 14px;
	border: 1.5px solid color-mix(in srgb, var(--mu) 55%, var(--sf));
	border-radius: 50%;
	transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.dmhm-pp .dmhm-seg .dmhm-seg__b:hover { border-color: var(--p); color: var(--p); background: color-mix(in srgb, var(--p) 5%, var(--sf)); box-shadow: 0 4px 12px -8px var(--p); transform: translateY(-1px); }
.dmhm-pp .dmhm-seg .dmhm-seg__b:hover::before { border-color: var(--p); }
.dmhm-pp .dmhm-seg .dmhm-seg__b[aria-checked='true'],
.dmhm-pp .dmhm-seg .dmhm-seg__b[aria-checked='true']:hover { border-color: var(--d); background: var(--d); color: #fff; box-shadow: none; transform: none; }
.dmhm-pp .dmhm-seg .dmhm-seg__b[aria-checked='true']::before { border-color: #fff; background: radial-gradient(circle, #fff 0 38%, transparent 42%); }
.dmhm-pp .dmhm-seg .dmhm-seg__b[aria-disabled='true']:hover { border-color: var(--ln); color: var(--ink); background: var(--sf); box-shadow: none; transform: none; }
.dmhm-pp .dmhm-pbar__plans .dmhm-seg .dmhm-seg__b[aria-checked='true'],
.dmhm-pp .dmhm-pbar__plans .dmhm-seg .dmhm-seg__b[aria-checked='true']:hover { border-color: var(--p); background: var(--p); }

/* section titles may be any tag (h2-h6, div, p, span): the look comes from the class only, so every tag renders identically */
.dmhm-pp .dmhm-h2,
.dmhm-pp .dmhm-cta__title { display: block; font-style: normal; text-transform: none; }

/* rail head: title takes what it needs, the price sits beside it or wraps under it — never squeezes the title to two lines by itself */
@media (min-width: 901px) {
	.dmhm-pp .dmhm-rail__head { flex-wrap: wrap; align-items: baseline; }
	.dmhm-pp .dmhm-rail__title { flex: 1 1 150px; }
	.dmhm-pp .dmhm-rail__head .dmhm-rail__price { flex: 0 0 auto; margin-inline-start: auto; }
}
.dmhm-pp .dmhm-price .dmhm-from { margin-inline-end: 4px; color: var(--mu); font-size: 0.55em; font-weight: 700; }

/* plan chips: air below, calm hover (no layout movement), and no theme/Elementor button-hover leaking in */
.dmhm-pp .dmhm-rail__chooser { margin-block-end: 12px; }
.dmhm-pp .dmhm-rail .dmhm-seg .dmhm-seg__b:hover,
.dmhm-pp .dmhm-rail .dmhm-seg .dmhm-seg__b:focus-visible { transform: none; box-shadow: none; border-color: var(--p); color: var(--p); background: color-mix(in srgb, var(--p) 6%, var(--sf)); }
.dmhm-pp .dmhm-rail .dmhm-seg .dmhm-seg__b[aria-checked='true']:hover { border-color: var(--d); color: #fff; background: var(--d); }

/* "more details" sheet: lives under .dmhm-pp (not inside the wrap's stacking context) so it covers the sticky bar; height = its content */
.dmhm-pp .dmhm-drawer { display: none; }
@media (max-width: 900px) {
	.dmhm-pp .dmhm-drawer { display: block; max-height: min(78vh, 560px); z-index: 70; }
	.dmhm-pp .dmhm-drawer__bd { z-index: 65; }
	.dmhm-pp .dmhm-rail .dmhm-facts { display: none; }
}


/* the plans table's top gap must win over `.dmhm-rich > :first-child { margin: 0 }` (the table is the first child of its wrapper) */
.dmhm-pp .price-list.price-list { margin-block-start: 55px; }
@media (max-width: 900px) {
	.dmhm-pp .price-list.price-list { margin-block-start: 65px; }
}
