/* Arabian Scents Toolkit: email sign-up form and exit offer popup.
   Uses the theme's colours and fonts when they are available. */

.asct-signup {
	margin: 0;
	position: relative;
}

.asct-signup .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.asct-signup__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.asct-signup__row input[type="email"] {
	flex: 1 1 240px;
	min-width: 0;
	min-height: 52px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid var(--asc-line-strong, rgba(212, 175, 95, .38));
	border-radius: 0;
	background: var(--asc-input-bg, rgba(255, 255, 255, .03));
	color: var(--asc-text, #f3ecdf);
	font: 400 16px/1.2 var(--asc-font-body, inherit);
	box-shadow: none;
}

.asct-signup__row input[type="email"]::placeholder {
	color: var(--asc-text-3, #93887a);
	opacity: 1;
}

.asct-signup__row input[type="email"]:focus {
	outline: 2px solid var(--asc-gold, #d4af5f);
	outline-offset: 2px;
}

.asct-signup__row button[type="submit"] {
	flex: 0 0 auto;
	min-height: 52px;
	padding: 0 30px;
	border: 0;
	border-radius: 0;
	background: var(--asc-gold-grad, linear-gradient(115deg, #8c6526 0%, #c99b4a 22%, #f6e3a6 48%, #d2a654 70%, #8c6526 100%));
	background-size: 220% 100%;
	color: var(--asc-on-gold, #1a1208);
	font: 500 11.5px/1 var(--asc-font-caps, inherit);
	letter-spacing: .24em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-position .6s ease;
}

.asct-signup__row button[type="submit"]:hover {
	background-position: 100% 0;
}

.asct-signup__row button[type="submit"]:disabled {
	opacity: .7;
	cursor: default;
}

.asct-signup__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.asct-signup__note {
	margin: 12px 0 0;
	color: var(--asc-text-3, #93887a);
	font-size: 12.5px;
	line-height: 1.5;
}

.asct-signup__msg {
	margin: 14px 0 0;
	color: var(--asc-gold-light, #f1d99a);
	font-size: 15px;
	line-height: 1.5;
}

.asct-signup__msg--error {
	color: #f0a898;
}

.asct-signup__msg[hidden] {
	display: none;
}

.asct-signup.is-done .asct-signup__row,
.asct-signup.is-done .asct-signup__note {
	display: none;
}

.asct-signup.is-done .asct-signup__msg {
	margin-top: 0;
	font-size: 17px;
}

/* ---- Exit offer popup -------------------------------------------------- */

.asct-offer[hidden],
.asct-offer [hidden] {
	display: none !important;
}

html.asct-offer-open {
	overflow: hidden;
}

.asct-offer {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.asct-offer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 4, 3, .78);
	opacity: 0;
	transition: opacity .3s ease;
}

.asct-offer__card {
	position: relative;
	width: 100%;
	max-width: 470px;
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 48px 38px 34px;
	border: 1px solid rgba(212, 175, 95, .42);
	background:
		radial-gradient(ellipse at 50% 0%, rgba(212, 175, 95, .16), transparent 62%),
		#100d0a;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
	color: #f3ecdf;
	text-align: center;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .3s ease, transform .35s ease;
	outline: none;
	/* The popup is always dark, also on pages that use the ivory palette. */
	--asc-text: #f3ecdf;
	--asc-text-3: #93887a;
	--asc-input-bg: rgba(255, 255, 255, .04);
	--asc-line-strong: rgba(212, 175, 95, .38);
	color-scheme: dark;
}

.asct-offer.is-open .asct-offer__backdrop {
	opacity: 1;
}

.asct-offer.is-open .asct-offer__card {
	opacity: 1;
	transform: none;
}

.asct-offer__x {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: #c8bdab;
	font: 300 30px/1 Arial, sans-serif;
	cursor: pointer;
}

.asct-offer__x:hover,
.asct-offer__x:focus-visible {
	color: #f1d99a;
}

.asct-offer__eyebrow {
	margin: 0 0 14px;
	color: var(--asc-gold, #d4af5f);
	font: 500 11px/1.4 var(--asc-font-caps, inherit);
	letter-spacing: .32em;
	text-transform: uppercase;
}

.asct-offer__title {
	margin: 0 0 14px;
	color: #f3ecdf;
	font: 500 clamp(32px, 7vw, 42px)/1.08 var(--asc-font-display, Georgia, serif);
	letter-spacing: 0;
	text-transform: none;
}

.asct-offer__text {
	margin: 0 0 24px;
	color: #c8bdab;
	font: 400 15.5px/1.6 var(--asc-font-body, inherit);
}

.asct-offer .asct-signup__row {
	flex-direction: column;
}

.asct-offer .asct-signup__row input[type="email"] {
	flex: 0 0 auto;
	width: 100%;
	text-align: center;
}

.asct-offer .asct-signup__row button[type="submit"],
.asct-offer__cta,
.asct-offer__copy {
	width: 100%;
	min-height: 54px;
	padding: 0 24px;
	border: 0;
	border-radius: 0;
	background: var(--asc-gold-grad, linear-gradient(115deg, #8c6526 0%, #c99b4a 22%, #f6e3a6 48%, #d2a654 70%, #8c6526 100%));
	background-size: 220% 100%;
	color: #1a1208;
	font: 500 11.5px/1 var(--asc-font-caps, inherit);
	letter-spacing: .24em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-position .6s ease;
}

.asct-offer .asct-signup__row button[type="submit"]:hover,
.asct-offer__cta:hover,
.asct-offer__copy:hover {
	background-position: 100% 0;
}

.asct-offer__cta {
	background: none;
	border: 1px solid rgba(212, 175, 95, .42);
	color: #f1d99a;
}

.asct-offer__cta:hover {
	border-color: #d4af5f;
}

.asct-offer__no {
	margin: 16px 0 0;
	padding: 8px 12px;
	border: 0;
	background: none;
	color: #93887a;
	font: 400 13px/1.3 var(--asc-font-body, inherit);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.asct-offer__no:hover,
.asct-offer__no:focus-visible {
	color: #c8bdab;
}

.asct-offer__code {
	margin: 4px 0 16px;
	padding: 18px 12px;
	border: 1px dashed rgba(212, 175, 95, .6);
	background: rgba(212, 175, 95, .06);
	color: #f6e3a6;
	font: 600 clamp(22px, 6vw, 28px)/1.1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	letter-spacing: .12em;
	user-select: all;
	word-break: break-all;
}

.asct-offer__copy {
	margin: 0 0 20px;
}

.asct-offer [data-asct-step="done"] .asct-offer__text,
.asct-offer [data-asct-step="used"] .asct-offer__text {
	font-size: 14.5px;
}

.asct-offer button:focus-visible {
	outline: 2px solid #f1d99a;
	outline-offset: 2px;
}

@media (max-width: 560px) {
	.asct-offer {
		align-items: flex-end;
		padding: 0;
	}

	.asct-offer__card {
		max-width: none;
		max-height: 92vh;
		padding: 44px 22px calc(22px + env(safe-area-inset-bottom, 0px));
		border-width: 1px 0 0;
		transform: translateY(40px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.asct-offer__backdrop,
	.asct-offer__card {
		transition: none;
	}
}

/* ---- Shipping and returns under "Add to bag" ---------------------------- */

.asct-facts {
	margin: 18px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--asc-line, rgba(212, 175, 95, .17));
	list-style: none;
}

.asct-facts li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 20px;
	color: var(--asc-text-2, #c8bdab);
	font-size: 14px;
	line-height: 1.5;
}

.asct-facts li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .55em;
	width: 6px;
	height: 6px;
	background: var(--asc-gold, #d4af5f);
	transform: rotate(45deg);
}

/* ---- Free shipping progress in the bag ---------------------------------- */

.asct-shipbar {
	margin: 0 0 22px;
	padding: 16px 18px;
	border: 1px solid var(--asc-line-strong, rgba(212, 175, 95, .38));
	background: rgba(212, 175, 95, .05);
}

.asct-shipbar p {
	margin: 0 0 10px;
	color: var(--asc-text, #f3ecdf);
	font-size: 15px;
}

.asct-shipbar__track {
	height: 4px;
	background: var(--asc-line, rgba(212, 175, 95, .17));
}

.asct-shipbar__track span {
	display: block;
	height: 100%;
	background: var(--asc-gold-grad, #d4af5f);
}

/* ---- F.A.Q. -------------------------------------------------------------- */

.asct-faq {
	max-width: 860px;
	margin: 0 auto;
}

.asct-faq__item {
	border-bottom: 1px solid var(--asc-line, rgba(212, 175, 95, .17));
}

.asct-faq__item summary {
	position: relative;
	padding: 22px 44px 22px 0;
	color: var(--asc-text, #f3ecdf);
	font: 500 clamp(19px, 2.4vw, 23px)/1.3 var(--asc-font-display, Georgia, serif);
	cursor: pointer;
	list-style: none;
}

.asct-faq__item summary::-webkit-details-marker {
	display: none;
}

.asct-faq__item summary::after {
	content: "+";
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--asc-gold, #d4af5f);
	font: 300 28px/1 Arial, sans-serif;
}

.asct-faq__item[open] summary::after {
	content: "\2212";
}

.asct-faq__item summary:focus-visible {
	outline: 2px solid var(--asc-gold, #d4af5f);
	outline-offset: 4px;
}

.asct-faq__answer {
	padding: 0 44px 22px 0;
	color: var(--asc-text-2, #c8bdab);
	font-size: 16px;
	line-height: 1.7;
}

.asct-faq__answer p {
	margin: 0 0 12px;
}
