/* ==========================================================================
   HERITAGE — commerce
   The Pair, dispatch estimates, the Discovery Set credit and the gift.
   Loaded after heritage.css by the heritage-commerce mu-plugin.
   ========================================================================== */

/* --- The Pair: two scent choices beneath the size buttons ------------- */

.pair-choice {
	border: 0;
	margin: 0 0 22px;
	padding: 0;
	min-width: 0;
}
.pair-choice__legend {
	font-family: var(--label);
	font-size: 10.5px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--ink-soft);
	padding: 0;
	margin-bottom: 12px;
}
.pair-choice__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.pair-choice__field { margin: 0; }
.pair-choice__field label {
	display: block;
	font-family: var(--label);
	font-size: 10px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--brass);
	margin-bottom: 6px;
}
.pair-choice select {
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
	padding: 14px 40px 14px 14px;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231e221e' stroke-width='1'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
	border: 1px solid var(--stone-dark);
	border-radius: 0;
	font-family: var(--display);
	font-size: 21px;
	line-height: 1.2;
	color: var(--ink);
	cursor: pointer;
	transition: border-color .3s, background-color .3s;
}
.pair-choice select:hover,
.pair-choice select:focus-visible { border-color: var(--green-800); outline: none; }
.pair-choice select:has(option:checked:not([value=""])) { border-color: var(--green-800); }
.pair-choice__note {
	margin: 14px 0 0;
	font-style: italic;
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink-soft);
}

@media (max-width: 420px) {
	.pair-choice__fields { grid-template-columns: 1fr; }
}

/* --- Dispatch and delivery estimate ----------------------------------- */

.delivery-estimate {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 10px;
	margin: -8px 0 12px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
}
.delivery-estimate__sep { color: var(--brass); }
.delivery-estimate--bag {
	justify-content: center;
	margin: 18px 0 0;
	font-size: 15px;
	font-style: italic;
	color: var(--ink-soft);
	text-align: center;
}
body .woocommerce-checkout #order_review table.shop_table tr.delivery-estimate-row td {
	border-bottom: 0;
	padding-top: 14px;
	font-size: 15px;
	font-style: italic;
	line-height: 1.6;
	color: var(--ink-soft);
	text-align: left;
}

/* --- Gift with purchase ----------------------------------------------- */

.gift-note {
	margin: -18px 0 0;
	text-align: center;
	font-style: italic;
	font-size: 16px;
	color: var(--ink-soft);
}
.gift-label {
	display: block;
	margin-top: 6px;
	font-family: var(--label);
	font-size: 10px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--brass);
}
#order_review .gift-label { display: inline; margin: 0 0 0 10px; }
.gift-price { font-style: italic; color: var(--ink-soft); }
.gift-quantity { display: inline-block; min-width: 76px; text-align: center; }

/* --- Discovery Set credit (thank-you page, account order view) -------- */

.discovery-credit {
	margin: 0 0 48px;
	padding: 32px clamp(24px, 4vw, 40px);
	background: var(--linen);
	text-align: center;
}
.discovery-credit .eyebrow { margin-bottom: 14px; }
.discovery-credit__code {
	margin: 0 0 8px;
	font-family: var(--display);
	font-size: clamp(26px, 3.4vw, 34px);
	letter-spacing: .14em;
	color: var(--green-800);
	overflow-wrap: anywhere;
}
.discovery-credit__text {
	max-width: 560px;
	margin: 0 auto 20px;
	color: var(--ink-soft);
}
.discovery-credit__small {
	margin: 0;
	font-style: italic;
	font-size: 15.5px;
	color: var(--ink-soft);
}
.gift-note a { color: var(--ink); border-bottom: 1px solid currentColor; font-style: normal; }
