/* WooCommerce pages. Woo's own CSS is off; this styles its markup with the theme tokens. Mobile first. */

/* ── Shop and category pages ─────────────────────────────────────────── */

.shop-main { padding-top: 20px; }
/* Search results: the search box under the title, white on the sky */
.shop-search { margin-top: 18px; max-width: 560px; }
.shop-search .sq-field { background: var(--white); border-color: var(--white); }
.shop-search .sq-field:focus-within { border-color: var(--ink); }
.shop-hero + .shop-main { padding-top: var(--after-hero); }

/* Archive layout: on desktop the category sidebar floats beside the grid and sticks while scrolling */
@media (min-width: 1024px) {
  .shop-archive { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .shop-archive > * { grid-column: 2; }
  .shop-archive > .shop-side { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 24px; z-index: 5; }
  body.admin-bar .shop-archive > .shop-side { top: calc(var(--wp-admin--admin-bar--height, 32px) + 24px); }
  .shop-archive ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The floating card */
.shop-side-card {
  padding: 16px 12px 12px; background: var(--white);
  border: 2px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 12px 0 rgba(2, 28, 105, 0.06), 0 18px 40px rgba(2, 28, 105, 0.08);
}
.shop-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 10px; }
.shop-side-title { font: 800 1.25rem/1.1 var(--display); letter-spacing: -0.01em; }
.shop-side-close {
  display: none; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--tint); color: var(--ink); cursor: pointer;
}
.shop-side-date { display: flex; align-items: center; gap: 6px; padding: 0 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }

.date-pill { position: relative; flex: 1; min-width: 0; margin: 0; }
.date-pill label {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px;
  border-radius: var(--r-pill); background: var(--orange); color: var(--ink);
  font-weight: 700; font-size: 0.9375rem; white-space: nowrap; cursor: pointer;
}
.date-pill.has-date label { background: var(--sun); }
/* The real date input covers the pill, so a tap opens the phone's own picker */
.date-pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.date-pill input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.date-pill label:focus-visible, .date-pill:has(input[type="date"]:focus-visible) label { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .date-pill label:hover { background: var(--orange-press); } .date-pill.has-date label:hover { background: #ffe14d; } }
.date-pill-clear {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--tint); color: var(--ink);
}
@media (hover: hover) { .date-pill-clear:hover { background: var(--line); } }

/* Category list: the current one filled navy */
.side-cats { list-style: none; display: grid; gap: 2px; }
.side-cats a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 0 12px;
  border-radius: 14px; font-weight: 700; font-size: 0.9375rem; text-decoration: none;
}
.side-count { font-size: 0.8125rem; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.side-cats a[aria-current="page"] { background: var(--ink); color: var(--white); }
.side-cats a[aria-current="page"] .side-count { color: var(--foot-text); }
@media (hover: hover) { .side-cats a:not([aria-current="page"]):hover { background: var(--tint); } }

/* Phones and tablets: the card is a bottom sheet, opened from a floating button above the phone dock */
.shop-side-toggle, .shop-side-backdrop { display: none; }
@media (max-width: 1023px) {
  .shop-side-toggle:not([hidden]) {
    position: fixed; z-index: 41; left: 50%; transform: translateX(-50%);
    bottom: calc(var(--dock-h) + 12px + env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; max-width: calc(100vw - 32px); padding: 0 20px 0 16px;
    border: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--white);
    font: 700 0.9375rem/1 var(--body); white-space: nowrap; cursor: pointer;
    box-shadow: 0 8px 24px rgba(2, 28, 105, 0.3);
  }
  .shop-side-toggle span:first-of-type { overflow: hidden; text-overflow: ellipsis; }
  .shop-side-toggle-date { padding: 4px 8px; border-radius: var(--r-pill); background: var(--sun); color: var(--ink); font-size: 0.8125rem; }
  .shop-side {
    position: fixed; z-index: 51; left: 0; right: 0; bottom: 0;
    max-height: min(80vh, 640px); overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(105%); visibility: hidden;
    transition: transform 280ms cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 280ms;
  }
  .shop-side.is-open { transform: none; visibility: visible; transition: transform 280ms cubic-bezier(0.2, 0, 0, 1), visibility 0s; }
  .shop-side-card {
    border: 0; border-radius: var(--r-card) var(--r-card) 0 0; box-shadow: 0 -10px 40px rgba(2, 28, 105, 0.25);
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  }
  .shop-side-close { display: grid; }
  .shop-side-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(2, 28, 105, 0.4); }
  .side-cats a { min-height: 48px; font-size: 1rem; }
  /* Leaves room for the floating button above the dock */
  .shop-archive { padding-bottom: calc(var(--section) + 40px); }
}
@media (prefers-reduced-motion: reduce) { .shop-side { transition: none !important; } }

/* Sort above the grid */
.shop-bar { display: flex; justify-content: flex-end; margin: 0 0 20px; }
@media (max-width: 699px) {
  .woocommerce-ordering select { min-height: 40px; padding-left: 14px; font-size: 0.875rem; }
}

/* After the grid: a "show more" button only if a load fails */
.shop-more-wrap { margin-top: 40px; text-align: center; }
.shop-more { min-height: 52px; padding: 0 28px; }
.shop-more:disabled { opacity: 0.6; cursor: progress; }
/* Slow load: the button shows with a spinner and can't be pressed */
.shop-more.is-loading { opacity: 1; gap: 10px; }
.shop-more.is-loading::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--ink);
  animation: shop-spin 700ms linear infinite;
}
@keyframes shop-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .shop-more.is-loading::before { animation-duration: 2s; } }
.shop-loading { margin-top: 32px; text-align: center; font-weight: 700; color: var(--ink-soft); }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select {
  min-height: 44px; padding: 0 40px 0 16px; border: 2px solid var(--line); border-radius: var(--r-pill);
  font: 700 0.9375rem/1 var(--body); color: var(--ink); cursor: pointer; -webkit-appearance: none; appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23021c69' d='m216.49 104.49l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.51-71.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") right 14px center / 14px no-repeat;
}
.woocommerce-ordering select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .woocommerce-ordering select:hover { border-color: var(--ink); } }

/* Grid of rental cards (woocommerce/content-product.php) */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
ul.products .unit-name { font-size: 1rem; }
@media (min-width: 700px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } ul.products .unit-name { font-size: 1.125rem; } }
@media (min-width: 1024px) { ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; } }
@media (max-width: 699px) { ul.products .unit-meta { font-size: 0.875rem; } }

/* Pages */
.woocommerce-pagination { margin-top: 40px; }
.woocommerce-pagination ul.page-numbers { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-pill);
  border: 2px solid var(--line); font-weight: 700; text-decoration: none;
}
.woocommerce-pagination .page-numbers span.current { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (hover: hover) { .woocommerce-pagination .page-numbers a:hover { border-color: var(--ink); } }

/* Nothing found */
.shop-empty { padding: 32px 20px; border-radius: var(--r-card); background: var(--tint); text-align: center; }
.shop-empty h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
.shop-empty p { margin: 10px auto 0; max-width: 46ch; color: var(--ink-soft); }
.shop-empty-actions { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.shop-empty-actions .btn-ghost { min-height: 52px; }
@media (min-width: 700px) { .shop-empty { padding: 56px 40px; } }


/* ── Rental (product) page ───────────────────────────────────────────── */
.single-product .shop-main { padding-top: var(--after-hero); padding-bottom: var(--section); }
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.single-product .product-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 1024px) {
  .single-product .product-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); column-gap: 56px; align-items: start; }
  /* Both columns stick; only the shorter one can, so it stays beside the taller one instead of leaving a gap */
  .single-product .product-top > .pg, .single-product .product-top > .summary { position: sticky; top: 24px; }
  body.admin-bar.single-product .product-top > .pg, body.admin-bar.single-product .product-top > .summary { top: calc(var(--wp-admin--admin-bar--height, 32px) + 24px); }
}

/* Photos: one swipe track; thumbnails under it */
.pg { min-width: 0; position: relative; }
.pg-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  border-radius: var(--r-card); background: var(--tint);
}
.pg-track::-webkit-scrollbar { display: none; }
.pg-track:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* Each photo runs the full width at its own height; the frame takes the height of the photo on show
   (product.js), so there's never empty space under a shorter one. Very tall photos are capped and trimmed a
   little top and bottom. Cut-outs and diagrams on white (sb_image_on_white()) blend into the tint with multiply. */
.pg-track { align-items: start; overflow-y: hidden; transition: height 260ms cubic-bezier(0.2, 0, 0, 1); }
.pg-slide { margin: 0; min-width: 0; scroll-snap-align: start; }
.pg-slide img { width: 100%; height: auto; max-height: min(760px, 78vh); object-fit: cover; object-position: 50% 55%; }
.pg-slide.is-on-white img { mix-blend-mode: multiply; }
@media (prefers-reduced-motion: reduce) { .pg-track { transition: none; } }
.pg-thumb.is-on-white img { object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.pg-count {
  position: absolute; right: 12px; top: 12px; padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(2, 28, 105, 0.72); color: var(--white); font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.pg-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.pg-thumbs::-webkit-scrollbar { display: none; }
.pg-thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--tint); cursor: pointer; opacity: 0.7; }
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pg-thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--ink); }
@media (hover: hover) { .pg-thumb:hover { opacity: 1; } }
@media (max-width: 699px) {
  /* Phones: photos run edge to edge and the counter stands in for the thumbnails */
  .pg { margin: 0 calc(var(--gutter) * -1); }
  .pg-track { border-radius: 0; }
  .pg-count { right: var(--gutter); }
  .pg-thumbs { display: none; }
}
@media (min-width: 700px) { .pg-count { display: none; } .pg-thumb { width: 76px; height: 76px; } }

/* Summary */
.product-cat { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-weight: 700; font-size: 0.9375rem; color: var(--ink-soft); text-decoration: none; }
@media (hover: hover) { .product-cat:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; } }
.single-product .product_title { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.02; margin-top: 2px; }
.single-product .woocommerce-product-details__short-description { margin-top: 12px; font-size: 1.0625rem; color: var(--ink-soft); }
.product-price { margin-top: 16px; }
.product-price .price { font-size: 2.25rem; margin-right: 4px; }
.product-price p:first-child { font-weight: 600; color: var(--ink-soft); }
.product-price-note { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-soft); }

/* Add-to-cart form: the SB Rentals calendar, then Reserve now */
.single-product form.cart { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.single-product form.cart .sb-rentals-form { flex: 1 1 100%; }
.single-product form.cart .quantity { display: flex; }
.single-product form.cart .quantity:has(input[type="hidden"]) { display: none; }
.single-product form.cart .quantity input {
  width: 88px; min-height: 56px; padding: 0 12px; text-align: center;
  font: 700 1.0625rem/1 var(--body); color: var(--ink); background: var(--tint);
  border: 2px solid var(--line); border-radius: var(--r-pill);
}
.single-product form.cart .quantity input:focus { outline: none; border-color: var(--ink); }
.single-product .single_add_to_cart_button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px;
  border: 0; border-radius: var(--r-pill); background: var(--orange); color: var(--ink);
  font: 700 1.125rem/1 var(--body); cursor: pointer; transition: transform 120ms ease-out, background-color 120ms ease-out;
}
.single-product .single_add_to_cart_button:active { transform: scale(0.97); }
@media (hover: hover) { .single-product .single_add_to_cart_button:hover { background: var(--orange-press); } }
.single-product .single_add_to_cart_button.disabled, .single-product .single_add_to_cart_button:disabled { opacity: 0.5; cursor: default; }

.sb-rentals-date { margin: 0; padding: 0; border: 0; min-width: 0; }
.sb-rentals-label { float: left; width: 100%; padding: 0; font: 700 1.25rem/1.2 var(--display); letter-spacing: -0.01em; }
.sb-rentals-help { clear: both; margin-top: 4px; font-size: 0.9375rem; color: var(--ink-soft); }
.sb-rentals-input {
  width: 100%; min-height: 52px; margin-top: 10px; padding: 10px 14px; font: 700 1.0625rem/1.2 var(--body); color: var(--ink);
  background: var(--tint); border: 2px solid var(--line); border-radius: var(--r-input);
}
.sb-rentals-calendar { margin-top: 12px; padding: 14px 12px 12px; border: 2px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.sb-rentals-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 8px; }
.sb-rentals-month { font: 800 1.25rem/1 var(--display); letter-spacing: -0.02em; }
.sb-rentals-prev, .sb-rentals-next {
  display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--tint); color: var(--ink); font: 700 1.5rem/1 var(--body); cursor: pointer;
}
.sb-rentals-prev:disabled, .sb-rentals-next:disabled { opacity: 0.35; cursor: default; }
.sb-rentals-grid { width: 100%; border-collapse: separate; border-spacing: 2px 4px; table-layout: fixed; }
.sb-rentals-grid th { padding: 0 0 4px; font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); text-align: center; }
.sb-rentals-day { padding: 0; text-align: center; }
.sb-rentals-day button {
  width: 100%; max-width: 44px; aspect-ratio: 1 / 1; border: 0; border-radius: 50%; background: transparent; color: var(--ink);
  font: 700 0.9375rem/1 var(--body); font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color 120ms ease-out, transform 120ms ease-out;
}
.sb-rentals-day.is-available button { background: var(--tint); }
.sb-rentals-day button[aria-disabled="true"] { background: transparent; color: #b9c4da; cursor: default; }
.sb-rentals-day.is-full button { text-decoration: line-through; text-decoration-thickness: 2px; }
.sb-rentals-day button[aria-pressed="true"] { background: var(--orange); box-shadow: 0 4px 0 rgba(2, 28, 105, 0.2); }
.sb-rentals-day button:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
@media (hover: hover) { .sb-rentals-day.is-available button:not([aria-pressed="true"]):hover { background: var(--sun); transform: translateY(-2px); } }
.sb-rentals-status { min-height: 1.5em; margin-top: 8px; font-weight: 700; font-size: 0.9375rem; }

/* Price breakdown, receipt style */
/* Add-on rentals on the rental page, picked with the rental */
.sb-extras { flex: 1 1 100%; min-width: 0; margin: 4px 0 0; border: 2px solid var(--line); border-radius: var(--r-input); }
.sb-extras summary {
  display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; list-style: none; cursor: pointer;
  font-weight: 800; font-size: 1rem; color: var(--ink);
}
.sb-extras summary::-webkit-details-marker { display: none; }
.sb-extras summary::after { content: "+"; margin-left: auto; font-size: 1.375rem; font-weight: 700; line-height: 1; }
.sb-extras[open] summary::after { content: "\2212"; }
.sb-extras summary .optional { font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.sb-extras summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: var(--r-input); }
.sb-extras fieldset { margin: 0; padding: 0 16px 16px; border: 0; min-width: 0; }
.sb-extras-note { margin: 0 0 10px; font-size: 0.875rem; color: var(--ink-soft); }
.sb-extras-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sb-extra { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; align-items: center; }
.sb-extra label { display: flex; justify-content: space-between; gap: 10px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.sb-extra-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-extra select {
  min-height: 44px; padding: 0 30px 0 12px; font: 600 0.9375rem var(--body); color: var(--ink);
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23021c69' d='m216.49 104.49l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.51-71.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") right 10px center / 14px no-repeat;
  border: 2px solid var(--line); border-radius: var(--r-input); -webkit-appearance: none; appearance: none; cursor: pointer;
}
.sb-extra select:focus { outline: none; border-color: var(--ink); }
@media (max-width: 699px) { .sb-extra select { font-size: 16px; } }
.sb-rentals-prices { margin: 14px 0 0; padding: 4px 16px; border-radius: var(--r-input); background: var(--tint); }
.sb-rentals-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; font-size: 0.9375rem; }
.sb-rentals-price + .sb-rentals-price { border-top: 2px dashed var(--line); }
.sb-rentals-price dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-rentals-price--deposit dt, .sb-rentals-price--deposit dd { font-weight: 800; color: var(--ink); }
.sb-rentals-price--deposit dd { font-size: 1.125rem; }

/* Help under the button */
.product-help { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.product-help p { font-weight: 700; }
.product-help-actions { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product-help-actions .btn { min-height: 48px; padding: 0 12px; font-size: 0.9375rem; }

/* Below: details and more rentals */
.product-details { margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.product-details h2, .product-more h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
.product-details .entry-content { padding: 12px 0 0; font-size: 1.0625rem; }
.product-video { margin-top: 24px; max-width: 720px; border-radius: var(--r-photo); overflow: hidden; aspect-ratio: 16 / 9; }
.product-video iframe { width: 100%; height: 100%; border: 0; }
.product-more { margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.product-more-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 700px) { .product-more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1024px) { .product-details, .product-more { margin-top: 40px; padding-top: 48px; } }

/* ── Cart ────────────────────────────────────────────────────────────── */
.woocommerce-cart .entry-content { max-width: none; }
.woocommerce-cart .entry-content > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { margin: 0; }
@media (min-width: 1024px) {
  .woocommerce-cart .entry-content > .woocommerce { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 40px; align-items: start; }
  .woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
  .woocommerce-cart .woocommerce > .wc-empty-cart-message,
  .woocommerce-cart .woocommerce > .return-to-shop { grid-column: 1 / -1; }
  .woocommerce-cart .cart-collaterals { position: sticky; top: 24px; }
  body.admin-bar.woocommerce-cart .cart-collaterals { top: calc(var(--wp-admin--admin-bar--height, 32px) + 24px); }
}

/* Lines: the table becomes a stack of cards */
.woocommerce-cart-form { margin: 0; }
.woocommerce-cart-form table, .woocommerce-cart-form tbody, .woocommerce-cart-form tr, .woocommerce-cart-form td { display: block; }
.woocommerce-cart-form table { width: 100%; border-collapse: collapse; }
.woocommerce-cart-form thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.woocommerce-cart-form tbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.woocommerce-cart-form td { padding: 0; border: 0; }
.woocommerce-cart-form tr.cart_item {
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 10px; align-items: start;
  grid-template-areas: "thumb name name" "price price price" "sub sub qty";
  padding: 14px; background: var(--white); border: 2px solid var(--line); border-radius: var(--r-card);
}
.cart_item .product-thumbnail { grid-area: thumb; }
.cart_item .product-name { grid-area: name; }
.cart_item .product-remove { position: absolute; top: 8px; right: 8px; }
.cart_item .product-price { grid-area: price; }
.cart_item .product-subtotal { grid-area: sub; align-self: center; }
.cart_item .product-quantity { grid-area: qty; justify-self: end; }
@media (min-width: 700px) {
  .cart_item .product-remove { position: static; grid-area: remove; }
  .woocommerce-cart-form tr.cart_item {
    grid-template-columns: 128px minmax(0, 1fr) auto auto; column-gap: 20px; padding: 16px;
    grid-template-areas: "thumb name name remove" "thumb price qty sub";
  }
  .cart_item .product-price { align-self: end; }
  .cart_item .product-quantity, .cart_item .product-subtotal { align-self: end; justify-self: end; }
}

.cart_item .product-thumbnail a { display: block; aspect-ratio: 1 / 1; border-radius: var(--r-photo); overflow: hidden; background: var(--tint); }
.cart_item .product-thumbnail img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.cart_item .product-name > a {
  display: block; padding-top: 2px; font: 800 1.25rem/1.1 var(--display); letter-spacing: -0.01em; text-decoration: none;
}
@media (hover: hover) { .cart_item .product-name > a:hover { text-decoration: underline; text-underline-offset: 4px; } }
@media (min-width: 700px) { .cart_item .product-name > a { font-size: 1.5rem; } }

/* Rental date and return */
.cart_item dl.variation { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; margin-top: 8px; font-size: 0.9375rem; }
.cart_item dl.variation dt { color: var(--ink-soft); font-weight: 600; }
.cart_item dl.variation dd { margin: 0; font-weight: 700; }
.cart_item dl.variation dd p { margin: 0; }
@media (max-width: 699px) {
  .cart_item .product-name { padding-right: 36px; }
  .cart_item dl.variation { grid-template-columns: minmax(0, 1fr); }
  .cart_item dl.variation dt { font-size: 0.8125rem; }
  .cart_item dl.variation dd + dt { margin-top: 4px; }
  .cart_item .product-price { padding-top: 10px; border-top: 2px dashed var(--line); }
}

.cart_item .product-remove .remove {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 0.875rem; color: var(--ink-soft); text-decoration: none;
}
@media (hover: hover) { .cart_item .product-remove .remove:hover { background: #fdecea; color: #8a1c12; } }
@media (max-width: 699px) { .cart_item .product-remove .remove { width: 40px; padding: 0; justify-content: center; } .cart_item .product-remove .remove span { display: none; } }

/* Rental price, then what's due today */
.cart_item .product-price, .cart_item .product-subtotal { font-variant-numeric: tabular-nums; }
.cart_item .product-price { font-size: 0.9375rem; color: var(--ink-soft); }
.cart_item .product-price .amount { font-weight: 700; color: var(--ink); }
.cart-line-label { font-weight: 600; color: var(--ink-soft); }
.cart_item .product-subtotal { font-size: 0.9375rem; }
.cart_item .product-subtotal .amount { font: 800 1.25rem/1 var(--display); letter-spacing: -0.02em; }
@media (min-width: 700px) { .cart_item .product-subtotal { text-align: right; } .cart_item .product-subtotal .cart-line-label { display: block; margin-bottom: 4px; } }

.cart_item .quantity input {
  width: 72px; min-height: 44px; padding: 0 8px; text-align: center;
  font: 700 1rem/1 var(--body); color: var(--ink); background: var(--tint);
  border: 2px solid var(--line); border-radius: var(--r-pill);
}
.cart_item .quantity input:focus { outline: none; border-color: var(--ink); }

/* Coupon, and Update cart once a quantity changes */
.woocommerce-cart-form td.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.woocommerce-cart-form .coupon { display: flex; gap: 8px; flex: 1 1 320px; max-width: 460px; }
.woocommerce-cart-form .coupon input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; font: 600 1rem/1 var(--body); color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: var(--r-pill);
}
.woocommerce-cart-form .coupon input::placeholder { color: var(--ink-soft); }
.woocommerce-cart-form .coupon input:focus { outline: none; border-color: var(--ink); }
.woocommerce-cart-form td.actions .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border: 0; border-radius: var(--r-pill); background: var(--white); box-shadow: inset 0 0 0 2px var(--ink);
  font: 700 1rem/1 var(--body); color: var(--ink); white-space: nowrap; cursor: pointer;
}
@media (hover: hover) { .woocommerce-cart-form td.actions .button:hover { background: var(--tint); } }
.woocommerce-cart-form td.actions button[name="update_cart"] { background: var(--sun); box-shadow: none; }
.woocommerce-cart-form td.actions button[name="update_cart"]:disabled { display: none; }

/* Summary: the floating card, receipt rows */
.cart_totals {
  padding: 20px; background: var(--white);
  border: 2px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 12px 0 rgba(2, 28, 105, 0.06), 0 18px 40px rgba(2, 28, 105, 0.08);
}
.cart_totals h2 { margin: 0; font-size: 1.5rem; }
.cart_totals table, .co-summary table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 0.9375rem; }
:is(.cart_totals, .co-summary tfoot) th, :is(.cart_totals, .co-summary tfoot) td { padding: 10px 0; border-bottom: 0; vertical-align: baseline; }
:is(.cart_totals, .co-summary tfoot) th { text-align: left; font-weight: 600; color: var(--ink-soft); }
:is(.cart_totals, .co-summary tfoot) td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(.cart_totals, .co-summary tfoot) tr + tr th, :is(.cart_totals, .co-summary tfoot) tr + tr td { border-top: 2px dashed var(--line); }
:is(.cart_totals, .co-summary tfoot) .order-total th { color: var(--ink); font-weight: 800; font-size: 1rem; }
:is(.cart_totals, .co-summary tfoot) .order-total td { font: 800 1.75rem/1 var(--display); letter-spacing: -0.02em; }
:is(.cart_totals, .co-summary tfoot) .order-total td strong { font-weight: inherit; }
/* Balance due later: quieter, on the tint */
:is(.cart_totals, .co-summary tfoot) tr[class^="supreme-remaining"] th, :is(.cart_totals, .co-summary tfoot) tr[class^="supreme-remaining"] td { background: var(--tint); }
:is(.cart_totals, .co-summary tfoot) tr[class^="supreme-remaining"] th { padding-left: 14px; }
:is(.cart_totals, .co-summary tfoot) tr[class^="supreme-remaining"] td { padding-right: 14px; }
:is(.cart_totals, .co-summary tfoot) tr.supreme-remaining-pre-tax th { border-radius: var(--r-input) 0 0 0; }
:is(.cart_totals, .co-summary tfoot) tr.supreme-remaining-pre-tax td { border-radius: 0 var(--r-input) 0 0; }
:is(.cart_totals, .co-summary tfoot) tr.supreme-remaining-total th { border-radius: 0 0 0 var(--r-input); color: var(--ink); font-weight: 800; }
:is(.cart_totals, .co-summary tfoot) tr.supreme-remaining-total td { border-radius: 0 0 var(--r-input) 0; }
/* Delivery estimate: below the balance, with its note under the amount */
.cart_totals tr.cart-delivery td { white-space: normal; }
.cart-delivery-note { display: block; margin-top: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
:is(.cart_totals, .co-summary tfoot) tr.order-total + tr[class^="supreme-remaining"] th, :is(.cart_totals, .co-summary tfoot) tr.order-total + tr[class^="supreme-remaining"] td { border-top: 0; }
:is(.cart_totals, .co-summary tfoot) tr.order-total th, :is(.cart_totals, .co-summary tfoot) tr.order-total td { padding-bottom: 16px; }
:is(.cart_totals, .co-summary tfoot) tr.supreme-remaining-pre-tax th, :is(.cart_totals, .co-summary tfoot) tr.supreme-remaining-pre-tax td { border-top: 12px solid var(--white); }
:is(.cart_totals, .co-summary tfoot) .woocommerce-shipping-totals td { white-space: normal; }

.wc-proceed-to-checkout { margin-top: 18px; display: grid; gap: 8px; }
.wc-proceed-to-checkout .checkout-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px;
  border-radius: var(--r-pill); background: var(--orange); color: var(--ink);
  font: 700 1.125rem/1 var(--body); text-decoration: none; transition: transform 120ms ease-out, background-color 120ms ease-out;
}
.wc-proceed-to-checkout .checkout-button:active { transform: scale(0.97); }
@media (hover: hover) { .wc-proceed-to-checkout .checkout-button:hover { background: var(--orange-press); } }
@media (prefers-reduced-motion: reduce) { .wc-proceed-to-checkout .checkout-button { transition: none; } .wc-proceed-to-checkout .checkout-button:active { transform: none; } }

/* Empty cart. After an AJAX remove Woo moves the message into the notices, so each piece stands alone. */
.woocommerce-cart .cart-empty {
  display: block; margin: 0; padding: 48px 20px; border-radius: var(--r-card); background: var(--tint);
  font: 800 clamp(1.375rem, 4.5vw, 1.75rem)/1.15 var(--display); letter-spacing: -0.02em; text-align: center; text-wrap: balance;
}
.woocommerce-notices-wrapper > * + .cart-empty { margin-top: 12px; }
.wc-empty-cart-message:not(:has(*)) { display: none; }
.woocommerce-cart .return-to-shop { margin: 0; text-align: center; }
.return-to-shop .button {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: var(--r-pill);
  background: var(--orange); color: var(--ink); font-weight: 700; text-decoration: none;
}
@media (hover: hover) { .return-to-shop .button:hover { background: var(--orange-press); } }

/* ── Checkout ────────────────────────────────────────────────────────── */
/* Four cards (details, event, extras, payment) with the order summary floating beside them on desktop.
   Phones: the summary sits between extras and payment, so the total shows before paying. */
.woocommerce-checkout .entry-content { max-width: none; }
.co-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.co-form > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.woocommerce-NoticeGroup-checkout .woocommerce-error { display: block; margin: 0; }
.woocommerce-NoticeGroup-checkout .woocommerce-error li + li { margin-top: 6px; }
.woocommerce-NoticeGroup-checkout .woocommerce-error a { color: inherit; }
.co-steps { display: grid; gap: 16px; }
@media (min-width: 1024px) {
  .co-form { grid-template-columns: minmax(0, 1fr) 390px; gap: 20px 40px; align-items: start; }
  .co-main, .co-pay { grid-column: 1; }
  .co-summary { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 24px; }
  body.admin-bar .co-summary { top: calc(var(--wp-admin--admin-bar--height, 32px) + 24px); }
  .co-form > .woocommerce-NoticeGroup ~ .co-summary { grid-row: 2 / span 3; }
}

.co-card { padding: 20px 16px; background: var(--white); border: 2px solid var(--line); border-radius: var(--r-card); }
@media (min-width: 700px) { .co-card { padding: 28px; } }
.co-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.co-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: var(--ink); }
.woocommerce-checkout .co-head h2, .woocommerce-checkout .co-summary h2 { margin: 0; }
.co-head h2 { font-size: clamp(1.375rem, 4vw, 1.625rem); line-height: 1.1; padding-top: 2px; }
.co-lead { margin-top: 4px; font-size: 0.9375rem; font-weight: 600; color: var(--ink-soft); }
.co-subhead { margin: 24px 0 12px; font: 800 1.125rem/1.2 var(--display); letter-spacing: -0.01em; }

/* Fields: the Gravity Forms look (tint field, 2px line, navy on focus) */
.co-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 14px; }
@media (min-width: 560px) {
  .co-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-fields > .form-row-wide, .co-fields > .create-account { grid-column: 1 / -1; }
}
.woocommerce-checkout .form-row { margin: 0; padding: 0; min-width: 0; }
.woocommerce-checkout .form-row > label, .co-choice legend {
  display: block; margin: 0 0 6px; padding: 0; font-size: 0.9375rem; font-weight: 700; color: var(--ink);
}
.woocommerce-checkout .form-row .required { color: var(--orange-press); text-decoration: none; border: 0; }
.woocommerce-checkout .form-row .optional { font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.woocommerce-checkout .woocommerce-input-wrapper { display: block; }
.woocommerce-checkout .input-text, .woocommerce-checkout .form-row select {
  width: 100%; min-height: 52px; margin: 0; padding: 12px 14px;
  font: 600 1rem/1.4 var(--body); color: var(--ink);
  background: var(--tint); border: 2px solid var(--line); border-radius: var(--r-input);
  -webkit-appearance: none; appearance: none;
}
.woocommerce-checkout textarea.input-text { min-height: 104px; resize: vertical; }
.woocommerce-checkout .form-row select {
  padding-right: 40px; cursor: pointer;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23021c69' d='m216.49 104.49l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.51-71.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.woocommerce-checkout .input-text::placeholder { color: var(--ink-soft); opacity: 1; }
.woocommerce-checkout .input-text:focus, .woocommerce-checkout .form-row select:focus { outline: none; border-color: var(--ink); background-color: var(--white); }
@media (max-width: 699px) { .woocommerce-checkout .input-text, .woocommerce-checkout .form-row select { font-size: 16px; } }
.co-note { display: block; }
/* Event start time: hour, minute and am/pm side by side */
.co-start { border: 0; }
/* Asked for delivery only */
.co-form:not(:has(input[name="delivery_or_pickup"][value="Delivery"]:checked)) :is(.co-start, .co-delivery-info) { display: none; }
/* Delivery explanation under the pickup/delivery cards */
.co-delivery-info { margin: 14px 0 0; padding: 14px 16px; border-radius: var(--r-input); background: var(--tint); font-size: 0.875rem; color: var(--ink-soft); }
.co-delivery-info p { margin: 0; }
.co-delivery-info p + p { margin-top: 8px; }
.co-delivery-estimate { font-size: 1rem; font-weight: 700; color: var(--ink); }
.co-start legend { display: block; margin: 0 0 6px; padding: 0; font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.co-start-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 112px)); gap: 10px; }
.woocommerce-checkout .form-row .description, .co-note { margin-top: 6px; font-size: 0.875rem; color: var(--ink-soft); }
.woocommerce-checkout .woocommerce-invalid .input-text, .woocommerce-checkout .woocommerce-invalid select { border-color: #b42318; }
.checkout-inline-error-message { margin-top: 6px; font-size: 0.875rem; font-weight: 700; color: #b42318; }
/* One allowed country: Woo prints it as text, which says nothing useful here */
#billing_country_field { display: none; }

/* Radio groups: big cards (pickup or delivery) and pills (surface, power, insurance) */
.woocommerce-checkout .co-choice { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.woocommerce-checkout .co-choice:first-child { margin-top: 0; }
.co-choice-options { display: grid; gap: 10px; }
.co-choice--cards .co-choice-options { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .co-choice--cards .co-choice-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.co-choice--pills .co-choice-options { display: flex; flex-wrap: wrap; gap: 8px; }
.co-option { position: relative; display: block; cursor: pointer; }
.co-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-choice--cards .co-option {
  padding: 16px 16px 16px 50px; border: 2px solid var(--line); border-radius: var(--r-photo); background: var(--white);
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}
/* The card's own radio dot */
.co-choice--cards .co-option::before {
  content: ""; position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--ink-soft); background: var(--white);
}
.co-choice--cards .co-option:has(input:checked) { border-color: var(--ink); background: var(--tint); }
.co-choice--cards .co-option:has(input:checked)::before { border: 6px solid var(--ink); }
.co-option-title { display: block; font-weight: 800; font-size: 1.0625rem; }
.co-option-text { display: block; margin-top: 4px; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.co-choice--pills .co-option {
  position: static; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--line); border-radius: var(--r-pill); background: var(--white); font-weight: 700;
}
.co-choice--pills .co-option .co-option-title { font-size: 0.9375rem; font-weight: 700; }
.co-choice--pills .co-option .co-option-text { display: none; }
.co-choice--pills .co-option:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.co-choice--pills .co-option:has(input:checked) .co-option-price { color: var(--foot-text); }
/* A pill's extra line shows under the row once that pill is chosen */
.co-choice--pills .co-choice-options { position: relative; }
.co-choice--pills .co-option:has(input:checked) .co-option-text { display: block; position: absolute; left: 0; top: 100%; margin-top: 8px; color: var(--ink-soft); white-space: nowrap; }
.co-choice--pills:has(.co-option-text input:checked), .co-choice--pills:has(input:checked ~ .co-option-text) { padding-bottom: 26px; }
.co-option:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .co-option:not(:has(input:checked)):hover { border-color: var(--ink-soft); } }
@media (prefers-reduced-motion: reduce) { .co-choice--cards .co-option { transition: none; } }
.co-option-price { font-size: 0.875rem; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Extras: tick rows with the price on the right */
.co-add-ons { display: grid; gap: 10px; margin-bottom: 20px; }
.woocommerce-checkout .co-add-ons .co-choice { margin: 6px 0 0; }
.co-add-ons .co-choice > .co-option-text { margin: -2px 0 10px; }
.co-tick {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 16px; border: 2px solid var(--line); border-radius: var(--r-photo); cursor: pointer;
}
.co-tick input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.co-tick:has(input:checked) { border-color: var(--ink); background: var(--tint); }
.co-tick .co-option-price { padding-top: 2px; font-size: 1rem; color: var(--ink); }

/* Add-on rentals in the Extras card: name, count in the order, price, Add */
.co-extras { margin-bottom: 20px; }
.co-extras .co-subhead { margin-top: 0; }
.co-extras .co-extras-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.co-extra { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 10px 10px 16px; border: 2px solid var(--line); border-radius: var(--r-photo); }
.co-extra-body { min-width: 0; }
.co-extra .co-option-title { font-size: 0.9375rem; }
.co-extra-have { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--ink-soft); }
.co-extra-have:empty { display: none; }
.co-extra .co-option-price { font-size: 0.9375rem; color: var(--ink); }
.co-extra-add { min-height: 40px; padding: 0 16px; }
.co-extras-error { margin: 10px 0 0; font-size: 0.875rem; font-weight: 700; color: #b42318; }

/* Payment card: deposit or pay in full, then the refund and weather notice before anyone pays */
.co-pay .co-choice { margin: 0 0 16px; }
.co-refund { margin: 0 0 14px; padding: 14px 16px; border-left: 4px solid var(--orange); border-radius: var(--r-input); background: var(--tint); font-size: 0.9375rem; font-weight: 600; color: var(--ink); }

/* Tick boxes: same as event address, rain and wind */
.co-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; cursor: pointer; }
.co-check label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.woocommerce-checkout .co-weather > label { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 1rem; cursor: pointer; }
.co-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.co-billing { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.co-billing:has(input[name="sb_billing_same"]:checked) .co-billing-fields { display: none; }
.co-billing .co-subhead { margin-top: 20px; }
.woocommerce-checkout .co-weather { margin: 0 0 20px; padding: 14px 16px; border-radius: var(--r-input); background: #fff7d6; }
.co-weather.woocommerce-invalid { box-shadow: inset 0 0 0 2px #b42318; }

/* Summary card */
.co-summary {
  padding: 20px; background: var(--white);
  border: 2px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 12px 0 rgba(2, 28, 105, 0.06), 0 18px 40px rgba(2, 28, 105, 0.08);
}
.co-summary h2 { font-size: 1.5rem; }
.co-summary thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.co-summary tbody td { padding: 12px 0; border: 0; vertical-align: top; }
.co-summary tbody tr + tr td { border-top: 1px solid var(--line); }
.co-summary tbody .product-name { position: relative; padding-left: 70px; height: 82px; font-weight: 800; }
.co-thumb { position: absolute; left: 0; top: 12px; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: var(--tint); }
.co-thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.co-line-name { display: block; line-height: 1.2; }
.co-summary .product-quantity { font-weight: 700; color: var(--ink-soft); }
.co-summary dl.variation { display: block; margin-top: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.co-summary dl.variation dt { font-size: 0.75rem; }
.co-summary dl.variation dd + dt { margin-top: 2px; }
.co-summary dl.variation dd { color: var(--ink); font-weight: 700; }
.co-summary dl.variation dd, .co-summary dl.variation dd p { margin: 0; }
.co-summary tbody .product-total { padding-left: 12px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-summary tbody .product-total .cart-line-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); }
.co-summary tbody .product-total .amount { font-weight: 800; }
.co-summary tfoot tr:first-child th, .co-summary tfoot tr:first-child td { border-top: 2px solid var(--line); }
.co-summary tfoot td { white-space: normal; }
.co-summary .co-method td { color: var(--ink-soft); font-weight: 700; }

/* Payment card: Woo's payment block, styled */
.co-pay #payment { margin: 0; }
.wc_payment_methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wc_payment_method { position: relative; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--r-photo); }
.wc_payment_method:has(> input:checked) { border-color: var(--ink); background: var(--tint); }
.wc_payment_method > input { width: 20px; height: 20px; margin: 0 10px 0 0; vertical-align: -4px; accent-color: var(--ink); }
.wc_payment_method > label { font-weight: 800; cursor: pointer; }
.wc_payment_method > label img { display: inline-block; max-height: 24px; width: auto; margin-left: 6px; vertical-align: middle; }
.payment_box { margin-top: 10px; font-size: 0.9375rem; color: var(--ink-soft); }
.payment_box p { margin: 0; }
.payment_box fieldset { margin-top: 10px; }
.wc_payment_methods:has(> li:only-child) .wc_payment_method > input { display: none; }
.co-pay .place-order { margin-top: 20px; display: grid; gap: 14px; }
.woocommerce-privacy-policy-text p { font-size: 0.8125rem; color: var(--ink-soft); }
.woocommerce-terms-and-conditions-wrapper .form-row label { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; cursor: pointer; }
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.woocommerce-terms-and-conditions { max-height: 200px; overflow: auto; padding: 14px; border-radius: var(--r-input); background: var(--tint); font-size: 0.875rem; }
#place_order {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; padding: 0 28px;
  border: 0; border-radius: var(--r-pill); background: var(--orange); color: var(--ink);
  font: 700 1.1875rem/1 var(--body); cursor: pointer; transition: transform 120ms ease-out, background-color 120ms ease-out;
}
#place_order:active { transform: scale(0.97); }
@media (hover: hover) { #place_order:hover { background: var(--orange-press); } }
@media (prefers-reduced-motion: reduce) { #place_order { transition: none; } #place_order:active { transform: none; } }

/* Coupon: Woo's "Have a coupon?" line, then its small form */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 16px; }
.woocommerce-checkout .woocommerce-form-coupon-toggle a { font-weight: 800; }
.checkout_coupon { display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; margin: 0 0 16px; }
.checkout_coupon > p:not(.form-row) { flex: 1 1 100%; margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }
.checkout_coupon .form-row-first { flex: 1; }
.checkout_coupon .input-text { min-height: 48px; border-radius: var(--r-pill); padding: 0 18px; }
.checkout_coupon .button {
  min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-pill); background: var(--white); box-shadow: inset 0 0 0 2px var(--ink);
  font: 700 1rem/1 var(--body); color: var(--ink); cursor: pointer;
}
.checkout_coupon .clear { display: none; }

/* Order page: the event details */
.co-event-details { margin-top: 32px; }
.co-event-details h2 { font-size: clamp(1.375rem, 4vw, 1.75rem); }
.co-event-details dl { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 6px 16px; margin-top: 12px; }
.co-event-details dt { font-weight: 600; color: var(--ink-soft); }
.co-event-details dd { margin: 0; font-weight: 700; }

/* ── Order received (woocommerce/checkout/thankyou.php) ──────────────── */
/* The checkout's cards: booked, rentals, event; the payment receipt floats beside them on desktop. */
.ty { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ty-main { display: grid; gap: 16px; }
@media (min-width: 1024px) {
  .ty { grid-template-columns: minmax(0, 1fr) 390px; gap: 20px 40px; align-items: start; }
  .ty-summary { position: sticky; top: 24px; }
  body.admin-bar .ty-summary { top: calc(var(--wp-admin--admin-bar--height, 32px) + 24px); }
}
.ty .co-head h2, .ty-summary h2 { margin: 0; }
.ty-booked { border-color: var(--sun); box-shadow: 0 12px 0 rgba(2, 28, 105, 0.06), 0 18px 40px rgba(2, 28, 105, 0.08); }
.ty-booked .co-head h2 { font-size: clamp(1.625rem, 5vw, 2rem); }

/* What happens next */
.ty-next { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ty-next li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 1rem; line-height: 1.45; }
.ty-next .icon { margin-top: 2px; color: var(--sky); }
.ty-next strong { font-weight: 700; overflow-wrap: anywhere; }
.ty-help { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; padding-top: 18px; border-top: 2px dashed var(--line); }
.ty-help p { font-weight: 700; }
.ty-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Rentals: photo, name, rental date and return, the line's charge today */
.ty-lines { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ty-line { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
@media (max-width: 699px) { .ty-thumb { grid-row: span 2; } .ty-line-total { grid-column: 2; padding-top: 6px; } }
.ty-line + .ty-line { padding-top: 12px; border-top: 2px dashed var(--line); }
@media (min-width: 700px) { .ty-line { grid-template-columns: 104px minmax(0, 1fr) auto; gap: 18px; } }
@media (max-width: 699px) { .ty-dates div { display: grid; gap: 0; } .ty-dates div + div { margin-top: 4px; } }
.ty-thumb { display: block; aspect-ratio: 1 / 1; border-radius: var(--r-photo); overflow: hidden; background: var(--tint); }
.ty-thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.ty-line-name { font: 800 1.25rem/1.1 var(--display); letter-spacing: -0.01em; }
.ty-line-name a { text-decoration: none; }
@media (hover: hover) { .ty-line-name a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.ty-qty { font: 700 1rem/1 var(--body); color: var(--ink-soft); }
.ty-dates { display: grid; gap: 4px; margin-top: 8px; font-size: 0.9375rem; }
.ty-dates div { display: flex; flex-wrap: wrap; gap: 0 6px; }
.ty-dates dt { font-weight: 600; color: var(--ink-soft); }
.ty-dates dt::after { content: ":"; }
.ty-dates dd { margin: 0; font-weight: 700; }
.ty-dates dd p { margin: 0; }
.ty-line-total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 2px; }

/* Event and receipt facts: label over value on phones, side by side from 700px */
.ty-facts { display: grid; gap: 12px; margin: 0; }
.ty-facts div { display: grid; gap: 2px; }
.ty-facts dt { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.ty-facts dd { margin: 0; font-weight: 700; }
@media (min-width: 700px) { .ty-facts:not(.ty-facts-small) div { grid-template-columns: 180px minmax(0, 1fr); gap: 16px; } }
.ty-facts-small { gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--line); font-size: 0.9375rem; }

/* Payment receipt, as the cart summary */
.ty-summary h2 { font-size: 1.5rem; }
.ty-summary table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 0.9375rem; }
.ty-summary th, .ty-summary td { padding: 10px 0; vertical-align: baseline; border-bottom: 0; }
.ty-summary th { text-align: left; font-weight: 600; color: var(--ink-soft); }
.ty-summary td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ty-summary tr + tr th, .ty-summary tr + tr td { border-top: 2px dashed var(--line); }
.ty-summary .order-total th { color: var(--ink); font-weight: 800; font-size: 1rem; }
.ty-summary .order-total td { font: 800 1.75rem/1 var(--display); letter-spacing: -0.02em; }
.ty-summary tr.ty-balance th, .ty-summary tr.ty-balance td { background: var(--tint); border-top: 0; }
.ty-summary tr.ty-balance th { padding-left: 14px; border-radius: var(--r-input) 0 0 var(--r-input); color: var(--ink); font-weight: 800; }
.ty-summary tr.ty-balance td { padding-right: 14px; border-radius: 0 var(--r-input) var(--r-input) 0; }
.ty-more { margin-top: 20px; }
.ty-summary > p, .ty-summary > section { margin-top: 16px; font-size: 0.9375rem; }
.ty-failed .ty-actions { margin-top: 16px; }

/* ── WooCommerce notices (added to cart, errors) ─────────────────────── */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 20px; padding: 14px 18px;
  list-style: none; border-radius: var(--r-input); background: var(--tint); font-weight: 600;
}
.woocommerce-error { background: #fdecea; color: #8a1c12; }
.woocommerce-error li + li { margin-top: 4px; }
.woocommerce-message .button, .woocommerce-info .button {
  order: 2; margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: var(--r-pill); background: var(--orange); color: var(--ink); font-weight: 700; text-decoration: none;
}
@media (prefers-reduced-motion: reduce) { .single-product .single_add_to_cart_button, .sb-rentals-day button { transition: none; } }
