/*
Theme Name: Power RAX
Description: Custom WooCommerce theme for Power RAX — battery racks, divider panels & custom ID stickers.
Author: Power RAX
Version: 1.0
Text Domain: powerrax
*/

/* Customer-name fonts (Liam 2026-10-20). Free SIL Open Font License fonts, licensed for websites:
   the paid Futura / Helvetica / Linotype Atomatic files had desktop licences only, so they are not
   served. The sticker templates (sticker-templates/vc/) name each font by its PostScript name.
   DeWalt = League Spartan Black, Milwaukee = Archivo Black Italic, Makita = Oxanium ExtraBold
   (leaned 12 degrees in the template itself). Licences: assets/fonts/OFL-*.txt */
@font-face { font-family: 'LeagueSpartan-Black'; src: url('assets/fonts/LeagueSpartan-Black.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Archivo-BlackItalic'; src: url('assets/fonts/Archivo-BlackItalic.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Oxanium-ExtraBold'; src: url('assets/fonts/Oxanium-ExtraBold.ttf') format('truetype'); font-display: swap; }

:root {
  --ink: #1f2433;
  --yellow: #ffd400;
  --red: #d4021d;
  --sticker-font: 'Helvetica LT Black', 'Arial Black', sans-serif;
  --bg: #f4f4f2;
  --surface: #ffffff;
  --border: #e6e6e2;
  --border-soft: #f0f0ee;
  --text-muted: #71757f;
  --text-faint: #9a9ea6;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
input, button, select, textarea { font-family: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
::placeholder { color: var(--text-faint); }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* promo bar */
.promo-bar {
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
  letter-spacing: .01em; text-align: center; padding: 9px 16px;
}
.promo-bar .accent { color: var(--yellow); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 40; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 24px; }
.site-logo { flex: none; display: flex; align-items: center; }
.site-logo img { height: 34px; width: auto; display: block; }
.site-search { flex: 1; max-width: 520px; position: relative; display: flex; align-items: center; }
.site-search .icon { position: absolute; left: 14px; color: var(--text-faint); font-size: 15px; pointer-events: none; }
.site-search input {
  width: 100%; padding: 11px 14px 11px 36px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 14.5px; font-weight: 500; outline: none; background: #f7f7f5;
}
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.basket-btn {
  position: relative; display: flex; align-items: center; gap: 8px; background: var(--ink);
  color: #fff; border: none; padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 14px;
  text-decoration: none;
}
.basket-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--yellow);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800;
}

/* hero */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 82% -10%, rgba(255,212,0,.16), transparent 60%);
}
.hero .wrap {
  position: relative; padding: 64px 24px 72px; display: grid;
  grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1.02;
  margin: 20px 0 0; letter-spacing: -.02em;
}
.hero h1 .accent { color: var(--yellow); }
.hero p.lede {
  font-size: 18px; line-height: 1.55; color: #c7cad2; max-width: 480px; margin: 20px 0 0; font-weight: 500;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn-primary {
  text-decoration: none; background: var(--yellow); color: var(--ink); font-weight: 800;
  font-size: 15.5px; padding: 15px 26px; border-radius: 11px; border: none; display: inline-block;
}
.btn-secondary {
  text-decoration: none; background: transparent; color: #fff; font-weight: 700; font-size: 15.5px;
  padding: 15px 26px; border-radius: 11px; border: 1.5px solid rgba(255,255,255,.25); display: inline-block;
}
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--yellow); }
.hero-stats .label { font-size: 13px; color: #9aa0ab; font-weight: 600; }
.hero-visual {
  aspect-ratio: 1/1; border-radius: 20px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 16px, rgba(255,255,255,.02) 16px 32px);
  border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* brand strip */
.brand-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.brand-strip .wrap {
  padding: 18px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.brand-strip .label {
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-faint); margin-right: 6px;
}
.brand-strip .brand { font-family: var(--font-display); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; }
.brand-strip .dot { width: 9px; height: 9px; border-radius: 3px; }

/* shop section */
.shop-section { padding: 56px 24px 24px; }
.shop-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.shop-header h2 { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -.02em; margin: 0; }
.shop-header p { margin: 8px 0 0; color: var(--text-muted); font-size: 15.5px; font-weight: 500; }
.result-count { font-size: 14px; color: var(--text-muted); font-weight: 600; }

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  border: none; padding: 9px 15px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
  background: #eceeee; color: var(--ink); text-decoration: none; display: inline-block;
}
.chip.active { background: var(--ink); color: #fff; }

.filter-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
  margin-bottom: 26px; display: flex; flex-direction: column; gap: 14px;
}
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-row.sizes { border-top: 1px solid var(--border-soft); padding-top: 14px; }
.filter-label {
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-faint); flex: none;
}
.filter-row .filter-label { width: 126px; }
.filter-row.sizes .filter-label { width: 56px; }
.filter-chip {
  border: none; padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: 12.5px;
  background: #f2f2ef; color: var(--ink); text-decoration: none; display: inline-block;
}
.filter-chip.active { background: var(--ink); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px,1fr)); gap: 22px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.product-card .stripe { height: 5px; background: var(--yellow); }
.product-card .photo { display: block; position: relative; height: 186px; background: repeating-linear-gradient(135deg,#f6f6f4 0 14px,#efefec 14px 28px); overflow: hidden; }
/* contain, not cover: the racks are wide and cover clips their ends off —
   same fix already applied to the single product page */
.product-card .photo img { width: 100%; height: 100%; object-fit: contain; }
.product-card .photo-placeholder {
  position: absolute; inset: 14px; border: 1.5px dashed; border-radius: 10px; opacity: .55;
  display: flex; align-items: center; justify-content: center;
}
.product-card .photo-placeholder span {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .01em;
}

/* rack family card — one card per product line, size picked via dropdown */
.product-card .ghost-numeral {
  position: absolute; top: 8px; right: 14px; font-family: var(--font-display); font-weight: 700;
  font-size: 64px; color: rgba(31,36,51,.06); line-height: 1; pointer-events: none;
}
.rack-size-row { margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.rack-size-label { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); }
.rack-size-select-wrap { position: relative; display: inline-block; }
.rack-size-select {
  appearance: none; -webkit-appearance: none; padding: 6px 28px 6px 12px; border: 1.5px solid var(--border);
  border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink); background: #f2f2ef;
  outline: none; cursor: pointer;
}
.rack-size-caret { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-faint); font-size: 9px; }
.family-title-link { color: inherit; text-decoration: none; }
.family-title-link:hover { text-decoration: underline; }
.rack-add-btn { border: none; cursor: pointer; font-family: inherit; }
.product-card .fits-badge {
  position: absolute; top: 13px; left: 13px; background: var(--yellow); color: var(--ink); font-size: 11.5px;
  font-weight: 800; letter-spacing: .03em; padding: 5px 10px; border-radius: 7px;
}
.product-card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-card .tag {
  font-size: 11.5px; font-weight: 700; color: var(--ink); background: #f2f2ef; padding: 4px 9px;
  border-radius: 999px; display: inline-block; margin-bottom: 9px;
}
.product-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; line-height: 1.25; margin: 0; }
.product-card .blurb { margin: 7px 0 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.45; font-weight: 500; }
.product-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; gap: 10px; }
.product-card .price { font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.product-card .add-btn {
  background: var(--yellow); color: var(--ink); border: none; font-weight: 800; font-size: 13.5px;
  padding: 10px 16px; border-radius: 9px;
}

.no-results { text-align: center; padding: 70px 20px; color: var(--text-muted); }
.no-results .emoji { font-size: 34px; margin-bottom: 10px; }
.no-results .title { font-weight: 700; font-size: 18px; color: var(--ink); }
.no-results button { margin-top: 16px; background: var(--ink); color: #fff; border: none; padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: 14px; }

/* design your own */
.design-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 48px; }
.design-section .wrap { padding: 64px 24px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; row-gap: 26px; align-items: center; }
.design-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff7cc; color: #7a6a00; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .03em; }
.design-section h2 { font-family: var(--font-display); font-weight: 700; font-size: 38px; letter-spacing: -.02em; margin: 18px 0 0; line-height: 1.05; }
.design-section .lede { font-size: 16.5px; color: var(--text-muted); line-height: 1.55; margin: 16px 0 26px; font-weight: 500; max-width: 440px; }
/* Chip: the shared selector control used by the homepage picker and the
   custom builder. Defined here so both surfaces share one vocabulary
   rather than each page redefining it. */
.builder-chip {
  border: 1.5px solid var(--border); background: #fff; color: var(--ink);
  padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
  cursor: pointer; line-height: 1; font-family: inherit;
}
.builder-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.builder-label {
  display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px;
}
.builder-chip-row { display: flex; gap: 7px; flex-wrap: wrap; }

.design-field label {
  display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 8px;
}
.design-field input, .design-field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 15px;
  font-weight: 600; outline: none; background: #f7f7f5; color: var(--ink);
}
.design-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--red);
  color: #fff; border: none; font-weight: 800; font-size: 16px; padding: 16px 26px; border-radius: 12px;
  margin-top: 4px; flex: 1; min-width: 220px; max-width: 460px; text-decoration: none;
}
.design-cta-custom { background: var(--yellow); color: var(--ink); }
.design-note { margin: 12px 0 0; font-size: 13.5px; color: var(--text-faint); font-weight: 600; line-height: 1.5; max-width: 420px; }

/* shipping */
.shipping-section { padding: 64px 24px; }
.shipping-head { text-align: center; margin-bottom: 36px; }
.shipping-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.shipping-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -.02em; margin: 10px 0 0; }
.shipping-head p { margin: 10px 0 0; color: var(--text-muted); font-size: 15.5px; font-weight: 500; }
.shipping-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.shipping-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.shipping-card .icon { font-size: 30px; }
.shipping-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 14px 0 4px; }
.shipping-card p { font-size: 13.5px; color: var(--text-muted); font-weight: 500; margin: 0 0 18px; line-height: 1.45; }
.shipping-brackets { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border-soft); padding-top: 16px; }
.shipping-brackets .row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.shipping-brackets .row .l { color: #5a5e68; font-weight: 600; }
.shipping-brackets .row .r { font-family: var(--font-display); font-weight: 700; }

/* footer */
.site-footer { background: var(--ink); color: #c7cad2; padding: 48px 24px 28px; margin-top: 48px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; font-size: 13.5px; }
.site-footer a { color: #c7cad2; text-decoration: none; }

@media (max-width: 860px) {
  .hero .wrap, .design-section .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .shipping-grid { grid-template-columns: 1fr; }

  .site-header .wrap { flex-wrap: wrap; gap: 10px 14px; padding-top: 10px; padding-bottom: 10px; }
  .site-logo { order: 1; }
  .basket-btn { order: 2; margin-left: auto; padding: 9px 12px; }
  .site-search { order: 3; flex-basis: 100%; max-width: none; }
  .site-nav { order: 4; flex-basis: 100%; gap: 16px; margin-left: 0; justify-content: flex-start; }
  .promo-bar { font-size: 12px; padding: 8px 12px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 20px; }
  .shop-header h2, .design-section h2, .shipping-head h2 { font-size: 26px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card .photo { height: 130px; }
  .product-card .body { padding: 12px; }
  .product-card h3 { font-size: 14px; }
  .product-card .price { font-size: 17px; }
  .product-card .add-btn { padding: 8px 10px; font-size: 12px; }
}

/* ---- WooCommerce: cart, checkout, my-account ---- */
/* ponytail: CSS-only theming over WooCommerce's own templates/classes —
   deliberately not overriding the PHP templates (payment/tax/AJAX logic
   lives there and re-implementing it is not worth the risk). */

.woocommerce, .woocommerce-page {
  max-width: 1240px; margin: 0 auto; padding: 48px 24px 80px;
}
/* woocommerce-page is also a BODY class, so the rule above was clamping the
   whole document on every shop page: body 1240 + 24px, then .wrap padded
   again, leaving product pages 48px narrower than the home page and insetting
   the promo bar. Containers keep the rule; body does not. */
body.woocommerce, body.woocommerce-page {
  max-width: none; margin: 0; padding: 0;
}
.woocommerce h1.page-title, .woocommerce-page h1.entry-title,
.entry-content > h1 { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -.02em; margin: 0 0 28px; }

/* cart table */
.woocommerce table.shop_table {
  width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; margin-bottom: 24px;
}
.woocommerce table.shop_table thead th {
  text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-faint); padding: 14px 16px; background: #f7f7f5; border-bottom: 1px solid var(--border);
}
.woocommerce table.shop_table td {
  padding: 16px; border-bottom: 1px solid var(--border-soft); font-size: 14.5px; vertical-align: middle;
}
.woocommerce table.shop_table tr:last-child td { border-bottom: none; }
.woocommerce td.product-name a { color: var(--ink); font-weight: 700; text-decoration: none; }
.woocommerce td.product-name dl.variation, .woocommerce td.product-name .wc-item-meta {
  margin: 6px 0 0; font-size: 12.5px; color: var(--text-muted); font-weight: 500;
}
.woocommerce td.product-name dl.variation dt, .woocommerce td.product-name .wc-item-meta-label {
  font-weight: 700; display: inline; margin-right: 4px;
}
.woocommerce td.product-name dl.variation dd, .woocommerce td.product-name .wc-item-meta p { display: inline; margin: 0; }
.woocommerce td.product-price, .woocommerce td.product-subtotal { font-family: var(--font-display); font-weight: 700; }
.woocommerce td.product-thumbnail img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.woocommerce td.product-quantity .quantity input {
  width: 56px; padding: 8px; border: 1.5px solid var(--border); border-radius: 8px; font-weight: 700; text-align: center;
}
.woocommerce td.product-remove a {
  color: var(--red); font-size: 20px; text-decoration: none; font-weight: 700;
}
.woocommerce .coupon input#coupon_code {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; margin-right: 8px;
}
.woocommerce button[name="apply_coupon"], .woocommerce button[name="update_cart"] {
  background: var(--ink); color: #fff; border: none; padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 13.5px;
}
.woocommerce button[name="update_cart"] { margin-top: 14px; }

/* cart totals / order review sidebar */
.woocommerce-cart-collaterals, .woocommerce-checkout-review-order {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
}
.woocommerce-cart-collaterals .cart_totals h2, #order_review_heading {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 16px;
}
.cart_totals table.shop_table, table.woocommerce-checkout-review-order-table {
  border: none; background: none; margin: 0;
}
.cart_totals table.shop_table td, .cart_totals table.shop_table th,
table.woocommerce-checkout-review-order-table td, table.woocommerce-checkout-review-order-table th {
  border-bottom: 1px solid var(--border-soft); padding: 12px 0; background: none;
}
.cart_totals .order-total td, .cart_totals .order-total th,
table.woocommerce-checkout-review-order-table tfoot tr td, table.woocommerce-checkout-review-order-table tfoot tr th {
  font-family: var(--font-display); font-weight: 700; font-size: 18px; border-bottom: none;
}
.wc-proceed-to-checkout a.checkout-button, .woocommerce #payment #place_order {
  display: block; width: 100%; text-align: center; background: var(--yellow); color: var(--ink); border: none;
  font-weight: 800; font-size: 15px; padding: 15px; border-radius: 11px; text-decoration: none; margin-top: 10px;
}

/* checkout form fields */
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.woocommerce-billing-fields h3, .woocommerce-additional-fields h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 0 16px;
}
.woocommerce form .form-row { margin-bottom: 14px; }
.woocommerce form .form-row label {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px;
}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14.5px;
  outline: none; background: #f7f7f5; color: var(--ink);
}
.woocommerce-form-row--first, .woocommerce form .form-row-first { grid-column: span 1; }

/* my account */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.woocommerce-MyAccount-navigation a {
  display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px;
}
.woocommerce-MyAccount-navigation li.is-active a { background: var(--ink); color: #fff; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }

/* notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
  background: #fff7cc; color: #7a6a00; border: 1px solid #f0e6a0; border-radius: 10px; padding: 14px 18px 14px 46px;
  font-size: 14px; font-weight: 600; list-style: none; margin: 0 0 20px; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before, .woocommerce-noreviews::before {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
}
.woocommerce-error { background: #fde8ea; color: var(--red); border-color: #f5c2c9; }
.woocommerce-message a.button.wc-forward {
  display: inline-block; width: auto; background: var(--ink) !important; color: #fff !important;
  text-decoration: none; padding: 9px 16px !important; border-radius: 8px !important;
  font-weight: 700; font-size: 13px; flex: none; margin: 0 !important;
}

/* checkout/cart proceed buttons — beat WooCommerce's own default purple */
.wc-proceed-to-checkout a.checkout-button,
.woocommerce a.button.checkout-button, .woocommerce #payment #place_order {
  display: block; width: 100%; text-align: center; background: var(--yellow) !important; color: var(--ink) !important;
  border: none; font-weight: 800; font-size: 15px; padding: 15px !important; border-radius: 11px !important;
  text-decoration: none; margin-top: 10px;
}

@media (max-width: 860px) {
  .woocommerce-checkout .col2-set { grid-template-columns: 1fr; }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
  .woocommerce table.shop_table { display: block; overflow-x: auto; }
}

/* the nav link colour (ink) was winning over the button's white, leaving "Basket" invisible */
.site-nav .basket-btn { color: #fff; }
/* confirmation under "Add to basket" — the customer stays on the page */
.cfg-added { margin-top: 10px; font-weight: 700; color: #1e7b34; }
.cfg-added a { color: var(--ink); }

/* "Print the battery size" switch in step 4 of the sticker picker (Liam 2026-10-21) */
.design-field .ah-switch { text-transform: none; letter-spacing: normal; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 12px; cursor: pointer; user-select: none; font-weight: 600; font-size: 14.5px; }
.design-field .ah-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; border: 0; }
.ah-track { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #c9cbd1; transition: background .18s; flex: none; }
.ah-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.ah-switch input:checked + .ah-track { background: var(--ink); }
.ah-switch input:checked + .ah-track .ah-knob { transform: translateX(20px); }
.ah-switch input:focus-visible + .ah-track { outline: 2px solid var(--ink); outline-offset: 2px; }
.ah-switch.is-locked { cursor: default; opacity: .55; }
.ah-note { margin: -6px 0 12px; font-size: 13px; color: #71757f; }
