/*
 * DS-geo display (DESIGN v3.5 §4.4; approved mockup picks A, A, A).
 *
 * The inline reservation CSS (DS_Geo_Frontend::RESERVE_CSS) holds the space;
 * these rows must match its heights exactly: 17 px (1 + 16) everywhere, 21 px
 * (3 + 18) on the product page. A hidden label keeps its row (visibility).
 * Muted text is #666 on white: 5.74:1.
 */

/* ---------- shields against DS-theme's global span and button rules ---------- */

/* The theme sets every span to 11 px / 1.5 px letter-spacing, and every button to 40 px tall, uppercase, padded. */
.ds-fx span,
.ds-fx-note span,
.ds-fx-cur span,
.ds-fx-sheet span {
	font-size: inherit;
	letter-spacing: inherit;
}

.ds-fx button,
.ds-fx-note button,
.ds-fx-cur button,
.ds-fx-sheet button {
	height: auto;
	min-height: 0;
	text-transform: none;
	transition: none;
}

/* ---------- the label ---------- */

/* DS-page's sticky cart total styles `#ds-cart-total > span` at 18 px / 600: the label stays quiet there. */
#ds-cart-total > .ds-fx {
	font-size: 11px;
	font-weight: 400;
	line-height: 16px;
}

.ds-fx {
	display: none;
	box-sizing: border-box;
	height: 17px;
	margin: 0;
	padding: 1px 0 0;
	overflow: hidden;
	font: 400 11px/16px Quicksand, quicksand, system-ui, sans-serif;
	letter-spacing: 1px;
	color: #666;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
	text-overflow: ellipsis;
}

html.ds-fx-on .ds-fx {
	display: block;
}

.ds-fx.is-empty,
.ds-fx.is-covered {
	visibility: hidden;
}

.ds-fx__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Product page: a centred 12 px row with the ⓘ (21 px), inheriting the price's centring. */
.ds-fx--pdp {
	height: 21px;
	padding-top: 3px;
	overflow: visible;
	font-size: 12px;
	line-height: 18px;
	letter-spacing: 0.8px;
}

.ds-fx .ds-fx__i {
	position: relative;
	display: inline-grid;
	place-items: center;
	box-sizing: border-box;
	width: 15px;
	height: 15px;
	margin: 0 0 0 6px;
	padding: 0;
	vertical-align: text-bottom;
	border: 1px solid #999;
	border-radius: 50%;
	background: none;
	font: 600 9px/1 Quicksand, quicksand, system-ui, sans-serif;
	letter-spacing: 0;
	color: #666;
	text-transform: none;
	cursor: pointer;
}

/* A 45 px target without growing the 18 px row. */
.ds-fx .ds-fx__i::before {
	content: "";
	position: absolute;
	inset: -15px;
}

.ds-fx__i:focus-visible,
.ds-fx-note__rm:focus-visible,
.ds-fx-cur__change:focus-visible,
.ds-fx-sheet__done:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

/* ---------- the ⓘ note ---------- */

.ds-fx-note {
	position: relative;
	margin: 10px 24px 0;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #000;
	font: 400 11.5px/1.55 Quicksand, quicksand, system-ui, sans-serif;
	letter-spacing: 0.3px;
	color: #333;
	text-align: left;
	text-transform: none;
}

.ds-fx-note::before {
	content: "";
	position: absolute;
	top: -6px;
	left: var(--ds-fx-arrow, 50%);
	width: 10px;
	height: 10px;
	background: #fff;
	border-left: 1px solid #000;
	border-top: 1px solid #000;
	transform: rotate(45deg);
}

.ds-fx-note .ds-fx-note__rm {
	display: block;
	margin: 6px 0 0;
	padding: 0;
	border: 0;
	background: none;
	font: 400 10.5px/1.6 Quicksand, quicksand, system-ui, sans-serif;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 2px;
	color: #000;
	cursor: pointer;
}

/* ---------- the footer switch (dark footer) ---------- */

.ds-fx-cur {
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	text-align: center;
	gap: 4px 8px;
	box-sizing: border-box;
	width: 90%;
	margin: 14px auto 0;
	padding: 14px 0 4px;
	border-top: 1px solid #3a3a3a;
	font: 400 11px/1.4 Quicksand, quicksand, system-ui, sans-serif;
	letter-spacing: 1px;
	color: #d3d3d3;
}

.ds-fx-cur__on {
	display: none;
}

html.ds-fx-on .ds-fx-cur__on {
	display: inline;
}

html.ds-fx-on .ds-fx-cur__off {
	display: none;
}

.ds-fx-cur .ds-fx-cur__change {
	min-height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	letter-spacing: inherit;
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* ---------- "Show prices in" ---------- */

.ds-fx-sheet {
	box-sizing: border-box;
	position: fixed;
	inset: auto 0 0;
	width: 100%;
	max-width: none;
	max-height: 90vh;
	margin: 0;
	padding: 12px 24px calc(28px + env(safe-area-inset-bottom, 0px));
	border: 0;
	background: #fff;
	color: #333;
	overflow-y: auto;
}

.ds-fx-sheet:not([open]) {
	display: none;
}

.ds-fx-sheet::backdrop {
	background: rgba(0, 0, 0, 0.38);
}

@media (min-width: 768px) {
	.ds-fx-sheet {
		inset: 50% auto auto 50%;
		width: 420px;
		padding: 28px 28px 28px;
		transform: translate(-50%, -50%);
	}

	.ds-fx-sheet__grab {
		display: none;
	}
}

.ds-fx-sheet__form {
	margin: 0;
}

.ds-fx-sheet__grab {
	display: block;
	width: 36px;
	height: 4px;
	margin: 0 auto 18px;
	border-radius: 2px;
	background: #d6d6d6;
}

.ds-fx-sheet__title {
	margin: 0 0 6px;
	font: 300 18px/1.3 "Tiempos Headline", Georgia, serif;
	letter-spacing: 1px;
	color: #000;
	text-transform: none;
}

.ds-fx-sheet__copy {
	margin: 0 0 16px;
	font: 400 11.5px/1.6 Quicksand, quicksand, system-ui, sans-serif;
	letter-spacing: 0.4px;
	color: #666;
}

.ds-fx-sheet__choices {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.ds-fx-choice {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 10px;
	padding: 15px 16px;
	border: 1px solid #e0e0e0;
	font: 500 12px/1.3 Quicksand, quicksand, system-ui, sans-serif;
	letter-spacing: 0.6px;
	color: #000;
	cursor: pointer;
}

.ds-fx-choice input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.ds-fx-choice__dot {
	box-sizing: border-box;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	border: 1px solid #999;
	border-radius: 50%;
}

.ds-fx-choice__text small {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.3px;
	color: #666;
}

.ds-fx-choice:has(input:checked) {
	border-color: #000;
	background: #fafafa;
}

.ds-fx-choice input:checked + .ds-fx-choice__dot {
	border: 5px solid #000;
}

.ds-fx-choice:has(input:focus-visible) {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.ds-fx-sheet .ds-fx-sheet__done {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 44px;
	margin: 16px 0 0;
	padding: 0;
	border: 0;
	background: #000;
	color: #fff;
	font: 400 10px/1 Quicksand, quicksand, system-ui, sans-serif;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	.ds-fx-sheet,
	.ds-fx-note {
		animation: none !important;
		transition: none !important;
	}
}
