/*!
 * Stepfox Hotel Booking — cart, checkout, my account and thank-you polish (handle `stepfox-hb-checkout`).
 *
 * Styles WooCommerce's own markup (Cart / Checkout blocks and the classic shortcodes) plus the booking UI of
 * includes/woo/checkout.php (room hold banner, cancellation-policy box, order-summary panel). Loads on Woo pages only.
 *
 * Scope: body.sfhb-woo-page (cart, checkout, account). body.sfhb-woo-bookings = the cart holds stays.
 * House rule: every colour is var(--wp--preset--color--<slug>) (the 16-slug contract), so the dark scheme and both
 * themes (block + Elementor) restyle everything. Text on filled brand colours uses the `base` preset.
 */

/* ==========================================================================
   1. Shell and typography
   ========================================================================== */

.sfhb-woo-page {
	--sfhb-co-radius: var(--sfhb-radius-card, 16px);
	--sfhb-co-radius-sm: var(--sfhb-radius-input, 12px);
	--sfhb-co-gap: clamp(16px, 2.4vw, 28px);
	--sfhb-co-ui: var(--sfhb-font-ui, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	--sfhb-co-display: var(--sfhb-font-display, Georgia, "Times New Roman", serif);
	--sfhb-co-shadow: var(--sfhb-shadow-2, none);
}

.sfhb-woo-page .woocommerce,
.sfhb-woo-page .wp-block-woocommerce-cart,
.sfhb-woo-page .wp-block-woocommerce-checkout {
	color: var(--wp--preset--color--ink);
	font-family: var(--sfhb-co-ui);
}

.sfhb-woo-page .woocommerce h2,
.sfhb-woo-page .woocommerce h3,
.sfhb-woo-page .wc-block-components-checkout-step__title,
.sfhb-woo-page .wp-block-woocommerce-cart h2,
.sfhb-woo-page .wp-block-woocommerce-checkout h2 {
	font-family: var(--sfhb-co-display);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink);
}

/* :where() keeps these generic link rules at the lowest specificity: buttons, the account menu and the cart item
   links below always win. */
.sfhb-woo-page .woocommerce a:where(:not(.button, .wc-block-components-button, .remove, [class*="sfhb-"])),
.sfhb-woo-page .wc-block-components-product-name,
.sfhb-woo-page .wc-block-cart-item__remove-link {
	color: var(--wp--preset--color--accent-2);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.sfhb-woo-page .woocommerce a:where(:not(.button, .wc-block-components-button, .remove, [class*="sfhb-"])):hover,
.sfhb-woo-page .wc-block-components-product-name:hover {
	color: var(--wp--preset--color--accent);
}

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

/* Cards: every Woo block region that is a panel */
.sfhb-woo-page .cart_totals,
.sfhb-woo-page .woocommerce-cart-form,
.sfhb-woo-page #order_review,
.sfhb-woo-page #customer_details,
.sfhb-woo-page .woocommerce-MyAccount-content,
.sfhb-woo-page .wc-block-components-checkout-step {
	background: var(--wp--preset--color--panel);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfhb-co-radius);
}

/* ==========================================================================
   2. Notices
   ========================================================================== */

.sfhb-woo-page .woocommerce-message,
.sfhb-woo-page .woocommerce-info,
.sfhb-woo-page .woocommerce-error,
.sfhb-woo-page .wc-block-components-notice-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0 0 var(--sfhb-co-gap);
	padding: 14px 18px;
	list-style: none;
	background: var(--wp--preset--color--panel);
	border: 1px solid var(--wp--preset--color--line);
	border-inline-start: 4px solid var(--wp--preset--color--accent-2);
	border-radius: var(--sfhb-co-radius-sm);
	color: var(--wp--preset--color--ink);
	font: 500 15px/1.5 var(--sfhb-co-ui);
}

.sfhb-woo-page .woocommerce-message,
.sfhb-woo-page .wc-block-components-notice-banner.is-success {
	border-inline-start-color: var(--wp--preset--color--neon);
}

.sfhb-woo-page .woocommerce-error,
.sfhb-woo-page .wc-block-components-notice-banner.is-error {
	border-inline-start-color: var(--wp--preset--color--accent);
}

.sfhb-woo-page .woocommerce-message::before,
.sfhb-woo-page .woocommerce-info::before,
.sfhb-woo-page .woocommerce-error::before {
	display: none;
}

.sfhb-woo-page .woocommerce-error li {
	margin: 0;
}

.sfhb-woo-page .woocommerce-message .button,
.sfhb-woo-page .woocommerce-info .button {
	margin-inline-start: auto;
}

/* wc-blocks.css paints the links inside notice banners #2f2f2f !important (unreadable on the dark panel). */
.sfhb-woo-page .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward,
.sfhb-woo-page .wc-block-components-notice-banner > .wc-block-components-notice-banner__content a:not(.wc-block-components-button) {
	color: var(--wp--preset--color--accent-2) !important;
	opacity: 1;
	text-decoration-line: underline;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.sfhb-woo-page .woocommerce .button,
.sfhb-woo-page .woocommerce button.button,
.sfhb-woo-page .woocommerce input.button,
.sfhb-woo-page .woocommerce #respond input#submit,
.sfhb-woo-page .woocommerce a.button,
.sfhb-woo-page .wc-block-components-button:not(.is-link),
.sfhb-woo-page .wc-block-cart__submit-button,
.sfhb-woo-page .wc-block-components-checkout-place-order-button {
	display: inline-flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: var(--sfhb-co-radius-sm);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font: 700 15px/1.2 var(--sfhb-co-ui);
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sfhb-woo-page .woocommerce .button:hover,
.sfhb-woo-page .woocommerce button.button:hover,
.sfhb-woo-page .woocommerce a.button:hover,
.sfhb-woo-page .wc-block-components-button:not(.is-link):hover,
.sfhb-woo-page .wc-block-cart__submit-button:hover,
.sfhb-woo-page .wc-block-components-checkout-place-order-button:hover {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

.sfhb-woo-page .woocommerce .button.disabled,
.sfhb-woo-page .woocommerce .button:disabled,
.sfhb-woo-page .wc-block-components-button[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Secondary buttons: outlined */
.sfhb-woo-page .woocommerce .button.wc-forward:not(.checkout-button),
.sfhb-woo-page .woocommerce a.button.view,
.sfhb-woo-page .woocommerce .woocommerce-orders-table__cell-order-actions .button,
.sfhb-woo-page .wc-block-components-button.outlined,
.sfhb-woo-page .woocommerce button[name="update_cart"] {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
}

.sfhb-woo-page .woocommerce button[name="update_cart"]:disabled {
	opacity: 0.45;
}

.sfhb-woo-page .woocommerce #place_order,
.sfhb-woo-page .woocommerce .checkout-button,
.sfhb-woo-page .wc-block-cart__submit-button,
.sfhb-woo-page .wc-block-components-checkout-place-order-button {
	width: 100%;
	min-height: 54px;
	font-size: 16px;
}

/* ==========================================================================
   4. Form controls (classic fields, block fields, select2)
   ========================================================================== */

.sfhb-woo-page .woocommerce form .form-row {
	margin: 0 0 16px;
	padding: 0;
}

.sfhb-woo-page .woocommerce form .form-row label,
.sfhb-woo-page .wc-block-components-text-input label,
.sfhb-woo-page .wc-blocks-components-select__label {
	color: var(--wp--preset--color--muted);
	font: 600 13px/1.3 var(--sfhb-co-ui);
}

.sfhb-woo-page .woocommerce form .form-row .required {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.sfhb-woo-page .woocommerce input[type="text"],
.sfhb-woo-page .woocommerce input[type="email"],
.sfhb-woo-page .woocommerce input[type="tel"],
.sfhb-woo-page .woocommerce input[type="password"],
.sfhb-woo-page .woocommerce input[type="number"],
.sfhb-woo-page .woocommerce textarea,
.sfhb-woo-page .woocommerce select,
.sfhb-woo-page .woocommerce .select2-container--default .select2-selection--single,
.sfhb-woo-page .wc-block-components-text-input input,
.sfhb-woo-page .wc-block-components-textarea,
.sfhb-woo-page .wc-blocks-components-select .wc-blocks-components-select__select,
.sfhb-woo-page .wc-block-components-combobox .components-combobox-control__input {
	box-sizing: border-box;
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfhb-co-radius-sm);
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	font: 500 16px/1.4 var(--sfhb-co-ui);
	box-shadow: none;
}

.sfhb-woo-page .woocommerce textarea {
	min-height: 96px;
}

.sfhb-woo-page .woocommerce input:focus,
.sfhb-woo-page .woocommerce textarea:focus,
.sfhb-woo-page .woocommerce select:focus,
.sfhb-woo-page .wc-block-components-text-input input:focus,
.sfhb-woo-page .wc-blocks-components-select__select:focus {
	border-color: var(--wp--preset--color--accent-2);
	outline: 2px solid var(--wp--preset--color--accent-2);
	outline-offset: 0;
	box-shadow: none;
}

.sfhb-woo-page .woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0;
	line-height: 1.4;
	color: var(--wp--preset--color--ink);
}

.sfhb-woo-page .woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 11px;
	inset-inline-end: 10px;
}

.sfhb-woo-page .woocommerce form .form-row.woocommerce-invalid input.input-text,
.sfhb-woo-page .woocommerce form .form-row.woocommerce-invalid select,
.sfhb-woo-page .wc-block-components-text-input.has-error input {
	border-color: var(--wp--preset--color--accent);
}

.sfhb-woo-page .wc-block-components-validation-error,
.sfhb-woo-page .woocommerce form .form-row .woocommerce-input-wrapper .description {
	color: var(--wp--preset--color--accent);
	font-size: 13px;
}

.sfhb-woo-page input[type="checkbox"],
.sfhb-woo-page input[type="radio"] {
	accent-color: var(--wp--preset--color--accent-2);
}

.sfhb-woo-page .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	background: var(--wp--preset--color--panel);
}

.sfhb-woo-page .wc-block-components-checkbox .wc-block-components-checkbox__mark {
	fill: var(--wp--preset--color--accent-2);
}

/* ==========================================================================
   5. Cart: block
   ========================================================================== */

.sfhb-woo-page .wc-block-cart-items {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfhb-co-radius);
	background: var(--wp--preset--color--panel);
	border-collapse: separate;
	overflow: hidden;
}

.sfhb-woo-page .wc-block-cart-items .wc-block-cart-items__header th {
	padding: 14px 18px;
	border-bottom: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted);
	font: 700 12px/1 var(--sfhb-co-ui);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sfhb-woo-page .wc-block-cart-items__row td {
	padding: 22px 18px;
	border-top: 1px solid var(--wp--preset--color--line);
	vertical-align: top;
}

.sfhb-woo-page .wc-block-cart-items__row:first-child td {
	border-top: 0;
}

.sfhb-woo-page .wc-block-cart-item__image img,
.sfhb-woo-page .wc-block-components-order-summary-item__image img {
	aspect-ratio: 4 / 3;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: var(--sfhb-co-radius-sm);
}

.sfhb-woo-page .wc-block-components-product-name {
	display: inline-block;
	font: 600 19px/1.25 var(--sfhb-co-display);
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}

.sfhb-woo-page .wc-block-components-product-details {
	display: grid;
	gap: 4px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	color: var(--wp--preset--color--muted);
	font: 500 14px/1.45 var(--sfhb-co-ui);
}

.sfhb-woo-page .wc-block-components-product-details > li {
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
	margin: 0;
}

.sfhb-woo-page .wc-block-components-product-details__name {
	color: var(--wp--preset--color--ink);
	font-weight: 700;
}

.sfhb-woo-page .wc-block-components-product-details__name::after {
	content: "";
}

.sfhb-woo-page .wc-block-components-product-details__value {
	min-width: 0;
	overflow-wrap: anywhere;
}

.sfhb-woo-page .wc-block-cart-item__remove-link {
	font-size: 14px;
	font-weight: 600;
}

.sfhb-woo-page .wc-block-cart-item__total .wc-block-components-product-price,
.sfhb-woo-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--sfhb-font-num, var(--sfhb-co-ui));
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

/* Stays are one room per line: no quantity controls, no per-night "price each" column. */
.sfhb-woo-bookings .wc-block-components-quantity-selector,
.sfhb-woo-bookings .wc-block-cart-item__quantity .wc-block-components-quantity-selector,
.sfhb-woo-bookings .shop_table .product-quantity,
.sfhb-woo-bookings .shop_table .product-price,
.sfhb-woo-bookings .woocommerce button[name="update_cart"] {
	display: none;
}

.sfhb-woo-bookings .wc-block-cart-item__prices {
	display: none;
}

/* The sidebar is a card. Woo gives it a left gutter (padding), so the card is a pseudo-element that starts after it;
   below the large layout there is no gutter and the card spans the full width. */
.sfhb-woo-page .wc-block-cart__sidebar,
.sfhb-woo-page .wc-block-checkout__sidebar {
	position: relative;
	isolation: isolate;
	align-self: start;
}

.sfhb-woo-page .wc-block-cart__sidebar::before,
.sfhb-woo-page .wc-block-checkout__sidebar::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset-block: 0;
	inset-inline: 2.2641509434% 0;
	background: var(--wp--preset--color--panel);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfhb-co-radius);
}

.sfhb-woo-page .wc-block-components-sidebar-layout:not(.is-large) .wc-block-cart__sidebar::before,
.sfhb-woo-page .wc-block-components-sidebar-layout:not(.is-large) .wc-block-checkout__sidebar::before {
	inset-inline-start: 0;
}

.sfhb-woo-page .wc-block-cart__sidebar > *,
.sfhb-woo-page .wc-block-checkout__sidebar > * {
	margin-inline: clamp(16px, 2vw, 24px);
}

.sfhb-woo-page .wc-block-cart__sidebar > :first-child,
.sfhb-woo-page .wc-block-checkout__sidebar > :first-child {
	margin-block-start: 8px;
	border-top: 0;
}

.sfhb-woo-page .wc-block-cart__sidebar > :last-child,
.sfhb-woo-page .wc-block-checkout__sidebar > :last-child {
	margin-block-end: clamp(16px, 2vw, 24px);
}

@media (min-width: 900px) {
	.sfhb-woo-page .wc-block-cart__sidebar,
	.sfhb-woo-page .wc-block-checkout__sidebar,
	.sfhb-woo-page .cart-collaterals .cart_totals {
		position: sticky;
		top: 96px;
	}
}

.sfhb-woo-page .wc-block-components-totals-wrapper {
	border-color: var(--wp--preset--color--line);
}

.sfhb-woo-page .wc-block-components-totals-item__label {
	color: var(--wp--preset--color--muted);
	font-weight: 600;
}

.sfhb-woo-page .wc-block-components-totals-footer-item {
	font-size: 18px;
}

.sfhb-woo-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	color: var(--wp--preset--color--ink);
	font-family: var(--sfhb-co-display);
	font-size: 20px;
}

/* ==========================================================================
   6. Cart: classic
   ========================================================================== */

.sfhb-woo-page .woocommerce table.shop_table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
	color: var(--wp--preset--color--ink);
}

.sfhb-woo-page .woocommerce table.shop_table th {
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted);
	font: 700 12px/1 var(--sfhb-co-ui);
	letter-spacing: 0.06em;
	text-align: start;
	text-transform: uppercase;
}

.sfhb-woo-page .woocommerce table.shop_table td {
	padding: 18px;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	vertical-align: top;
}

.sfhb-woo-page .woocommerce table.shop_table tr:first-child td {
	border-top: 0;
}

.sfhb-woo-page .woocommerce-cart-form__cart-item .product-thumbnail img {
	width: 120px;
	max-width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	object-fit: cover;
	border-radius: var(--sfhb-co-radius-sm);
}

.sfhb-woo-page .woocommerce-cart-form__cart-item .product-name > a {
	font: 600 19px/1.25 var(--sfhb-co-display);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.sfhb-woo-page .woocommerce td.product-name dl.variation {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 4px 10px;
	margin: 10px 0 0;
	color: var(--wp--preset--color--muted);
	font: 500 14px/1.45 var(--sfhb-co-ui);
}

.sfhb-woo-page .woocommerce td.product-name dl.variation dt {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-weight: 700;
}

.sfhb-woo-page .woocommerce td.product-name dl.variation dd {
	margin: 0;
}

.sfhb-woo-page .woocommerce td.product-name dl.variation dd p {
	margin: 0;
}

.sfhb-woo-page .woocommerce a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--wp--preset--color--panel-2);
	color: var(--wp--preset--color--ink) !important;
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
}

.sfhb-woo-page .woocommerce a.remove:hover {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base) !important;
}

.sfhb-woo-page .woocommerce .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
	padding: 22px;
}

.sfhb-woo-page .woocommerce .cart_totals h2 {
	margin: 0 0 12px;
	font-size: 22px;
}

.sfhb-woo-page .woocommerce .cart_totals table.shop_table th,
.sfhb-woo-page .woocommerce .cart_totals table.shop_table td {
	padding: 12px 0;
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
}

.sfhb-woo-page .woocommerce .cart_totals .order-total td,
.sfhb-woo-page .woocommerce .cart_totals .order-total th {
	color: var(--wp--preset--color--ink);
	font: 700 18px/1.2 var(--sfhb-co-ui);
}

.sfhb-woo-page .woocommerce .wc-proceed-to-checkout {
	padding: 16px 0 0;
}

@media (min-width: 900px) {
	.sfhb-woo-page .woocommerce-cart .woocommerce {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
		gap: var(--sfhb-co-gap);
		align-items: start;
	}

	.sfhb-woo-page .woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
	.sfhb-woo-page .woocommerce-cart .woocommerce > .woocommerce-message,
	.sfhb-woo-page .woocommerce-cart .woocommerce > .woocommerce-error {
		grid-column: 1 / -1;
	}
}

/* ==========================================================================
   7. Checkout: block
   ========================================================================== */

.sfhb-woo-page .wc-block-components-checkout-step {
	margin: 0 0 var(--sfhb-co-gap);
	padding: clamp(18px, 2.4vw, 28px);
}

.sfhb-woo-page .wc-block-components-checkout-step__title {
	font-size: 22px;
}

.sfhb-woo-page .wc-block-components-checkout-step__description {
	color: var(--wp--preset--color--muted);
}

.sfhb-woo-page .wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__title::before {
	background: var(--wp--preset--color--turf);
	color: var(--wp--preset--color--accent-2);
	border-radius: 999px;
	font-family: var(--sfhb-co-ui);
	font-weight: 800;
}

.sfhb-woo-page .wc-block-components-order-summary-item {
	padding: 14px 0;
	border-color: var(--wp--preset--color--line);
}

.sfhb-woo-page .wc-block-components-order-summary-item__quantity {
	display: none;
}

.sfhb-woo-page .wc-block-components-radio-control__option,
.sfhb-woo-page .wc-block-components-radio-control-accordion-option {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfhb-co-radius-sm);
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
}

.sfhb-woo-page .wc-block-components-radio-control__option-checked,
.sfhb-woo-page .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	border-color: var(--wp--preset--color--accent-2);
	box-shadow: 0 0 0 1px var(--wp--preset--color--accent-2);
}

.sfhb-woo-page .wc-block-components-radio-control .wc-block-components-radio-control__label,
.sfhb-woo-page .wc-block-components-radio-control .wc-block-components-radio-control__description {
	color: var(--wp--preset--color--ink);
}

.sfhb-woo-page .wc-block-checkout__actions {
	padding-top: 6px;
}

.sfhb-woo-page .wc-block-checkout__actions .wc-block-components-checkout-return-to-cart-button {
	color: var(--wp--preset--color--accent-2);
	font-weight: 600;
}

/* ==========================================================================
   8. Checkout: classic
   ========================================================================== */

@media (min-width: 900px) {
	.sfhb-woo-page form.woocommerce-checkout {
		display: grid;
		grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
		gap: 0 var(--sfhb-co-gap);
		align-items: start;
	}

	.sfhb-woo-page form.woocommerce-checkout #customer_details {
		grid-column: 1;
		grid-row: 2 / span 3;
		float: none;
		width: auto;
	}

	.sfhb-woo-page form.woocommerce-checkout #order_review_heading,
	.sfhb-woo-page form.woocommerce-checkout #order_review {
		grid-column: 2;
		float: none;
		width: auto;
	}

	.sfhb-woo-page form.woocommerce-checkout #order_review_heading {
		grid-row: 2;
	}

	.sfhb-woo-page form.woocommerce-checkout #order_review {
		grid-row: 3;
		position: sticky;
		top: 96px;
	}
}

.sfhb-woo-page .woocommerce form.checkout .col2-set {
	float: none;
	width: auto;
}

.sfhb-woo-page .woocommerce form.checkout .col2-set .col-1,
.sfhb-woo-page .woocommerce form.checkout .col2-set .col-2 {
	float: none;
	width: auto;
}

.sfhb-woo-page .woocommerce #customer_details,
.sfhb-woo-page .woocommerce #order_review {
	padding: clamp(18px, 2.4vw, 28px);
}

.sfhb-woo-page .woocommerce #order_review_heading {
	margin: 0 0 12px;
	font-size: 22px;
}

.sfhb-woo-page .woocommerce .woocommerce-checkout-review-order-table th,
.sfhb-woo-page .woocommerce .woocommerce-checkout-review-order-table td {
	padding: 12px 0;
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
}

.sfhb-woo-page .woocommerce .woocommerce-checkout-review-order-table .order-total th,
.sfhb-woo-page .woocommerce .woocommerce-checkout-review-order-table .order-total td {
	color: var(--wp--preset--color--ink);
	font: 700 18px/1.2 var(--sfhb-co-ui);
}

.sfhb-woo-page .woocommerce-checkout-review-order-table .product-quantity {
	display: none;
}

.sfhb-woo-page .woocommerce-checkout-payment {
	background: transparent;
	border-radius: 0;
}

.sfhb-woo-page .woocommerce #payment {
	background: transparent;
	border: 0;
	border-radius: 0;
}

.sfhb-woo-page .woocommerce #payment ul.payment_methods {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.sfhb-woo-page .woocommerce #payment ul.payment_methods li {
	margin: 0 0 10px;
	padding: 14px 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfhb-co-radius-sm);
	background: var(--wp--preset--color--panel);
}

.sfhb-woo-page .woocommerce #payment ul.payment_methods li:has(input:checked) {
	border-color: var(--wp--preset--color--accent-2);
	box-shadow: 0 0 0 1px var(--wp--preset--color--accent-2);
}

.sfhb-woo-page .woocommerce #payment div.payment_box {
	margin: 12px 0 0;
	padding: 12px 14px;
	background: var(--wp--preset--color--panel-2);
	border-radius: var(--sfhb-co-radius-sm);
	color: var(--wp--preset--color--ink);
}

.sfhb-woo-page .woocommerce #payment div.payment_box::before {
	display: none;
}

.sfhb-woo-page .woocommerce #payment .place-order {
	padding: 16px 0 0;
}

.sfhb-woo-page .woocommerce-privacy-policy-text,
.sfhb-woo-page .woocommerce-terms-and-conditions-wrapper {
	color: var(--wp--preset--color--muted);
	font-size: 13px;
}

/* ==========================================================================
   9. Booking UI: room hold, cancellation policy, summary panel
   ========================================================================== */

.sfhb-hold {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 0 0 var(--sfhb-co-gap, 20px);
	padding: 14px 18px;
	overflow: hidden;
	background: var(--wp--preset--color--turf);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfhb-radius-card, 16px);
	color: var(--wp--preset--color--ink);
	font: 600 15px/1.4 var(--sfhb-font-ui, system-ui, sans-serif);
}

.sfhb-hold [hidden] {
	display: none;
}

.sfhb-hold__icon {
	flex: none;
	color: var(--wp--preset--color--accent-2);
}

.sfhb-hold__text {
	margin: 0;
}

.sfhb-hold__time {
	display: inline-block;
	min-width: 3.4ch;
	margin-inline-start: 4px;
	color: var(--wp--preset--color--accent-2);
	font: 800 20px/1 var(--sfhb-font-num, var(--sfhb-font-ui, system-ui, sans-serif));
	font-variant-numeric: tabular-nums;
}

.sfhb-hold__bar {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: 3px;
	background: var(--wp--preset--color--line);
}

.sfhb-hold__bar > i {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--wp--preset--color--accent-2);
	transition: width 1s linear;
}

.sfhb-hold.is-low .sfhb-hold__time {
	color: var(--wp--preset--color--accent);
}

.sfhb-hold.is-low .sfhb-hold__bar > i {
	background: var(--wp--preset--color--accent);
}

.sfhb-hold.is-expired {
	background: var(--wp--preset--color--panel-2);
}

.sfhb-hold.is-expired .sfhb-hold__icon {
	color: var(--wp--preset--color--accent);
}

.sfhb-hold__refresh {
	margin-inline-start: auto;
	padding: 8px 14px;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: var(--sfhb-radius-btn, 12px);
	background: transparent;
	color: var(--wp--preset--color--ink);
	font: 700 14px/1 var(--sfhb-font-ui, system-ui, sans-serif);
	cursor: pointer;
}

.sfhb-hold__refresh:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

.sfhb-hold--info {
	background: var(--wp--preset--color--panel);
	font-weight: 500;
}

.sfhb-hold--info .sfhb-hold__icon {
	color: var(--wp--preset--color--muted);
}

@media (prefers-reduced-motion: reduce) {
	.sfhb-hold__bar > i {
		transition: none;
	}
}

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

/* Cancellation policy (classic: above the payment methods; blocks: inside the summary panel) */
.sfhb-policy,
.sfhb-co-summary {
	margin: 18px 0;
	padding: 16px 18px;
	background: var(--wp--preset--color--panel-2);
	border-radius: var(--sfhb-radius-card, 16px);
	color: var(--wp--preset--color--ink);
	font: 500 14px/1.5 var(--sfhb-font-ui, system-ui, sans-serif);
}

.sfhb-policy__title,
.sfhb-co-summary__title {
	margin: 0 0 10px;
	font: 600 17px/1.2 var(--sfhb-font-display, Georgia, serif);
	letter-spacing: -0.005em;
	color: var(--wp--preset--color--ink);
}

.sfhb-policy__list,
.sfhb-co-summary__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfhb-policy__item,
.sfhb-co-summary__item {
	display: grid;
	gap: 2px;
	margin: 0;
	padding-inline-start: 12px;
	border-inline-start: 3px solid var(--wp--preset--color--neon);
}

.sfhb-policy__item.is-final,
.sfhb-co-summary__item.is-final {
	border-inline-start-color: var(--wp--preset--color--accent);
}

.sfhb-policy__item strong,
.sfhb-co-summary__item strong {
	font-weight: 700;
}

.sfhb-policy__item span,
.sfhb-co-summary__item span {
	color: var(--wp--preset--color--muted);
}

.sfhb-policy__note,
.sfhb-co-summary__note {
	margin: 12px 0 0;
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.sfhb-co-summary__row {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 8px;
	margin-top: 4px;
	color: var(--wp--preset--color--muted);
}

.sfhb-co-summary__row b {
	color: var(--wp--preset--color--ink);
	font-weight: 700;
}

.sfhb-co-summary__notice {
	margin: 0 0 12px;
	padding: 10px 12px;
	background: var(--wp--preset--color--panel);
	border-inline-start: 3px solid var(--wp--preset--color--accent);
	border-radius: 8px;
	color: var(--wp--preset--color--ink);
}

.sfhb-notices {
	display: grid;
	gap: 8px;
	margin: 0 0 var(--sfhb-co-gap, 20px);
}

.sfhb-notice {
	margin: 0;
	padding: 14px 18px;
	background: var(--wp--preset--color--panel);
	border: 1px solid var(--wp--preset--color--line);
	border-inline-start: 4px solid var(--wp--preset--color--accent);
	border-radius: var(--sfhb-radius-input, 12px);
	color: var(--wp--preset--color--ink);
	font: 500 15px/1.5 var(--sfhb-font-ui, system-ui, sans-serif);
}

/* "Pay at the property" label in the block checkout */
.sfhb-pay-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
}

/* ==========================================================================
   10. My account (classic shortcode page)
   ========================================================================== */

.sfhb-woo-page .woocommerce-account .woocommerce,
.sfhb-woo-page.woocommerce-account .woocommerce {
	display: grid;
	gap: var(--sfhb-co-gap);
	align-items: start;
}

/* Woo's layout stylesheet clears floats with .woocommerce::before/::after (display:table): inside this grid they would
   become grid items and push the navigation into the second column. */
.sfhb-woo-page .woocommerce-account .woocommerce::before,
.sfhb-woo-page .woocommerce-account .woocommerce::after,
.sfhb-woo-page.woocommerce-account .woocommerce::before,
.sfhb-woo-page.woocommerce-account .woocommerce::after {
	content: none;
	display: none;
}

@media (min-width: 900px) {
	.sfhb-woo-page.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
		grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
	}

	.sfhb-woo-page.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-navigation {
		grid-column: 1;
		grid-row: 1;
	}

	.sfhb-woo-page.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-content {
		grid-column: 2;
		grid-row: 1;
	}
}

.sfhb-woo-page .woocommerce-MyAccount-navigation {
	float: none;
	width: auto;
}

.sfhb-woo-page .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfhb-woo-page .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.sfhb-woo-page .woocommerce-MyAccount-navigation ul {
		flex-direction: column;
		flex-wrap: nowrap;
		padding: 10px;
		background: var(--wp--preset--color--panel);
		border: 1px solid var(--wp--preset--color--line);
		border-radius: var(--sfhb-co-radius);
	}
}

.sfhb-woo-page .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 10px 16px;
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	font: 600 15px/1.2 var(--sfhb-co-ui);
	text-decoration: none;
}

@media (min-width: 900px) {
	.sfhb-woo-page .woocommerce-MyAccount-navigation li a {
		border-radius: var(--sfhb-co-radius-sm);
	}
}

.sfhb-woo-page .woocommerce-MyAccount-navigation li a:hover {
	background: var(--wp--preset--color--panel-2);
	color: var(--wp--preset--color--ink);
}

.sfhb-woo-page .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

.sfhb-woo-page .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	min-width: 0;
	padding: clamp(18px, 2.4vw, 30px);
	overflow-wrap: anywhere;
}

.sfhb-woo-page .woocommerce-MyAccount-content table {
	max-width: 100%;
}

.sfhb-woo-page .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

.sfhb-woo-page .woocommerce-orders-table th,
.sfhb-woo-page .woocommerce-orders-table td {
	padding: 14px 12px;
}

.sfhb-woo-page .woocommerce-orders-table .button {
	min-height: 40px;
	padding: 8px 16px;
	font-size: 14px;
}

.sfhb-woo-page .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--sfhb-co-gap);
}

.sfhb-woo-page .woocommerce-Addresses .woocommerce-Address {
	float: none;
	width: auto;
	padding: 18px;
	background: var(--wp--preset--color--panel-2);
	border-radius: var(--sfhb-co-radius-sm);
}

.sfhb-woo-page .woocommerce form.login,
.sfhb-woo-page .woocommerce form.register,
.sfhb-woo-page .woocommerce form.lost_reset_password {
	margin: 0 0 var(--sfhb-co-gap);
	padding: clamp(18px, 2.4vw, 28px);
	background: var(--wp--preset--color--panel);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfhb-co-radius);
}

.sfhb-woo-page .woocommerce #customer_login {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--sfhb-co-gap);
}

.sfhb-woo-page .woocommerce #customer_login .u-column1,
.sfhb-woo-page .woocommerce #customer_login .u-column2 {
	float: none;
	width: auto;
}

/* Woo clears the old float layout with .col2-set::before/::after (display:table). Inside our grids they become
   grid items: an empty first column shoves Login/Register to the right. Same fix as the account grid above. */
.sfhb-woo-page .col2-set::before,
.sfhb-woo-page .col2-set::after,
.sfhb-woo-page .u-columns::before,
.sfhb-woo-page .u-columns::after {
	content: none;
	display: none;
}

/* Login: "Log in" button and "Remember me" share one centred row (Woo floats them, which leaves the checkbox hanging
   at the top of the button). */
.sfhb-woo-page .woocommerce-form-login p.form-row:has(.woocommerce-form-login__submit) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.sfhb-woo-page .woocommerce-form-login .woocommerce-form-login__submit {
	order: -1;
	float: none;
	margin: 0;
}

.sfhb-woo-page .woocommerce-form-login .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	float: none;
	margin: 0;
}

.sfhb-woo-page .woocommerce-form-login .woocommerce-form-login__rememberme input[type="checkbox"] {
	margin: 0;
}

/* ==========================================================================
   11. Order received (thank-you)
   ========================================================================== */

.sfhb-woo-page .woocommerce-order {
	display: grid;
	gap: var(--sfhb-co-gap);
}

.sfhb-woo-page .woocommerce-notice--success.woocommerce-thankyou-order-received {
	margin: 0;
	padding: 20px 22px;
	background: var(--wp--preset--color--turf);
	border: 1px solid var(--wp--preset--color--line);
	border-inline-start: 4px solid var(--wp--preset--color--neon);
	border-radius: var(--sfhb-co-radius);
	color: var(--wp--preset--color--ink);
	font: 600 18px/1.4 var(--sfhb-co-display);
}

.sfhb-woo-page .woocommerce ul.order_details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfhb-woo-page .woocommerce ul.order_details li {
	float: none;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfhb-co-radius-sm);
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--muted);
	font: 600 12px/1.3 var(--sfhb-co-ui);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.sfhb-woo-page .woocommerce ul.order_details li strong {
	display: block;
	margin-top: 6px;
	color: var(--wp--preset--color--ink);
	font: 700 16px/1.3 var(--sfhb-co-ui);
	letter-spacing: 0;
	text-transform: none;
}

.sfhb-woo-page .woocommerce-order-details,
.sfhb-woo-page .woocommerce-customer-details {
	padding: clamp(18px, 2.4vw, 28px);
	background: var(--wp--preset--color--panel);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfhb-co-radius);
}

.sfhb-woo-page .woocommerce-order-details .woocommerce-order-details__title,
.sfhb-woo-page .woocommerce-customer-details h2 {
	margin: 0 0 12px;
	font-size: 22px;
}

.sfhb-woo-page .woocommerce-table--order-details .wc-item-meta {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 3px 10px;
	margin: 10px 0 0;
	padding: 0;
	color: var(--wp--preset--color--muted);
	font: 500 14px/1.45 var(--sfhb-co-ui);
	list-style: none;
}

.sfhb-woo-page .woocommerce-table--order-details .wc-item-meta li {
	display: contents;
}

.sfhb-woo-page .woocommerce-table--order-details .wc-item-meta .wc-item-meta-label {
	color: var(--wp--preset--color--ink);
	font-weight: 700;
}

.sfhb-woo-page .woocommerce-table--order-details .wc-item-meta p {
	margin: 0;
}

.sfhb-woo-page .woocommerce .woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--sfhb-co-gap);
}

.sfhb-woo-page .woocommerce-columns--addresses .woocommerce-column {
	float: none;
	width: auto;
}

/* ==========================================================================
   12. Small screens, print
   ========================================================================== */

@media (max-width: 599px) {
	.sfhb-woo-page .wc-block-cart-items__row td {
		padding: 16px;
	}

	/* On phones Woo turns the row into a grid with no side padding: the thumbnail and the price touched the card edge. */
	:root:root body.sfhb-woo-page .wc-block-cart-items .wc-block-cart-items__row {
		padding-inline: 16px;
	}

	.sfhb-woo-page .wc-block-cart-items .wc-block-cart-items__header th {
		padding: 12px 16px;
	}
}

@media (max-width: 899px) {
	.sfhb-woo-page .woocommerce table.shop_table_responsive tr td::before {
		color: var(--wp--preset--color--muted);
		font: 700 12px/1 var(--sfhb-co-ui);
		letter-spacing: 0.06em;
		text-transform: uppercase;
	}

	.sfhb-woo-page .woocommerce-cart-form__cart-item {
		border-bottom: 1px solid var(--wp--preset--color--line);
	}

	.sfhb-woo-page .woocommerce a.remove {
		margin: 8px 0 0;
	}
}

@media print {
	.sfhb-hold,
	.sfhb-woo-page .wc-block-components-button,
	.sfhb-woo-page .woocommerce .button {
		display: none;
	}
}

/* ==========================================================================
   13. Block checkout hardening (specificity beats Woo's sheets whatever order they print in)
   ========================================================================== */

/* Text fields, selects and the special-requests field use the palette in light and dark. */
:root:root body.sfhb-woo-page .wc-block-components-text-input input[type],
:root:root body.sfhb-woo-page .wc-block-components-textarea,
:root:root body.sfhb-woo-page .wc-blocks-components-select .wc-blocks-components-select__select,
:root:root body.sfhb-woo-page .wc-block-components-combobox .components-combobox-control__input {
	background-color: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--line);
	border-radius: var(--sfhb-co-radius-sm);
}

:root:root body.sfhb-woo-page .wc-block-components-text-input input[type]:focus,
:root:root body.sfhb-woo-page .wc-block-components-textarea:focus,
:root:root body.sfhb-woo-page .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--wp--preset--color--accent-2);
}

:root:root body.sfhb-woo-page .wc-block-components-text-input label,
:root:root body.sfhb-woo-page .wc-blocks-components-select .wc-blocks-components-select__label {
	color: var(--wp--preset--color--muted);
}

/* Selects: the box (not just the control) carries the radius and colour, and the floating label sits above the value. */
:root:root body.sfhb-woo-page .wc-blocks-components-select .wc-blocks-components-select__container {
	background: var(--wp--preset--color--panel);
	border-radius: var(--sfhb-co-radius-sm);
}

:root:root body.sfhb-woo-page .wc-blocks-components-select .wc-blocks-components-select__select {
	height: 50px;
	padding-block: 22px 0;
	padding-inline: 12px 40px;
	font-size: 16px;
	line-height: 24px;
	text-overflow: ellipsis;
}

:root:root body.sfhb-woo-page .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	padding-block: 22px 0;
	padding-inline: 12px 40px;
}

:root:root body.sfhb-woo-page .wc-blocks-components-select .wc-blocks-components-select__label {
	top: 6px;
	inset-inline-start: 12px;
	font-size: 12px;
	line-height: 1.3;
}

:root:root body.sfhb-woo-page .wc-blocks-components-select .wc-blocks-components-select__expand {
	fill: var(--wp--preset--color--ink);
	inset-inline-end: 12px;
}

/* Booking lines: Woo 11 prints a " / " between the item-data rows and the hidden product's blurb under the name. */
.sfhb-woo-page .wc-block-components-product-details > span > span[aria-hidden="true"],
.sfhb-woo-page .wc-block-components-product-details li > span[aria-hidden="true"] {
	display: none;
}

.sfhb-woo-bookings .wc-block-components-product-metadata__description,
.sfhb-woo-bookings .wc-block-components-order-summary-item__individual-prices {
	display: none;
}

/* The summary thumbnail is a column item that Woo lets shrink to a few pixels. */
.sfhb-woo-page .wc-block-components-order-summary .wc-block-components-order-summary-item__image {
	flex: 0 0 64px;
	width: 64px;
}

.sfhb-woo-page .wc-block-components-order-summary .wc-block-components-order-summary-item__image > img {
	width: 64px;
	max-width: none;
	height: 48px;
	object-fit: cover;
}

/* The sidebar card is drawn once: Woo's own border on the summary block would nest a second box inside it. */
.sfhb-woo-page .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	border: 0;
	border-radius: 0;
}

/* Payment options: one box per method (no nested option border, no separator lines, no clipped outline). */
.sfhb-woo-page .wc-block-components-radio-control--highlight-checked::after,
.sfhb-woo-page .wc-block-components-radio-control--highlight-checked div.wc-block-components-radio-control-accordion-option::after,
.sfhb-woo-page .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option::after {
	display: none;
}

.sfhb-woo-page .wc-block-components-radio-control-accordion-option {
	margin: 0 0 10px;
	overflow: hidden;
}

.sfhb-woo-page .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option,
.sfhb-woo-page .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option-checked,
.sfhb-woo-page .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted {
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.sfhb-woo-page .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	border-color: var(--wp--preset--color--accent-2);
	border-radius: var(--sfhb-co-radius-sm);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--accent-2);
}

/* Classic checkout: notices span the form instead of landing in the sidebar column. */
@media (min-width: 900px) {
	.sfhb-woo-page form.woocommerce-checkout > .woocommerce-NoticeGroup,
	.sfhb-woo-page form.woocommerce-checkout > .woocommerce-NoticeGroup-checkout,
	.sfhb-woo-page form.woocommerce-checkout > .woocommerce-error {
		grid-column: 1 / -1;
		grid-row: 1;
	}
}

/* Empty cart / checkout: a calm message and one clear way back to the stays. */
.sfhb-woo-page .wp-block-woocommerce-empty-cart-block {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: clamp(24px, 6vw, 56px) 0;
	text-align: center;
}

.sfhb-woo-page .wp-block-woocommerce-empty-cart-block > * {
	margin: 0;
}

.sfhb-woo-page .sfhb-empty__text {
	max-width: 46ch;
	color: var(--wp--preset--color--muted);
}

:root:root body.sfhb-woo-page .sfhb-empty__btn,
:root:root body.sfhb-woo-page .wc-block-checkout-empty .wp-block-button__link,
:root:root body.sfhb-woo-page .wc-block-checkout-empty a.wp-element-button,
:root:root body.sfhb-woo-page .wc-block-checkout-empty .wc-block-components-button {
	display: inline-flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
	height: auto;
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: var(--sfhb-co-radius-sm);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font: 700 15px/1.2 var(--sfhb-co-ui);
	text-decoration: none;
}

:root:root body.sfhb-woo-page .sfhb-empty__btn:hover,
:root:root body.sfhb-woo-page .wc-block-checkout-empty .wp-block-button__link:hover,
:root:root body.sfhb-woo-page .wc-block-checkout-empty a.wp-element-button:hover {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

/* The hold promise has no meaning once the cart is empty. */
.sfhb-woo-page:has(.wc-block-checkout-empty, .wp-block-woocommerce-empty-cart-block) .sfhb-hold {
	display: none;
}

/* Summary panel inside the sidebar: Woo zeroes the side padding of anything nested in its totals wrapper. */
.sfhb-woo-page .wc-block-components-order-meta .sfhb-co-summary {
	margin-inline: 0;
	padding: 16px 18px;
}

/* A stay has no quantity badge on its thumbnail. */
:root:root body.sfhb-woo-page .wc-block-components-order-summary-item__quantity {
	display: none;
}

/* Block cart: reserve the height of one hydrated stay line, so the totals card does not jump down when the
   skeleton is replaced (layout shift on phones). */
.sfhb-woo-bookings .wp-block-woocommerce-cart-line-items-block {
	min-height: 350px;
}

/* The unit price repeats the line total for a stay (one room, one price): hide it under the name too. */
:root:root body.sfhb-woo-bookings .wc-block-cart-item__prices {
	display: none;
}

/* ==========================================================================
   14. Round-2 polish: order tables, classic review table on phones, validated fields, tap targets
   ========================================================================== */

/* Order tables (classic review, thank-you, view-order, cart totals): one divider per footer row, drawn on both cells,
   and no stray underline under the last label only. */
:root:root body.sfhb-woo-page table.shop_table tfoot th,
:root:root body.sfhb-woo-page table.shop_table tfoot td {
	border-width: 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

:root:root body.sfhb-woo-page table.shop_table tfoot tr:last-child th,
:root:root body.sfhb-woo-page table.shop_table tfoot tr:last-child td {
	border-bottom: 0;
}

/* Classic checkout: the review table keeps to its card (a long variation value used to push it past the viewport). */
:root:root body.sfhb-woo-page .woocommerce table.shop_table.woocommerce-checkout-review-order-table {
	table-layout: fixed;
	width: 100%;
	max-width: 100%;
}

:root:root body.sfhb-woo-page .woocommerce table.shop_table.woocommerce-checkout-review-order-table :is(th, td) {
	padding-inline: 0;
	overflow-wrap: anywhere;
}

:root:root body.sfhb-woo-page .woocommerce table.shop_table.woocommerce-checkout-review-order-table :is(th, td):last-child {
	width: 7.5em;
	padding-inline-start: 8px;
	text-align: end;
}

:root:root body.sfhb-woo-page .woocommerce table.shop_table.woocommerce-checkout-review-order-table dl.variation {
	grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
	column-gap: 10px;
	min-width: 0;
}

/* Phones: label above value, so a value (dates, policy sentence) gets the whole column instead of a 24px sliver. */
@media (max-width: 599px) {
	:root:root body.sfhb-woo-page .woocommerce table.shop_table.woocommerce-checkout-review-order-table dl.variation {
		grid-template-columns: minmax(0, 1fr);
	}

	:root:root body.sfhb-woo-page .woocommerce table.shop_table.woocommerce-checkout-review-order-table dl.variation dt {
		float: none;
		margin-block-start: 6px;
	}

	:root:root body.sfhb-woo-page .woocommerce table.shop_table.woocommerce-checkout-review-order-table dl.variation dd {
		margin: 0;
	}
}

:root:root body.sfhb-woo-page .woocommerce table.shop_table.woocommerce-checkout-review-order-table dl.variation :is(dt, dd) {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* A field that passed validation keeps the house border (Woo paints it green). */
:root:root:root body.sfhb-woo-page .woocommerce form .form-row.woocommerce-validated :is(input.input-text, textarea, select, .select2-selection),
:root:root:root body.sfhb-woo-page .woocommerce form .form-row.woocommerce-validated .select2-container .select2-selection--single {
	border-color: var(--wp--preset--color--line);
}

/* The password reveal button is a 24px target at least (WCAG 2.5.8). */
.sfhb-woo-page .show-password-input,
.woocommerce-account .show-password-input {
	min-width: 24px;
	min-height: 24px;
}

/* The deferred part of the stay in the totals is information, not a saving: quiet, not highlighted. */
.sfhb-woo-bookings .wc-block-components-totals-fees .wc-block-components-totals-item__label,
.sfhb-woo-bookings .wc-block-components-totals-fees .wc-block-formatted-money-amount,
.sfhb-woo-bookings .woocommerce table.shop_table tr.fee :is(th, td) {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}


/* The Checkout block's empty state (every booking line dropped): a quiet icon, not a giant black cart. */
:root:root body.sfhb-woo-page .wc-block-checkout-empty {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: clamp(24px, 6vw, 56px) 0;
	text-align: center;
}

:root:root body.sfhb-woo-page .wc-block-checkout-empty .wc-block-checkout-empty__image {
	width: 56px;
	height: 56px;
	fill: var(--wp--preset--color--muted);
}

:root:root body.sfhb-woo-page .wc-block-checkout-empty > * {
	margin: 0;
}
