/* Guestimate request form. Inherits the theme's fonts; colours via custom properties. */

.gst-form {
	--gst-accent: var(--gst-accent-base, #0e6a5e);
	--gst-accent-text: var(--gst-accent-text-base, var(--gst-accent));
	--gst-radius: 10px;
	--gst-surface: #ffffff;
	--gst-ink: #1c2528;
	--gst-muted: #5a6668;
	--gst-line: #d9dfdd;
	--gst-field: #ffffff;
	--gst-accent-ink: var(--gst-accent-ink-base, #ffffff);
	--gst-accent-soft: color-mix(in srgb, var(--gst-accent) 10%, transparent);
	--gst-danger: #b3261e;
	--gst-gap: 24px;
	container-type: inline-size;
	color: var(--gst-ink);
	font: inherit;
	line-height: 1.55;
	/* Full width even inside flex layouts (Bricks, block themes): container queries give the form no width of its own,
	   so a parent that shrinks to its content would collapse it. The intrinsic size tells such parents how wide it wants to be. */
	width: 100%;
	max-width: 1120px;
	contain-intrinsic-inline-size: 1120px;
	margin-inline: auto;
}
/* Set by form.js when the form touches the screen edge (a section without side padding). */
.gst-form.gst-edge {
	box-sizing: border-box;
	padding-inline: 16px;
}
/* The Bricks element wrapper sits in flex containers that align items to the start. */
.brxe-guestimate-form {
	width: 100%;
}
.gst-form.gst-style-warm {
	--gst-surface: #fffaf2;
	--gst-ink: #2a2118;
	--gst-muted: #6e6152;
	--gst-line: #e7dccb;
	--gst-field: #fffdf8;
}
.gst-form.gst-style-dark {
	--gst-surface: #1b2224;
	--gst-ink: #e9eeec;
	--gst-muted: #a3b0ae;
	--gst-line: #33403f;
	--gst-field: #151b1c;
	--gst-accent-soft: color-mix(in srgb, var(--gst-accent) 22%, transparent);
	--gst-danger: #ff8a80;
	/* The dark style brings its own ground, so it reads well on any page. */
	background: #121819;
	padding: clamp(16px, 3vw, 40px);
	border-radius: var(--gst-radius);
	--gst-accent: color-mix(in srgb, var(--gst-accent-base, #0e6a5e) 55%, #ffffff);
	--gst-accent-ink: #0d1213;
	--gst-accent-text: var(--gst-accent);
}

.gst-form.gst-style-theme {
	--gst-surface: transparent;
	--gst-ink: currentColor;
	--gst-muted: color-mix(in srgb, currentColor 65%, transparent);
	--gst-line: color-mix(in srgb, currentColor 20%, transparent);
	--gst-field: transparent;
}
/* Elegant: quiet and refined, like a boutique hotel. Serif headings, small capitals, thin lines. */
.gst-form.gst-style-elegant {
	--gst-surface: #fdfdfb;
	--gst-ink: #22261c;
	--gst-muted: #5f6358;
	--gst-line: #e4e2da;
	--gst-field: #ffffff;
	--gst-heading-font: var(--wp--preset--font-family--heading, "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif);
	--gst-radius: 2px;
}
.gst-style-elegant .gst-title,
.gst-style-elegant .gst-step__title,
.gst-style-elegant .gst-summary__amount,
.gst-style-elegant .gst-thanks .gst-title { font-family: var(--gst-heading-font); font-weight: 400; letter-spacing: -.005em; }
.gst-style-elegant .gst-title { font-size: clamp(1.9em, 4cqi, 2.4em); }
.gst-style-elegant .gst-step__title { font-size: 1.6em; }
.gst-style-elegant .gst-eyebrow,
.gst-style-elegant .gst-label,
.gst-style-elegant .gst-group__title,
.gst-style-elegant .gst-steps__btn,
.gst-style-elegant .gst-btn,
.gst-style-elegant .gst-summary__label,
.gst-style-elegant .gst-product__badge { text-transform: uppercase; letter-spacing: .1em; font-size: .78em; font-weight: 600; }
.gst-style-elegant .gst-eyebrow { color: var(--gst-ink); font-weight: 500; }
.gst-style-elegant .gst-opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.gst-style-elegant .gst-group__title { font-size: .8em; }
.gst-style-elegant .gst-steps__num { display: none; }
.gst-style-elegant .gst-steps__btn { padding: 12px 10px 12px 2px; font-weight: 500; font-size: .74em; }
.gst-style-elegant .gst-steps__btn::before { content: attr(data-gst-num) " · "; }
.gst-style-elegant .gst-steps__btn[aria-current="step"] { font-weight: 600; border-bottom-width: 2px; }
.gst-style-elegant .gst-btn { padding: 14px 26px; }
.gst-style-elegant .gst-input { min-height: 52px; }
.gst-style-elegant .gst-stepper { border: 0; background: transparent; gap: 10px; }
.gst-style-elegant .gst-stepper__btn { border: 1px solid var(--gst-line); background: var(--gst-field); border-radius: var(--gst-radius); }
.gst-style-elegant .gst-stepper input { border: 0; background: transparent; }
.gst-style-elegant .gst-product { background: var(--gst-field); }
.gst-style-elegant .gst-product.is-on,
.gst-style-elegant .gst-product--pick:has(.gst-radio-input:checked) { background: color-mix(in srgb, var(--gst-accent) 5%, var(--gst-field)); }
.gst-style-elegant .gst-summary__amount { font-size: 2.1em; }

.gst-form *,
.gst-form *::before,
.gst-form *::after { box-sizing: border-box; }
.gst-form [hidden] { display: none !important; }
.gst-form button { font: inherit; }

/* Header */
.gst-header { margin-bottom: 20px; max-width: 70ch; }
.gst-title { margin: 0 0 8px; line-height: 1.2; }
.gst-intro { margin: 0 0 10px; color: var(--gst-muted); }
.gst-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: .92em; color: var(--gst-muted); }
.gst-meta a { color: inherit; }
.gst-link {
	background: none; border: 0; padding: 0; color: var(--gst-accent-text); cursor: pointer;
	text-decoration: underline; text-underline-offset: 3px; text-align: left;
}

/* Layout */
.gst-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 32px; align-items: start; }
.gst-main { min-width: 0; }
.gst-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Step navigation */
.gst-steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--gst-line); }
.gst-steps::-webkit-scrollbar { display: none; }
.gst-steps li { margin: 0; flex: 0 0 auto; }
.gst-steps__btn {
	display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; border: 0; background: none;
	color: var(--gst-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
/* Steps not visited yet are lighter, but can be clicked. */
.gst-steps__btn.is-ahead { opacity: .6; }
.gst-steps__btn[aria-current="step"] { color: var(--gst-ink); border-bottom-color: var(--gst-accent); font-weight: 600; }
.gst-steps__num {
	display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
	font-size: 13px; border: 1px solid var(--gst-line); font-variant-numeric: tabular-nums;
}
.gst-steps__btn[aria-current="step"] .gst-steps__num { background: var(--gst-accent); border-color: var(--gst-accent); color: var(--gst-accent-ink); }
.gst-steps__btn.is-done .gst-steps__num { border-color: var(--gst-accent); color: var(--gst-accent-text); }

/* Steps */
.gst-step { display: grid; gap: var(--gst-gap); }
.gst-step__title { margin: 0; font-size: 1.35em; line-height: 1.25; outline: none; }
.gst-step__intro { margin: -12px 0 0; color: var(--gst-muted); }

/* Fields */
.gst-row { display: grid; gap: 16px; }
.gst-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gst-field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.gst-label { font-weight: 600; font-size: .95em; padding: 0; }
.gst-req { color: var(--gst-accent-text); }
.gst-opt { font-weight: 400; color: var(--gst-muted); font-size: .9em; }
.gst-help { margin: -2px 0 0; font-size: .88em; color: var(--gst-muted); }
.gst-input {
	width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--gst-ink);
	background: var(--gst-field); border: 1px solid var(--gst-line); border-radius: calc(var(--gst-radius) * .7);
	transition: border-color .15s, box-shadow .15s;
}
textarea.gst-input { min-height: 0; resize: vertical; }
.gst-input:focus { outline: none; border-color: var(--gst-accent); box-shadow: 0 0 0 3px var(--gst-accent-soft); }
.gst-field.is-invalid .gst-input { border-color: var(--gst-danger); }
.gst-field__error { margin: 0; color: var(--gst-danger); font-size: .88em; }
.gst-nights { margin: -12px 0 0; color: var(--gst-muted); font-size: .92em; min-height: 1.4em; }
.gst-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.gst-check input, .gst-choice input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gst-accent); flex: 0 0 auto; }
.gst-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.gst-choice {
	display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; cursor: pointer;
	border: 1px solid var(--gst-line); border-radius: 999px; background: var(--gst-field);
}
.gst-choice input { margin: 0; }
.gst-choice:has(input:checked) { border-color: var(--gst-accent); background: var(--gst-accent-soft); }
.gst-privacy { margin: 0; font-size: .9em; color: var(--gst-muted); }
.gst-privacy a, .gst-check a { color: var(--gst-accent-text); }

/* Stepper */
.gst-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--gst-line); border-radius: calc(var(--gst-radius) * .7); background: var(--gst-field); overflow: hidden; flex: 0 0 auto; }
.gst-stepper input {
	width: 3.2em; border: 0; text-align: center; font: inherit; font-weight: 600; background: transparent; color: var(--gst-ink);
	-moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; padding: 0;
}
.gst-stepper input::-webkit-inner-spin-button, .gst-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.gst-stepper input:focus { outline: 2px solid var(--gst-accent); outline-offset: -2px; }
/* Centred by the form itself: themes often left-align or pad buttons. */
.gst-stepper__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; min-height: 40px; padding: 0; margin: 0; border: 0; background: transparent; color: var(--gst-accent-text); font-size: 20px; line-height: 1; text-align: center; cursor: pointer; }
.gst-stepper__btn:hover { background: var(--gst-accent-soft); }
.gst-stepper__btn:focus-visible { outline: 2px solid var(--gst-accent); outline-offset: -2px; }
.gst-stepper--lg { justify-self: start; }
.gst-stepper--lg input { width: 4em; font-size: 1.15em; }
.gst-stepper--lg .gst-stepper__btn { width: 48px; min-height: 48px; }

/* Product groups */
.gst-group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.gst-group__title { font-weight: 700; font-size: 1.05em; padding: 0; margin: 0 0 2px; }
.gst-group__desc { margin: -6px 0 2px; color: var(--gst-muted); font-size: .92em; }
.gst-group__list { display: grid; gap: 8px; }
.gst-product { border: 1px solid var(--gst-line); border-radius: var(--gst-radius); background: var(--gst-surface); transition: border-color .15s, background-color .15s; }
.gst-product__row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
label.gst-product__row { cursor: pointer; }
.gst-product__text { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.gst-product__name { font-weight: 600; }
.gst-product__desc { color: var(--gst-muted); font-size: .92em; }
.gst-product__price { font-size: .9em; color: var(--gst-accent-text); font-variant-numeric: tabular-nums; }
.gst-product__note { font-size: .85em; color: var(--gst-muted); font-style: italic; }
.gst-product--separate .gst-product__icon { color: var(--gst-muted); background: color-mix(in srgb, currentColor 12%, transparent); }
/* Icon or photo next to an option (Form → Appearance → pictures). */
.gst-product__pic { flex: 0 0 auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--gst-radius); background: var(--gst-accent-soft); color: var(--gst-accent-text); overflow: hidden; }
.gst-product__pic--photo { width: 72px; height: 56px; background: none; }
.gst-product__pic--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gst-product--pick .gst-product__pic--photo { width: 112px; height: 80px; }
.gst-product__icon[hidden] { display: none; }
@container (max-width: 480px) {
	.gst-product__pic { width: 36px; height: 36px; }
	.gst-product__pic--photo, .gst-product--pick .gst-product__pic--photo { width: 64px; height: 48px; }
}
.gst-product__icon { color: var(--gst-accent-text); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gst-accent-soft); flex: 0 0 auto; }
.gst-product__badge { font-size: .78em; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--gst-muted); flex: 0 0 auto; }
.gst-product--included { background: transparent; border-style: dashed; }
/* "Show what is always included briefly": name and amount on one line. Options the guest can still change keep their full row. */
.gst-compact-included .gst-product--included:not(:has([data-gst-more])) { border: 0; }
.gst-compact-included .gst-product--included:not(:has([data-gst-more])) .gst-product__row { padding: 4px 16px; }
.gst-compact-included .gst-product--included:not(:has([data-gst-more])) :is(.gst-product__desc, .gst-product__price, .gst-product__note, .gst-product__badge, .gst-product__pic) { display: none; }
.gst-compact-included .gst-product--included:not(:has([data-gst-more])) .gst-product__icon[hidden] { display: inline-grid; }
.gst-product.is-on { border-color: var(--gst-accent); background: var(--gst-accent-soft); }
.gst-product.is-unavailable { opacity: .6; }
.gst-product.is-unavailable label.gst-product__row { cursor: not-allowed; }
.gst-product__condition { margin: -6px 16px 12px 70px; font-size: .85em; color: var(--gst-muted); }
.gst-product--quantity .gst-product__condition { margin-left: 16px; }

/* Switch */
.gst-switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gst-switch { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--gst-line); flex: 0 0 auto; transition: background-color .15s; }
.gst-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.gst-switch-input:checked + .gst-switch { background: var(--gst-accent); }
.gst-switch-input:checked + .gst-switch::after { transform: translateX(18px); }
.gst-switch-input:focus-visible + .gst-switch { outline: 2px solid var(--gst-accent); outline-offset: 2px; }
.gst-switch-input:disabled + .gst-switch { opacity: .5; }

/* Buttons */
.gst-nav { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 4px; }
.gst-nav > :only-child { margin-left: auto; }
.gst-btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: calc(var(--gst-radius) * .8);
	border: 1px solid var(--gst-accent); background: var(--gst-accent); color: var(--gst-accent-ink); font-weight: 600; cursor: pointer;
	transition: filter .15s, transform .05s;
}
.gst-btn:hover { filter: brightness(1.08); }
.gst-btn:active { transform: translateY(1px); }
.gst-btn:focus-visible { outline: 3px solid var(--gst-accent-soft); outline-offset: 2px; }
.gst-btn--ghost { background: transparent; color: var(--gst-ink); border-color: var(--gst-line); }
.gst-btn[disabled] { opacity: .6; cursor: progress; }
.gst-error { margin: 0; padding: 12px 14px; border-radius: calc(var(--gst-radius) * .7); background: color-mix(in srgb, var(--gst-danger) 10%, transparent); color: var(--gst-danger); }
.gst-shortcut-note { margin: 0; padding: 12px 14px; border-radius: calc(var(--gst-radius) * .7); background: var(--gst-accent-soft); }

/* Summary */
.gst-summary {
	position: sticky; top: 24px; border: 1px solid var(--gst-line); border-radius: var(--gst-radius);
	background: var(--gst-surface); padding: 20px; display: grid; gap: 14px;
}
.gst-summary__head { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; }
.gst-summary__label { grid-column: 1 / -1; font-size: .8em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gst-muted); }
.gst-summary__amount { font-size: 2em; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.gst-summary__amount.is-busy { opacity: .45; }
.gst-summary__amount.is-custom { font-size: 1.3em; }
.gst-summary__basis { color: var(--gst-muted); font-size: .9em; grid-column: 1; }
.gst-summary__toggle { display: none; }
.gst-summary__body { display: grid; gap: 12px; }
.gst-summary__status { margin: 0; color: var(--gst-muted); font-size: .92em; }
.gst-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92em; }
.gst-lines li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; margin: 0; }
.gst-lines .gst-line__detail { grid-column: 1; color: var(--gst-muted); font-size: .9em; }
.gst-lines .gst-line__amount { grid-row: 1; grid-column: 2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gst-lines .gst-line--discount .gst-line__amount { color: var(--gst-accent-text); }
.gst-lines .gst-line--total { border-top: 1px solid var(--gst-line); padding-top: 8px; font-weight: 700; }
.gst-lines .gst-line--sub { color: var(--gst-muted); }
.gst-lines .gst-line--heading { color: var(--gst-muted); font-size: .85em; margin-top: 4px; }
.gst-summary__vat { display: inline-flex; border: 1px solid var(--gst-line); border-radius: 999px; padding: 2px; justify-self: start; }
.gst-summary__vat button { border: 0; background: none; padding: 4px 12px; border-radius: 999px; cursor: pointer; color: var(--gst-muted); font-size: .85em; }
.gst-summary__vat button[aria-pressed="true"] { background: var(--gst-accent); color: var(--gst-accent-ink); }
.gst-notices { display: grid; gap: 8px; }
.gst-notice { margin: 0; padding: 10px 12px; border-radius: calc(var(--gst-radius) * .6); background: var(--gst-accent-soft); font-size: .9em; }
.gst-summary__disclaimer { margin: 0; font-size: .82em; color: var(--gst-muted); }

.gst-summary__short { display: none; }
.gst-summary__footnotes { margin: 0; font-size: .82em; color: var(--gst-muted); border-top: 1px dashed var(--gst-line); padding-top: 10px; }

/* Header extras */
.gst-eyebrow { margin: 0 0 6px; font-size: .8em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gst-accent-text); }
.gst-shortcut--box { flex: 1 1 100%; padding: 12px 14px; border: 1px dashed var(--gst-accent); border-radius: calc(var(--gst-radius) * .7); background: var(--gst-accent-soft); }
.gst-step > .gst-shortcut { justify-self: start; }

/* Counters (guests, children, …) side by side */
.gst-counters { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.gst-field--counter { align-content: start; }

/* Pick-one radios */
.gst-radio-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gst-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gst-line); background: var(--gst-field); flex: 0 0 auto; display: grid; place-items: center; transition: border-color .15s; }
.gst-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gst-accent); transform: scale(0); transition: transform .15s; }
.gst-radio-input:checked + .gst-radio { border-color: var(--gst-accent); }
.gst-radio-input:checked + .gst-radio::after { transform: scale(1); }
.gst-radio-input:focus-visible + .gst-radio { outline: 2px solid var(--gst-accent); outline-offset: 2px; }
.gst-product--pick:has(.gst-radio-input:checked) { border-color: var(--gst-accent); background: var(--gst-accent-soft); }
.gst-product--none { border-style: dashed; background: transparent; }

/* Amount per option, people/times per product */
.gst-product__side { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.gst-product__amount { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; font-size: .95em; }
.gst-product__amount:empty { display: none; }
.gst-product__amount.is-potential { font-weight: 500; color: var(--gst-muted); }
.gst-product__more { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0 16px 14px 70px; }
.gst-product--included .gst-product__more, .gst-product--quantity .gst-product__more { padding-left: 16px; }
.gst-mini-field { display: flex; align-items: center; gap: 10px; font-size: .92em; }
.gst-mini-field label { color: var(--gst-muted); }
.gst-mini-field .gst-stepper input { width: 3.2em; }
.gst-mini-field .gst-stepper__btn { width: 34px; min-height: 34px; }

/* Nav: skip link next to "next" */
.gst-nav__end { display: inline-flex; align-items: center; gap: 16px; margin-left: auto; }

/* Recap before sending */
.gst-recap { border: 1px solid var(--gst-line); border-radius: var(--gst-radius); padding: 14px 16px; background: var(--gst-surface); display: grid; gap: 10px; }
.gst-recap__title { margin: 0; font-weight: 700; }
.gst-captcha:empty { display: none; }

/* "Bottom bar" layout: the estimate stays at the bottom of the screen on every size. */
.gst-summary-bottom .gst-body { grid-template-columns: 1fr; }
.gst-summary-bottom .gst-main { max-width: 880px; }
.gst-summary-bottom .gst-summary {
	position: fixed; left: 50%; bottom: 0; top: auto; transform: translateX(-50%); width: min(960px, 100%); z-index: 9990;
	border-radius: var(--gst-radius) var(--gst-radius) 0 0; border-width: 1px 1px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
	gap: 10px; box-shadow: 0 -6px 24px rgba(0, 0, 0, .12); max-height: 80vh; overflow: auto; transition: transform .2s, visibility .2s;
}
.gst-summary-bottom .gst-summary.is-offscreen { transform: translate(-50%, 110%); visibility: hidden; }
.gst-summary-bottom .gst-summary__head { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "label label label toggle" "amount basis short toggle"; align-items: baseline; gap: 0 12px; }
.gst-summary-bottom .gst-summary__label { grid-area: label; font-size: .72em; }
.gst-summary-bottom .gst-summary__amount { grid-area: amount; font-size: 1.5em; white-space: nowrap; }
.gst-summary-bottom .gst-summary__basis { grid-area: basis; }
.gst-summary-bottom .gst-summary__short { display: block; grid-area: short; color: var(--gst-muted); font-size: .9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gst-summary-bottom .gst-summary__toggle {
	display: inline-flex; align-items: center; gap: 6px; grid-area: toggle; align-self: center; border: 1px solid var(--gst-line); background: none;
	color: var(--gst-ink); border-radius: 999px; padding: 8px 14px; font-size: .85em; line-height: 1.2; cursor: pointer; white-space: nowrap;
}
.gst-summary-bottom .gst-summary:not(.is-open) .gst-summary__body { display: none; }
.gst-summary-bottom .gst-screen[data-gst-screen="form"] { padding-bottom: 104px; }

/* Thanks */
.gst-thanks { text-align: center; padding: 48px 16px; max-width: 60ch; margin: 0 auto; outline: none; }
.gst-thanks__icon { color: var(--gst-accent-text); margin-bottom: 12px; }
.gst-thanks .gst-intro { color: var(--gst-muted); }

/* Narrow containers: stack; the estimate becomes a bar at the bottom of the screen. */
@container (max-width: 760px) {
	.gst-body { grid-template-columns: 1fr; }
	.gst-row--2 { grid-template-columns: 1fr; }
	.gst-steps__label { display: none; }
	.gst-steps__btn[aria-current="step"] .gst-steps__label { display: inline; }
	.gst-summary {
		position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 9990; border-radius: var(--gst-radius) var(--gst-radius) 0 0;
		border-width: 1px 0 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); gap: 10px;
		box-shadow: 0 -6px 24px rgba(0, 0, 0, .12); max-height: 80vh; overflow: auto; background: var(--gst-surface);
	}
	.gst-style-theme .gst-summary { background: #fff; color: #1c2528; }
	.gst-summary__head {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "label toggle" "amount toggle" "basis toggle";
		align-items: center; gap: 0 12px;
	}
	.gst-summary__label { grid-area: label; font-size: .72em; }
	.gst-summary__amount { grid-area: amount; font-size: 1.4em; white-space: nowrap; }
	.gst-summary__amount.is-custom { font-size: 1.1em; white-space: normal; }
	.gst-summary__basis { grid-area: basis; font-size: .8em; }
	.gst-summary__toggle {
		display: inline-flex; align-items: center; gap: 6px; grid-area: toggle; border: 1px solid var(--gst-line); background: none;
		color: var(--gst-ink); border-radius: 999px; padding: 8px 14px; font-size: .85em; line-height: 1.2; cursor: pointer; white-space: nowrap;
	}
	.gst-summary__toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(-45deg) translateY(2px); }
	.gst-summary.is-open .gst-summary__toggle::after { transform: rotate(135deg) translateY(2px); }
	.gst-summary:not(.is-open) .gst-summary__body { display: none; }
	.gst-summary.is-offscreen { transform: translateY(110%); visibility: hidden; }
	.gst-summary { transition: transform .2s, visibility .2s; }
	.gst-screen[data-gst-screen="form"] { padding-bottom: 96px; }
	.gst-product__condition { margin-left: 16px; }
	.gst-product__more { padding-left: 16px; }
	.gst-summary-bottom .gst-summary { left: 0; transform: none; width: auto; border-width: 1px 0 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
	.gst-summary-bottom .gst-summary.is-offscreen { transform: translateY(110%); }
	.gst-summary-bottom .gst-summary__head { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label toggle" "amount toggle" "basis toggle"; }
	.gst-summary-bottom .gst-summary__short { display: none; }
}
@container (max-width: 480px) {
	.gst-product__side { flex-direction: column; align-items: flex-end; gap: 4px; }
	.gst-counters { gap: 12px 20px; }
	/* An option with a number: the text gets the full width, the − / + and the amount go below it. */
	.gst-product--quantity .gst-product__row { flex-wrap: wrap; }
	.gst-product--quantity .gst-product__text { flex: 1 1 60%; }
	.gst-product--quantity .gst-product__side { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
	.gst-form * { transition: none !important; }
}
