﻿/* ═══════════════════════════════════════════════════════════════════════
   Moneta Marketplace – Cart & Checkout
   Matches single-product.css design: white cards · gold #F4AE01 · clean
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --cc-gold:     #F4AE01;
  --cc-gold-d:   #c99500;
  --cc-dark:     #1a1a2e;
  --cc-bg:       #f5f6fa;
  --cc-card:     #fff;
  --cc-panel:    #fafbfd;
  --cc-radius:   14px;
  --cc-border:   #e4e6ed;
  --cc-text:     #374151;
  --cc-muted:    #7c8499;
  --cc-sidebar-bg:   #1e2240;
  --cc-sidebar-card: #252b4a;
}

/* ── Hide the theme sidebar on WC pages ─────────────────────────────── */
body.woocommerce-cart    #secondary,
body.woocommerce-checkout #secondary,
body.woocommerce-cart    .widget-area,
body.woocommerce-checkout .widget-area { display: none !important; }

/* Make main content full width when sidebar is hidden */
body.woocommerce-cart    #primary,
body.woocommerce-checkout #primary {
  width: 100% !important;
  float: none !important;
}

/* Remove white background from theme content wrappers on WC pages */
body.woocommerce-cart    #primary,
body.woocommerce-checkout #primary,
body.woocommerce-cart    .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-cart    .site-content,
body.woocommerce-checkout .site-content,
body.woocommerce-cart    #content,
body.woocommerce-checkout #content {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* ── Page background — all selectors for block + classic checkout ─── */
body.woocommerce-cart,
body.woocommerce-checkout,
body:has(.wc-block-checkout),
body:has(.wp-block-woocommerce-checkout) {
  background: var(--cc-bg) !important;
}

/* Checkout sidebar wrapper — explicit light so cards show correctly */
.wc-block-checkout__sidebar {
  background: transparent !important;
}

/* Order summary sidebar blocks — white cards */
.wp-block-woocommerce-checkout-order-summary-block,
.wp-block-woocommerce-checkout-order-summary-area,
.wc-block-checkout__sidebar .wc-block-components-sidebar > * {
  background: #fff !important;
  border-radius: var(--cc-radius) !important;
  box-shadow: 0 2px 16px rgba(26,26,46,.06), 0 0 0 1px rgba(228,230,237,.7) !important;
  border: none !important;
  padding: 26px 30px !important;
  margin-bottom: 14px !important;
  color: var(--cc-dark) !important;
}

/* ── Light billing panel (classic checkout) ─────────────────────────── */
html body.woocommerce-checkout form.checkout .col-1,
html body.woocommerce-checkout form.checkout .col-2 {
  background: var(--cc-card) !important;
  border-color: var(--cc-border) !important;
  box-shadow: 0 2px 16px rgba(26,26,46,.06) !important;
}
html body.woocommerce-checkout .form-row label {
  color: var(--cc-muted) !important;
}
html body.woocommerce-checkout .form-row .required { color: var(--cc-gold) !important; }
html body.woocommerce-checkout .form-row input.input-text,
html body.woocommerce-checkout .form-row select,
html body.woocommerce-checkout .form-row textarea {
  background: #fff !important;
  color: var(--cc-dark) !important;
  border-color: var(--cc-border) !important;
}
html body.woocommerce-checkout .form-row input.input-text::placeholder {
  color: #b0b8c9 !important;
}
html body.woocommerce-checkout .form-row input.input-text:focus,
html body.woocommerce-checkout .form-row select:focus,
html body.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--cc-gold) !important;
  box-shadow: 0 0 0 3px rgba(244,174,1,.15) !important;
}
/* select2 trigger */
html body.woocommerce-checkout .select2-container .select2-selection--single {
  background: #fff !important;
  border-color: var(--cc-border) !important;
}
html body.woocommerce-checkout .select2-container .select2-selection__rendered {
  color: var(--cc-dark) !important;
}
html body.woocommerce-checkout .select2-container .select2-selection__arrow b {
  border-color: var(--cc-muted) transparent transparent !important;
}
/* select2 open dropdown */
.woocommerce-checkout ~ .select2-container--open .select2-dropdown,
body.woocommerce-checkout .select2-dropdown,
.select2-container--open .select2-dropdown {
  background: #fff !important;
  border-color: var(--cc-border) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.12) !important;
}
.select2-results__option { color: var(--cc-dark) !important; }
.select2-results__option--highlighted,
.select2-results__option[aria-selected="true"] {
  background: rgba(244,174,1,.1) !important;
  color: var(--cc-gold-d) !important;
}
.select2-search--dropdown .select2-search__field {
  background: #fff !important;
  color: var(--cc-dark) !important;
  border-color: var(--cc-border) !important;
}
/* courier plugin inputs inside shipping method list */
html body.woocommerce-checkout #shipping_method input[type="text"],
html body.woocommerce-checkout #shipping_method input[type="number"],
html body.woocommerce-checkout #shipping_method select {
  background: #fff !important;
  color: var(--cc-dark) !important;
  border: 1.5px solid var(--cc-border) !important;
  border-radius: 8px !important;
  padding: 10px 13px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 8px !important;
  font-size: .9rem !important;
}
html body.woocommerce-checkout #shipping_method input::placeholder {
  color: #b0b8c9 !important;
}

/* ── Page titles ────────────────────────────────────────────────────── */
body.woocommerce-cart    h1.entry-title,
body.woocommerce-checkout h1.entry-title { display: none; }

/* ── Cart page title (injected by JS fallback — see wp_footer) ──────── */
.moneta-cart-page-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--cc-dark);
  letter-spacing: -.02em;
  padding: 0 0 1.25rem;
  border-bottom: 2px solid var(--cc-border);
  margin-bottom: 2rem;
}

/* ────────────────────────────────────────────────────────────────────
   BLOCKS CHECKOUT (wc-block-*)
   ──────────────────────────────────────────────────────────────────── */

/* Overall checkout/cart block wrapper — padding only on outer element */
.wc-block-checkout,
.wc-block-cart {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 36px 32px 80px !important;
  background: transparent !important;
}
/* Inner columns must NOT have extra padding — keeps left/right top-aligned */
.wc-block-checkout__main,
.wc-block-cart__main {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Side-by-side columns */
.wc-block-checkout__sidebar,
.wc-block-cart__sidebar { gap: 28px !important; }

/* ── Cart items table (WC Blocks uses a real <table>) ───────────────── */
.wc-block-cart-items {
  border: none !important;
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 14px !important;
}

/* Header row */
.wc-block-cart-items__header {
  background: #e8eaf4 !important;
  border-radius: 10px !important;
}
.wc-block-cart-items__header th,
.wc-block-cart-items__header td,
.wc-block-cart-items__header span {
  font-size: .78rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .14em !important;
  color: #3d4468 !important;
  padding: 13px 16px !important;
  border: none !important;
}
.wc-block-cart-items__header th:first-child,
.wc-block-cart-items__header td:first-child {
  border-radius: 10px 0 0 10px !important;
  padding-left: 22px !important;
}
.wc-block-cart-items__header th:last-child,
.wc-block-cart-items__header td:last-child {
  border-radius: 0 10px 10px 0 !important;
  padding-right: 22px !important;
}

/* Each product row */
.wc-block-cart-items__row {
  background: rgba(255,255,255,.97) !important;
  transition: box-shadow .22s, transform .18s !important;
}
.wc-block-cart-items__row:hover {
  background: #fff !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.22) !important;
  transform: translateY(-2px) !important;
}
.wc-block-cart-items__row td:first-child {
  border-radius: var(--cc-radius) 0 0 var(--cc-radius) !important;
  padding-left: 20px !important;
}
.wc-block-cart-items__row td:last-child {
  border-radius: 0 var(--cc-radius) var(--cc-radius) 0 !important;
  padding-right: 20px !important;
}
.wc-block-cart-items__row td {
  padding: 22px 14px !important;
  border: none !important;
  vertical-align: middle !important;
}

/* Thumbnail */
.wc-block-cart-item__image {
  width: 88px !important;
}
.wc-block-cart-item__image img,
.wc-block-cart-item__image a img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  display: block !important;
}

/* Product name + meta */
.wc-block-cart-item__product-name,
.wc-block-cart-item__product-name a {
  font-size: .97rem !important;
  font-weight: 700 !important;
  color: var(--cc-dark) !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  display: block !important;
  margin-bottom: 4px !important;
}
.wc-block-cart-item__product-name a:hover { color: var(--cc-gold-d) !important; }
.wc-block-cart-item__product-metadata,
.wc-block-cart-item__product-details {
  font-size: .8rem !important;
  color: var(--cc-muted) !important;
  line-height: 1.5 !important;
  margin-top: 2px !important;
}

/* Remove link */
.wc-block-cart-item__remove-link {
  font-size: .75rem !important;
  color: #d1d5db !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  margin-top: 6px !important;
  transition: color .15s !important;
}
.wc-block-cart-item__remove-link:hover { color: #ef4444 !important; }

/* Quantity stepper */
.wc-block-components-quantity-selector {
  border: 1.5px solid var(--cc-border) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  height: 38px !important;
}
.wc-block-components-quantity-selector__button {
  width: 34px !important;
  height: 36px !important;
  background: transparent !important;
  border: none !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--cc-dark) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background .15s !important;
  flex-shrink: 0 !important;
}
.wc-block-components-quantity-selector__button:hover { background: #f3f4f6 !important; }
.wc-block-components-quantity-selector input {
  width: 42px !important;
  border: none !important;
  border-left: 1px solid var(--cc-border) !important;
  border-right: 1px solid var(--cc-border) !important;
  text-align: center !important;
  font-size: .9rem !important;
  font-weight: 700 !important;
  color: var(--cc-dark) !important;
  background: transparent !important;
  padding: 0 !important;
  height: 36px !important;
}

/* Total price cell */
.wc-block-cart-item__total {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--cc-gold-d) !important;
  text-align: right !important;
  white-space: nowrap !important;
}

/* ── Each section panel ─────────────────────────────────────────────── */
.wc-block-checkout__form > *,
.wc-block-components-checkout-step,
.wc-block-checkout__order-summary,
.wp-block-woocommerce-checkout-order-summary-block {
  background: #fff !important;
  border-radius: var(--cc-radius) !important;
  box-shadow: 0 2px 16px rgba(26,26,46,.05), 0 0 0 1px rgba(228,230,237,.7) !important;
  border: none !important;
  padding: 26px 30px !important;
  margin-bottom: 14px !important;
}

/* ── Cart sidebar: unified dark panel ───────────────────────────────── */

/* The order summary block IS the dark card */
body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
  background: #161740 !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: none !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-bottom: none !important;
  padding: 0 !important;
  color: #fff !important;
  overflow: hidden !important;
}

/* Strip card style from every inner sub-block — they live inside the dark card */
body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-coupon-form-block,
body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-subtotal-block,
body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-shipping-block,
body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-taxes-block,
body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-fee-block,
body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-discount-block {
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 22px !important;
  border: none !important;
  box-shadow: none !important;
}

/* Total block */
body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-total-block {
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 22px 8px !important;
  border: none !important;
  box-shadow: none !important;
}

/* Hide coupon from cart sidebar (it's on checkout). Keep SHIPPING visible so the
   delivery cost is shown as its own line — otherwise the total looks inflated. */
body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-coupon-form-block {
  display: none !important;
}

/* Proceed button — seamless bottom of the card */
body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-proceed-to-checkout-block {
  background: #161740 !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: none !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-top: 1px solid rgba(244,174,1,.18) !important;
  padding: 18px 20px 22px !important;
  margin: 0 !important;
}

/* ── Sidebar header: "СУМА НА КОШНИЦАТА" ────────────────────────────── */
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-cart__totals-title,
body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-heading-block,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-order-summary__button-text,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-title {
  color: rgba(255,255,255,.38) !important;
  font-size: .6rem !important;
  font-weight: 800 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  padding: 20px 22px 14px !important;
  margin: 0 !important;
  border-bottom: none !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ── Shipping value ("FREE") — gold accent ───────────────────────────── */
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item__value .wc-block-checkout__shipping-option--free,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item__value bdi {
  color: var(--cc-gold) !important;
  font-weight: 700 !important;
}

/* ── Totals wrapper — no borders, no dividers ────────────────────────── */
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
  margin: 0 20px !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* ── Line items — no separator lines ─────────────────────────────────── */
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item {
  border-bottom: none !important;
  padding: 10px 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item:last-child {
  border-bottom: none !important;
}
/* Hide empty description div in all items (breaks layout as 3rd flex child) */
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item > .wc-block-components-totals-item__description {
  display: none !important;
}
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item__label {
  flex: 1 1 auto !important;
  color: rgba(255,255,255,.55) !important;
  font-size: .86rem !important;
  font-weight: 500 !important;
  letter-spacing: .01em !important;
}
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item__value {
  flex: 0 0 auto !important;
  color: rgba(255,255,255,.9) !important;
  font-weight: 700 !important;
  font-size: .95rem !important;
  text-align: right !important;
  white-space: nowrap !important;
}

/* ── "Прогнозна сума" row — prominent ───────────────────────────────── */
/* The DOM has 3 flex children: label / value / description(empty)      */
/* We hide description and fix label+value alignment                     */
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item {
  background: transparent !important;
  margin: 0 !important;
  padding: 18px 0 10px !important;
  border: none !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}
/* Label — grow to fill, stays left */
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item > .wc-block-components-totals-item__label {
  flex: 1 1 auto !important;
  color: rgba(255,255,255,.55) !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
}
/* Value wrapper — shrinks to content, stays right */
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item > .wc-block-components-totals-item__value {
  flex: 0 0 auto !important;
  text-align: right !important;
}
/* Hide the empty description div — it breaks the 2-item space-between */
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item > .wc-block-components-totals-item__description {
  display: none !important;
}
/* The actual money amount span */
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value span,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-formatted-money-amount,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item-tax-value {
  color: var(--cc-gold) !important;
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
  border: none !important;
  display: inline !important;
}

/* ── Coupon ──────────────────────────────────────────────────────────── */
/* Accordion trigger row */
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-coupon {
  background: rgba(255,255,255,.04) !important;
  border-radius: 10px !important;
  margin: 4px 0 8px !important;
  overflow: hidden !important;
}
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-coupon-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 12px 16px !important;
  color: rgba(255,255,255,.7) !important;
  font-size: .84rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  letter-spacing: .01em !important;
}
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-coupon-link:hover {
  color: #fff !important;
}
/* Expanded coupon form */
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-coupon__form {
  display: flex !important;
  gap: 8px !important;
  padding: 0 12px 14px !important;
  align-items: center !important;
}
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-coupon__input {
  flex: 1 !important;
}
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-coupon__input input {
  width: 100% !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 10px 13px !important;
  font-size: .88rem !important;
  transition: border-color .15s !important;
}
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-coupon__input input:focus {
  border-color: var(--cc-gold) !important;
  outline: none !important;
}
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-coupon__input input::placeholder {
  color: rgba(255,255,255,.28) !important;
}
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-coupon__button {
  background: var(--cc-gold) !important;
  color: #0e1428 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-weight: 800 !important;
  font-size: .84rem !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: background .15s !important;
}
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-coupon__button:hover {
  background: var(--cc-gold-d) !important;
}

/* Proceed button itself */
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-proceed-to-checkout-block a {
  margin-top: 0 !important;
  font-size: 1rem !important;
  padding: 15px 24px !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
  box-shadow: 0 4px 22px rgba(244,174,1,.3) !important;
  background: var(--cc-gold) !important;
  color: #1a1a2e !important;
}

/* ── Step headings ──────────────────────────────────────────────────── */
.wc-block-components-checkout-step__title,
.wc-block-checkout__step-title,
.wc-block-components-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--cc-dark) !important;
  border-bottom: 2px solid #f3f4f6 !important;
  padding-bottom: 14px !important;
  margin-bottom: 20px !important;
}

/* ── Input fields ───────────────────────────────────────────────────── */
.wc-block-components-text-input input,
.wc-block-components-country-input input,
.wc-block-components-state-input input,
.wc-block-components-select select,
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout select {
  border: 1.5px solid var(--cc-border) !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  font-size: .92rem !important;
  color: var(--cc-dark) !important;
  background: #fff !important;
  transition: border-color .15s !important;
}
.wc-block-components-text-input input:focus,
.wc-block-checkout input:focus {
  border-color: var(--cc-gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(244,174,1,.15) !important;
}

/* ── Labels ─────────────────────────────────────────────────────────── */
.wc-block-components-text-input label,
.wc-block-checkout label {
  font-size: .8rem !important;
  font-weight: 600 !important;
  color: var(--cc-muted) !important;
}

/* ── Shipping + payment radio buttons ───────────────────────────────── */
/*
 * WC Blocks renders a CUSTOM visual radio/checkbox via label::before or a
 * custom <span>, and hides the native <input> with position:absolute + opacity:0.
 * We must NOT move the native input to position:static — that causes the
 * black dot in the middle. Instead we fix only the label text clipping.
 */
.wc-block-components-radio-control__option {
  border: 1.5px solid var(--cc-border) !important;
  border-radius: 8px !important;
  padding: 13px 16px !important;
  margin-bottom: 8px !important;
  transition: border-color .15s, background .15s !important;
  cursor: pointer !important;
  position: relative !important;
}
/* Keep native radio hidden exactly as WooCommerce intends */
.wc-block-components-radio-control__option input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
}
/* Fix label text clipping: ensure label fills available space */
.wc-block-components-radio-control__option label {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  cursor: pointer !important;
  overflow: visible !important;
}
/* Label-group: method name left, price right */
.wc-block-components-radio-control-option__label-group {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  gap: 8px !important;
  overflow: visible !important;
}
.wc-block-components-radio-control-option__label {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  font-weight: 600 !important;
  color: var(--cc-dark) !important;
  font-size: .93rem !important;
}
.wc-block-components-radio-control-option__secondary-label {
  white-space: nowrap !important;
  font-weight: 700 !important;
  color: var(--cc-dark) !important;
  font-size: .93rem !important;
}
.wc-block-components-radio-control__option:has(input:checked),
.wc-block-components-radio-control__option--checked {
  border-color: var(--cc-gold) !important;
  background: rgba(244,174,1,.06) !important;
}
/* Accent color for WC's custom radio indicator */
.wc-block-components-radio-control input[type="radio"]:checked + label::before,
.wc-block-components-radio-control__option:has(input:checked) label::before {
  border-color: var(--cc-gold) !important;
  background: var(--cc-gold) !important;
}

/* ── Payment method options ─────────────────────────────────────────── */
.wc-block-components-payment-methods__list-item {
  border: 1.5px solid var(--cc-border) !important;
  border-radius: 8px !important;
  padding: 0 !important;
  margin-bottom: 8px !important;
  overflow: hidden !important;
  transition: border-color .15s !important;
}
.wc-block-components-payment-methods__list-item--selected,
.wc-block-components-payment-methods__list-item:has(input:checked) {
  border-color: var(--cc-gold) !important;
  background: rgba(244,174,1,.04) !important;
}
/* Payment header row (radio + label) */
.wc-block-components-radio-control-accordion-option {
  padding: 14px 16px !important;
}
/* Payment description below header */
.wc-block-components-payment-method-description {
  border-top: 1px solid #f3f4f6 !important;
  padding: 10px 16px 14px !important;
  font-size: .85rem !important;
  color: var(--cc-muted) !important;
  background: #fafafa !important;
}

/* ── Place Order / Proceed to Checkout button ───────────────────────── */
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block a,
.wc-block-cart__submit a {
  background: var(--cc-gold) !important;
  color: var(--cc-dark) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border-radius: 8px !important;
  padding: 14px 28px !important;
  border: none !important;
  transition: background .2s !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block a:hover {
  background: var(--cc-gold-d) !important;
}

/* ── Cart sidebar (totals) ──────────────────────────────────────────── */
.wc-block-cart__sidebar .wc-block-components-sidebar {
  position: sticky !important;
  top: 24px !important;
}

/* Outer shadow on the whole sidebar column */
body.woocommerce-cart .wc-block-cart__sidebar {
  filter: drop-shadow(0 16px 48px rgba(10,12,30,.38));
}

/* ── Order summary sidebar ──────────────────────────────────────────── */
.wp-block-woocommerce-checkout-order-summary-block {
  position: sticky !important;
  top: 20px !important;
}

.wc-block-components-order-summary__content {
  max-height: none !important;
}

/* Product row in order summary */
.wc-block-components-order-summary-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid rgba(0,0,0,.06) !important;
}
.wc-block-components-order-summary-item:last-child { border-bottom: none !important; }

/* Image — fixed 56×56, never shrinks */
.wc-block-components-order-summary-item__image {
  flex: 0 0 56px !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  position: relative !important;
}
.wc-block-components-order-summary-item__image img {
  width: 56px !important;
  height: 56px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 8px !important;
}

/* Description — takes remaining space, won't push image */
.wc-block-components-order-summary-item__description {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

/* Total price — fixed right, no shrink */
.wc-block-components-order-summary-item__total-price {
  flex: 0 0 auto !important;
  font-weight: 700 !important;
  font-size: .93rem !important;
  color: var(--cc-dark) !important;
  white-space: nowrap !important;
}

/* Totals */
.wc-block-components-totals-item {
  padding: 10px 0 !important;
  border-bottom: 1px solid #f3f4f6 !important;
}
.wc-block-components-totals-item:last-child { border-bottom: none !important; }
.wc-block-components-totals-item__label { color: var(--cc-muted) !important; font-size: .88rem !important; }
.wc-block-components-totals-item__value { font-weight: 700 !important; color: var(--cc-dark) !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-size: 1rem !important; font-weight: 700 !important; color: var(--cc-dark) !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 1.2rem !important; color: var(--cc-gold-d) !important; }

/* Coupon */
.wc-block-components-totals-coupon__button {
  color: var(--cc-gold-d) !important;
  font-weight: 600 !important;
}

/* ── Error notices ───────────────────────────────────────────────────── */
.wc-block-components-notice-banner--error,
.wc-block-components-validation-error {
  border-radius: 8px !important;
  border-left: 3px solid #ef4444 !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
  font-size: .85rem !important;
}

/* ────────────────────────────────────────────────────────────────────
   CLASSIC CART (woocommerce-cart-form)
   ──────────────────────────────────────────────────────────────────── */

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  background: transparent;
}

/* Classic cart: table left + totals right */
.woocommerce-cart .woocommerce > form.woocommerce-cart-form,
.woocommerce-cart .woocommerce > .cart-collaterals {
  float: none !important;
  width: 100% !important;
}
@media (min-width: 768px) {
  .woocommerce-cart .woocommerce {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
  }
  .woocommerce-cart .woocommerce > * { width: auto !important; float: none !important; }
  .woocommerce-cart .woocommerce > form.woocommerce-cart-form { grid-column: 1; }
  .woocommerce-cart .woocommerce > .cart-collaterals { grid-column: 2; position: sticky; top: 24px; }
}

/* Cart table wrapper */
.woocommerce-cart-form {
  background: transparent;
  padding: 0;
  margin-bottom: 28px;
}

/* Cart totals box (classic fallback) */
.cart_totals {
  background: #161740;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(10,12,30,.45);
  border: 1px solid rgba(255,255,255,.07);
  padding: 24px 22px;
  color: #fff;
}
.cart_totals h2 {
  font-size: .68rem !important;
  font-weight: 800 !important;
  color: rgba(255,255,255,.45) !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
  padding-bottom: 14px !important;
  margin-bottom: 16px !important;
}
.cart_totals h2 {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.cart_totals table.shop_table { background: transparent; }
.cart_totals table.shop_table th { color: rgba(255,255,255,.55); font-size: .82rem; font-weight: 600; border: none; padding: 12px 0; }
.cart_totals table.shop_table td { color: rgba(255,255,255,.88); font-weight: 600; border: none; border-top: 1px solid rgba(255,255,255,.07); padding: 12px 0; background: transparent; border-radius: 0 !important; }
.cart_totals .order-total th { color: rgba(255,255,255,.65) !important; }
.cart_totals .order-total td { border-top: 1px solid rgba(255,255,255,.18) !important; padding-top: 16px !important; }
.cart_totals .order-total .amount { color: var(--cc-gold) !important; font-size: 1.5rem !important; font-weight: 900 !important; text-shadow: 0 1px 8px rgba(244,174,1,.3); }

/* Cart table – classic shortcode fallback */
table.shop_table {
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 14px !important;
  width: 100%;
}
table.shop_table thead tr { background: transparent !important; }
table.shop_table th {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--cc-muted);
  padding: 0 12px 14px;
  border: none;
}
table.shop_table tbody tr {
  background: rgba(255,255,255,.97);
  border-radius: var(--cc-radius);
  transition: box-shadow .22s, transform .18s;
}
table.shop_table tbody tr:hover { background: #fff; box-shadow: 0 8px 32px rgba(0,0,0,.22); transform: translateY(-2px); }
table.shop_table td {
  padding: 22px 14px;
  border: none;
  vertical-align: middle;
}
table.shop_table tbody td:first-child { border-radius: var(--cc-radius) 0 0 var(--cc-radius); padding-left: 20px; }
table.shop_table tbody td:last-child  { border-radius: 0 var(--cc-radius) var(--cc-radius) 0; padding-right: 20px; }
table.shop_table .product-thumbnail img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
table.shop_table .product-name a {
  font-weight: 700;
  font-size: .97rem;
  color: var(--cc-dark);
  text-decoration: none;
  line-height: 1.4;
}
table.shop_table .product-name a:hover { color: var(--cc-gold-d); }
table.shop_table .product-name .variation { font-size: .8rem; color: var(--cc-muted); margin-top: 3px; }
table.shop_table .product-price { color: var(--cc-muted); font-size: .9rem; }
table.shop_table .product-subtotal {
  font-weight: 800;
  font-size: 1rem;
  color: var(--cc-gold-d);
}
table.shop_table .product-remove a {
  color: #d1d5db !important;
  font-size: 1.3rem;
  line-height: 1;
  transition: color .15s;
}
table.shop_table .product-remove a:hover { color: #ef4444 !important; }

/* Quantity input in cart */
.woocommerce-cart-form .quantity input {
  border: 1.5px solid var(--cc-border) !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  font-size: .9rem !important;
  width: 64px !important;
  text-align: center !important;
}

/* Update cart button */
.woocommerce-cart-form button[name="update_cart"] {
  background: #f9fafb !important;
  border: 1.5px solid var(--cc-border) !important;
  border-radius: 8px !important;
  color: var(--cc-text) !important;
  font-size: .85rem !important;
  padding: 8px 16px !important;
  cursor: pointer;
  transition: border-color .15s;
}
.woocommerce-cart-form button[name="update_cart"]:hover {
  border-color: var(--cc-gold) !important;
}

/* Proceed to checkout button */
.wc-proceed-to-checkout .checkout-button,
.checkout-button {
  background: var(--cc-gold) !important;
  color: var(--cc-dark) !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  padding: 16px 24px !important;
  border: none !important;
  font-size: 1.05rem !important;
  display: block !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: background .2s, transform .15s !important;
  margin-top: 20px !important;
  letter-spacing: .01em !important;
}
.wc-proceed-to-checkout .checkout-button:hover {
  background: var(--cc-gold-d) !important;
  transform: translateY(-1px) !important;
}

/* Cart totals table */
.cart_totals table.shop_table th { width: 40%; }
.cart_totals .order-total .amount { color: var(--cc-gold-d) !important; font-size: 1.15rem !important; font-weight: 800 !important; }

/* Classic checkout fields */
.woocommerce-checkout #customer_details {
  background: var(--cc-card);
  border-radius: var(--cc-radius);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  padding: 24px;
  margin-bottom: 24px;
}

/* Coupon field */
.woocommerce-form-coupon-toggle { font-size: .85rem; }
.woocommerce-form-coupon { background: #f8fafc; border-radius: 8px; padding: 16px; margin-bottom: 16px; }

/* ── Checkout page heading replacement ──────────────────────────────── */
.wc-block-checkout__main .wc-block-checkout__sidebar,
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-area {
  max-width: 380px;
}

/* ── Collapse PPCP / PayPal reCAPTCHA container (empty ghost card) ─── */
/* Without this, our .wc-block-checkout__form > * card rule gives it    */
/* 52px of padding + shadow, misaligning left column vs right sidebar.  */
#ppcp-recaptcha-v2-container {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border: none !important;
  min-height: 0 !important;
}
#ppcp-recaptcha-v2-container:empty {
  display: none !important;
}

/* ── Hide empty/unused checkout blocks ──────────────────────────────── */
/* Express payments (Google Pay, Apple Pay) — not configured */
.wp-block-woocommerce-checkout-express-payment-block,
.wc-block-components-express-payment,
.wc-block-components-express-payment-continue-rule { display: none !important; }

/* Shipping method selector block + pickup options — these render empty
   when WooCommerce uses the "Shipping options" step instead */
.wp-block-woocommerce-checkout-shipping-method-block,
.wp-block-woocommerce-checkout-pickup-options-block { display: none !important; }

/* Generic: any completely empty block wrapper */
.wc-block-checkout__main > .wp-block:empty,
.wc-block-checkout > .wp-block:empty,
.wc-block-checkout__main > div:empty,
.entry-content > .wp-block-group:empty { display: none !important; }

/* Notices: JS (hideEmptyNotices) handles the top panel — no CSS rule needed here.
   ⚠ Do NOT add :has(>.wc-block-components-notices:empty) to form children —
     the actions block has an inner StoreNoticesContainer and would be hidden. */

/* ── Save/SAVE badge on cart items ─────────────────────────────────── */
.wc-block-cart-items__row .wc-block-cart-item__product-details del,
.wc-block-cart-items__row .wc-block-components-sale-badge {
  color: var(--cc-muted) !important;
  font-size: .8rem !important;
}

/* ── Place Order button – bigger and more prominent ─────────────────── */
.wc-block-components-checkout-place-order-button {
  font-size: 1.1rem !important;
  padding: 16px 32px !important;
  letter-spacing: .02em !important;
}

/* ── "Запази X лв." sale badges — hide in order summary (crowd layout) ── */
.wc-block-components-order-summary-item .wc-block-components-sale-badge,
.wc-block-components-order-summary-item .wc-block-components-product-sale-badge {
  display: none !important;
}

/* ── "Add a note" section ────────────────────────────────────────────── */
.wc-block-checkout__add-note textarea {
  border: 1.5px solid var(--cc-border) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: .9rem !important;
  width: 100% !important;
  resize: vertical !important;
}

/* ── Terms text ─────────────────────────────────────────────────────── */
.wc-block-checkout__terms p {
  font-size: .82rem !important;
  color: var(--cc-muted) !important;
}

/* ── Checkout actions block: strip card styling, let button breathe ── */
/* The actions wrapper is a direct child of the form that contains
   .wc-block-checkout__actions_row — it should NOT look like a form step */
.wc-block-checkout__form > div:has(> .wc-block-checkout__actions_row) {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 4px 0 !important;
  margin-bottom: 8px !important;
}
.wc-block-checkout__actions_row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

/* Return to Cart: secondary outlined button (matches site style) */
.wc-block-components-checkout-return-to-cart-button {
  background: #fff !important;
  border: 1.5px solid var(--cc-border) !important;
  border-radius: 8px !important;
  padding: 13px 20px !important;
  color: var(--cc-muted) !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: border-color .15s, color .15s !important;
}
.wc-block-components-checkout-return-to-cart-button:hover {
  border-color: var(--cc-gold) !important;
  color: var(--cc-dark) !important;
  text-decoration: none !important;
}

/* ── Payment method label ────────────────────────────────────────────── */
.wc-block-components-payment-method-label__label { font-weight: 600 !important; }
.wc-block-components-payment-method-description  { color: var(--cc-muted) !important; font-size: .88rem !important; }

/* ── Order summary: quantity badge ──────────────────────────────────── */
/*
 * WC Blocks renders a small badge over the product thumbnail.
 * Make it visible with a contrasting dark pill.
 */
.wc-block-components-order-summary-item__quantity {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  min-width: 22px !important;
  height: 22px !important;
  background: var(--cc-dark) !important;
  color: #fff !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  border-radius: 11px !important;
  padding: 0 5px !important;
  border: 2px solid #fff !important;
  z-index: 2 !important;
  line-height: 1 !important;
}
/* Ensure the image wrapper is position:relative so the badge positions correctly */
.wc-block-components-order-summary-item__image {
  position: relative !important;
}
/* Also show qty inline in product details as "× N бр." */
.wc-block-components-order-summary-item__subtitle {
  font-size: .8rem !important;
  color: var(--cc-muted) !important;
  margin-top: 2px !important;
}

/* ── Order summary: truncate description to 2 lines ─────────────── */
.wc-block-components-product-metadata__description p {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: .78rem !important;
  color: var(--cc-muted) !important;
  line-height: 1.45 !important;
  margin: 3px 0 0 !important;
}
/* Hide per-unit prices (del/ins) — total is shown on the right */
.wc-block-components-order-summary-item__individual-prices { display: none !important; }

/* ── Quantity badge next to product name ─────────────────────────────── */
.moneta-qty-inline {
  display: inline-block;
  margin-left: 6px;
  background: var(--cc-dark);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 7px;
  vertical-align: middle;
  letter-spacing: .02em;
}

/* ── Coupon field styling ─────────────────────────────────────────────── */
.wc-block-components-totals-coupon {
  padding: 12px 0 4px !important;
}
.wc-block-components-totals-coupon-link {
  font-weight: 600 !important;
  color: var(--cc-gold-d) !important;
  font-size: .88rem !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.wc-block-components-totals-coupon__form {
  display: flex !important;
  gap: 8px !important;
  margin-top: 10px !important;
  align-items: center !important;
}
.wc-block-components-totals-coupon__input input {
  border: 1.5px solid var(--cc-border) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: .9rem !important;
  flex: 1 !important;
}
.wc-block-components-totals-coupon__input input:focus {
  border-color: var(--cc-gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(244,174,1,.15) !important;
}
.wc-block-components-totals-coupon__button {
  background: var(--cc-gold) !important;
  color: var(--cc-dark) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  font-size: .88rem !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background .15s !important;
}
.wc-block-components-totals-coupon__button:hover {
  background: var(--cc-gold-d) !important;
}

/* ════════════════════════════════════════════════════════════════
   ORDER RECEIVED / THANK YOU PAGE
   ════════════════════════════════════════════════════════════════ */

body.woocommerce-order-received {
  background: var(--cc-bg) !important;
}
body.woocommerce-order-received #secondary,
body.woocommerce-order-received .widget-area { display: none !important; }
body.woocommerce-order-received #primary {
  width: 100% !important;
  float: none !important;
}
body.woocommerce-order-received h1.entry-title { display: none; }

body.woocommerce-order-received .woocommerce {
  max-width: 860px;
  margin: 32px auto;
  padding: 0 24px;
}

/* ── Success banner ─────────────────────────────────────────────── */
.woocommerce-thankyou-order-received {
  background: var(--cc-card) !important;
  border-radius: var(--cc-radius) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.06) !important;
  padding: 26px 32px !important;
  margin: 0 0 20px !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--cc-dark) !important;
  border-left: 4px solid var(--cc-gold) !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}
.woocommerce-thankyou-order-received::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  background: var(--cc-gold);
  color: var(--cc-dark);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* ── Order meta strip ───────────────────────────────────────────── */
.woocommerce-thankyou-order-details {
  background: var(--cc-card) !important;
  border-radius: var(--cc-radius) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.06) !important;
  padding: 0 !important;
  margin: 0 0 20px !important;
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
}
.woocommerce-thankyou-order-details li {
  flex: 1 1 160px;
  padding: 18px 20px !important;
  border-right: 1px solid var(--cc-border);
  font-size: .68rem !important;
  color: var(--cc-muted) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  margin: 0 !important;
}
.woocommerce-thankyou-order-details li:last-child { border-right: none !important; }
.woocommerce-thankyou-order-details li strong {
  display: block !important;
  font-size: .95rem !important;
  color: var(--cc-dark) !important;
  font-weight: 700 !important;
  margin-top: 5px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* ── Payment note (below meta strip) ────────────────────────────── */
.woocommerce-order-received .woocommerce-notice:not(.woocommerce-thankyou-order-received) {
  background: #fefce8 !important;
  border-radius: 8px !important;
  border-left: 3px solid var(--cc-gold) !important;
  padding: 12px 18px !important;
  margin: 0 0 20px !important;
  font-size: .9rem !important;
  color: var(--cc-text) !important;
}

/* ── Order details section ──────────────────────────────────────── */
.woocommerce-order-details {
  background: var(--cc-card) !important;
  border-radius: var(--cc-radius) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.06) !important;
  padding: 24px 28px !important;
  margin: 0 0 20px !important;
}
.woocommerce-order-details__title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--cc-dark) !important;
  border-bottom: 2px solid #f3f4f6 !important;
  padding-bottom: 14px !important;
  margin: 0 0 20px !important;
}

/* ── Order items table ──────────────────────────────────────────── */
table.woocommerce-table--order-details {
  width: 100% !important;
  border-collapse: collapse !important;
  border: none !important;
}
table.woocommerce-table--order-details thead th {
  font-size: .72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  color: var(--cc-muted) !important;
  padding: 0 0 12px !important;
  border: none !important;
  border-bottom: 2px solid var(--cc-border) !important;
}
table.woocommerce-table--order-details thead th.product-name { text-align: left !important; }
table.woocommerce-table--order-details thead th.product-total { text-align: right !important; }

table.woocommerce-table--order-details tbody td {
  padding: 14px 0 !important;
  border: none !important;
  border-bottom: 1px solid #f3f4f6 !important;
  font-size: .93rem !important;
  color: var(--cc-dark) !important;
}
table.woocommerce-table--order-details tbody td.product-name { text-align: left !important; }
table.woocommerce-table--order-details tbody td.product-total {
  text-align: right !important;
  font-weight: 700 !important;
}

table.woocommerce-table--order-details tfoot th,
table.woocommerce-table--order-details tfoot td {
  padding: 9px 0 !important;
  border: none !important;
  border-top: 1px solid #f3f4f6 !important;
  font-size: .88rem !important;
  background: none !important;
}
table.woocommerce-table--order-details tfoot th {
  color: var(--cc-muted) !important;
  font-weight: 600 !important;
  text-align: left !important;
  text-transform: none !important;
}
table.woocommerce-table--order-details tfoot td {
  text-align: right !important;
  font-weight: 700 !important;
  color: var(--cc-dark) !important;
}
/* Total row — bolder */
table.woocommerce-table--order-details tfoot .order-total th,
table.woocommerce-table--order-details tfoot .order-total td {
  border-top: 2px solid var(--cc-border) !important;
  font-size: 1rem !important;
  padding-top: 14px !important;
  color: var(--cc-dark) !important;
}
table.woocommerce-table--order-details tfoot .order-total td {
  color: var(--cc-gold-d) !important;
}

/* ── Billing / Shipping columns ─────────────────────────────────── */
/* WooCommerce uses <section class="... col2-set"> with float children.
   We override with CSS grid. Specificity must beat .woocommerce-page .col2-set */
body.woocommerce-order-received section.woocommerce-columns--addresses,
body.woocommerce-order-received .woocommerce-customer-details .col2-set {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
  overflow: visible !important;
}
/* Kill BOTH clearfix pseudo-elements — either one becomes a rogue grid item */
body.woocommerce-order-received section.woocommerce-columns--addresses::before,
body.woocommerce-order-received section.woocommerce-columns--addresses::after,
body.woocommerce-order-received .woocommerce-customer-details .col2-set::before,
body.woocommerce-order-received .woocommerce-customer-details .col2-set::after {
  display: none !important;
  content: none !important;
}

body.woocommerce-order-received section.woocommerce-columns--addresses > .woocommerce-column,
body.woocommerce-order-received .woocommerce-customer-details .col2-set > .col-1,
body.woocommerce-order-received .woocommerce-customer-details .col2-set > .col-2 {
  background: var(--cc-card) !important;
  border-radius: var(--cc-radius) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.06) !important;
  padding: 24px 28px !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  min-width: 0;
}
body.woocommerce-order-received .woocommerce-column__title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--cc-dark) !important;
  border-bottom: 2px solid #f3f4f6 !important;
  padding-bottom: 14px !important;
  margin: 0 0 16px !important;
}
body.woocommerce-order-received .woocommerce-customer-details address {
  font-style: normal !important;
  line-height: 1.9 !important;
  font-size: .9rem !important;
  color: var(--cc-text) !important;
}
body.woocommerce-order-received .woocommerce-customer-details address p { margin: 0 !important; }

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .woocommerce-thankyou-order-details li {
    flex: 1 1 50%;
    border-right: none !important;
    border-bottom: 1px solid var(--cc-border);
  }
  body.woocommerce-order-received section.woocommerce-columns--addresses,
  body.woocommerce-order-received .woocommerce-customer-details .col2-set {
    grid-template-columns: 1fr !important;
  }
}

/* ────────────────────────────────────────────────────────────────────
   MOBILE — cart & checkout
   ──────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Reduce outer padding so product name column has room to breathe */
  .wc-block-checkout,
  .wc-block-cart {
    padding: 16px 14px 60px !important;
  }

  /* Inner sub-blocks: reduce side padding from 22px → 14px */
  body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-coupon-form-block,
  body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-subtotal-block,
  body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-shipping-block,
  body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-taxes-block,
  body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-fee-block,
  body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-discount-block,
  body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-total-block {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Sidebar title padding */
  body.woocommerce-cart .wc-block-cart__sidebar .wc-block-cart__totals-title,
  body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-heading-block,
  body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-title {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Totals wrapper margin */
  body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
    margin: 0 10px !important;
  }

  /* Order summary item: prevent the name column from collapsing to zero */
  .wc-block-components-order-summary-item__description {
    min-width: 60px !important;
    overflow-wrap: anywhere !important;
  }
  .wc-block-components-order-summary-item__name,
  .wc-block-components-order-summary-item__name a {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  /* Smaller thumbnail on mobile to free up horizontal space */
  .wc-block-components-order-summary-item__image {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
  }
  .wc-block-components-order-summary-item__image img {
    width: 44px !important;
    height: 44px !important;
  }

  /* Cart header: reduce padding */
  .wc-block-cart-items__header th,
  .wc-block-cart-items__header td,
  .wc-block-cart-items__header span {
    padding: 10px 10px !important;
  }

  /* Cart rows: smaller padding */
  .wc-block-cart-items__row td {
    padding: 14px 8px !important;
  }
  .wc-block-cart-items__row td:first-child { padding-left: 12px !important; }
  .wc-block-cart-items__row td:last-child  { padding-right: 12px !important; }

  /* Smaller thumbnail in cart table */
  .wc-block-cart-item__image { width: 60px !important; }
  .wc-block-cart-item__image img,
  .wc-block-cart-item__image a img {
    width: 56px !important;
    height: 56px !important;
  }
}

/* ── Econt / Speedy (Pigeon) multiselect — block checkout light theme ───── */
:is(.woo-bg--econt-delivery, .woo-bg--speedy-delivery, .woo-bg--pigeon-delivery) .multiselect__tags {
  background: #fff !important;
  border: 1.5px solid var(--cc-border) !important;
  border-radius: 8px !important;
  padding: 10px 44px 10px 14px !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}
:is(.woo-bg--econt-delivery, .woo-bg--speedy-delivery, .woo-bg--pigeon-delivery) .multiselect--active .multiselect__tags {
  border-radius: 8px 8px 0 0 !important;
  border-bottom-color: var(--cc-border) !important;
}
:is(.woo-bg--econt-delivery, .woo-bg--speedy-delivery, .woo-bg--pigeon-delivery) .multiselect__placeholder,
:is(.woo-bg--econt-delivery, .woo-bg--speedy-delivery, .woo-bg--pigeon-delivery) .multiselect__single {
  color: #b0b8c9 !important;
  font-size: .9rem !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
:is(.woo-bg--econt-delivery, .woo-bg--speedy-delivery, .woo-bg--pigeon-delivery) .multiselect__input {
  background: transparent !important;
  color: var(--cc-dark) !important;
  font-size: .9rem !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  width: 100% !important;
}
:is(.woo-bg--econt-delivery, .woo-bg--speedy-delivery, .woo-bg--pigeon-delivery) .multiselect__input::placeholder {
  color: #b0b8c9 !important;
}
:is(.woo-bg--econt-delivery, .woo-bg--speedy-delivery, .woo-bg--pigeon-delivery) .multiselect__content-wrapper {
  background: #fff !important;
  border: 1.5px solid var(--cc-border) !important;
  border-top: none !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
  z-index: 9000 !important;
  max-height: 280px !important;
  width: 100% !important;
}
:is(.woo-bg--econt-delivery, .woo-bg--speedy-delivery, .woo-bg--pigeon-delivery) .multiselect__option {
  background: transparent !important;
  color: var(--cc-dark) !important;
  font-size: .88rem !important;
  padding: 12px 16px !important;
  white-space: normal !important;
  line-height: 1.45 !important;
  min-height: 44px !important;
  border-bottom: 1px solid #f3f4f6 !important;
}
:is(.woo-bg--econt-delivery, .woo-bg--speedy-delivery, .woo-bg--pigeon-delivery) .multiselect__option--highlight:not(.multiselect__option--selected) {
  background: rgba(244,174,1,.08) !important;
  color: var(--cc-gold-d) !important;
}
:is(.woo-bg--econt-delivery, .woo-bg--speedy-delivery, .woo-bg--pigeon-delivery) .multiselect__option--selected {
  background: rgba(244,174,1,.1) !important;
  color: var(--cc-gold-d) !important;
  font-weight: 700 !important;
}
:is(.woo-bg--econt-delivery, .woo-bg--speedy-delivery, .woo-bg--pigeon-delivery) .multiselect__option--selected::after,
:is(.woo-bg--econt-delivery, .woo-bg--speedy-delivery, .woo-bg--pigeon-delivery) .multiselect__option.multiselect__option--highlight::after {
  color: var(--cc-gold) !important;
  background: transparent !important;
  font-size: .72rem !important;
}
:is(.woo-bg--econt-delivery, .woo-bg--speedy-delivery, .woo-bg--pigeon-delivery) .multiselect__select {
  background: transparent !important;
  height: 100% !important;
  top: 0 !important;
}
:is(.woo-bg--econt-delivery, .woo-bg--speedy-delivery, .woo-bg--pigeon-delivery) .multiselect__select::before {
  border-color: var(--cc-muted) transparent transparent !important;
}
:is(.woo-bg--econt-delivery, .woo-bg--speedy-delivery, .woo-bg--pigeon-delivery) .multiselect__option--disabled {
  color: #b0b8c9 !important;
  background: transparent !important;
}

@media (max-width: 640px) {
.woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce {
  padding: 0;
 }

}