/*
 * BE Scent Finder Quiz — ported from reference site.css: base `.eyebrow`, `.q-prog`, `.q-title`,
 * `.answers`, `.ans`, `.q-foot`, `.link`, `.btn`, `.match`, `.match .th`, `.match .pct`, `.add`
 * (+ the 520px breakpoint), v11 / v29 (studio gradient behind the thumbnail, contained bottle
 * with a soft drop shadow). Body text values (15px / 1.7) come from the reference `body`.
 * Style controls write the --be-qz-* properties. Buttons carry `.be-site.be-site` so the
 * Elementor kit's button and link styles do not win.
 * The fade between screens is new (the reference swaps the markup instantly); it can be
 * switched off in the Animation section and never runs with reduced motion.
 */

.elementor-widget-be-scent-quiz {
	--be-qz-prog-h: 3px;
	--be-qz-prog-gap: 6px;
	--be-qz-prog-space: 26px;
	--be-qz-eyebrow-space: 12px;
	--be-qz-title-space: 22px;
	--be-qz-ans-gap: 10px;
	--be-qz-ans-pad: 16px 20px;
	--be-qz-ans-bg: #fff;
	--be-qz-foot-space: 22px;
	--be-qz-match-gap: 10px;
	--be-qz-match-bg: #fff;
	--be-qz-thumb: 80px;
	--be-qz-set-hover: #fff;
	--be-qz-dur: .35s;
	min-width: 0;
}

.elementor-widget-be-scent-quiz .be-scent-quiz {
	min-width: 0;
	font-family: var(--f);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
	color: var(--text);
}

.elementor-widget-be-scent-quiz [hidden] { display: none !important; }

.elementor-widget-be-scent-quiz .be-qz-data { display: none; }

/* progress */
.elementor-widget-be-scent-quiz .q-prog {
	display: flex;
	gap: var(--be-qz-prog-gap);
	margin-bottom: var(--be-qz-prog-space);
}

.elementor-widget-be-scent-quiz .q-prog i {
	flex: 1;
	height: var(--be-qz-prog-h);
	background: var(--be-qz-prog, var(--line));
	transition: background-color .3s;
}

.elementor-widget-be-scent-quiz .q-prog i.on { background: var(--be-qz-prog-on, var(--text)); }

/* counter / small heading */
.elementor-widget-be-scent-quiz .be-qz-eyebrow {
	margin: 0 0 var(--be-qz-eyebrow-space);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.7;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--be-qz-eyebrow, var(--soft));
}

/* title */
.be-site .elementor-widget-be-scent-quiz .q-title {
	margin: 0 0 var(--be-qz-title-space);
	font-family: var(--f);
	font-size: clamp(22px, 2.2vw, 30px);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.01em;
	text-transform: none;
	text-wrap: balance;
	color: var(--be-qz-title, var(--text));
}

/* answers */
.elementor-widget-be-scent-quiz .answers {
	display: flex;
	flex-direction: column;
	gap: var(--be-qz-ans-gap);
}

.be-site.be-site .elementor-widget-be-scent-quiz .ans {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: var(--be-qz-ans-pad);
	text-align: left;
	background: var(--be-qz-ans-bg);
	border: 1px solid var(--be-qz-ans-line, var(--line));
	border-radius: 0;
	box-shadow: none;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
	letter-spacing: normal;
	text-transform: none;
	color: var(--be-qz-ans-color, var(--text));
	cursor: pointer;
	transition: border-color .2s;
}

.be-site.be-site .elementor-widget-be-scent-quiz .ans:hover {
	background: var(--be-qz-ans-bg);
	border-color: var(--be-qz-ans-hover, var(--text));
	color: var(--be-qz-ans-color, var(--text));
}

.be-site.be-site .elementor-widget-be-scent-quiz .ans:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 3px;
}

.elementor-widget-be-scent-quiz .be-qz-ans-text { min-width: 0; }

.be-site .elementor-widget-be-scent-quiz .ans b {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.7;
}

.be-site .elementor-widget-be-scent-quiz .ans small {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--be-qz-ans-sub, var(--muted));
}

.elementor-widget-be-scent-quiz .ans svg {
	display: block;
	color: var(--be-qz-arrow, currentColor);
}

/* footer: Back, Start over, decant set */
.elementor-widget-be-scent-quiz .q-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: var(--be-qz-foot-space);
}

.be-site.be-site .elementor-widget-be-scent-quiz .q-foot .link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.7;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--be-qz-link, var(--soft));
	cursor: pointer;
	transition: color .2s, gap .2s;
}

.be-site.be-site .elementor-widget-be-scent-quiz .q-foot .link:hover {
	background: none;
	color: var(--be-qz-link-hover, var(--text));
	gap: 12px;
}

.be-site.be-site .elementor-widget-be-scent-quiz .q-foot .link:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 3px;
}

.be-site.be-site .elementor-widget-be-scent-quiz .q-foot .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 34px;
	background: var(--be-qz-set-bg, var(--ink2));
	color: var(--be-qz-set-color, var(--bone));
	border: 1.5px solid var(--be-qz-set-bg, var(--ink2));
	border-radius: 0;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.7;
	letter-spacing: .18em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
}

.be-site.be-site .elementor-widget-be-scent-quiz .q-foot .btn:hover,
.be-site.be-site .elementor-widget-be-scent-quiz .q-foot .btn:focus-visible {
	background: var(--be-qz-set-hover-bg, var(--amber));
	border-color: var(--be-qz-set-hover-bg, var(--amber));
	color: var(--be-qz-set-hover);
}

.be-site.be-site .elementor-widget-be-scent-quiz .q-foot .btn:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 3px;
}

/* matches */
.elementor-widget-be-scent-quiz .match {
	display: grid;
	grid-template-columns: var(--be-qz-thumb) minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	margin-top: var(--be-qz-match-gap);
	padding: 14px;
	background: var(--be-qz-match-bg);
	border: 1px solid var(--be-qz-match-line, var(--line));
}

.elementor-widget-be-scent-quiz .match.be-qz-noimg { grid-template-columns: minmax(0, 1fr) auto; }

.elementor-widget-be-scent-quiz .match .th {
	display: block;
	width: var(--be-qz-thumb);
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--be-qz-thumb-bg, radial-gradient(85% 75% at 50% 32%, #FCF8F1 0%, #F1E7D9 55%, #E2D3BF 100%));
	box-shadow: inset 0 0 0 1px rgba(120, 90, 60, .10);
}

.elementor-widget-be-scent-quiz .match .th img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	padding: 10%;
	filter: drop-shadow(0 4px 5px rgba(60, 38, 20, .22));
}

.elementor-widget-be-scent-quiz .be-qz-info { min-width: 0; }

.elementor-widget-be-scent-quiz .match .pct {
	margin: 0;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.7;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--be-qz-pct, var(--amber));
}

.be-site .elementor-widget-be-scent-quiz .match h4 {
	margin: 0;
	font-family: var(--f);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.7;
	letter-spacing: -.01em;
	text-transform: none;
	text-wrap: balance;
	color: var(--be-qz-name, var(--text));
}

.be-site.be-site .elementor-widget-be-scent-quiz .match h4 a {
	color: inherit;
	text-decoration: none;
	transition: color .2s;
}

.be-site.be-site .elementor-widget-be-scent-quiz .match h4 a:hover { color: var(--be-qz-name-hover, var(--amber)); }

.elementor-widget-be-scent-quiz .match p.d {
	margin: 0;
	font-size: 13px;
	line-height: 1.7;
	color: var(--be-qz-notes, var(--muted));
}

.be-site.be-site .elementor-widget-be-scent-quiz .match .add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin: 0;
	padding: 0 16px;
	background: transparent;
	border: 1px solid var(--be-qz-add, var(--text));
	border-radius: 0;
	box-shadow: none;
	font-family: inherit;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.7;
	letter-spacing: .14em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--be-qz-add, var(--text));
	cursor: pointer;
	transition: background .2s, color .2s;
}

.be-site.be-site .elementor-widget-be-scent-quiz .match .add:hover {
	background: var(--be-qz-add-hover-bg, var(--ink2));
	color: var(--be-qz-add-hover, var(--bone));
}

.be-site.be-site .elementor-widget-be-scent-quiz .match .add:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 3px;
}

.be-site.be-site .elementor-widget-be-scent-quiz .match .add[aria-busy="true"] { opacity: .6; cursor: progress; }
.be-site.be-site .elementor-widget-be-scent-quiz .match .add[disabled] { opacity: .4; cursor: not-allowed; }

/* WooCommerce's add-to-cart script inserts a "View cart" link after the button; the drawer opens instead. */
.elementor-widget-be-scent-quiz .match .added_to_cart { display: none; }

.elementor-widget-be-scent-quiz .match a:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 3px;
}

@media (max-width: 520px) {
	.elementor-widget-be-scent-quiz .match { grid-template-columns: min(var(--be-qz-thumb), 64px) minmax(0, 1fr); }
	.elementor-widget-be-scent-quiz .match.be-qz-noimg { grid-template-columns: minmax(0, 1fr); }
	.elementor-widget-be-scent-quiz .match .th { width: min(var(--be-qz-thumb), 64px); }
	.be-site.be-site .elementor-widget-be-scent-quiz .match .add { grid-column: 1 / -1; }
}

/* screen change */
.elementor-widget-be-scent-quiz .be-qz-in { animation: be-qz-in var(--be-qz-dur) var(--ease-out, cubic-bezier(.25, 1, .5, 1)) both; }

@keyframes be-qz-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.elementor-widget-be-scent-quiz .be-qz-empty {
	padding: 24px;
	border: 1px dashed var(--line);
	color: var(--muted);
	font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
	.elementor-widget-be-scent-quiz .be-qz-in { animation: none; }
	.elementor-widget-be-scent-quiz .q-prog i,
	.be-site.be-site .elementor-widget-be-scent-quiz .ans,
	.be-site.be-site .elementor-widget-be-scent-quiz .q-foot .link,
	.be-site.be-site .elementor-widget-be-scent-quiz .q-foot .btn,
	.be-site.be-site .elementor-widget-be-scent-quiz .match .add { transition: none; }
}
