/**
 * Getaway booking widget, room list, room card, price breakdown (P-BOOK-B).
 *
 * Colours come only from the 16 palette presets (var(--wp--preset--color--<slug>)),
 * so the dark re-map flips everything; white only sits over photos. Logical
 * properties keep RTL working. Motion is switched off under prefers-reduced-motion.
 *
 *   1. Shared (tokens, skeleton, numbers)
 *   2. Booking widget (card, header, fields, rate plans, extras, messages, actions)
 *   3. Price breakdown
 *   4. Variants: sticky, inline, bar
 *   5. Mobile bottom bar + full-height sheet
 *   6. Room list + room card (+ photo strip, rate rows, table layout)
 *   7. No-JS, preview, motion
 */

/* ==========================================================================
   1. Shared
   ========================================================================== */

.sfhb-bw,
.sfhb-rl,
.sfhb-pb {
	--bw-radius: var(--sfhb-radius-card, 16px);
	--bw-radius-in: var(--sfhb-radius-input, 12px);
	--bw-top: calc(var(--sfhb-header-h, 72px) + var(--wp-admin--admin-bar--height, 0px) + 24px);
	--bw-shadow: 0 1px 2px var(--wp--preset--color--edge), 0 18px 40px -22px var(--wp--preset--color--line);
	--bw-ring: 0 0 0 3px var(--wp--preset--color--panel), 0 0 0 5px var(--wp--preset--color--accent-2);
	--bw-scrim: var(--wp--preset--color--glass-2);
	color: var(--wp--preset--color--ink);
	font-family: var(--sfhb-font-ui, inherit);
	box-sizing: border-box;
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
	.sfhb-bw,
	.sfhb-rl,
	.sfhb-pb {
		--bw-scrim: color-mix(in srgb, var(--wp--preset--color--ink) 48%, transparent);
	}
}

.sfhb-bw *,
.sfhb-bw *::before,
.sfhb-bw *::after,
.sfhb-rl *,
.sfhb-rl *::before,
.sfhb-rl *::after,
.sfhb-pb *,
.sfhb-pb *::before,
.sfhb-pb *::after {
	box-sizing: border-box;
}

.sfhb-bw .sfhb-num,
.sfhb-rl .sfhb-num,
.sfhb-pb .sfhb-num {
	font-family: var(--sfhb-font-num, inherit);
	font-variant-numeric: tabular-nums;
}

.sfhb-bw [hidden],
.sfhb-rl [hidden] {
	display: none !important;
}

.sfhb-bk-i {
	flex: none;
	display: inline-block;
	vertical-align: -0.2em;
}

.sfhb-bk-empty {
	margin: 0;
	padding: 14px 16px;
	border: 1px dashed var(--wp--preset--color--line);
	border-radius: var(--bw-radius-in, 12px);
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

/* Skeleton */
.sfhb-skel {
	display: block;
	height: 14px;
	margin: 10px 0;
	border-radius: 7px;
	background: linear-gradient(90deg, var(--wp--preset--color--panel-2) 0%, var(--wp--preset--color--line) 50%, var(--wp--preset--color--panel-2) 100%);
	background-size: 200% 100%;
	animation: sfhb-bw-shimmer 1.3s linear infinite;
}

.sfhb-skel--short {
	width: 55%;
}

.sfhb-skel--price {
	display: inline-block;
	width: 68px;
	height: 22px;
	margin: 0;
}

@keyframes sfhb-bw-shimmer {
	from {
		background-position: 200% 0;
	}
	to {
		background-position: -200% 0;
	}
}

.sfhb-bw__label {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	color: var(--wp--preset--color--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

fieldset.sfhb-bw__rates,
fieldset.sfhb-bw__extras {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

fieldset.sfhb-bw__rates > legend,
fieldset.sfhb-bw__extras > legend {
	padding: 0;
	margin: 0 0 8px;
	float: none;
	width: 100%;
}

/* Dates / guests label is for screen readers (the field helpers draw their own). */
.sfhb-bw__field--dates > .sfhb-bw__label,
.sfhb-bw__field--guests > .sfhb-bw__label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   2. Booking widget
   ========================================================================== */

.sfhb-bw {
	position: relative;
	display: block;
	width: 100%;
}

.sfhb-bw__card {
	background: var(--wp--preset--color--panel);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--bw-radius);
	box-shadow: var(--bw-shadow);
	color: var(--wp--preset--color--ink);
}

.sfhb-bw__scroll {
	padding: 22px 22px 20px;
}

.sfhb-bw__sheet-head {
	display: none;
}

/* Header: from price / live total */
.sfhb-bw__head {
	margin: 0 0 16px;
}

.sfhb-bw__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
	margin: 0;
	transition: opacity 0.2s ease;
}

.sfhb-bw.is-loading .sfhb-bw__price {
	opacity: 0.55;
}

.sfhb-bw__from,
.sfhb-bw__per {
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

.sfhb-bw__amount {
	color: var(--wp--preset--color--ink);
	font-family: var(--sfhb-font-display, Georgia, serif);
	font-size: clamp(26px, 2.4vw, 32px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.sfhb-bw__sub {
	min-height: 0;
	margin: 4px 0 0;
	color: var(--wp--preset--color--muted);
	font-size: 13px;
}

.sfhb-bw__sub:empty {
	display: none;
}

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

/* Form */
.sfhb-bw__form {
	display: grid;
	gap: 14px;
	margin: 0;
}

.sfhb-bw__trip {
	display: grid;
	gap: 10px;
}

.sfhb-bw__field {
	position: relative;
	min-width: 0;
}

.sfhb-bw__roomname {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
	font-weight: 600;
}

.sfhb-bw__select {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 34px 10px 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--bw-radius-in);
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	text-overflow: ellipsis;
	cursor: pointer;
}

.sfhb-bw__select:focus-visible {
	outline: 0;
	box-shadow: var(--bw-ring);
}

/* Fallback trip fields (P-BOOK-A absent / helper missing) */
.sfhb-bk-dr,
.sfhb-bk-gu {
	display: block;
}

.sfhb-bk-dr__lbl,
.sfhb-bk-gu__lbl {
	display: none;
}

.sfhb-bk-dr__btn,
.sfhb-bk-gu__btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--bw-radius-in);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-align: start;
	cursor: pointer;
}

.sfhb-bk-dr__btn:focus-visible,
.sfhb-bk-gu__btn:focus-visible {
	outline: 0;
	box-shadow: var(--bw-ring);
}

.sfhb-bk-dr.is-native,
.sfhb-bk-gu.is-native {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.sfhb-bk-dr.is-native .sfhb-bk-dr__lbl,
.sfhb-bk-gu.is-native .sfhb-bk-gu__lbl {
	display: grid;
	gap: 4px;
	color: var(--wp--preset--color--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sfhb-bk-dr.is-native .sfhb-bk-dr__btn,
.sfhb-bk-gu.is-native .sfhb-bk-gu__btn {
	display: none;
}

.sfhb-bk-dr.is-native input,
.sfhb-bk-gu.is-native input {
	min-height: 46px;
	padding: 8px 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--bw-radius-in);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

/* Rate plans (radio cards) */
.sfhb-bw__rate-list {
	display: grid;
	gap: 8px;
}

.sfhb-rp {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: start;
	column-gap: 12px;
	row-gap: 5px;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--bw-radius-in);
	background: var(--wp--preset--color--base);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.sfhb-rp:hover {
	border-color: var(--wp--preset--color--muted);
}

.sfhb-rp.is-selected {
	border-color: var(--wp--preset--color--accent-2);
	background: var(--wp--preset--color--turf);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--accent-2);
}

.sfhb-rp__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.sfhb-rp:has(.sfhb-rp__input:focus-visible) {
	outline: 2px solid var(--wp--preset--color--accent-2);
	outline-offset: 2px;
}

@supports not selector(:has(*)) {
	.sfhb-rp:focus-within {
		outline: 2px solid var(--wp--preset--color--accent-2);
		outline-offset: 2px;
	}
}

.sfhb-rp__dot {
	grid-column: 1;
	grid-row: 1;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border: 2px solid var(--wp--preset--color--muted);
	border-radius: 50%;
	background: var(--wp--preset--color--panel);
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.sfhb-rp.is-selected .sfhb-rp__dot {
	border-color: var(--wp--preset--color--accent-2);
	background: var(--wp--preset--color--accent-2);
	box-shadow: inset 0 0 0 3px var(--wp--preset--color--turf);
}

.sfhb-rp__body {
	display: contents;
}

.sfhb-rp__name {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	font-size: 15px;
	font-weight: 700;
}

.sfhb-rp__desc,
.sfhb-rp__tags,
.sfhb-rp__pay {
	grid-column: 2 / -1;
}

.sfhb-rp__desc,
.sfhb-rp__pay {
	color: var(--wp--preset--color--muted);
	font-size: 12.5px;
	line-height: 1.4;
}

.sfhb-rp__tags,
.sfhb-rr__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
}

.sfhb-rp__tag,
.sfhb-rr__tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 9px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
}

.sfhb-rp__tag.is-good::before,
.sfhb-rp__tag.is-warn::before,
.sfhb-rp__tag.is-bad::before,
.sfhb-rr__tag.is-good::before,
.sfhb-rr__tag.is-warn::before,
.sfhb-rr__tag.is-bad::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wp--preset--color--muted);
}

.sfhb-rp__tag.is-good::before,
.sfhb-rr__tag.is-good::before {
	background: var(--wp--preset--color--neon);
}

.sfhb-rp__tag.is-warn::before,
.sfhb-rr__tag.is-warn::before {
	background: var(--wp--preset--color--gold);
}

.sfhb-rp__tag.is-bad::before,
.sfhb-rr__tag.is-bad::before {
	background: var(--wp--preset--color--accent);
}

.sfhb-rp__price {
	grid-column: 3;
	grid-row: 1;
	display: grid;
	justify-items: end;
	gap: 1px;
	min-width: 64px;
	text-align: end;
	white-space: nowrap;
}

.sfhb-rp__from,
.sfhb-rp__sub {
	color: var(--wp--preset--color--muted);
	font-size: 12px;
}

.sfhb-rp__total {
	font-size: 17px;
	font-weight: 700;
}

.sfhb-rp__none {
	color: var(--wp--preset--color--muted);
}

/* Extras */
.sfhb-bw__extra-list {
	display: grid;
	gap: 6px;
}

.sfhb-ex {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 4px 12px;
	padding: 10px 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--bw-radius-in);
	background: var(--wp--preset--color--base);
}

.sfhb-ex.is-on {
	border-color: var(--wp--preset--color--accent-2);
	background: var(--wp--preset--color--turf);
}

.sfhb-ex__label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	cursor: pointer;
}

.sfhb-ex--step .sfhb-ex__label {
	cursor: default;
}

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

.sfhb-ex__box {
	display: grid;
	flex: none;
	place-items: center;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 2px solid var(--wp--preset--color--muted);
	border-radius: 6px;
	background: var(--wp--preset--color--panel);
	color: transparent;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sfhb-ex__input:checked + .sfhb-ex__box {
	border-color: var(--wp--preset--color--accent-2);
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--base);
}

.sfhb-ex__input:focus-visible + .sfhb-ex__box {
	box-shadow: var(--bw-ring);
}

.sfhb-ex__body {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.sfhb-ex__name {
	font-size: 14px;
	font-weight: 600;
}

.sfhb-ex__desc {
	color: var(--wp--preset--color--muted);
	font-size: 12.5px;
	line-height: 1.35;
}

.sfhb-ex__price {
	color: var(--wp--preset--color--muted);
	font-size: 12.5px;
	text-align: end;
	white-space: nowrap;
}

.sfhb-ex--step .sfhb-step {
	grid-column: 1 / -1;
	justify-self: end;
}

.sfhb-step {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.sfhb-step__btn {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 50%;
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sfhb-step__btn:hover:not(:disabled) {
	border-color: var(--wp--preset--color--ink);
}

.sfhb-step__btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.sfhb-step__btn:focus-visible {
	outline: 0;
	box-shadow: var(--bw-ring);
}

.sfhb-step__val {
	min-width: 26px;
	font-weight: 700;
	text-align: center;
}

/* Messages */
.sfhb-bw__msg {
	display: grid;
	gap: 8px;
}

.sfhb-bw__urgency {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--wp--preset--color--accent);
	font-size: 13.5px;
	font-weight: 700;
}

.sfhb-bw__urgency::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
}

.sfhb-bw__error {
	padding: 10px 12px;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: var(--bw-radius-in);
	background: var(--wp--preset--color--panel-2);
	color: var(--wp--preset--color--ink);
	font-size: 14px;
	line-height: 1.45;
}

.sfhb-bw__error p {
	margin: 0;
}

.sfhb-bw__switch {
	margin: 8px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--accent-2);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.sfhb-bw__switch:focus-visible {
	outline: 0;
	box-shadow: var(--bw-ring);
	border-radius: 4px;
}

.sfhb-bw__quote.is-empty {
	display: none;
}

.sfhb-bw__quote.is-loading .sfhb-pb:not(.sfhb-pb--skeleton) {
	opacity: 0.5;
}

.sfhb-bw__none {
	margin: 0 0 12px;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

/* Actions */
.sfhb-bw__actions {
	display: grid;
	gap: 8px;
	margin-top: 4px;
}

.sfhb-bw__reserve {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--bw-radius-in);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.sfhb-bw__reserve:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px -12px var(--wp--preset--color--accent);
}

.sfhb-bw__reserve:active:not(:disabled) {
	transform: none;
}

.sfhb-bw__reserve:focus-visible,
.sfhb-bw__bar-cta:focus-visible,
.sfhb-rr__cta:focus-visible {
	outline: 0;
	box-shadow: var(--bw-ring);
}

.sfhb-bw__reserve:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.sfhb-bw__reserve.is-busy::after,
.sfhb-rr__cta.is-busy::after {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-inline-end-color: transparent;
	border-radius: 50%;
	animation: sfhb-bw-spin 0.8s linear infinite;
}

@keyframes sfhb-bw-spin {
	to {
		transform: rotate(360deg);
	}
}

.sfhb-bw__hint {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 13px;
	text-align: center;
}

.sfhb-bw__ask {
	display: block;
	margin-top: 10px;
	color: var(--wp--preset--color--ink);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--line);
	text-underline-offset: 4px;
	transition: text-decoration-color 0.15s ease;
}

.sfhb-bw__ask:hover {
	text-decoration-color: var(--wp--preset--color--ink);
}

.sfhb-bw__ask:focus-visible {
	outline: 0;
	box-shadow: var(--bw-ring);
	border-radius: 4px;
}

/* ==========================================================================
   3. Price breakdown
   ========================================================================== */

.sfhb-pb {
	display: grid;
	gap: 10px;
	padding: 14px 0 2px;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: 14px;
}

.sfhb-pb__lines {
	display: grid;
	gap: 8px;
	margin: 0;
}

.sfhb-pb__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}

.sfhb-pb__row dt {
	margin: 0;
	min-width: 0;
}

.sfhb-pb__row dt small {
	display: block;
	color: var(--wp--preset--color--muted);
	font-size: 12px;
}

.sfhb-pb__row dd {
	margin: 0;
	text-align: end;
	white-space: nowrap;
}

.sfhb-pb__row--discount dd,
.sfhb-pb__row--discount dt {
	color: var(--wp--preset--color--neon);
	font-weight: 600;
}

.sfhb-pb__row--total {
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: 17px;
	font-weight: 700;
}

.sfhb-pb__inc,
.sfhb-pb__note {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 12.5px;
	line-height: 1.45;
}

.sfhb-pb__pay {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin: 0;
	padding: 10px 12px;
	border-radius: var(--bw-radius-in);
	background: var(--wp--preset--color--turf);
	color: var(--wp--preset--color--ink);
	font-size: 13.5px;
}

.sfhb-pb__pay > span {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0 6px;
}

.sfhb-pb__nights {
	font-size: 13px;
}

.sfhb-pb__nights summary {
	display: inline-block;
	color: var(--wp--preset--color--accent-2);
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sfhb-pb__nights summary:focus-visible {
	outline: 0;
	box-shadow: var(--bw-ring);
	border-radius: 4px;
}

.sfhb-pb__nights ul {
	display: grid;
	gap: 4px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.sfhb-pb__nights li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.sfhb-pb__nights li small {
	margin-inline-start: 6px;
	color: var(--wp--preset--color--muted);
}

.wp-block-hotel-booking-price-breakdown > .sfhb-pb {
	padding: 18px 20px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--bw-radius);
	background: var(--wp--preset--color--panel);
}

/* ==========================================================================
   4. Variants
   ========================================================================== */

/* Sticky: the whole card is capped to the viewport (flex column chain) so the
   price header, dates, guests, room select and the Reserve CTA are always on
   screen; only the rates/extras/quote region scrolls (the date popovers open
   from the fields above it, so they are never clipped). */
@media (min-width: 901px) {
	.sfhb-bw--sticky:not(.is-preview) {
		position: sticky;
		top: var(--bw-top);
		align-self: start;
		z-index: 5;
		display: flex;
		flex-direction: column;
		max-height: calc(100vh - var(--bw-top) - 16px);
		max-height: calc(100svh - var(--bw-top) - 16px);
	}

	.sfhb-bw--sticky:not(.is-preview) > .sfhb-bw__card,
	.sfhb-bw--sticky:not(.is-preview) > .sfhb-bw__card > .sfhb-bw__scroll,
	.sfhb-bw--sticky:not(.is-preview) .sfhb-bw__form {
		display: flex;
		flex: 0 1 auto;
		flex-direction: column;
		min-height: 0;
	}

	.sfhb-bw--sticky:not(.is-preview) .sfhb-bw__scroll > .sfhb-bw__head,
	.sfhb-bw--sticky:not(.is-preview) .sfhb-bw__form > :not(.sfhb-bw__more) {
		flex: none;
	}

	.sfhb-bw--sticky:not(.is-preview) .sfhb-bw__more {
		flex: 1 1 auto;
		min-height: min(160px, 30svh);
		overflow-y: auto;
		overscroll-behavior: contain;
		margin-inline: -6px;
		padding-inline: 6px;
		padding-block: 2px;
		display: grid;
		align-content: start;
		gap: 14px;
	}

	.sfhb-bw--sticky:not(.is-preview) .sfhb-bw__more:empty {
		display: none;
	}
}

/* Short desktop windows (laptops at 125-150 percent zoom): tighten the chrome
   so the rate list keeps a usable window above the pinned CTA. */
@media (min-width: 901px) and (max-height: 820px) {
	.sfhb-bw--sticky:not(.is-preview) .sfhb-bw__scroll {
		padding: 16px 18px 14px;
	}

	.sfhb-bw--sticky:not(.is-preview) .sfhb-bw__head {
		margin-bottom: 10px;
	}

	.sfhb-bw--sticky:not(.is-preview) .sfhb-bw__form {
		gap: 10px;
	}

	.sfhb-bw--sticky:not(.is-preview) .sfhb-bw__trip {
		gap: 8px;
	}

	.sfhb-bw--sticky:not(.is-preview) .sfhb-bw__hint {
		display: none;
	}

	.sfhb-bw--sticky:not(.is-preview) .sfhb-bw__ask {
		margin-top: 0;
	}
}

/* Very short windows (1366x768 laptops with a tall browser chrome, ~680px of
   viewport): the fields, rates and quote no longer fit above the CTA, so the
   whole card body scrolls inside the capped card and the Reserve button is
   pinned to its bottom edge (never pushed below the card or the viewport). */
@media (min-width: 901px) and (max-height: 760px) {
	.sfhb-bw--sticky:not(.is-preview) > .sfhb-bw__card > .sfhb-bw__scroll {
		flex: 1 1 auto;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding-bottom: 0;
	}

	.sfhb-bw--sticky:not(.is-preview) .sfhb-bw__form {
		flex: none;
	}

	.sfhb-bw--sticky:not(.is-preview) .sfhb-bw__more {
		flex: none;
		min-height: 0;
		overflow: visible;
	}

	.sfhb-bw--sticky:not(.is-preview) .sfhb-bw__actions {
		position: sticky;
		bottom: 0;
		z-index: 2;
		margin: 0 -18px;
		padding: 10px 18px 12px;
		border-top: 1px solid var(--wp--preset--color--line);
		background: var(--wp--preset--color--panel);
	}

	.sfhb-bw--sticky:not(.is-preview) .sfhb-bw__ask {
		padding-bottom: 14px;
	}
}

@media (min-width: 901px) and (max-height: 560px) {
	.sfhb-bw--sticky:not(.is-preview) {
		position: static;
		max-height: none;
	}

	.sfhb-bw--sticky:not(.is-preview) > .sfhb-bw__card > .sfhb-bw__scroll {
		overflow-y: visible;
	}

	.sfhb-bw--sticky:not(.is-preview) .sfhb-bw__actions {
		position: static;
		margin: 0;
		padding: 0;
		border-top: 0;
		background: none;
	}
}

.sfhb-bw__more {
	display: grid;
	gap: 14px;
	min-width: 0;
}

.sfhb-bw__more:empty {
	display: none;
}

/* Inline: a normal card in the flow; in list mode the rooms follow the fields. */
.sfhb-bw--list .sfhb-bw__list {
	margin-top: 4px;
}

.sfhb-bw--list .sfhb-rl {
	margin: 0;
}

.sfhb-bw--list .sfhb-rl__list {
	gap: 14px;
}

/* Horizontal bar */
.sfhb-bw__more-toggle {
	display: none;
}

.sfhb-bw--bar .sfhb-bw__scroll {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
	padding: 16px 22px;
}

.sfhb-bw--bar .sfhb-bw__head {
	margin: 0;
}

.sfhb-bw--bar .sfhb-bw__form {
	display: flex;
	flex: 1 1 520px;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.sfhb-bw--bar .sfhb-bw__trip {
	display: flex;
	flex: 1 1 320px;
	gap: 12px;
}

.sfhb-bw--bar .sfhb-bw__trip > .sfhb-bw__field {
	flex: 1 1 0;
}

.sfhb-bw--bar .sfhb-bw__field--room {
	flex: 0 1 260px;
}

.sfhb-bw--bar .sfhb-bw__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 14px;
	margin: 0;
}

.sfhb-bw--bar .sfhb-bw__reserve {
	width: auto;
	min-width: 160px;
}

.sfhb-bw--bar .sfhb-bw__hint,
.sfhb-bw--bar .sfhb-bw__ask {
	display: none;
}

.sfhb-bw--bar .sfhb-bw__more-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--accent-2);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.sfhb-bw--bar .sfhb-bw__more-toggle:focus-visible {
	outline: 0;
	box-shadow: var(--bw-ring);
	border-radius: 4px;
}

.sfhb-bw--bar .sfhb-bw__more-toggle .sfhb-bk-i {
	transition: transform 0.2s ease;
}

.sfhb-bw--bar.is-more-open .sfhb-bw__more-toggle .sfhb-bk-i {
	transform: rotate(90deg);
}

.sfhb-bw--bar .sfhb-bw__more {
	display: none;
	flex: 1 1 100%;
	padding-top: 8px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.sfhb-bw--bar.is-more-open .sfhb-bw__more {
	display: grid;
}

.sfhb-bw--bar .sfhb-bw__rate-list {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ==========================================================================
   5. Mobile bottom bar + full-height sheet
   ========================================================================== */

.sfhb-bw__bar,
.sfhb-bw__backdrop {
	display: none;
}

@media (max-width: 900px) {
	.sfhb-bw--bar .sfhb-bw__form,
	.sfhb-bw--bar .sfhb-bw__trip {
		flex-basis: 100%;
	}

	.sfhb-bw--bar .sfhb-bw__actions {
		flex: 1 1 100%;
	}

	.sfhb-bw--bar .sfhb-bw__reserve {
		width: 100%;
	}

	.sfhb-js .sfhb-bw[data-mobile-bar="1"]:not(.is-preview) .sfhb-bw__bar {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 9980;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--wp--preset--color--line);
		background: var(--wp--preset--color--glass);
		-webkit-backdrop-filter: blur(var(--sfhb-blur, 14px)) saturate(1.4);
		backdrop-filter: blur(var(--sfhb-blur, 14px)) saturate(1.4);
		box-shadow: 0 -12px 30px -22px var(--wp--preset--color--line);
	}

	.sfhb-js .sfhb-bw[data-mobile-bar="1"] .sfhb-bw__bar[hidden] {
		display: none;
	}

	.sfhb-bw__bar-info {
		display: grid;
		gap: 2px;
		min-width: 0;
		padding: 0;
		border: 0;
		background: none;
		color: var(--wp--preset--color--ink);
		font: inherit;
		text-align: start;
		cursor: pointer;
	}

	.sfhb-bw__bar-price {
		font-size: 14px;
	}

	.sfhb-bw__bar-price strong {
		font-size: 19px;
		font-weight: 700;
	}

	.sfhb-bw__bar-price span {
		color: var(--wp--preset--color--muted);
		font-size: 13px;
	}

	.sfhb-bw__bar-dates {
		overflow: hidden;
		color: var(--wp--preset--color--muted);
		font-size: 12.5px;
		text-decoration: underline;
		text-underline-offset: 3px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.sfhb-bw__bar-cta {
		flex: none;
		min-height: 48px;
		padding: 0 26px;
		border: 0;
		border-radius: var(--bw-radius-in);
		background: var(--wp--preset--color--accent);
		color: var(--wp--preset--color--base);
		font: inherit;
		font-size: 16px;
		font-weight: 700;
		cursor: pointer;
	}

	.sfhb-bw__bar-info:focus-visible {
		outline: 0;
		box-shadow: var(--bw-ring);
		border-radius: 6px;
	}

	/* The card becomes a sheet. */
	.sfhb-js .sfhb-bw[data-mobile-bar="1"]:not(.is-preview) .sfhb-bw__card {
		position: fixed;
		inset: 0;
		z-index: 9990;
		display: flex;
		flex-direction: column;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: var(--wp--preset--color--panel);
		visibility: hidden;
		transform: translateY(100%);
		transition: transform 0.3s var(--sfhb-ease-out, cubic-bezier(0.16, 1, 0.3, 1)), visibility 0s linear 0.3s;
	}

	.sfhb-js .sfhb-bw[data-mobile-bar="1"].is-open .sfhb-bw__card {
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}

	.sfhb-js .sfhb-bw[data-mobile-bar="1"]:not(.is-preview) .sfhb-bw__sheet-head {
		position: relative;
		z-index: 1;
		display: flex;
		flex: none;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: calc(10px + env(safe-area-inset-top, 0px)) 8px 10px 20px;
		border-bottom: 1px solid var(--wp--preset--color--line);
		background: var(--wp--preset--color--panel);
	}

	.sfhb-bw__sheet-title {
		overflow: hidden;
		font-family: var(--sfhb-font-display, Georgia, serif);
		font-size: 18px;
		font-weight: 600;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.sfhb-bw__close {
		display: grid;
		flex: none;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--wp--preset--color--panel-2);
		color: var(--wp--preset--color--ink);
		cursor: pointer;
	}

	.sfhb-bw__close:focus-visible {
		outline: 0;
		box-shadow: var(--bw-ring);
	}

	.sfhb-js .sfhb-bw[data-mobile-bar="1"]:not(.is-preview) .sfhb-bw__scroll {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-height: 0;
		padding: 18px 20px 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.sfhb-js .sfhb-bw[data-mobile-bar="1"]:not(.is-preview) .sfhb-bw__form {
		flex: 1 0 auto;
		align-content: start;
	}

	.sfhb-js .sfhb-bw[data-mobile-bar="1"]:not(.is-preview) .sfhb-bw__actions {
		position: sticky;
		bottom: 0;
		margin: 6px -20px 0;
		padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--wp--preset--color--line);
		background: var(--wp--preset--color--panel);
	}

	.sfhb-js .sfhb-bw[data-mobile-bar="1"]:not(.is-preview) .sfhb-bw__ask {
		margin: 0;
	}

	.sfhb-js .sfhb-bw[data-mobile-bar="1"]:not(.is-preview) .sfhb-bw__backdrop {
		position: fixed;
		inset: 0;
		z-index: 9985;
		display: block;
		background: var(--bw-scrim);
	}

	.sfhb-js .sfhb-bw[data-mobile-bar="1"]:not(.is-preview) .sfhb-bw__backdrop[hidden] {
		display: none;
	}
}

@supports selector(:has(*)) {
	@media (max-width: 900px) {
		.sfhb-js body:has(.sfhb-bw[data-mobile-bar="1"]:not(.is-preview) .sfhb-bw__bar:not([hidden])) {
			padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
		}
	}
}

html.sfhb-bw-lock,
html.sfhb-bw-lock body {
	overflow: hidden;
}

/* ==========================================================================
   6. Room list + room card
   ========================================================================== */

.sfhb-rl {
	display: block;
	width: 100%;
	container-type: inline-size;
	container-name: sfhb-rl;
}

.sfhb-rl__title {
	margin: 0 0 14px;
	font-family: var(--sfhb-font-display, Georgia, serif);
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	scroll-margin-top: calc(var(--sfhb-header-h, 72px) + var(--wp-admin--admin-bar--height, 0px) + 20px);
}

.sfhb-rl__trip {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px 12px;
	margin: 0 0 14px;
}

.sfhb-rl__field {
	flex: 1 1 240px;
	max-width: 420px;
	min-width: 0;
}

.sfhb-rl__prompt {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding: 11px 14px;
	border-radius: var(--bw-radius-in);
	background: var(--wp--preset--color--turf);
	color: var(--wp--preset--color--ink);
	font-size: 14px;
}

.sfhb-rl__list {
	display: grid;
	gap: 20px;
}

/* Card */
.sfhb-rc {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--bw-radius);
	background: var(--wp--preset--color--panel);
	box-shadow: var(--bw-shadow);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sfhb-rc:hover {
	border-color: var(--wp--preset--color--muted);
}

.sfhb-rc.is-unavailable .sfhb-rc__media,
.sfhb-rc.is-unavailable .sfhb-rc__title {
	opacity: 0.62;
}

.sfhb-rc__media {
	position: relative;
	min-width: 0;
	aspect-ratio: 4 / 3;
	background: var(--wp--preset--color--panel-2);
}

.sfhb-rc__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: 20px 22px;
}

.sfhb-rc__title {
	margin: 0;
	font-family: var(--sfhb-font-display, Georgia, serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
}

.sfhb-rc__title a {
	color: inherit;
	text-decoration: none;
}

.sfhb-rc__title a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.sfhb-rc__title a:focus-visible {
	outline: 0;
	box-shadow: var(--bw-ring);
	border-radius: 4px;
}

.sfhb-rc__facts,
.sfhb-rc__amen {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfhb-rc__facts li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--wp--preset--color--ink);
	font-size: 14px;
}

.sfhb-rc__facts .sfhb-bk-i {
	color: var(--wp--preset--color--muted);
}

.sfhb-rc__amen {
	gap: 6px;
}

.sfhb-rc__amen li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px 4px 9px;
	border-radius: 999px;
	background: var(--wp--preset--color--panel-2);
	color: var(--wp--preset--color--ink);
	font-size: 12.5px;
	font-weight: 600;
}

.sfhb-rc__amen .sfhb-icon,
.sfhb-rc__amen svg {
	width: 15px;
	height: 15px;
	color: var(--wp--preset--color--accent-2);
}

.sfhb-rc__alert {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--wp--preset--color--accent);
	font-size: 13.5px;
	font-weight: 700;
}

.sfhb-rc__alert::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
}

.sfhb-rc__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	align-self: flex-start;
	margin-top: auto;
	color: var(--wp--preset--color--accent-2);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.sfhb-rc__more:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.sfhb-rc__more:focus-visible {
	outline: 0;
	box-shadow: var(--bw-ring);
	border-radius: 4px;
}

.sfhb-rc__buy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 16px 18px 18px;
	border-top: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--base);
}

.sfhb-rc__rates {
	display: grid;
	gap: 0;
	transition: opacity 0.2s ease;
}

.sfhb-rc__rates.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

.sfhb-rc__fromline {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

.sfhb-rc__fromline strong {
	color: var(--wp--preset--color--ink);
	font-size: 22px;
}

.sfhb-rc__unavail {
	margin: 0;
	padding: 12px 14px;
	border: 1px dashed var(--wp--preset--color--muted);
	border-radius: var(--bw-radius-in);
	color: var(--wp--preset--color--ink);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

/* Rate rows */
.sfhb-rr {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	padding: 14px 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

.sfhb-rr:first-child {
	padding-top: 0;
	border-top: 0;
}

.sfhb-rr:last-child {
	padding-bottom: 0;
}

.sfhb-rr__info {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.sfhb-rr__name {
	font-size: 15px;
	font-weight: 700;
}

.sfhb-rr__pay {
	color: var(--wp--preset--color--muted);
	font-size: 12.5px;
}

.sfhb-rr__buy {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.sfhb-rr__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
	min-width: 0;
}

.sfhb-rr__sub {
	flex-basis: 100%;
}

.sfhb-rr[data-state="idle"] .sfhb-rr__sub {
	flex-basis: auto;
}

.sfhb-rr__from,
.sfhb-rr__sub {
	color: var(--wp--preset--color--muted);
	font-size: 12.5px;
}

.sfhb-rr__total {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.15;
}

.sfhb-rr__cta {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 20px;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: var(--bw-radius-in);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font: inherit;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.sfhb-rr__cta:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 10px 20px -12px var(--wp--preset--color--accent);
}

.sfhb-rr__cta.is-ghost {
	border-color: var(--wp--preset--color--line);
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
}

.sfhb-rr__cta.is-ghost:hover {
	border-color: var(--wp--preset--color--ink);
	box-shadow: none;
}

.sfhb-rr__cta:disabled {
	opacity: 0.6;
	cursor: wait;
}

.sfhb-rr__err {
	margin: 0;
	padding: 8px 10px;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 8px;
	background: var(--wp--preset--color--panel-2);
	font-size: 13px;
}

/* Photo strip */
.sfhb-rg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: var(--wp--preset--color--panel-2);
}

.sfhb-rg--empty {
	display: grid;
	place-items: center;
	color: var(--wp--preset--color--muted);
}

.sfhb-rg__track {
	display: flex;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	list-style: none;
	-webkit-overflow-scrolling: touch;
}

.sfhb-rg__track::-webkit-scrollbar {
	display: none;
}

.sfhb-rg__track:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-2);
	outline-offset: -3px;
}

.sfhb-rg__slide {
	flex: 0 0 100%;
	height: 100%;
	min-width: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.sfhb-rg__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sfhb-rg__nav {
	position: absolute;
	top: 50%;
	display: none;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--edge);
	border-radius: 50%;
	background: var(--wp--preset--color--glass);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	opacity: 0;
	transform: translateY(-50%);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: opacity 0.18s ease;
}

.sfhb-rg__nav--prev {
	inset-inline-start: 10px;
}

.sfhb-rg__nav--next {
	inset-inline-end: 10px;
}

.sfhb-rg__nav:focus-visible {
	outline: 0;
	opacity: 1;
	box-shadow: var(--bw-ring);
}

.sfhb-js .sfhb-rg__nav {
	display: grid;
}

.sfhb-rg:hover .sfhb-rg__nav,
.sfhb-rg:focus-within .sfhb-rg__nav {
	opacity: 1;
}

[dir="rtl"] .sfhb-rg__nav .sfhb-bk-i {
	transform: scaleX(-1);
}

.sfhb-rg__dots {
	position: absolute;
	inset-inline: 0;
	bottom: 10px;
	display: flex;
	justify-content: center;
	gap: 5px;
	pointer-events: none;
}

.sfhb-rg__dots i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sfhb-on-photo, #fff);
	opacity: 0.6;
	box-shadow: 0 0 0 1px var(--wp--preset--color--edge);
	transition: transform 0.18s ease, opacity 0.18s ease;
}

.sfhb-rg__dots i.is-active {
	opacity: 1;
	transform: scale(1.3);
}

/* Table layout (compact rows) */
.sfhb-rl--table .sfhb-rl__list {
	gap: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--bw-radius);
	overflow: hidden;
	background: var(--wp--preset--color--panel);
}

.sfhb-rl--table .sfhb-rc {
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.sfhb-rl--table .sfhb-rc + .sfhb-rc {
	border-top: 1px solid var(--wp--preset--color--line);
}

.sfhb-rl--table .sfhb-rc__amen {
	display: none;
}

.sfhb-rl--table .sfhb-rc__body {
	padding: 16px 18px;
}

.sfhb-rl--table .sfhb-rc__title {
	font-size: 18px;
}

.sfhb-rl--table .sfhb-rc__buy {
	background: transparent;
}

/* Layout follows the width of the block (container queries), not the viewport:
   the list lives in a content column next to the sticky widget. Without
   container-query support the stacked layout above is used everywhere. */
@container sfhb-rl (min-width: 620px) {
	.sfhb-rc {
		grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
	}

	.sfhb-rc__media {
		aspect-ratio: auto;
		min-height: 240px;
	}

	.sfhb-rc__buy {
		grid-column: 1 / -1;
	}

	.sfhb-rr {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 16px;
	}

	.sfhb-rr__buy {
		justify-content: flex-end;
		gap: 18px;
	}

	.sfhb-rl--table .sfhb-rc {
		grid-template-columns: 148px minmax(0, 1fr);
	}

	.sfhb-rl--table .sfhb-rc__media {
		align-self: start;
		aspect-ratio: 4 / 3;
		min-height: 0;
		margin: 16px 0;
		margin-inline: 16px 0;
		border-radius: 12px;
		overflow: hidden;
	}

	.sfhb-rl--table .sfhb-rg__nav,
	.sfhb-rl--table .sfhb-rg__dots {
		display: none;
	}
}

@container sfhb-rl (min-width: 980px) {
	.sfhb-rc {
		grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) minmax(300px, 360px);
	}

	.sfhb-rc__buy {
		grid-column: auto;
		border-top: 0;
		border-inline-start: 1px solid var(--wp--preset--color--line);
		padding: 18px 20px;
	}

	.sfhb-rr {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.sfhb-rr__buy {
		justify-content: space-between;
		gap: 12px;
	}

	.sfhb-rl--table .sfhb-rc {
		grid-template-columns: 148px minmax(0, 1fr) minmax(300px, 40%);
	}
}

@container sfhb-rl (max-width: 619px) {
	.sfhb-rc__body {
		padding: 18px;
	}

	.sfhb-rl__field {
		flex-basis: 100%;
		max-width: none;
	}

	.sfhb-rg__nav {
		opacity: 1;
	}
}

@media (max-width: 700px) {
	.sfhb-rl__field {
		flex-basis: 100%;
		max-width: none;
	}

	.sfhb-rg__nav {
		opacity: 1;
	}
}

/* ==========================================================================
   7. No-JS, preview, motion
   ========================================================================== */

.sfhb-bw__nojs {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: var(--bw-radius-in);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.sfhb-js .sfhb-bw__nojs {
	display: none;
}

html:not(.sfhb-js) .sfhb-bw__reserve,
html:not(.sfhb-js) .sfhb-bw__bar {
	display: none;
}

html:not(.sfhb-js) .sfhb-rr__cta {
	display: none;
}

.sfhb-bw.is-preview .sfhb-bw__bar,
.sfhb-bw.is-preview .sfhb-bw__backdrop {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.sfhb-skel {
		animation: none;
	}

	.sfhb-bw__reserve.is-busy::after,
	.sfhb-rr__cta.is-busy::after {
		animation-duration: 2.4s;
	}

	.sfhb-bw *,
	.sfhb-rl *,
	.sfhb-pb * {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

	.sfhb-bw__reserve:hover,
	.sfhb-rr__cta:hover {
		transform: none !important;
	}

	.sfhb-rg__track {
		scroll-behavior: auto;
	}
}

@media (forced-colors: active) {
	.sfhb-rp.is-selected,
	.sfhb-ex.is-on {
		outline: 2px solid Highlight;
	}

	.sfhb-bw__reserve,
	.sfhb-rr__cta,
	.sfhb-bw__bar-cta {
		border: 1px solid ButtonText;
	}
}
