/* ════════════════════════════════════════════════════════════════════════
   UFOREA — WooCommerce wonderland skin
   Standardises cart / checkout / shop / product / account to the site design.
   Strategy: (1) re-point Blocksy's blue theme variables to the wonderland
   palette so its Woo styling inherits our colours, then (2) layer the
   signature wonderland looks (pill buttons + chunky shadow, rounded cream
   cards, Playfair headings, soft pastel form fields). Commerce markup is
   untouched — purely presentational.
   ════════════════════════════════════════════════════════════════════════ */

/* ── 1. Re-point Blocksy theme variables on all Woo pages ───────────────── */
body.woocommerce-page,
body.woocommerce,
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-account,
.woocommerce {
	--theme-palette-color-1: var(--uforea-yellow);
	--theme-palette-color-2: var(--yellow-deep);
	--theme-button-background-initial-color: var(--uforea-yellow);
	--theme-button-background-hover-color: var(--yellow-deep);
	--theme-button-text-initial-color: var(--ink-strong);
	--theme-button-text-hover-color: var(--ink-strong);
	--theme-link-initial-color: var(--ink-strong);
	--theme-link-hover-color: var(--yellow-deep);
	--theme-form-field-border-initial-color: #EADFCE;
	--theme-form-field-border-focus-color: var(--uforea-yellow);
	--theme-text-color: var(--ink);
	--theme-headings-color: var(--ink-strong);
	--theme-border-color: #F0E7D8;
}

/* ── 2. Headings → Playfair Display ─────────────────────────────────────── */
.woocommerce h1, .woocommerce h2, .woocommerce h3,
.woocommerce-checkout h3, .woocommerce-cart h2,
.cart_totals h2, .cross-sells > h2, .related > h2, .upsells > h2,
#order_review_heading, .woocommerce-column__title {
	font-family: 'Playfair Display', serif !important;
	font-weight: 700;
	color: var(--ink-strong);
	letter-spacing: -0.01em;
}

/* ── 3. Buttons → signature yellow pill with chunky shadow ──────────────── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button,
.woocommerce #place_order,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce div.product form.cart .button,
.woocommerce .single_add_to_cart_button,
.woocommerce-account button.button,
.woocommerce-account .button {
	background: var(--uforea-yellow) !important;
	color: var(--ink-strong) !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-family: 'Poppins', sans-serif !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	padding: 14px 28px !important;
	min-height: 48px;
	line-height: 1.2;
	box-shadow: 0 6px 0 var(--yellow-deep) !important;
	transition: transform .15s ease, box-shadow .15s ease;
	text-transform: none !important;
	letter-spacing: 0;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .button:hover,
.woocommerce #place_order:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 0 var(--yellow-deep) !important;
	background: var(--uforea-yellow) !important;
	color: var(--ink-strong) !important;
}
.woocommerce a.button:active,
.woocommerce button.button:active,
.woocommerce .button:active,
.woocommerce #place_order:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--yellow-deep) !important; }

/* Secondary / quieter buttons (Update cart, Apply coupon) → outline pill */
.woocommerce button[name="update_cart"],
.woocommerce .coupon button.button,
.woocommerce a.button.wc-backward {
	background: var(--paper) !important;
	color: var(--ink-strong) !important;
	border: 1.5px solid var(--ink-strong) !important;
	box-shadow: none !important;
}
.woocommerce button[name="update_cart"]:hover,
.woocommerce .coupon button.button:hover,
.woocommerce a.button.wc-backward:hover {
	background: var(--ink-strong) !important;
	color: var(--paper) !important;
	transform: translateY(-1px);
}

/* ── 4. Form fields → rounded, soft pastel border, Poppins ──────────────── */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-cart-form input.input-text,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select,
.select2-container--default .select2-selection--single,
.woocommerce #coupon_code {
	border: 1.5px solid #EADFCE !important;
	border-radius: 12px !important;
	padding: 12px 14px !important;
	min-height: 48px;
	background: var(--paper);
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	color: var(--ink);
	box-shadow: none;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
.woocommerce #coupon_code:focus {
	border-color: var(--uforea-yellow) !important;
	outline: 3px solid var(--yellow-soft);
	outline-offset: 0;
}
.woocommerce form .form-row label { font-family: 'Poppins', sans-serif; font-weight: 500; color: var(--ink); }

/* ── 5. Cart table → rounded card with soft row dividers ────────────────── */
.woocommerce table.shop_table {
	width: 100% !important;
	border: 1px solid var(--blush) !important;
	border-radius: 18px !important;
	border-collapse: separate !important;
	border-spacing: 0;
	overflow: hidden;
	background: var(--paper);
	box-shadow: 0 12px 30px rgba(63,63,63,.05);
}
/* Cart items table + its form should fill the column, matching the totals card. */
.woocommerce-cart-form,
.woocommerce-cart-form table.shop_table.cart { width: 100% !important; }
.woocommerce table.shop_table thead th {
	background: var(--cream);
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	color: var(--ink-strong);
	text-transform: none;
	padding: 16px 18px;
	border: 0;
}
.woocommerce table.shop_table td,
.woocommerce table.shop_table tbody th { border-top: 1px solid #F4ECDF !important; padding: 18px; vertical-align: middle; }
.woocommerce table.shop_table .product-thumbnail img {
	border-radius: 12px;
	width: 84px; height: auto;
	box-shadow: 0 6px 16px rgba(63,63,63,.10);
}
.woocommerce a.remove {
	color: var(--passion-text) !important;
	border: 1px solid var(--blush);
	background: var(--paper);
	font-weight: 400;
}
.woocommerce a.remove:hover { background: var(--passion); color: #fff !important; }
.woocommerce .quantity input.qty {
	border: 1.5px solid #EADFCE !important;
	border-radius: 10px !important;
	min-height: 44px; width: 72px; text-align: center;
	font-family: 'Poppins', sans-serif;
}
/* Grouped ticket-table stepper (Blocksy "type-2": −/+ are ~25px .ct-decrease/
   .ct-increase spans overlaid on the input edges). The fixed 72px width + 14px
   padding above let those buttons sit on top of the number — cramped at rest and
   visibly overlapping on hover/focus/2–3-digit values. Let the input fill Blocksy's
   wrap and reserve real room on each side so the digits always clear the buttons. */
body.woocommerce .group_table .quantity[data-type="type-2"] { --quantity-width: 100px; }
body.woocommerce .group_table .quantity[data-type="type-2"] input.qty {
	width: 100% !important;
	padding-left: 34px !important;
	padding-right: 34px !important;
}

/* ── 6. Cart totals + checkout order review → rounded cream cards ───────── */
.cart_totals,
.woocommerce-checkout-review-order,
.woocommerce-cart .cart-collaterals .cart_totals {
	background: var(--cream);
	border: 1.5px solid var(--blush);
	border-radius: 18px;
	padding: 26px;
	box-shadow: 0 14px 34px rgba(63,63,63,.06);
}
.cart_totals table.shop_table,
.woocommerce-checkout-review-order table.shop_table {
	border: 0 !important; box-shadow: none; background: transparent; border-radius: 0 !important;
}
.cart_totals .order-total .amount,
.woocommerce-checkout-review-order .order-total .amount {
	font-family: 'Playfair Display', serif;
	font-size: 1.5em;
	color: var(--ink-strong);
	font-weight: 700;
}

/* ── 7. Coupon row ──────────────────────────────────────────────────────── */
/* Desktop: coupon sits left, "Update cart" right, ONE row — Blocksy resets
   Woo's float layout, which left them stacked (client 2026-07 spacing review).
   NOTE: td.actions must STAY display:table-cell — flex on a <td> voids its
   colspan and collapses the whole row (learned the hard way). Floats it is.
   The ≤600px block further down deliberately re-stacks them full-width. */
@media (min-width: 601px) {
  .woocommerce-cart-form td.actions .coupon { float: left; }
  .woocommerce-cart-form td.actions > button[name="update_cart"] { float: right; }
  .woocommerce-cart-form td.actions::after { content: ""; display: block; clear: both; }
}
.woocommerce .cart .actions .coupon { display: flex; gap: 10px; align-items: center; }
.woocommerce .cart .actions .coupon #coupon_code { min-width: 180px; }

/* "Visit date: Sat, 18 Jul 2026" as one tidy muted line under the item name —
   the default dl.variation stacked dt/dd with a stray indent (same review). */
.woocommerce dl.variation { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; margin: 4px 0 0; font-size: 13.5px; color: var(--mute, #6E6560); }
.woocommerce dl.variation dt, .woocommerce dl.variation dd { margin: 0; padding: 0; font-weight: 500; }
.woocommerce dl.variation dd p { margin: 0; display: inline; }

/* Empty cart: breathing room between the "cart is empty" notice and the
   "Return to shop" button, and below the button before the footer. */
.woocommerce .return-to-shop { margin: 24px 0 8px; }
.woocommerce .wc-empty-cart-message .cart-empty { margin-bottom: 0; }

/* Root cause of the stacking: table auto-layout starved td.product-name down
   to ~120px while quantity/subtotal hogged the row. Give the name column the
   lion's share on desktop (mobile stacks cells as blocks — leave untouched). */
@media (min-width: 601px) {
  .woocommerce-cart-form table.shop_table.cart td.product-name,
  .woocommerce-cart-form table.shop_table.cart th.product-name { width: 46%; }
  .woocommerce-cart-form table.shop_table.cart td.product-thumbnail { width: 96px; }
}

/* ── 8. Notices → wonderland pastel cards ───────────────────────────────── */
.woocommerce-message, .woocommerce-info, .woocommerce-error,
.wc-block-components-notice-banner {
	border-radius: 14px !important;
	border-top: 0 !important;
	border-left: 4px solid var(--uforea-yellow) !important;
	background: var(--cream) !important;
	color: var(--ink-strong) !important;
	box-shadow: 0 8px 20px rgba(63,63,63,.06);
	font-family: 'Poppins', sans-serif;
}
.woocommerce-message { background: var(--mint) !important; border-left-color: var(--generous) !important; }
.woocommerce-error { background: var(--blush) !important; border-left-color: var(--passion) !important; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { color: var(--ink-strong); }

/* ── 9. Shop / archive product cards ────────────────────────────────────── */
.woocommerce ul.products li.product {
	background: var(--paper);
	border-radius: 18px;
	padding: 14px 14px 20px;
	box-shadow: 0 12px 30px rgba(63,63,63,.06);
	transition: transform .18s ease, box-shadow .18s ease;
	text-align: left;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(63,63,63,.12); }
.woocommerce ul.products li.product a img { border-radius: 14px; margin-bottom: 14px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; color: var(--ink-strong);
}
.woocommerce ul.products li.product .price { color: var(--ink-strong) !important; font-weight: 700; font-family: 'Poppins', sans-serif; }
.woocommerce ul.products li.product .price del { opacity: .5; font-weight: 400; }
.woocommerce span.onsale {
	background: var(--uforea-yellow); color: var(--ink-strong);
	border-radius: 999px; min-height: auto; min-width: auto; padding: 5px 13px; font-weight: 600;
	box-shadow: 0 4px 0 var(--yellow-deep);
}
.woocommerce .woocommerce-result-count { font-family: 'Poppins', sans-serif; color: var(--mute); }
.woocommerce .woocommerce-ordering select { min-width: 200px; }

/* ── 10. Single product ─────────────────────────────────────────────────── */
.single-product div.product .product_title { font-family: 'Playfair Display', serif; color: var(--ink-strong); }
.single-product div.product p.price, .single-product div.product .price {
	color: var(--ink-strong) !important; font-weight: 700; font-family: 'Poppins', sans-serif;
}
.single-product div.product .woocommerce-product-gallery__image img { border-radius: 16px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 999px 999px 0 0; }

/* ── 11. Checkout layout ────────────────────────────────────────────────── */
.woocommerce-checkout #payment {
	background: var(--cream) !important;
	border-radius: 16px;
	border: 1.5px solid var(--blush);
}
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid #F0E7D8; }
.woocommerce-checkout #payment div.payment_box {
	background: var(--paper);
	border-radius: 12px;
}
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--paper); }
.woocommerce form.checkout h3 { margin-top: 6px; }

/* ── 12. My account ─────────────────────────────────────────────────────── */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border: 1.5px solid var(--blush); border-radius: 14px; overflow: hidden; }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid #F4ECDF; }
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 13px 18px; font-family: 'Poppins', sans-serif; font-weight: 500; color: var(--ink); text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--yellow-soft); color: var(--ink-strong); font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--cream); }
.woocommerce-account form.woocommerce-form { background: var(--cream); border: 1.5px solid var(--blush); border-radius: 18px; padding: 28px; }

/* ── 13. Hide Blocksy's mobile cart actions (duplicate qty/remove) on desktop ─ */
@media (min-width: 1000px) {
	.woocommerce-cart-form td.product-name .product-mobile-actions { display: none !important; }
}

/* ── 14. Cart: 2-column on desktop (items left, sticky summary right) ────── */
@media (min-width: 1000px) {
	.ct-woocommerce-cart-form {
		display: grid;
		grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
		gap: 30px;
		align-items: start;
	}
	.ct-woocommerce-cart-form > .cart_totals { position: sticky; top: 96px; margin: 0; }
}

/* ── 15. My Account → 2-column (nav sidebar left, content right) on desktop ─
   Scoped to LOGGED-IN only: logged-out (login/register) has no nav sidebar, so
   the 240px column would sit empty and shove the login card to the right. */
@media (min-width: 1000px) {
	.woocommerce-account.logged-in .woocommerce {
		display: grid;
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 30px;
		align-items: start;
	}
	.woocommerce-account.logged-in .ct-acount-nav { position: sticky; top: 96px; }
}

/* ════════════════ 9. Mobile cart → tidy cards ════════════════
   Blocksy already injects a combined mobile block (.product-mobile-actions, with
   the qty stepper + remove) inside the product-name cell. So on phones we show
   the thumbnail + that block, and HIDE the redundant standard data cells —
   otherwise the quantity/subtotal appear twice. */
@media (max-width: 600px) {
  .woocommerce-cart-form table.shop_table.cart thead { display: none; }
  .woocommerce-cart-form table.shop_table.cart,
  .woocommerce-cart-form table.shop_table.cart tbody { display: block; width: 100% !important; }
  .woocommerce-cart-form table.shop_table.cart tr.cart_item {
    display: flex; gap: 14px; align-items: flex-start; width: 100% !important;
    border: 1px solid var(--uforea-yellow) !important;
    border-radius: 14px; padding: 16px !important; margin-bottom: 14px; background: var(--paper);
  }
  .woocommerce-cart-form table.shop_table.cart tr.cart_item td { border: 0 !important; padding: 0 !important; }
  .woocommerce-cart-form table.shop_table.cart td.product-thumbnail { flex: 0 0 auto; display: block; }
  .woocommerce-cart-form table.shop_table.cart td.product-thumbnail img { width: 76px; height: auto; }
  .woocommerce-cart-form table.shop_table.cart td.product-name { flex: 1; min-width: 0; display: block; font-weight: 600; color: var(--ink-strong); }
  /* hide the duplicate standard cells — Blocksy's in-name mobile block covers them */
  .woocommerce-cart-form table.shop_table.cart td.product-price,
  .woocommerce-cart-form table.shop_table.cart td.product-quantity,
  .woocommerce-cart-form table.shop_table.cart td.product-subtotal,
  .woocommerce-cart-form table.shop_table.cart td.product-remove { display: none !important; }
  /* coupon + update-cart actions stack full-width */
  .woocommerce-cart-form td.actions { display: block; padding: 4px 0 0 !important; }
  .woocommerce-cart-form td.actions .coupon { display: flex; gap: 8px; margin-bottom: 12px; }
  .woocommerce-cart-form td.actions .coupon #coupon_code { flex: 1; min-width: 0; }
  .woocommerce-cart-form td.actions button[name="update_cart"] { width: 100%; }
}

/* Cart/checkout: never let the tables push horizontal overflow on small screens. */
.woocommerce-cart .entry-content, .woocommerce-checkout .entry-content { overflow-x: hidden; overflow-x: clip; }
.woocommerce table.shop_table { max-width: 100%; }

/* Per-person helper note above the grouped ticket table (set in inc/template-woo.php). */
.uforea-ticket-note {
  background: var(--cream, #FFFBF3);
  border: 1px solid var(--yellow-soft, #FFF1C7);
  border-left: 3px solid var(--uforea-yellow, #FFBA01);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink, #3F3F3F);
}

/* Terms-of-visit pointer under the buy button and above "Proceed to checkout"
   (set in inc/template-woo.php). */
.uforea-terms-note {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mute, #6E6560);
}
.uforea-terms-note a {
  color: var(--ink, #3F3F3F);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wc-proceed-to-checkout .uforea-terms-note { margin: 0 0 14px; }
/* The checkout button computes display:inline here, so vertical margins were
   ignored and its padded background painted OVER the terms note. Block it. */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: block; text-align: center; }

/* ════════════════════════════════════════════════════════════════════════
   16. Commerce polish — UI-audit round 2026-07
   The custom marketing pages were solid; the stock Woo/Blocksy commerce pages
   (checkout, shop sort, my-account, product) were not. These bring them up to
   the same standard. Checkout back-end/markup is unchanged — layout only.
   ════════════════════════════════════════════════════════════════════════ */

/* ── 16a. Checkout form: vertical label→control rhythm, full-width controls ── */
.woocommerce-checkout .form-row {
  display: block; width: 100%; float: none; margin: 0 0 16px; padding: 0;
}
.woocommerce-checkout .form-row > label:not(.woocommerce-form__label-for-checkbox) {
  display: block; margin-bottom: 6px;
}
.woocommerce-checkout .form-row .woocommerce-input-wrapper { display: block; width: 100%; }
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row .select2-container,
.woocommerce-checkout .form-row .select2-container .select2-selection {
  width: 100% !important; box-sizing: border-box;
}
.woocommerce-checkout #order_comments { width: 100% !important; min-height: 96px; resize: vertical; }

/* ── 16b. Checkout: real two-column on desktop (Blocksy wraps the form as
   .ct-customer-details + .ct-order-review) — details left, summary right sticky ── */
@media (min-width: 1000px) {
  .woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
  .woocommerce-checkout form.checkout > .ct-order-review { position: sticky; top: 96px; margin-top: 0; }
}

/* ── 16c. Shop / category sort dropdown text was rendering transparent on
   mobile (Blocksy custom-select overlay). Force the label text visible. ── */
.woocommerce .woocommerce-ordering select,
.woocommerce .woocommerce-ordering select.orderby {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  background-color: var(--paper);
  min-width: 200px;
}

/* ── 16d. Logged-out My Account = a designed auth page (login + register cards),
   centred, no empty nav column. ── */
.woocommerce-account:not(.logged-in) .woocommerce { max-width: 900px; margin-left: auto; margin-right: auto; }
.woocommerce-account:not(.logged-in) .woocommerce > h2,
.woocommerce-account:not(.logged-in) .entry-title { text-align: center; }
@media (min-width: 768px) {
  .woocommerce-account:not(.logged-in) .woocommerce .u-columns {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start;
  }
  .woocommerce-account:not(.logged-in) .woocommerce .u-columns .col-1,
  .woocommerce-account:not(.logged-in) .woocommerce .u-columns .col-2 {
    width: auto !important; float: none !important; margin: 0 !important;
  }
}

/* ── 16e. Mobile: reserve bottom space so the floating WhatsApp button never
   sits on top of page-end content (privacy/terms at checkout, card footers). ── */
@media (max-width: 720px) {
  body:not(.home) { padding-bottom: 80px !important; }
}

/* ── 16f. Shop / category: trim the dead whitespace before the product grid,
   and give the notice/header a tidier rhythm. ── */
.woocommerce .woocommerce-result-count { margin-bottom: 10px; }
.post-type-archive-product .woocommerce > .woocommerce-notices-wrapper:empty,
.woocommerce-page.woocommerce-shop .woocommerce > .woocommerce-notices-wrapper:empty { margin: 0; }
@media (max-width: 720px) {
  .woocommerce .products { margin-top: 8px; }
}

/* ── 16g. Peak-date + info notices: comfortable padding so they read as an
   intentional card, not a thin line, on desktop and mobile. ── */
.woocommerce-info, .woocommerce-message {
  padding: 14px 18px 14px 20px !important;
  line-height: 1.55;
}

/* ── 16h. Product purchase block: tighten the vertical rhythm so Add to cart
   isn't pushed far down the page under the (tall) visit-date calendar. ── */
.single-product div.product form.cart { margin-top: 10px; }
.single-product div.product .uforea-visit-date { margin-bottom: 14px; }
.single-product div.product form.cart .button { margin-top: 4px; }
@media (max-width: 720px) {
  .single-product div.product form.cart .group_table td { padding-top: 6px; padding-bottom: 6px; }
  .single-product div.product .uforea-ticket-note { margin-top: 10px; }
  /* Cap the product photo so it stops eating the whole first screen — brings
     the title, price, quantities and Add-to-cart up sooner (audit 2026-07). */
  .single-product div.product .woocommerce-product-gallery__image img,
  .single-product div.product .ct-media-container img {
    max-height: 50vh; width: 100%; object-fit: cover; object-position: center;
    border-radius: 16px;
  }
}

/* ════════════════ Day-pass product page — hero + notes + date-first (client 2026-07) ════════════════ */
.uforea-daypass-hero { max-width: none; margin: 0 0 24px; padding: 0; }
.uforea-daypass-hero .hero-carousel { margin: 0; }

/* Calendar-left / buy-right (client 2026-07): the visit-date calendar is moved
   (main.js) into the product's left gallery column and framed as a card; the
   product image is hidden there. On desktop this is the mockup's side-by-side
   split; on mobile the gallery column stacks first, so the date still leads. */
.single-product .uforea-dp-calcol > *:not(.uforea-visit-date) { display: none !important; }
.single-product .uforea-dp-calcol { display: block; align-self: start; }
.single-product .uforea-dp-calcol .uforea-visit-date {
  margin: 0; padding: 20px 22px 18px;
  background: var(--paper, #fff);
  border: 1px solid rgba(63,63,63,.07);
  border-radius: 18px;
  box-shadow: 0 18px 40px -20px rgba(63,63,63,.35);
}
.single-product .uforea-dp-calcol .uforea-cal { width: 100%; }
/* The buy column reads as a floating white card too (client design) */
.single-product .uforea-dp-split .summary.entry-summary {
  background: #fff; border: 1px solid rgba(255,186,1,.22); border-radius: 18px;
  padding: 24px 26px; box-shadow: 0 18px 40px -20px rgba(63,63,63,.35);
}
@media (min-width: 900px) { .single-product .uforea-dp-split .summary.entry-summary { align-self: start; } }
@media (min-width: 900px) {
  .single-product .uforea-dp-calcol { position: sticky; top: 92px; }
  /* a touch more room for the calendar than the buy column */
  .single-product .uforea-dp-split .product-entry-wrapper .uforea-dp-calcol { flex-basis: 54%; }
  .single-product .uforea-dp-split .product-entry-wrapper .summary { flex-basis: 46%; }
}
/* Fallback (no gallery column): keep the in-form calendar framed as step one. */
.single-product div.product form.cart.uforea-date-first .uforea-visit-date {
  margin: 4px 0 18px; padding: 16px 18px 14px;
  background: var(--paper, #fff);
  border: 1.5px solid var(--uforea-yellow, #FFBA01);
  border-radius: 16px;
  box-shadow: 0 14px 30px -24px rgba(63,63,63,.5);
}

/* "Before you book" notes card (product-page scoped) */
.uforea-daypass-notes { max-width: 900px; margin: 34px auto 0; padding: 0 4%; }
.uforea-daypass-notes .notes-card { background: var(--yellow-soft, #FFF1C7); border: var(--card-frame); border-radius: var(--r-card); padding: 24px 28px; }
.uforea-daypass-notes .notes-title { margin: 0 0 14px; text-align: center; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 20px; color: var(--ink-strong, #4A4542); }
.uforea-daypass-notes .notes-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.uforea-daypass-notes .notes-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink, #6E6560); }
.uforea-daypass-notes .notes-list li svg { color: var(--generous-text, #1F6B53); flex-shrink: 0; margin-top: 3px; }
.uforea-daypass-notes .notes-houserules { margin: 16px 0 0; text-align: center; }
.uforea-daypass-notes .notes-houserules a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-strong, #4A4542); text-decoration: underline; text-decoration-color: var(--uforea-yellow, #FFBA01); text-underline-offset: 4px; }
@media (max-width: 640px) { .uforea-daypass-notes .notes-list { grid-template-columns: 1fr; } }

/* ── Breadcrumb parity on commerce pages (client 2026-07 spacing review) ──
   cart/checkout/my-account emit the theme .crumb via page.php, but the files
   that style .crumb (page.css etc.) don't load here — so it hugged the nav.
   Canonical styles copied from page.css for a consistent 18px offset. */
.crumb { padding: 18px 0 0; font-size: 13px; color: var(--mute, #6E6560); }
.crumb a { color: var(--ink, #4A4542); text-decoration: underline; text-decoration-color: var(--uforea-yellow, #FFBA01); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.crumb a:hover { color: var(--gold-text, #8a6500); text-decoration-color: var(--gold-text, #8a6500); }
.crumb .sep { font-family: 'Italianno', cursive; color: var(--uforea-yellow, #FFBA01); font-size: 22px; line-height: 1; vertical-align: middle; margin: 0 6px; display: inline-block; transform: translateY(-2px); }
.crumb .here { color: var(--ink-strong, #2F2A28); font-weight: 600; }

/* ── Visual-review round 2026-07 fixes ─────────────────────────────────── */
/* Blocksy type-2 stepper on SIMPLE product pages (Merdeka, FOR-U, adult/child
   singles): same overlay-button clearance as the grouped table (gotcha 1j) —
   without it the − sat inside the input and the + floated unstyled. */
body.woocommerce div.product form.cart .quantity[data-type="type-2"] { --quantity-width: 110px; }
body.woocommerce div.product form.cart .quantity[data-type="type-2"] input.qty {
  width: 100% !important;
  padding-left: 34px !important;
  padding-right: 34px !important;
}

/* My-account login: the Log in button touched the "Remember me" label. */
.woocommerce-form-login .woocommerce-form-login__submit { margin-left: 18px; }
@media (max-width: 600px) {
  .woocommerce-form-login .woocommerce-form-login__submit { display: block; margin: 14px 0 0; width: 100%; }
}

/* Checkout: the gateway description paragraph painted its own white patch
   inside the cream Pay-on-arrival box. */
#payment div.payment_box, #payment div.payment_box p { background: transparent !important; box-shadow: none; }

/* Mobile cart: breathing room between the ×RM subtotal and the remove icon. */
@media (max-width: 600px) {
  .woocommerce-cart-form .cart_item a.remove { margin-left: 12px; }
}

/* Product tabs: stacked pills touched at phone widths. */
@media (max-width: 720px) {
  .woocommerce-tabs ul.tabs li { margin-bottom: 10px !important; }
}

/* Related / cross-sell grids: 1-line vs 2-line product titles staggered the
   price rows — reserve two lines so card metas align. */
@media (min-width: 768px) {
  .related .products .product .woocommerce-loop-product__title,
  .cross-sells .products .product .woocommerce-loop-product__title,
  .upsells .products .product .woocommerce-loop-product__title { min-height: 2.8em; }
}

/* ── Visual-review round 3 fixes ───────────────────────────────────────── */
/* Checkout: symmetric breathing room in the payment container (content and
   the Place-order button were flush against the card border). */
.woocommerce-checkout #payment { padding: 6px 18px 16px; box-sizing: border-box; }
.woocommerce-checkout #payment div.payment_box { padding: 14px 16px; }
.woocommerce-checkout #payment .place-order { padding: 12px 0 6px; }

/* Order-review table: totals rows live in tfoot — give their cells the same
   full-width separators as body rows (they stopped at the amount column). */
.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td { border-top: 1px solid #F4ECDF !important; }

/* Related products: Blocksy hides the cross-sell row on phones — keep it. */
@media (max-width: 999.98px) { .single-product section.related.products { display: block !important; } }

/* Shop title band: ~180px of empty air between "Shop" and the grid. */
.post-type-archive-product .hero-section { min-height: 0 !important; padding: 26px 0 4px !important; }

/* Sorting select: caret rendered over the text — reserve its right lane. */
.woocommerce-ordering select { padding-right: 38px !important; }

/* Grouped ticket rows: stop "Weekday Adult" wrapping at phone widths. */
@media (max-width: 430px) {
  .group_table .woocommerce-grouped-product-list-item__label { white-space: nowrap; }
}

/* Fee labels ("Weekend surcharge (25 Jul 2026)") wrap with an orphaned
   "2026)" — balance the wrap. */
.woocommerce table.shop_table tfoot th { text-wrap: balance; }

/* Cart quantity: hide native number spinners so rows render identically. */
.woocommerce-cart-form .quantity input.qty::-webkit-inner-spin-button,
.woocommerce-cart-form .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce-cart-form .quantity input.qty { -moz-appearance: textfield; appearance: textfield; }

/* ── 16e. Related products (mobile-only section) needs a section break above —
   it was sitting 8px under the CATEGORY meta line. ── */
@media (max-width: 999.98px) {
  .single-product section.related.products { margin-top: 36px; }
}

/* ── 16f. Sort dropdown had no caret at all (appearance:none removed the
   native arrow, nothing replaced it). Inline chevron, right-aligned. ── */
.woocommerce .woocommerce-ordering select,
.woocommerce .woocommerce-ordering select.orderby {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%234A4542' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

/* ── 16g. Grouped ticket table overflowed the summary card by ~10px at 390
   (nowrap labels + 110px stepper + price col exceed the content box). Tighten
   cells and stepper on very narrow phones. ── */
@media (max-width: 430px) {
  body.woocommerce div.product form.cart .group_table .quantity[data-type="type-2"] { --quantity-width: 92px; }
  .group_table td { padding-left: 4px; padding-right: 4px; }
  .group_table td:first-child { padding-left: 0; }
  .group_table td:last-child { padding-right: 0; padding-left: 6px; }
  .group_table .woocommerce-Price-amount { font-size: 14px; }
}

/* ── 16h. Shop header: Blocksy's .entry-header defaults to min-height 250px +
   50px paddings — a huge dead band around the one-word "Shop" title (client
   2026-07-17). Tighten on product archives. ── */
.post-type-archive-product .hero-section .entry-header,
.tax-product_cat .hero-section .entry-header {
  min-height: 0;
  padding-top: 14px;
  padding-bottom: 10px;
}

/* Blocksy injects a decorative inline <svg> arrow into the ordering form —
   it paints over the select's label text. Our select supplies its own
   background chevron (16f), so hide Blocksy's. */
.woocommerce-ordering > svg { display: none; }

/* ── Staging review 2026-07-17 ── */
/* Mobile cart: Blocksy's × multiply symbol dangles alone once the qty input
   wraps to its own line — hide it at phone widths. */
@media (max-width: 600px) {
  .woocommerce-cart .ct-product-multiply-symbol { display: none; }
}
/* Cart header: "Product" was centered over left-aligned cells */
.woocommerce-cart table.shop_table th.product-name { text-align: left; }
/* WooCommerce notices render inside a ul — kill the stray disc bullet that
   painted beside the styled notice card. */
.woocommerce-notices-wrapper ul,
.woocommerce-notices-wrapper li,
ul.woocommerce-error, ul.woocommerce-message, ul.woocommerce-info {
  list-style: none; margin-left: 0; padding-left: 0;
}
/* Variable products: the empty variation-price placeholder reserved a ~55px
   hole between the option select and the add-to-cart row. */
form.variations_form .woocommerce-variation.single_variation { min-height: 0; margin: 0; }
form.variations_form .single_variation_wrap .woocommerce-variation:empty { display: none; }
/* No UFOREA product uses SKUs — variable products still render an "SKU: N/A"
   wrapper by Woo design (awaiting variation JS). Hide the row entirely. */
.product_meta .sku_wrapper { display: none !important; }

/* ── Woo notices (2026-07-17): Blocksy paints notice links WHITE (invisible on
   the pale error/info backgrounds) and absolutely positions the notice icon
   over text that has no padding. ── */
.woocommerce-error li, .woocommerce-message li, .woocommerce-info li,
ul.woocommerce-error li { padding-left: 48px !important; }
.woocommerce-error a:not(.button):not(.wc-forward),
.woocommerce-message a:not(.button):not(.wc-forward),
.woocommerce-info a:not(.button):not(.wc-forward) {
  color: inherit !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-decoration-color: var(--uforea-yellow, #FFBA01);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Long description pulled up into the summary (above add-to-cart) */
.uforea-prod-desc { margin: 6px 0 20px; padding-top: 14px; border-top: 1px solid rgba(63,63,63,.12); color: var(--ink, #4A4542); font-size: 15px; line-height: 1.7; }
.uforea-prod-desc p { margin: 0 0 10px; }
.uforea-prod-desc p:last-child { margin-bottom: 0; }

/* ── Sticky mobile add-to-cart (client 2026-07-17) ──
   On phones the buy button pins to the bottom of the screen so it stays
   reachable while reading the description/date calendar. FAB rides above it. */
@media (max-width: 700px) {
  .single-product form.cart .single_add_to_cart_button {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    width: auto;
    margin: 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  }
  .single-product .site-main { padding-bottom: 96px; }
  .single-product .quick-actions { bottom: 96px; }
}
