/**
 * Site-wide plugin components: shop filters, package contents, testimonials.
 *
 * Separate from player.css on purpose. player.css is enqueued only on the audio
 * pages, and these components live on /csomagok/ and the homepage — putting
 * their styles there shipped all three completely unstyled.
 *
 * Tokens come from the child theme's :root, with fallbacks so the plugin still
 * looks right if the theme changes.
 */

.dl-vasarlas,
.dl-ajanlat,
.dl-shop-filters,
.dl-shop-contents,
.dl-velemenyek-nav,
.dl-velemenyek-title,
.dl-velemenyek {
	--dl-ui-ease: cubic-bezier(0.23, 1, 0.32, 1);
	--dl-ui-rose: var(--dl-rose, #D4756A);
	--dl-ui-rose-text: var(--dl-rose-text, #A8524A);
	--dl-ui-rose-text-large: var(--dl-rose-text-large, #C06358);
	--dl-ui-rose-pill-text: var(--dl-rose-pill-text, #96453E);
	--dl-ui-rose-btn: var(--dl-rose-btn, #B05A50);
	--dl-ui-rose-btn-hover: var(--dl-rose-btn-hover, #A8524A);
	--dl-ui-dark: var(--dl-dark, #3D2C28);
	--dl-ui-gray: var(--dl-gray, #7A6B66);
	--dl-ui-line: rgba(61, 44, 40, 0.10);
	--dl-ui-field-line: #9C8E88;
	--dl-ui-white: var(--dl-white, #FFFBF8);
	--dl-ui-serif: var(--dl-font-heading, 'Cormorant Garamond', Georgia, serif);
}

/* ─── Shop filter bar ──────────────────────────────────────────── */

/* An inline control panel, not floating chrome. Translucency is for surfaces
   content scrolls under; this sits in the flow beneath an already-fixed 133px
   header, where a second sticky layer would just eat the viewport. */
.dl-shop-filters {
	clear: both;          /* WooCommerce floats the result count left */
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem 1rem;
	margin: 0 0 1.75rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--dl-ui-line);
	border-radius: 16px;
	background: var(--dl-ui-white);
	box-shadow: 0 1px 2px rgba(61, 44, 40, 0.04);
}

.dl-shop-filter {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.dl-shop-filter label {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--dl-ui-gray);
}

.dl-shop-filters select {
	min-width: 12rem;
	padding: 0.5rem 2.25rem 0.5rem 0.9rem;
	border: 1px solid rgba(61, 44, 40, 0.18);
	border-radius: 20px;
	background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233D2C28' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
	color: var(--dl-ui-dark);
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	/* Named properties only — `all` would animate the background image too. */
	transition: border-color 160ms var(--dl-ui-ease), box-shadow 160ms var(--dl-ui-ease);
}

.dl-shop-filters select:focus-visible {
	outline: none;
	border-color: var(--dl-ui-rose);
	box-shadow: 0 0 0 3px rgba(212, 117, 106, 0.18);
}

.dl-shop-filter-submit {
	padding: 0.55rem 1.4rem;
	border: 0;
	border-radius: 20px;
	background: var(--dl-ui-dark);
	color: #fff;
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	transition: transform 160ms var(--dl-ui-ease), background-color 160ms var(--dl-ui-ease);
}

/* Instant, physical feedback that the interface heard the press. */
.dl-shop-filter-submit:active {
	transform: scale(0.97);
}

.dl-shop-filter-reset {
	align-self: center;
	color: var(--dl-ui-gray);
	font-size: 0.82rem;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 160ms var(--dl-ui-ease), border-color 160ms var(--dl-ui-ease);
}

/* ─── "Mit tartalmaz?" ─────────────────────────────────────────── */

/* The packages page's own photograph: the same width and corners as the box
   under it, so the two read as one unit. A wide 21:9 frame on desktop keeps
   it from taking over the page; phones get 4:3, where 21:9 is a sliver.
   width/height attributes from WordPress reserve the space before it loads. */
.dl-shop-banner {
	margin: 3.5rem auto 0;
	max-width: var(--container, 1200px);
}
.dl-shop-banner img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	object-position: 50% 45%;
	border-radius: 20px;
}
@media (max-width: 767px) {
	.dl-shop-banner img { aspect-ratio: 4 / 3; }
}
.dl-shop-banner + .dl-shop-contents {
	margin-top: 1.5rem;
}

.dl-shop-contents {
	margin: 3.5rem auto 0;
	padding: 2.25rem 2rem;
	max-width: var(--container, 1200px);
	border: 1px solid var(--dl-ui-line);
	border-radius: 20px;
	background: var(--dl-ui-white);
}

.dl-shop-contents h2 {
	margin: 0 0 1.5rem;
	font-family: var(--dl-ui-serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.015em;
	font-optical-sizing: auto;
	color: var(--dl-ui-dark);
}

.dl-shop-contents ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 0.75rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dl-shop-contents li {
	position: relative;
	padding: 0.35rem 0 0.35rem 1.75rem;
	color: var(--dl-ui-gray);
	font-size: 0.95rem;
	line-height: 1.55;
	letter-spacing: 0;
}

.dl-shop-contents li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 1rem;
	height: 0.5rem;
	border-left: 2px solid var(--dl-ui-rose);
	border-bottom: 2px solid var(--dl-ui-rose);
	transform: rotate(-45deg);
	transform-origin: center;
}

/* ─── Testimonials ─────────────────────────────────────────────── */

.dl-velemenyek-title {
	margin: 0 0 2rem;
	font-family: var(--dl-ui-serif);
	font-size: clamp(1.8rem, 4vw, 2.5rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.02em;
	font-optical-sizing: auto;
	text-align: center;
	color: var(--dl-ui-dark);
}

.dl-velemenyek {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--dl-quotes-per-page, 3) - 1) * 1.5rem) / var(--dl-quotes-per-page, 3));
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	padding-bottom: .25rem;
	gap: 1.5rem;
	max-width: var(--container, 1200px);
	margin: 0 auto;
	/* Without JavaScript every card is as tall as its own full text. */
	align-items: start;
}

/* ─── Enhanced (testimonials.js) ───────────────────────────────
   Quotes keep their full text (Niki, 2026-09-16) — long ones are folded
   behind "Tovább olvasom", never cut. The track gets ONE height — the tallest
   folded card anywhere in the carousel — so turning a page never moves the
   content below it, and every card on a page stretches to the same size.
   Only opening a quote grows the track, and that grows smoothly. */
.dl-velemenyek.is-enhanced {
	/* The short quotes run 12–14 lines three-up; they are shown whole. */
	--dl-quote-lines: 15;
	transition: height 260ms var(--dl-ui-ease);
}
/* Every card at least the common folded height (set by testimonials.js), so a
   page of short quotes is the same size as a page of folded long ones, and
   opening one quote does not stretch its neighbours. */
.dl-velemenyek.is-enhanced .dl-velemeny {
	min-height: var(--dl-card-min, 0);
}
/* Measuring pass: natural heights, read inside one synchronous layout. */
.dl-velemenyek.is-enhanced.is-measuring {
	transition: none;
}
.dl-velemenyek.is-enhanced.is-measuring .dl-velemeny {
	min-height: 0;
}
.dl-velemenyek.is-enhanced .dl-velemeny-text.is-clamped {
	max-height: calc(var(--dl-quote-lines) * 1.65em);
}
.dl-velemenyek.is-enhanced .dl-velemeny-text {
	overflow: hidden;
	transition: max-height 260ms var(--dl-ui-ease);
}
.dl-velemenyek.is-enhanced .dl-velemeny-text.is-clamped:not(.is-open) {
	-webkit-mask-image: linear-gradient(#000 calc(100% - 3.3em), transparent);
	mask-image: linear-gradient(#000 calc(100% - 3.3em), transparent);
}
.dl-velemeny .dl-velemeny-more {
	align-self: flex-start;
	min-height: 44px;
	margin: -0.6rem 0 0;
	padding: 0.5rem 0;
	border: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--dl-ui-rose-text);
	cursor: pointer;
	transition: transform 160ms var(--dl-ui-ease);
}
.dl-velemeny .dl-velemeny-more[hidden] { display: none; }
.dl-velemeny .dl-velemeny-more:active { transform: scale(0.97); }
.dl-velemeny .dl-velemeny-more:focus-visible {
	outline: 2px solid var(--dl-ui-rose);
	outline-offset: 3px;
	border-radius: 4px;
}
@media (hover: hover) and (pointer: fine) {
	.dl-velemeny .dl-velemeny-more:hover {
		background: none;
		color: var(--dl-ui-rose-text);
		text-decoration: underline;
		text-underline-offset: 3px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.dl-velemenyek.is-enhanced,
	.dl-velemenyek.is-enhanced .dl-velemeny-text,
	.dl-velemeny .dl-velemeny-more { transition: none; }
	.dl-velemeny .dl-velemeny-more:active { transform: none; }
}

.dl-velemeny {
	scroll-snap-align: start;
	min-width: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
	padding: 1.75rem;
	border: 1px solid var(--dl-ui-line);
	border-radius: 18px;
	background: var(--dl-ui-white);
}

.dl-velemeny-avatar img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.dl-velemeny-text {
	margin: 0;
	color: var(--dl-dark-soft, #5A4840);
	font-size: 0.98rem;
	line-height: 1.65;
}

.dl-velemeny-text p:last-child { margin-bottom: 0; }

.dl-velemeny-meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin-top: auto;
}

.dl-velemeny-name {
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--dl-ui-dark);
}

.dl-velemeny-course {
	font-size: 0.8rem;
	color: var(--dl-gray, #7A6B66);
}

/* The whole section disappears until real quotes exist, so the homepage never
   shows a heading above nothing. */
.dl-velemeny-section:not(:has(.dl-velemenyek)) {
	display: none !important;
}

/* ─── Hover: pointer devices only ──────────────────────────────── */

@media (hover: hover) and (pointer: fine) {
	.dl-shop-filters select:hover { border-color: rgba(212, 117, 106, 0.55); }
	.dl-shop-filter-submit:hover { background: var(--dl-dark-soft, #5A4840); }
	.dl-shop-filter-reset:hover {
		color: var(--dl-ui-rose-text, #A8524A);
		border-bottom-color: currentColor;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dl-shop-filters select,
	.dl-shop-filter-submit,
	.dl-shop-filter-reset {
		transition: none;
	}
	.dl-shop-filter-submit:active { transform: none; }
}

@media (max-width: 600px) {
	.dl-shop-filters { padding: 1rem; }
	.dl-shop-filters select { min-width: 0; width: 100%; }
	.dl-shop-filter { flex: 1 1 100%; }
	.dl-shop-contents { padding: 1.75rem 1.25rem; border-radius: 16px; }
}

/* ─── Consultation prices — [dalolom_konzultacio_arak] ─────────── */

.dl-konzult {
	--dl-ui-ease: cubic-bezier(0.23, 1, 0.32, 1);
	display: grid;
	/* min(…, 100%): a column may never demand more than the space it has — at
	   360px the card's inner width is ~214px, under the 14rem floor, and the
	   grid overflowed its card by 10px. */
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
	gap: 1rem;
}

.dl-konzult-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.5rem;
	border: 1px solid var(--dl-ui-line, rgba(61, 44, 40, 0.10));
	border-radius: 16px;
	background: var(--dl-white, #FFFBF8);
}

.dl-konzult-name {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--dl-gray, #7A6B66);
}

.dl-konzult-price {
	font-family: var(--dl-font-heading, 'Cormorant Garamond', Georgia, serif);
	font-size: 1.9rem;
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.02em;
	font-optical-sizing: auto;
	color: var(--dl-dark, #3D2C28);
}

.dl-konzult-note {
	font-size: 0.82rem;
	color: var(--dl-gray, #7A6B66);
}

@media (prefers-contrast: more) {
	.dl-shop-filters,
	.dl-shop-contents,
	.dl-velemeny,
	.dl-konzult-card {
		background: #fff;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		border-color: rgba(61, 44, 40, 0.55);
	}
	.dl-shop-contents li,
	.dl-velemeny-text { color: var(--dl-dark, #3D2C28); }
}

/* Gated preview: unconfirmed prices render only behind the coming-soon gate,
   and never without this marker. */
.dl-konzult-minta {
	align-self: flex-start;
	margin-top: 0.25rem;
	padding: 0.15rem 0.6rem;
	border-radius: 10px;
	background: #FDECEA;
	color: #B00020;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* Native swipe remains available without JavaScript; controls are added by JS. */
.dl-velemenyek::-webkit-scrollbar { display: none; }
@media (max-width: 1024px) {
	.dl-velemenyek { grid-auto-columns: calc((100% - (min(var(--dl-quotes-per-page, 3), 2) - 1) * 1.5rem) / min(var(--dl-quotes-per-page, 3), 2)); }
}
@media (max-width: 767px) {
	.dl-velemenyek { grid-auto-columns: 100%; }
}
.dl-velemenyek-nav { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.dl-velemenyek-nav[hidden], .dl-velemenyek-status[hidden] { display: none; }
.dl-velemenyek-nav button { padding: 0; cursor: pointer; transition: transform 160ms var(--dl-ui-ease); }
.dl-velemenyek-nav .dl-velemenyek-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--dl-ui-line); background: #fff; color: var(--dl-ui-dark); display: grid; place-items: center; }
.dl-velemenyek-nav button:active { transform: scale(.94); }
.dl-velemenyek-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.dl-velemenyek-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; }
.dl-velemenyek-nav .dl-velemenyek-dot { width: 24px; height: 32px; border: 0; background: transparent; display: grid; place-items: center; }
.dl-velemenyek-dot::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--dl-gray, #7A6B66); }
.dl-velemenyek-dot[aria-current="true"]::before { width: 24px; background: var(--dl-ui-rose); }
.dl-velemenyek:focus-visible, .dl-velemenyek-nav button:focus-visible { outline: 2px solid var(--dl-ui-rose); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
	.dl-velemenyek-nav .dl-velemenyek-btn:hover { background: var(--dl-cream, #FAF0EB); }
}
@media (prefers-reduced-motion: reduce) {
	.dl-velemenyek { scroll-behavior: auto; }
	.dl-velemenyek-nav button { transition: none; }
	.dl-velemenyek-nav button:active { transform: none; }
}

/* ─── Native contact form ─────────────────────────────────────── */
.dl-ajanlat {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin: 0 0 1.5rem;
	padding: 1.25rem;
	border: 1px solid var(--dl-ui-line);
	border-radius: 20px;
	background: var(--dl-ui-white);
	color: var(--dl-ui-dark);
	font-size: 1rem;
	line-height: 1.55;
	scroll-margin-top: 10rem;
}
form.dl-ajanlat { position: relative; display: grid; gap: 0.5rem; }
.dl-ajanlat label { font-weight: 600; }
.dl-ajanlat input:not([type="hidden"]),
.dl-ajanlat select,
.dl-ajanlat textarea {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 44px;
	margin: 0 0 0.75rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--dl-ui-field-line);
	border-radius: 10px;
	background: var(--dl-ui-white);
	color: var(--dl-ui-dark);
	font: inherit;
}
.dl-ajanlat textarea { resize: vertical; }
.dl-ajanlat :is(input, select, textarea):focus,
.dl-ajanlat :is(button, a):focus-visible {
	outline: 2px solid var(--dl-ui-rose);
	outline-offset: 3px;
}
.dl-ajanlat p { margin: 0.25rem 0 1rem; }
.dl-ajanlat a { color: var(--dl-ui-dark); text-decoration: underline; }
.dl-ajanlat button[type="submit"] {
	min-height: 44px;
	width: 100%;
	padding: 0.75rem 1.25rem;
	border: 1px solid var(--dl-ui-rose);
	border-radius: 12px;
	background: var(--dl-ui-rose-btn, #B05A50);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: transform 140ms var(--dl-ui-ease);
}
.dl-ajanlat button[type="submit"]:active { transform: scale(.97); }
.dl-ajanlat .dl-ajanlat-honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.dl-ajanlat-ok, .dl-ajanlat-err { border-left: 4px solid var(--dl-ui-rose); }
@media (min-width: 600px) {
	.dl-ajanlat { padding: 2rem; }
}
@media (hover: hover) and (pointer: fine) {
	.dl-ajanlat button[type="submit"]:hover { opacity: 0.9; }
	.dl-ajanlat a:hover { text-decoration-thickness: 2px; }
}
@media (prefers-reduced-motion: reduce) {
	.dl-ajanlat button[type="submit"] { transition: none; }
	.dl-ajanlat button[type="submit"]:active { transform: none; }
}
@media (prefers-contrast: more) {
	.dl-ajanlat,
	.dl-ajanlat :is(input, select, textarea, button[type="submit"]) {
		border-color: var(--dl-ui-dark);
		border-width: 2px;
	}
}

/* ─── Cookie notice ─────────────────────────────────────────────────────────
   Emitted by dalolom-core.php in wp_footer. It used to be inline-styled at
   bottom:0 with z-index 10001, which put it ON TOP of the fixed player bar
   (z-index 9999) on any device that had not dismissed it yet — the mini play
   button was unreachable. With the bar active it now sits above the bar. */
.dl-cookie-notice {
	display: none;
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 10001;
	align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap;
	padding: .6rem 1.25rem;
	background: var(--dl-dark, #3D2C28);
	color: var(--dl-cream, #FAF0EB);
	font-family: var(--dl-font-body, 'DM Sans', sans-serif);
	font-size: .85rem;
	line-height: 1.4;
}
.dl-cookie-notice.is-open { display: flex; }
.dl-cookie-notice a {
	color: var(--dl-rose-light, #E8918A); /* 5.6:1 on the dark brown; the brand rose was 4.1:1 */
	text-decoration: underline;
	text-underline-offset: 2px;
}
.dl-cookie-notice button {
	min-height: 44px; min-width: 64px;
	padding: .4rem 1.1rem;
	border: 0; border-radius: 999px;
	background: var(--dl-rose-btn, #B05A50); color: #fff;
	font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
	transition: transform .12s var(--ease-out, cubic-bezier(.23, 1, .32, 1));
}
.dl-cookie-notice button:active { transform: scale(.97); }
.dl-cookie-notice__text { flex: 1 1 22rem; max-width: 46rem; }
.dl-cookie-notice__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
/* Refusing must be as easy as accepting: same size, outlined instead of filled. */
.dl-cookie-notice .dl-cookie-notice__secondary { background: transparent; color: var(--dl-cream, #FAF0EB); box-shadow: inset 0 0 0 1.5px var(--dl-cream, #FAF0EB); }
.dl-cookie-notice a:focus-visible, .dl-cookie-notice button:focus-visible { outline: 2px solid var(--dl-cream, #FAF0EB); outline-offset: 2px; }
/* The player bar is 64px on desktop; on phones it floats 8px above the edge as a 54px card. */
body.dl-player-active .dl-cookie-notice { bottom: 72px; }
@media (max-width: 768px) {
	body.dl-player-active .dl-cookie-notice { bottom: 78px; }
}
@media (hover: hover) and (pointer: fine) {
	.dl-cookie-notice button:hover { background: var(--dl-rose-btn-hover, #A8524A); }
	.dl-cookie-notice .dl-cookie-notice__secondary:hover { background: rgba(250, 240, 235, .12); }
	.dl-cookie-notice a:hover { color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
	.dl-cookie-notice button { transition: none; }
	.dl-cookie-notice button:active { transform: none; }
}

/* Purchase steps stay in normal flow, after the single-product cart form. */
.dl-vasarlas {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin: 0 0 1.5rem;
	padding: 20px;
	border: 1px solid var(--dl-ui-line);
	border-radius: 16px;
	background: #fff;
	color: var(--dl-ui-dark);
	font-family: var(--dl-font-body, 'DM Sans', sans-serif);
	font-size: 15px;
	line-height: 1.5;
}
.dl-vasarlas h2 {
	margin: 0 0 1rem;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: normal;
}
.dl-vasarlas ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: dl-purchase;
}
.dl-vasarlas li {
	position: relative;
	min-height: 28px;
	padding-left: 40px;
	counter-increment: dl-purchase;
}
.dl-vasarlas li + li { margin-top: 12px; }
.dl-vasarlas li::before {
	content: counter(dl-purchase);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(212, 117, 106, 0.14);
	font-weight: 600;
}
.dl-vasarlas p {
	margin: 1rem 0 0;
	font-size: 0.9rem;
	color: var(--dl-ui-gray);
}
.dl-vasarlas a { color: var(--dl-ui-dark); text-decoration: underline; }
@media (min-width: 768px) {
	.dl-vasarlas { padding: 24px; }
}
/* Niki's javítási lista (2026-10-01): on a phone the text gets more of the box
   and the step numbers shrink — they were 28px discs eating a column. */
@media (max-width: 767px) {
	.dl-vasarlas { padding: 16px; }
	.dl-vasarlas li { padding-left: 30px; min-height: 22px; }
	.dl-vasarlas li::before { width: 22px; height: 22px; font-size: 12px; top: 1px; }
}
/* The strip is server-prepended before the Cart block; when the last item is removed the block
   re-renders itself empty on the client, so hide the strip alongside it. */
.dl-vasarlas:has(+ .wp-block-woocommerce-cart .wc-block-cart__empty-cart__title) { display: none; }

.dl-ajanlat button[type="submit"]:active { background: var(--dl-ui-rose-btn-hover, #A8524A); }
@media (hover: hover) and (pointer: fine) {
	.dl-ajanlat button[type="submit"]:hover { background: var(--dl-ui-rose-btn-hover, #A8524A); }
}

/* ─── Utalási adatok a rendelés oldalán ─────────────────────────────────────
   WooCommerce csak a köszönő oldalon és az e-mailben mutatja meg ezeket; a
   fiók „Utalási adatok” gombja ide mutat, tehát itt is látszódniuk kell. */
.dl-bacs-details {
	margin: 0 0 2rem;
	padding: 1.1rem 1.25rem 1.25rem;
	border: 1px solid var(--dl-rose-pale, #F5DCD8);
	border-radius: var(--dl-radius-md, 16px);
	background: var(--dl-cream, #FAF0EB);
}
.dl-bacs-details h2 {
	margin: 0 0 .5rem;
	font-size: 1.15rem;
	font-family: var(--dl-font-body, sans-serif);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--dl-dark, #3D2C28);
}
.dl-bacs-details p { margin: 0 0 .9rem; font-size: .92rem; color: var(--dl-dark-soft, #5A4840); }
.dl-bacs-table { width: 100%; border-collapse: collapse; }
.dl-bacs-table th,
.dl-bacs-table td {
	text-align: left;
	padding: .45rem 0;
	border-bottom: 1px solid var(--dl-rose-pale, #F5DCD8);
	font-size: .95rem;
	vertical-align: top;
}
.dl-bacs-table th { width: 40%; font-weight: 500; color: var(--dl-gray, #7A6B66); }
.dl-bacs-table td { font-weight: 600; color: var(--dl-dark, #3D2C28); overflow-wrap: anywhere; }
.dl-bacs-table tr:last-child th,
.dl-bacs-table tr:last-child td { border-bottom: 0; }
@media (max-width: 480px) {
	.dl-bacs-table th, .dl-bacs-table td { display: block; width: auto; border-bottom: 0; padding: .15rem 0; }
	.dl-bacs-table td { padding-bottom: .7rem; border-bottom: 1px solid var(--dl-rose-pale, #F5DCD8); }
}

/* AAM (áfamentes) jelzés az ár alatt a terméklapon. */
.dl-card-text,
.dl-founder-note {
	margin: -.35rem 0 .6rem;
	font-size: .9rem;
	line-height: 1.45;
	color: var(--dl-gray, #7A6B66);
}
.dl-founder-note strong {
	display: inline;
	color: var(--dl-dark, #3D2C28);
	font-weight: 600;
}
/* Shop cards: the note sits inside the product link, which has no side padding
   of its own — match the title/price inset (1.25rem) from the child theme. */
.woocommerce ul.products li.product .dl-card-text,
.woocommerce ul.products li.product .dl-founder-note {
	margin: .15rem 0 0;
	padding: 0 1.25rem;
	font-size: .85rem;
}
/* Reserve two lines without moving the price when copy wraps. */
.woocommerce ul.products li.product .dl-card-text {
	margin: 0 0 .6rem;
	min-height: 2.9em;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
@media (max-width: 600px) {
	.woocommerce ul.products li.product .dl-card-text { min-height: 0; }
}
/* WooCommerce core makes every <strong> in a product card a block. */
.woocommerce ul.products li.product .dl-founder-note strong {
	display: inline;
}
.dl-aam-note {
	margin: -.35rem 0 1rem;
	font-size: .85rem;
	line-height: 1.5;
	color: var(--dl-gray, #7A6B66);
	max-width: 46ch;
}

/* Online withdrawal: the entry link opens this explicit confirmation form. */
.dl-withdrawal {
	max-width: 42rem;
	margin: 0 auto 2rem;
	padding: 1.25rem;
	color: var(--dl-dark, #3D2C28);
	background: var(--dl-cream, #FAF0EB);
	border-radius: 12px;
	font-size: 1rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
}
.dl-withdrawal h2 { font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.12; letter-spacing: -.015em; }
.dl-withdrawal__form { position: relative; display: grid; gap: .5rem; margin-top: 1.5rem; }
.dl-withdrawal__form label { font-weight: 600; }
.dl-withdrawal__form input:not([type="hidden"]) {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 44px;
	margin-bottom: .75rem;
	padding: .65rem .75rem;
	border: 1px solid var(--dl-gray, #7A6B66);
	border-radius: 8px;
	background: #fff;
	color: var(--dl-dark, #3D2C28);
	caret-color: var(--dl-dark, #3D2C28);
	font: inherit;
}
.dl-withdrawal__statement { margin: 1rem 0; }
.dl-withdrawal__notice { padding: 1rem; border: 1px solid var(--dl-gray, #7A6B66); border-radius: 8px; }
.dl-withdrawal__notice p:last-child { margin-bottom: 0; }
.dl-withdrawal button[type="submit"] {
	min-height: 48px;
	padding: .85rem 1rem;
	border: 1px solid var(--dl-rose, #C4786E);
	border-radius: 12px;
	background: var(--dl-rose-btn, #B05A50);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: transform 140ms cubic-bezier(.23, 1, .32, 1);
}
.dl-withdrawal button[type="submit"]:active { transform: scale(.97); }
.dl-withdrawal :is(input, button):focus-visible { outline: 2px solid var(--dl-dark, #3D2C28); outline-offset: 3px; }
.dl-withdrawal__honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dl-withdrawal-link a { color: var(--dl-dark, #3D2C28); text-decoration: underline; text-underline-offset: .2em; }
@media (min-width: 600px) { .dl-withdrawal { padding: 2rem; } }
@media (hover: hover) and (pointer: fine) { .dl-withdrawal button[type="submit"]:hover { background: var(--dl-rose-btn-hover, #A8524A); } }
@media (prefers-reduced-motion: reduce) {
	.dl-withdrawal button[type="submit"] { transition: none; }
	.dl-withdrawal button[type="submit"]:active { transform: none; }
}
@media (prefers-contrast: more) { .dl-withdrawal :is(input, button), .dl-withdrawal__notice { border: 2px solid currentColor; } }

/* Login notice: the logged-out Hanganyagok gate, centred, keeping the footer low on desktop */
.dalolom-login-notice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; min-height: min(60vh, 32rem); padding: 3rem 1rem; text-align: center; }
.dalolom-login-notice__title { margin: 0; font-family: var(--dl-font-heading, Georgia, serif); font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--dl-dark, #3D2C28); }
.dalolom-login-notice p { margin: 0 auto; max-width: 34rem; line-height: 1.55; color: var(--dl-dark-soft, #5A4840); }
.dalolom-login-notice .dl-btn { margin-top: .5rem; transition: transform 160ms var(--dl-ease, cubic-bezier(0.23, 1, 0.32, 1)); }
.dalolom-login-notice .dl-btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
	.dalolom-login-notice .dl-btn { transition: none; }
	.dalolom-login-notice .dl-btn:active { transform: none; }
}
