/* =========================================================================
   DecantQ popup (.dq-pop). Tokens: tokens.css. Buttons and vials: catalog.css.
   ====================================================================== */

.dq-pop {
	--dq-ink: #2b211b;
	--dq-muted: #6e6258;
	--dq-line: #e6e0da;
	--dq-panel: #f3f1ee;
	--dq-amber: #93461a;
	--dq-amber-hover: #7c3a15;
	--dq-amber-tint: #f6ece4;
	--dq-gold: #c89c4c;
	--dq-gold-hi: #e8cd93;
	--dq-gold-lo: #9c7630;
	--dq-glass-top: #f0e2d2;
	--dq-glass-bottom: #d9bb98;
	--dq-vial-top: initial;
	--dq-liquid: 168, 92, 32;
	--dq-display: var(--e-global-typography-primary-font-family, Georgia), serif;
	position: fixed;
	inset: 0;
	z-index: 100003;
	color: var(--dq-ink);
	font-size: 15px;
	line-height: 1.55;
}
.dq-pop[hidden] {
	display: none;
}
.dq-pop *,
.dq-pop *::before,
.dq-pop *::after {
	box-sizing: border-box;
}
.dq-pop.dq-pop :where(p, a, span, button, input, label, h2) {
	text-transform: none;
	letter-spacing: normal;
	font-family: inherit;
}
.dq-pop .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.dq-pop__scrim {
	position: absolute;
	inset: 0;
	background: rgba(43, 33, 27, 0.5);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.dq-pop.is-open .dq-pop__scrim {
	opacity: 1;
}

.dq-pop__panel {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(100%, 460px);
	max-height: 92vh;
	margin-inline: auto;
	padding: 0 0 calc(26px + env(safe-area-inset-bottom));
	overflow: hidden auto;
	border-radius: 24px 24px 0 0;
	background: #fff;
	box-shadow: 0 -20px 60px rgba(43, 33, 27, 0.25);
	transform: translateY(16px);
	opacity: 0;
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
}
.dq-pop.is-open .dq-pop__panel {
	opacity: 1;
	transform: translateY(0);
}
@media (min-width: 720px) {
	.dq-pop__panel {
		top: 50%;
		bottom: auto;
		transform: translateY(calc(-50% + 16px));
		border-radius: 26px;
		padding-bottom: 30px;
	}
	.dq-pop.is-open .dq-pop__panel {
		transform: translateY(-50%);
	}
}


.dq-pop.dq-pop .dq-pop__close {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--dq-ink);
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.dq-pop.dq-pop .dq-pop__close:hover {
	background: var(--dq-panel);
}

/* The vials, as the art instead of a stock photo */
.dq-pop__art {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 16px;
	height: 190px;
	padding-bottom: 22px;
	background:
		radial-gradient(60% 65% at 50% 100%, rgba(200, 156, 76, 0.3), rgba(200, 156, 76, 0) 72%),
		var(--dq-panel);
}

.dq-pop__body,
.dq-pop__done {
	padding: 26px clamp(20px, 5vw, 34px) 0;
	text-align: center;
}
.dq-pop.dq-pop .dq-pop__eyebrow {
	margin: 0 0 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--dq-amber);
}
.dq-pop.dq-pop .dq-pop__title {
	margin: 0 0 10px;
	font-family: var(--dq-display);
	font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem);
	font-weight: 500;
	line-height: 1.15;
	color: var(--dq-ink);
	text-wrap: balance;
}
.dq-pop.dq-pop .dq-pop__text {
	margin: 0 auto;
	max-width: 38ch;
	font-size: 15px;
	line-height: 1.6;
	color: var(--dq-muted);
}

.dq-pop__form {
	display: grid;
	gap: 10px;
	margin: 20px 0 0;
}
.dq-pop.dq-pop .dq-pop__form input[type="email"] {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: 1px solid var(--dq-line);
	border-radius: 12px;
	background: #fff;
	font-family: inherit;
	font-size: 15.5px;
	color: var(--dq-ink);
	text-align: center;
}
.dq-pop.dq-pop .dq-pop__form input[type="email"]:focus {
	border-color: var(--dq-ink);
	outline: none;
	box-shadow: 0 0 0 3px rgba(147, 70, 26, 0.14);
}
.dq-pop__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.dq-pop.dq-pop .dq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 52px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-size: 15.5px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.dq-pop.dq-pop .dq-btn--primary {
	background: var(--dq-amber);
	color: #fff;
}
.dq-pop.dq-pop .dq-btn--primary:hover {
	background: var(--dq-amber-hover);
}
.dq-pop.dq-pop .dq-btn--primary:disabled {
	opacity: 0.6;
	cursor: default;
}
.dq-pop.dq-pop .dq-btn--ghost {
	border-color: var(--dq-line);
	background: #fff;
	color: var(--dq-ink);
}
.dq-pop :is(.dq-btn, .dq-pop__close, .dq-pop__wa, input):focus-visible {
	outline: 2px solid var(--dq-amber);
	outline-offset: 2px;
}
.dq-pop.dq-pop .dq-pop__error {
	margin: 2px 0 0;
	font-size: 13.5px;
	color: #a4321d;
}

.dq-pop.dq-pop .dq-pop__wa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--dq-ink);
	text-decoration: underline;
	text-underline-offset: 4px;
}
.dq-pop .dq-pop__wa .dq-icon {
	width: 18px;
	height: 18px;
	color: var(--dq-amber);
}
.dq-pop.dq-pop .dq-pop__small {
	margin: 16px 0 0;
	font-size: 12.5px;
	color: var(--dq-muted);
}

.dq-pop__tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--dq-amber-tint);
	color: var(--dq-amber);
}
.dq-pop.dq-pop .dq-pop__done-text {
	margin: 0 auto 20px;
	max-width: 34ch;
	font-family: var(--dq-display);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--dq-ink);
}

/* Vials */
.dq-pop .dq-hv {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	width: calc(var(--w) + 8px);
}
.dq-pop .dq-hv__cap {
	width: calc(var(--w) - 2px);
	height: calc(var(--h) * 0.42);
	border-radius: 3px 3px 2px 2px;
	background: linear-gradient(90deg, var(--dq-gold-lo), var(--dq-gold-hi) 28%, var(--dq-gold) 52%, var(--dq-gold-lo));
}
.dq-pop .dq-hv__collar {
	width: calc(var(--w) + 4px);
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--dq-gold-lo), var(--dq-gold-hi) 32%, var(--dq-gold) 58%, var(--dq-gold-lo));
}
.dq-pop .dq-hv__body {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--w);
	height: var(--h);
	overflow: hidden;
	border-radius: 3px 3px 5px 5px;
	background: linear-gradient(180deg, var(--dq-glass-top), var(--dq-glass-bottom));
	box-shadow: inset 0 0 0 1px rgba(120, 60, 20, 0.22);
}
.dq-pop .dq-hv__liquid {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 78%;
	background: linear-gradient(180deg, rgba(var(--dq-liquid), 0.38), rgba(var(--dq-liquid), 0.8));
}
.dq-pop .dq-hv__label {
	position: relative;
	z-index: 1;
	width: 78%;
	padding: 2px 0;
	border-radius: 2px;
	background: rgba(255, 252, 247, 0.92);
	font-size: 9px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--dq-ink);
	text-align: center;
}

html.dq-pop-open,
html.dq-pop-open body {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.dq-pop * {
		transition: none !important;
	}
}

/* =========================================================================
   v4.9: welcome offer. The offer comes first: a large gold percent on a dark band (phones: on top; computers:
   a column beside the form), then the email, the consent box, the button. The code, once given, sits in a gold
   dashed voucher with a copy button.
   ====================================================================== */
.dq-pop .dq-pop__art {
	display: none;
}
.dq-pop.dq-pop .dq-pop__offer {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto auto;
	align-items: end;
	column-gap: 18px;
	min-height: 150px;
	padding: 26px 26px 22px;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 85% 100%, rgba(200, 156, 76, 0.28), transparent 60%),
		linear-gradient(160deg, #2b211b 0%, #1c1512 100%);
	color: #f3e6d4;
}
.dq-pop.dq-pop .dq-pop__gift {
	grid-column: 1;
	font-size: 13px;
	font-weight: 700;
	color: #e8cd93;
}
.dq-pop.dq-pop .dq-pop__pct {
	grid-column: 1;
	font-family: var(--dq-display, Georgia), serif;
	font-size: clamp(3.6rem, 12vw, 4.6rem);
	font-weight: 600;
	line-height: 0.95;
	background: linear-gradient(180deg, #f3dfae 0%, #c89c4c 70%, #9c7630 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.dq-pop.dq-pop .dq-pop__pct-label {
	grid-column: 1;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 600;
	color: rgba(243, 230, 212, 0.85);
}
.dq-pop .dq-pop__vials {
	grid-column: 2;
	grid-row: 1 / span 3;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 10px;
	align-self: end;
	opacity: 0.95;
}
.dq-pop.dq-pop .dq-pop__body {
	padding: 22px 24px 4px;
}
.dq-pop.dq-pop .dq-pop__title {
	margin: 0 0 8px;
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
	line-height: 1.25;
	text-align: start;
}
.dq-pop.dq-pop .dq-pop__text {
	max-width: none;
	margin: 0 0 16px;
	font-size: 14.5px;
	line-height: 1.6;
	text-align: start;
	color: var(--dq-muted, #6e6258);
}
.dq-pop.dq-pop .dq-pop__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.dq-pop.dq-pop .dq-pop__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--dq-ink, #2b211b);
	cursor: pointer;
}
.dq-pop.dq-pop .dq-pop__consent input[type="checkbox"] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--dq-amber, #93461a);
	cursor: pointer;
}
.dq-pop.dq-pop .dq-pop__submit {
	min-height: 52px;
	font-size: 16px;
}
.dq-pop.dq-pop .dq-pop__small {
	margin: 12px 0 0;
	font-size: 12.5px;
	text-align: center;
	color: var(--dq-muted, #6e6258);
}
.dq-pop.dq-pop .dq-pop__error {
	margin: 0;
	font-size: 13.5px;
	font-weight: 600;
	color: #a1301f;
}
/* the voucher */
.dq-pop.dq-pop .dq-pop__done {
	padding: 24px 24px 6px;
	text-align: center;
}
.dq-pop.dq-pop .dq-pop__done-title {
	margin: 0 0 14px;
	font-family: var(--dq-display, Georgia), serif;
	font-size: 1.45rem;
	color: var(--dq-ink, #2b211b);
}
.dq-pop.dq-pop .dq-pop__code {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
	padding: 12px 12px 12px 18px;
	border: 2px dashed #c89c4c;
	border-radius: 14px;
	background: #fbf6ec;
	direction: ltr;
}
.dq-pop.dq-pop .dq-pop__code-value {
	padding: 0;
	background: none;
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #6b4a14;
}
.dq-pop.dq-pop .dq-pop__copy {
	flex: none;
	min-height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 10px;
	background: var(--dq-ink, #2b211b);
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
}
.dq-pop.dq-pop .dq-pop__done-text {
	margin: 0 0 4px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--dq-ink, #2b211b);
}
.dq-pop.dq-pop .dq-pop__valid {
	margin: 0 0 18px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--dq-muted, #6e6258);
}
.dq-pop.dq-pop .dq-pop__shop {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	text-decoration: none;
}
.dq-pop.dq-pop .dq-pop__close {
	z-index: 3;
	background: rgba(255, 255, 255, 0.92);
}

/* computers: offer column + form column */
@media (min-width: 720px) {
	.dq-pop.dq-pop .dq-pop__panel {
		display: grid;
		grid-template-columns: 290px minmax(0, 1fr);
		width: min(92vw, 780px);
		padding-bottom: 0;
	}
	.dq-pop.dq-pop .dq-pop__offer {
		grid-row: 1 / span 2;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto 1fr;
		align-items: start;
		align-content: start;
		min-height: 440px;
		padding: 36px 30px 30px;
	}
	.dq-pop.dq-pop .dq-pop__gift {
		margin-bottom: 18px;
	}
	.dq-pop.dq-pop .dq-pop__pct {
		font-size: 5.6rem;
	}
	.dq-pop .dq-pop__vials {
		grid-column: 1;
		grid-row: 4;
		justify-content: flex-start;
		margin-top: 26px;
	}
	.dq-pop.dq-pop .dq-pop__body,
	.dq-pop.dq-pop .dq-pop__done {
		grid-column: 2;
		align-self: center;
		padding: 40px 36px 34px;
	}
	.dq-pop.dq-pop .dq-pop__done {
		text-align: start;
	}
}
@media (max-width: 719px) {
	/* phones: the percent carries the band; the vials would sit under the close button */
	.dq-pop .dq-pop__vials {
		display: none;
	}
	.dq-pop.dq-pop .dq-pop__offer {
		min-height: 0;
		padding: 22px 24px 20px;
	}
}
