/* ==========================================================================
   Funnel product page (/cases/<slug>/), inc/funnel.php
   Short labels stay on one line on phones (nowrap + ellipsis as a last resort).
   ========================================================================== */

.dc-fn { padding-bottom: 96px; }
.dc-fn__eyebrow {
	font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-solid);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-fn__title { margin-top: 4px; font-size: clamp(24px, 2.8vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.dc-fn__sub { margin-top: 10px; color: var(--g700); font-size: 15px; line-height: 1.5; }
.dc-fn__price { margin-top: 10px; font-size: 24px; }
.dc-fn__buy { margin-top: 16px; scroll-margin-top: calc(var(--header-h) + 16px); }

/* The buy form: same grid safety as the product page (sliders never widen the page). */
.dc-funnel-form, .dc-funnel-form .single_variation_wrap, .dc-funnel-form .variations_button { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.dc-funnel-form > * , .dc-funnel-form .single_variation_wrap > * { min-width: 0; }
.dc-funnel-form .dc-options { display: grid; gap: 8px; }
.dc-funnel-form .dc-option__label {
	display: block; margin-bottom: 8px; font-size: 15px; font-weight: 800; letter-spacing: .01em;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-funnel-form .dc-select { width: 100%; height: 52px; font-weight: 600; }
.dc-funnel-form .dc-reset { justify-self: start; font-size: 13px; }
.dc-funnel-form .woocommerce-variation-price { display: none; } /* price shows at the top and in the total */
.dc-option.is-invalid .dc-select { border-color: var(--sale); box-shadow: 0 0 0 3px rgba(198, 0, 0, .12); }

/* ---------- Step 2: more designs ---------- */
.dc-fn-step__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.dc-fn-step__label { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dc-fn-step__note { flex: none; font-size: 12px; font-weight: 700; color: var(--sale); white-space: nowrap; }
.dc-fn-step__hint { margin-top: 4px; font-size: 13px; color: var(--g600); }
.dc-fn-more.is-ready .dc-fn-step__hint { display: none; }

.dc-fn-more__wrap { position: relative; margin-top: 10px; min-width: 0; }
.dc-fn-more__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 20px) / 3);
	gap: 10px; margin: 0; padding: 2px 2px 8px; list-style: none;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain;
}
@media (max-width: 479px) { .dc-fn-more__track { grid-auto-columns: calc((100% - 10px) / 2.3); } }
.dc-fn-more__btn {
	position: absolute; top: 34%; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px;
	border: 1px solid var(--g200); border-radius: var(--r-pill); background: rgba(255, 255, 255, .95); box-shadow: var(--card-shadow);
}
.dc-fn-more__btn--prev { left: -6px; }
.dc-fn-more__btn--next { right: -6px; }
@media (hover: none) { .dc-fn-more__btn { display: none; } }

.dc-fn-card { display: grid; gap: 4px; align-content: start; scroll-snap-align: start; min-width: 0; text-align: center; }
.dc-fn-card[hidden] { display: none; }
.dc-fn-card__img {
	position: relative; display: block; padding: 0; aspect-ratio: 1; overflow: hidden;
	border: 1.5px solid var(--g200); border-radius: var(--r); background: var(--g50); cursor: zoom-in;
}
.dc-fn-card__img img { width: 100%; height: 100%; object-fit: cover; }
.dc-fn-card.is-added .dc-fn-card__img { border-color: var(--black); box-shadow: 0 0 0 2px var(--black) inset; }
.dc-fn-card__name { font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-fn-card__price { font-size: 13px; white-space: nowrap; }
.dc-fn-card__price del { color: var(--g500); font-weight: 400; }
.dc-fn-card__price strong { color: var(--sale); }
.dc-fn-card__add {
	height: 34px; border: 1.5px solid var(--black); border-radius: var(--r-pill); background: var(--white);
	font-size: 13px; font-weight: 700; color: var(--black); white-space: nowrap;
}
.dc-fn-card__add:disabled { opacity: .45; cursor: not-allowed; }
.dc-fn-card__add-on { display: none; }
.dc-fn-card.is-added .dc-fn-card__add { background: var(--black); color: var(--white); }
.dc-fn-card.is-added .dc-fn-card__add-on { display: inline; }
.dc-fn-card.is-added .dc-fn-card__add-off { display: none; }

/* Large preview: hover on computers, tap anywhere. */
.dc-fn-peek {
	position: fixed; z-index: 60; width: 300px; padding: 8px; border-radius: var(--r-lg);
	background: var(--white); box-shadow: 0 12px 40px rgba(0, 0, 0, .25); pointer-events: none;
}
.dc-fn-peek img { width: 100%; height: auto; border-radius: var(--r); }
.dc-fn-peek__name { margin-top: 6px; font-size: 13px; font-weight: 700; text-align: center; }
.dc-fn-zoom {
	position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px;
	background: rgba(0, 0, 0, .78);
}
.dc-fn-zoom__box { position: relative; width: min(520px, 100%); padding: 12px; border-radius: var(--r-lg); background: var(--white); }
.dc-fn-zoom__box img { width: 100%; height: auto; border-radius: var(--r); }
.dc-fn-zoom__name { margin: 10px 0; font-weight: 800; text-align: center; }
.dc-fn-zoom__close {
	position: absolute; top: -14px; right: -10px; display: grid; place-items: center; width: 36px; height: 36px;
	border: 0; border-radius: var(--r-pill); background: var(--white); box-shadow: var(--card-shadow);
}

/* ---------- Features ---------- */
.dc-fn-feats { padding: 14px 16px; border-radius: var(--r-lg); background: var(--g50); }
.dc-fn-feats__title { margin-bottom: 8px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.dc-fn-feats .dc-ticks { font-size: 14px; line-height: 1.45; }

/* ---------- Add-On Bonus ---------- */
.dc-fn-bonus { padding: 14px; border: 2px dashed var(--gold-solid); border-radius: var(--r-lg); background: #fffaf0; }
.dc-fn-bonus__tag {
	display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); background: var(--black); color: var(--white);
	font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.dc-fn-bonus__row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; margin-top: 10px; align-items: center; }
.dc-fn-bonus__img { padding: 0; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--g200); border-radius: var(--r); background: var(--white); cursor: zoom-in; }
.dc-fn-bonus__img img { width: 100%; height: 100%; object-fit: cover; }
.dc-fn-bonus__name { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-fn-bonus__desc { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--g700); }
.dc-fn-bonus__price { margin-top: 4px; font-size: 15px; white-space: nowrap; }
.dc-fn-bonus__price del { color: var(--g500); }
.dc-fn-bonus__price strong { color: var(--sale); }
.dc-fn-bonus__save { margin-left: 6px; font-size: 12px; font-weight: 800; color: var(--ok); }
.dc-fn-bonus__yes {
	display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px;
	border-radius: var(--r); background: #fff3c4; cursor: pointer;
	font-size: 16px; font-weight: 800; white-space: nowrap;
}
.dc-fn-bonus__yes input { flex: none; width: 24px; height: 24px; accent-color: var(--ok); }
.dc-fn-bonus.is-on .dc-fn-bonus__yes { background: #dff3e6; }

/* ---------- Total + buy ---------- */
.dc-fn-total { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 2px 0; font-size: 18px; font-weight: 500; line-height: 1.3; }
.dc-fn-total strong { font-size: 18px; font-weight: 700; }
.dc-fn-buy { height: 58px; font-size: 18px; letter-spacing: .01em; white-space: nowrap; }
.dc-fn-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--g600); white-space: nowrap; }
.dc-fn-secure svg { width: 14px; height: 14px; }
.dc-fn-error { color: var(--sale); font-size: 14px; font-weight: 600; text-align: center; }
.dc-fn-error:empty { display: none; }

/* ---------- Sections below the fold ---------- */
.dc-fn-sec { margin-top: 56px; }
.dc-fn-sec__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-fn-why__grid { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 768px) { .dc-fn-why__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dc-fn-why__card { padding: 20px; border: var(--card-border); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--card-shadow); }
.dc-fn-why__card h3 { font-size: 17px; font-weight: 800; white-space: nowrap; }
.dc-fn-why__card h3::before { content: ""; display: block; width: 32px; height: 4px; margin-bottom: 10px; border-radius: 2px; background: var(--gold); }
.dc-fn-why__card p { margin-top: 6px; color: var(--g700); line-height: 1.5; }

.dc-fn-promise {
	display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
	max-width: 820px; margin-left: auto; margin-right: auto; padding: 20px;
	border: 2px solid var(--gold-solid); border-radius: var(--r-lg); background: var(--white); color: var(--ink);
}
.dc-fn-promise__seal {
	display: flex; flex: 0 0 74px; align-items: center; justify-content: center; height: 74px; padding: 6px;
	border-radius: 50%; background: var(--black); color: var(--gold-solid);
	font-size: 11px; font-weight: 800; line-height: 1.1; text-align: center; text-transform: uppercase; letter-spacing: .03em;
}
.dc-fn-promise > div:last-child { flex: 1 1 240px; }
.dc-fn-promise__title { margin: 0 0 6px; font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-fn-promise p { margin: 0; line-height: 1.55; color: var(--g700); font-size: 15px; }

.dc-fn-how__steps { display: grid; gap: 14px; max-width: 980px; margin: 20px auto 0; padding: 0; list-style: none; counter-reset: fn; }
@media (min-width: 768px) { .dc-fn-how__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dc-fn-how__steps li { position: relative; display: grid; gap: 4px; padding: 18px 18px 18px 62px; border: var(--card-border); border-radius: var(--r-lg); counter-increment: fn; }
.dc-fn-how__steps li::before {
	content: counter(fn); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 32px; height: 32px;
	border-radius: 50%; background: var(--black); color: var(--white); font-weight: 800;
}
.dc-fn-how__steps strong { white-space: nowrap; }
.dc-fn-how__steps span { color: var(--g700); font-size: 14px; line-height: 1.45; }

.dc-fn-faq .dc-accordion { max-width: 860px; margin: 20px auto 0; }
.dc-fn-last { text-align: center; }
.dc-fn-last .dc-btn { margin-top: 16px; white-space: nowrap; }

/* ---------- Sticky bar on phones ---------- */
.dc-fn-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: var(--white); border-top: 1px solid var(--g200); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
	transform: translateY(110%); transition: transform .25s var(--ease);
}
.dc-fn-sticky.is-on { transform: none; }
.dc-fn-sticky__info { display: grid; min-width: 0; }
.dc-fn-sticky__name { font-size: 12px; color: var(--g600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-fn-sticky__info strong { font-size: 17px; white-space: nowrap; }
.dc-fn-sticky .dc-btn { flex: none; white-space: nowrap; }
@media (min-width: 900px) { .dc-fn-sticky { display: none; } .dc-fn { padding-bottom: 40px; } }

/* Small phones: keep every label on one line without cutting words. */
@media (max-width: 420px) {
	.dc-fn-step__label { font-size: 14px; }
	.dc-fn-step__note { font-size: 11px; }
	.dc-fn-bonus__name { font-size: 14px; }
	.dc-fn-sec__title { font-size: 21px; }
	.dc-fn-promise { padding: 16px; }
	.dc-fn-promise__title { font-size: 17px; }
}
@media (max-width: 359px) {
	.dc-fn-step__label, .dc-fn-bonus__name { font-size: 13px; }
	.dc-fn-promise__title { font-size: 16px; }
}

/* ---------- Step 2: choose or add (Nov 29 PM) ---------- */
.dc-fn-step__pick { margin-top: 6px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-fn-step__undo { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--link); font-size: 13px; font-weight: 600; text-decoration: underline; }
.dc-fn-card__badge {
	position: absolute; left: 6px; top: 6px; display: none; padding: 2px 8px; border-radius: var(--r-pill);
	background: var(--black); color: var(--white); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.dc-fn-card.is-pick .dc-fn-card__badge { display: block; }
.dc-fn-card.is-pick .dc-fn-card__img { border-color: var(--gold-solid); box-shadow: 0 0 0 2px var(--gold-solid) inset; }
.dc-fn-card__pick {
	height: 34px; border: 0; border-radius: var(--r-pill); background: var(--black); color: var(--white);
	font-size: 13px; font-weight: 700; white-space: nowrap;
}
.dc-fn-card__pick:disabled { background: var(--g100); color: var(--g600); cursor: default; }
.dc-fn-card__price { font-size: 12px; }
.dc-fn-zoom__acts { display: grid; gap: 8px; }
@media (max-width: 420px) {
	.dc-fn-step__head { display: grid; gap: 2px; }
	.dc-fn-step__note { font-size: 12px; }
	.dc-fn-card__pick, .dc-fn-card__add { font-size: 12px; }
}

/* ---------- Reviews: one row, 4 across on computers, swipe on phones ---------- */
.dc-fn-revs__sum { display: flex; justify-content: center; margin-top: 8px; }
.dc-fn-revs__wrap { position: relative; margin-top: 20px; }
.dc-fn-revs__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px;
	margin: 0; padding: 2px 2px 10px; list-style: none;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain;
}
@media (max-width: 1023px) { .dc-fn-revs__track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 599px) { .dc-fn-revs__track { grid-auto-columns: 86%; gap: 12px; } }
.dc-fn-rev { display: flex; flex-direction: column; gap: 10px; padding: 18px; scroll-snap-align: start; border: var(--card-border); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--card-shadow); }
.dc-fn-rev[hidden] { display: none; }
.dc-fn-rev__stars { color: var(--g300); font-size: 16px; letter-spacing: 2px; }
.dc-fn-rev__stars .is-on { color: var(--star); }
.dc-fn-rev__text { flex: 1; font-size: 14px; line-height: 1.55; color: var(--ink); }
.dc-fn-rev__who { display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; overflow: hidden; }
.dc-fn-rev__ver { display: inline-flex; align-items: center; gap: 3px; color: var(--ok); font-size: 12px; font-weight: 700; }
.dc-fn-rev__ver svg { width: 13px; height: 13px; }
.dc-fn-revs__wrap .dc-fn-more__btn { top: 45%; }

/* ---------- Distraction-free header + small footer (funnel pages only) ---------- */
.dc-header--funnel .dc-header__bar { grid-template-columns: 44px 1fr 44px; }
.dc-header--funnel .dc-burger { display: inline-flex; }
.dc-header--funnel .dc-logo { justify-self: center; cursor: default; }
@media (min-width: 1100px) {
	.dc-header--funnel .dc-header__bar { grid-template-columns: 44px 1fr 44px; gap: 8px; }
	.dc-header--funnel .dc-burger { display: inline-flex; }
	.dc-header--funnel .dc-logo { justify-self: center; }
}
.dc-footer--funnel { padding-bottom: 88px; }
@media (min-width: 900px) { .dc-footer--funnel { padding-bottom: 0; } }
.dc-fn-foot { display: grid; gap: 8px; justify-items: center; padding-top: 28px; padding-bottom: 28px; text-align: center; font-size: 13.5px; line-height: 1.6; color: #d1d1d6; }
.dc-fn-foot strong { color: var(--white); }
.dc-fn-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.dc-fn-foot__links a { color: var(--white); white-space: nowrap; }
.dc-fn-foot .dc-pay { justify-content: center; }

.dc-fn-saving { margin-top: -6px; text-align: right; font-size: 13px; font-weight: 700; color: var(--ok); white-space: nowrap; }
.dc-fn-saving[hidden] { display: none; }

/* ---------- Step 2 design tiles (Nov 30): one tap = switch design ---------- */
.dc-fn-tiles {
	display: grid; grid-auto-flow: column; grid-auto-columns: 84px; gap: 10px;
	margin: 0; padding: 4px 2px 8px; list-style: none;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain;
}
@media (max-width: 479px) { .dc-fn-tiles { grid-auto-columns: 74px; gap: 8px; } }
.dc-fn-tile { min-width: 0; scroll-snap-align: start; }
.dc-fn-tile[hidden] { display: none; }
.dc-fn-tile__btn { display: grid; gap: 4px; width: 100%; padding: 0; border: 0; background: none; text-align: center; cursor: pointer; }
.dc-fn-tile__img {
	display: block; aspect-ratio: 1; overflow: hidden; border: 1.5px solid var(--g200); border-radius: var(--r); background: var(--g50);
	transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.dc-fn-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.dc-fn-tile__name { font-size: 11px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--g700); }
.dc-fn-tile.is-pick .dc-fn-tile__img { border-color: var(--gold-solid); box-shadow: 0 0 0 2px var(--gold-solid); }
.dc-fn-tile.is-pick .dc-fn-tile__name { color: var(--ink); font-weight: 800; }
@media (hover: hover) { .dc-fn-tile__btn:hover .dc-fn-tile__img { border-color: var(--black); } }
.dc-fn-more .dc-fn-more__btn { top: 26px; }

/* ---------- Make It Two (same look as the Add-On Bonus) ---------- */
.dc-fn-two { padding: 14px; border: 2px dashed var(--gold-solid); border-radius: var(--r-lg); background: #fffaf0; }
.dc-fn-two[hidden] { display: none; }
.dc-fn-two__img { display: block; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--g200); border-radius: var(--r); background: var(--white); }
.dc-fn-two__img img { width: 100%; height: 100%; object-fit: cover; }
.dc-fn-two__change { padding: 0; border: 0; background: none; color: var(--link); font-size: 13px; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.dc-fn-two.is-on .dc-fn-bonus__yes { background: #dff3e6; }
.dc-fn-bonus[hidden] { display: none; }

/* "Change Design" picker */
.dc-fn-sheet .dc-fn-zoom__box { width: min(560px, 100%); max-height: 85vh; overflow-y: auto; }
.dc-fn-sheet__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 479px) { .dc-fn-sheet__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.dc-fn-step__label--box { display: block; margin: 4px 0 -6px; }
.dc-fn-step__label--box[hidden] { display: none; }
.dc-pdp__perks + .dc-fn-feats { margin-top: 16px; }
