/* VOEVODA — consolidated cart stylesheet */

/*
 * VOEVODA cart final overrides
 * Loaded after all other styles so the compact hero and section tones
 * cannot be overridden by older cached rules.
 */

/* Much more compact cart header */
.page-hero.page-hero--compact {
  min-height: 116px !important;
  padding: 12px 0 13px !important;
  align-items: center !important;
  overflow: hidden !important;
}
.page-hero.page-hero--compact .page-hero__inner {
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}
.page-hero.page-hero--compact .breadcrumbs {
  margin: 0 0 5px !important;
  font-size: 8px !important;
}
.page-hero.page-hero--compact h1 {
  margin: 0 0 5px !important;
  font-size: clamp(34px, 3.25vw, 48px) !important;
  line-height: .94 !important;
}
.page-hero.page-hero--compact p {
  max-width: 690px !important;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.38 !important;
}
.page-hero.page-hero--compact::after {
  right: 34px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: clamp(105px, 9vw, 142px) !important;
  line-height: .82 !important;
  color: rgba(201,166,103,.050) !important;
}

/* Clearly separated, but still related, warm beige sections */
.cart-order-form .cart-form-section.cart-form-section--contacts {
  background: linear-gradient(145deg, #1b1510 0%, #120e0b 100%) !important;
  border-color: rgba(211,171,104,.52) !important;
  box-shadow:
    inset 4px 0 0 #b8894d,
    0 14px 32px rgba(0,0,0,.16) !important;
}
.cart-order-form .cart-form-section.cart-form-section--contacts .cart-form-section__head {
  background: linear-gradient(90deg, rgba(184,137,77,.15), transparent 72%) !important;
}
.cart-order-form .cart-form-section.cart-form-section--contacts .cart-form-section__head > span {
  background: rgba(184,137,77,.16) !important;
  border-color: rgba(225,187,119,.72) !important;
}

.cart-order-form .cart-form-section.cart-form-section--delivery {
  background: linear-gradient(145deg, #271c13 0%, #17100c 100%) !important;
  border-color: rgba(179,125,70,.60) !important;
  box-shadow:
    inset 4px 0 0 #8f5f34,
    0 14px 32px rgba(0,0,0,.16) !important;
}
.cart-order-form .cart-form-section.cart-form-section--delivery .cart-form-section__head {
  background: linear-gradient(90deg, rgba(143,95,52,.19), transparent 72%) !important;
}
.cart-order-form .cart-form-section.cart-form-section--delivery .cart-form-section__head > span {
  background: rgba(143,95,52,.18) !important;
  border-color: rgba(195,139,84,.78) !important;
}

.cart-order-form .cart-form-section.cart-form-section--payment {
  background: linear-gradient(145deg, #171412 0%, #0d0b0a 100%) !important;
  border-color: rgba(226,195,143,.45) !important;
  box-shadow:
    inset 4px 0 0 #d2b37f,
    0 14px 32px rgba(0,0,0,.16) !important;
}
.cart-order-form .cart-form-section.cart-form-section--payment .cart-form-section__head {
  background: linear-gradient(90deg, rgba(210,179,127,.13), transparent 72%) !important;
}
.cart-order-form .cart-form-section.cart-form-section--payment .cart-form-section__head > span {
  background: rgba(210,179,127,.13) !important;
  border-color: rgba(226,195,143,.72) !important;
}

/* Different field depths reinforce the section grouping */
.cart-order-form .cart-form-section--contacts input,
.cart-order-form .cart-form-section--contacts select,
.cart-order-form .cart-form-section--contacts textarea {
  background: #100c09 !important;
  border-color: rgba(211,171,104,.35) !important;
}
.cart-order-form .cart-form-section--delivery input,
.cart-order-form .cart-form-section--delivery select,
.cart-order-form .cart-form-section--delivery textarea {
  background: #1a120d !important;
  border-color: rgba(179,125,70,.42) !important;
}
.cart-order-form .cart-form-section--payment input,
.cart-order-form .cart-form-section--payment select,
.cart-order-form .cart-form-section--payment textarea,
.cart-order-form .cart-form-section--payment .cart-payment-option > span {
  background-color: #0f0d0b !important;
}

@media (max-width: 980px) {
  .page-hero.page-hero--compact {
    min-height: 106px !important;
    padding: 10px 0 11px !important;
  }
  .page-hero.page-hero--compact::after {
    right: 18px !important;
    font-size: 108px !important;
  }
}

@media (max-width: 760px) {
  .page-hero.page-hero--compact {
    min-height: auto !important;
    padding: 16px 0 15px !important;
  }
  .page-hero.page-hero--compact .page-hero__inner {
    width: min(100% - 30px, 1180px) !important;
  }
  .page-hero.page-hero--compact h1 {
    font-size: 34px !important;
  }
  .page-hero.page-hero--compact p {
    font-size: 11px !important;
  }
  .page-hero.page-hero--compact::after {
    display: none !important;
  }
}

/* --- Checkout header final compact override 1.1.0 --- */
.cart-layout--checkout-top .cart-checkout__header {
  grid-template-columns: minmax(0,1fr) minmax(410px,.84fr) !important;
  gap: 16px !important;
  padding: 14px 16px !important;
  min-height: 0 !important;
}

.cart-layout--checkout-top .cart-checkout__intro .kicker {
  margin-bottom: 3px !important;
  font-size: 8px !important;
}

.cart-layout--checkout-top .cart-checkout__intro h2 {
  margin: 2px 0 4px !important;
  font-size: clamp(21px,1.9vw,29px) !important;
  line-height: 1.02 !important;
}

.cart-layout--checkout-top .cart-checkout__intro p {
  max-width: 650px !important;
  margin: 0 !important;
  font-size: 10px !important;
  line-height: 1.38 !important;
}

.cart-layout--checkout-top .cart-summary {
  min-height: 0 !important;
}

.cart-layout--checkout-top .cart-summary > .kicker {
  padding: 12px 14px !important;
  font-size: 8px !important;
}

.cart-layout--checkout-top .cart-summary__row {
  min-height: 54px !important;
  padding: 9px 13px !important;
  gap: 3px !important;
}

.cart-layout--checkout-top .cart-summary__row span {
  font-size: 10px !important;
}

.cart-layout--checkout-top .cart-summary__row strong {
  font-size: 15px !important;
}

.cart-layout--checkout-top .cart-summary__row--total strong {
  font-size: 20px !important;
}

.cart-layout--checkout-top .cart-summary p {
  padding: 0 13px 8px !important;
  font-size: 7px !important;
  line-height: 1.35 !important;
}

@media (max-width: 1180px) {
  .cart-layout--checkout-top .cart-checkout__header {
    grid-template-columns: 1fr !important;
    padding: 13px 14px !important;
    gap: 12px !important;
  }
}

@media (max-width: 760px) {
  .cart-layout--checkout-top .cart-checkout__header {
    padding: 12px !important;
    gap: 10px !important;
  }
  .cart-layout--checkout-top .cart-checkout__intro h2 {
    font-size: 22px !important;
  }
  .cart-layout--checkout-top .cart-summary__row {
    min-height: 50px !important;
    padding: 9px 11px !important;
  }
}

/* Cart page rules previously embedded in cart.php */
.cart-ammo-alert {
    margin: 0 0 22px;
    padding: 20px 22px;
    border: 1px solid rgba(213, 179, 106, .48);
    background: linear-gradient(135deg, rgba(104, 35, 27, .30), rgba(30, 23, 17, .92));
    box-shadow: inset 4px 0 0 #d5b36a;
  }
  .cart-ammo-alert__label {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #d5b36a;
  }
  .cart-ammo-alert h3 {
    margin: 0 0 8px;
    font-size: clamp(20px, 2vw, 28px);
  }
  .cart-ammo-alert p {
    margin: 0;
    max-width: 900px;
    line-height: 1.65;
  }
  .cart-ammo-alert strong { color: #f0cf85; }
  .cart-ammo-dialog {
    width: min(620px, calc(100% - 28px));
    padding: 0;
    border: 1px solid rgba(213, 179, 106, .55);
    background: #17130f;
    color: #f2eadc;
    box-shadow: 0 28px 80px rgba(0,0,0,.55);
  }
  .cart-ammo-dialog::backdrop { background: rgba(5, 4, 3, .78); backdrop-filter: blur(5px); }
  .cart-ammo-dialog__inner { padding: 30px; }
  .cart-ammo-dialog__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border: 1px solid rgba(213,179,106,.48);
    color: #d5b36a;
    font-size: 25px;
  }
  .cart-ammo-dialog h2 { margin: 0 0 12px; font-size: clamp(24px, 4vw, 36px); }
  .cart-ammo-dialog p { margin: 0 0 22px; line-height: 1.7; color: #cfc3b2; }
  .cart-ammo-dialog__actions { display: flex; gap: 12px; flex-wrap: wrap; }
  body.theme-day .cart-ammo-alert,
  [data-theme="day"] .cart-ammo-alert {
    background: linear-gradient(135deg, #f3dfd6, #fffaf0);
    border-color: rgba(112, 63, 43, .34);
    box-shadow: inset 4px 0 0 #7d382c;
    color: #2d2118;
  }
  body.theme-day .cart-ammo-alert__label,
  [data-theme="day"] .cart-ammo-alert__label,
  body.theme-day .cart-ammo-alert strong,
  [data-theme="day"] .cart-ammo-alert strong { color: #7d382c; }
  body.theme-day .cart-ammo-dialog,
  [data-theme="day"] .cart-ammo-dialog { background: #fffaf0; color: #2d2118; }
  body.theme-day .cart-ammo-dialog p,
  [data-theme="day"] .cart-ammo-dialog p { color: #665648; }

  /* Strict ammunition request mode: delivery and payment must never be visible. */
  [data-cart-page].is-ammo-request [data-cart-delivery-section],
  [data-cart-page].is-ammo-request [data-cart-payment-section],
  [data-cart-page].is-ammo-request [data-receipt-method-wrap],
  [data-cart-page].is-ammo-request [data-delivery-fields],
  [data-cart-page].is-ammo-request [data-delivery-placeholder],
  [data-cart-page].is-ammo-request [data-shipping-restriction] {
    display: none !important;
  }
  [data-cart-page].is-ammo-request .cart-order-form__columns {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  [data-cart-page].is-ammo-request [data-cart-contacts-section] {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  /* =========================================================
     DAY THEME — APPROVED CHECKOUT REDESIGN
     Light warm stone palette, dark typography, gold accents.
     ========================================================= */
  html[data-theme="light"] [data-cart-page] {
    --checkout-bg: #f3eee5;
    --checkout-surface: #fffdf9;
    --checkout-surface-soft: #faf6ef;
    --checkout-line: #ded2bf;
    --checkout-line-strong: #c8b18b;
    --checkout-text: #2e2a23;
    --checkout-muted: #706556;
    --checkout-gold: #b98a3e;
    --checkout-gold-soft: #ead8b7;
    background: transparent !important;
    color: var(--checkout-text) !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-layout,
  html[data-theme="light"] [data-cart-page] .cart-layout--checkout-top,
  html[data-theme="light"] [data-cart-page] .cart-main {
    background: transparent !important;
    background-image: none !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-checkout {
    background: var(--checkout-surface) !important;
    background-image: none !important;
    color: var(--checkout-text) !important;
    border: 1px solid var(--checkout-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 50px rgba(68, 53, 33, .08) !important;
    overflow: hidden !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-checkout::before,
  html[data-theme="light"] [data-cart-page] .cart-checkout::after,
  html[data-theme="light"] [data-cart-page] .cart-order-form::before,
  html[data-theme="light"] [data-cart-page] .cart-order-form::after,
  html[data-theme="light"] [data-cart-page] .cart-form-section::before,
  html[data-theme="light"] [data-cart-page] .cart-form-section::after {
    content: none !important;
    display: none !important;
    background: none !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-checkout__header {
    background: linear-gradient(180deg, #fffefb 0%, #faf5eb 100%) !important;
    background-image: linear-gradient(180deg, #fffefb 0%, #faf5eb 100%) !important;
    border-bottom: 1px solid var(--checkout-line) !important;
    padding: 26px 28px !important;
    color: var(--checkout-text) !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-checkout__intro,
  html[data-theme="light"] [data-cart-page] .cart-summary {
    background: transparent !important;
    background-image: none !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-summary {
    background: #fff !important;
    border: 1px solid var(--checkout-line) !important;
    border-radius: 12px !important;
    padding: 16px 18px !important;
    box-shadow: none !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-order-form {
    background: var(--checkout-surface) !important;
    background-image: none !important;
    padding: 18px !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-order-form__columns {
    gap: 16px !important;
    align-items: stretch !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-form-section {
    background: var(--checkout-surface-soft) !important;
    background-image: none !important;
    border: 1px solid var(--checkout-line) !important;
    border-radius: 14px !important;
    padding: 20px !important;
    color: var(--checkout-text) !important;
    box-shadow: none !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-form-section--payment {
    margin-top: 16px !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-form-section__head {
    background: transparent !important;
    background-image: none !important;
    border-bottom: 1px solid var(--checkout-line) !important;
    padding: 0 0 16px !important;
    margin: 0 0 18px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-form-section__head > span {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9px !important;
    background: var(--checkout-gold-soft) !important;
    border: 1px solid #d6bd8e !important;
    color: #72521f !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-checkout h2,
  html[data-theme="light"] [data-cart-page] .cart-checkout h3,
  html[data-theme="light"] [data-cart-page] .cart-checkout strong,
  html[data-theme="light"] [data-cart-page] .cart-summary__row strong,
  html[data-theme="light"] [data-cart-page] .cart-payment-option strong {
    color: var(--checkout-text) !important;
    text-shadow: none !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-checkout p,
  html[data-theme="light"] [data-cart-page] .cart-checkout small,
  html[data-theme="light"] [data-cart-page] .cart-form-section__head p,
  html[data-theme="light"] [data-cart-page] .cart-summary p,
  html[data-theme="light"] [data-cart-page] .cart-payment-option small {
    color: var(--checkout-muted) !important;
    text-shadow: none !important;
  }

  html[data-theme="light"] [data-cart-page] .kicker,
  html[data-theme="light"] [data-cart-page] .cart-checkout__intro .kicker,
  html[data-theme="light"] [data-cart-page] .cart-summary .kicker {
    color: var(--checkout-gold) !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-form-grid label > span,
  html[data-theme="light"] [data-cart-page] .cart-delivery-grid label > span,
  html[data-theme="light"] [data-cart-page] .cart-order-comment > span,
  html[data-theme="light"] [data-cart-page] .cart-company-card label > span,
  html[data-theme="light"] [data-cart-page] .cart-cdek-options legend {
    color: #4c4438 !important;
    font-weight: 700 !important;
  }

  html[data-theme="light"] [data-cart-page] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  html[data-theme="light"] [data-cart-page] select,
  html[data-theme="light"] [data-cart-page] textarea {
    background: #fff !important;
    background-image: none !important;
    color: var(--checkout-text) !important;
    border: 1px solid #d9cdbb !important;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9) !important;
    opacity: 1 !important;
  }

  html[data-theme="light"] [data-cart-page] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
  html[data-theme="light"] [data-cart-page] select:hover,
  html[data-theme="light"] [data-cart-page] textarea:hover {
    border-color: #c8b18b !important;
  }

  html[data-theme="light"] [data-cart-page] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
  html[data-theme="light"] [data-cart-page] select:focus,
  html[data-theme="light"] [data-cart-page] textarea:focus {
    border-color: var(--checkout-gold) !important;
    box-shadow: 0 0 0 3px rgba(185,138,62,.15) !important;
    outline: none !important;
  }

  html[data-theme="light"] [data-cart-page] input::placeholder,
  html[data-theme="light"] [data-cart-page] textarea::placeholder {
    color: #9a8f80 !important;
    opacity: 1 !important;
  }

  html[data-theme="light"] [data-cart-page] select option {
    color: var(--checkout-text) !important;
    background: #fff !important;
  }

  html[data-theme="light"] [data-cart-page] input[type="checkbox"],
  html[data-theme="light"] [data-cart-page] input[type="radio"] {
    accent-color: var(--checkout-gold) !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-payment-options {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-payment-option {
    min-height: 118px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    background: #fff !important;
    background-image: none !important;
    border: 1px solid var(--checkout-line) !important;
    border-radius: 12px !important;
    padding: 18px !important;
    color: var(--checkout-text) !important;
    box-shadow: none !important;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-payment-option:hover {
    border-color: var(--checkout-line-strong) !important;
    transform: translateY(-1px) !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-payment-option:has(input:checked) {
    background: #fffaf0 !important;
    border-color: var(--checkout-gold) !important;
    box-shadow: inset 0 0 0 1px rgba(185,138,62,.18) !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-cdek-option {
    background: #fff !important;
    border: 1px solid var(--checkout-line) !important;
    border-radius: 10px !important;
    color: var(--checkout-text) !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-cdek-option:has(input:checked) {
    background: #fffaf0 !important;
    border-color: var(--checkout-gold) !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-shipping-restriction,
  html[data-theme="light"] [data-cart-page] .cart-payment-regulated-note,
  html[data-theme="light"] [data-cart-page] .cart-company-card,
  html[data-theme="light"] [data-cart-page] .cart-delivery-placeholder,
  html[data-theme="light"] [data-cart-page] .cart-regulated-note {
    background: #fffaf0 !important;
    background-image: none !important;
    border: 1px solid #dfcda9 !important;
    border-radius: 10px !important;
    color: #5c4a2e !important;
    box-shadow: none !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-shipping-restriction strong,
  html[data-theme="light"] [data-cart-page] .cart-payment-regulated-note strong,
  html[data-theme="light"] [data-cart-page] .cart-regulated-note strong {
    color: #78571f !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-ammo-alert {
    background: #fff4e7 !important;
    background-image: none !important;
    border: 1px solid #d5b98c !important;
    border-radius: 12px !important;
    box-shadow: inset 4px 0 0 #9d6b2f !important;
    color: #3a2d1d !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-ammo-alert h3,
  html[data-theme="light"] [data-cart-page] .cart-ammo-alert p,
  html[data-theme="light"] [data-cart-page] .cart-ammo-alert strong {
    color: #3a2d1d !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-order-form__footer {
    margin-top: 16px !important;
    padding: 20px !important;
    background: #faf6ef !important;
    background-image: none !important;
    border: 1px solid var(--checkout-line) !important;
    border-radius: 14px !important;
    color: var(--checkout-text) !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-order-comment textarea {
    min-height: 120px !important;
  }

  html[data-theme="light"] [data-cart-page] .consent-check,
  html[data-theme="light"] [data-cart-page] .consent-check span {
    color: #51483d !important;
  }

  html[data-theme="light"] [data-cart-page] .consent-check a {
    color: #8e6426 !important;
    text-decoration-color: rgba(142,100,38,.45) !important;
  }

  html[data-theme="light"] [data-cart-page] [data-cart-submit] {
    background: linear-gradient(180deg, #d7ad63 0%, #c28f39 100%) !important;
    color: #1d170f !important;
    border-color: #b8812e !important;
    box-shadow: 0 8px 22px rgba(173,121,38,.18) !important;
  }

  html[data-theme="light"] [data-cart-page] [data-cart-submit]:hover {
    background: linear-gradient(180deg, #e1bb75 0%, #c99741 100%) !important;
  }

  html[data-theme="light"] [data-cart-page] .form-status {
    color: var(--checkout-muted) !important;
  }

  @media (max-width: 900px) {
    html[data-theme="light"] [data-cart-page] .cart-payment-options {
      grid-template-columns: 1fr !important;
    }
    html[data-theme="light"] [data-cart-page] .cart-checkout__header,
    html[data-theme="light"] [data-cart-page] .cart-order-form {
      padding: 16px !important;
    }
    html[data-theme="light"] [data-cart-page] .cart-form-section,
    html[data-theme="light"] [data-cart-page] .cart-order-form__footer {
      padding: 16px !important;
    }
  }

  /* Final light-theme fix for payment option inner panels */
  html[data-theme="light"] [data-cart-page] .cart-payment-option > span {
    min-height: 112px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 18px 20px !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #2c261d !important;
    border: 1px solid #d9cdbb !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-payment-option > span strong {
    color: #2c261d !important;
    text-shadow: none !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-payment-option > span small {
    color: #6f6558 !important;
    text-shadow: none !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-payment-option:hover > span {
    background: #fffdf8 !important;
    border-color: #c5a86f !important;
    box-shadow: 0 8px 22px rgba(117, 88, 43, .08) !important;
    transform: translateY(-1px) !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-payment-option.is-selected > span,
  html[data-theme="light"] [data-cart-page] .cart-payment-option > input:checked + span {
    background: #fff9ec !important;
    background-image: none !important;
    border-color: #b98a3e !important;
    box-shadow: inset 0 0 0 1px rgba(185,138,62,.18), 0 8px 22px rgba(117,88,43,.08) !important;
  }

  html[data-theme="light"] [data-cart-page] .cart-payment-option > input:focus-visible + span {
    outline: 2px solid #b98a3e !important;
    outline-offset: 3px !important;
  }

/* VOEVODA — final cart quantity and stock display */
body .cart-item__controls,
body .cart-layout--checkout-top .cart-item__controls {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  align-items: center !important;
  align-content: center !important;
  gap: 7px !important;
  min-width: 150px !important;
  width: auto !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body .cart-item__quantity-label {
  display: block !important;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: .10em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body .cart-item__quantity {
  display: grid !important;
  grid-template-columns: 38px 52px 38px !important;
  width: 128px !important;
  min-width: 128px !important;
  height: 42px !important;
  overflow: hidden !important;
}

body .cart-item__stock {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 112px !important;
  max-width: none !important;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 4px 10px !important;
  border: 1px solid rgba(201,166,103,.28) !important;
  border-radius: 999px !important;
  background: rgba(201,166,103,.07) !important;
  color: var(--muted) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body .cart-item__stock strong {
  display: inline !important;
  margin: 0 3px !important;
  color: var(--gold-light) !important;
  font-weight: 800 !important;
}

html[data-theme="light"] body .cart-item__quantity-label {
  color: #796850 !important;
}

html[data-theme="light"] body .cart-item__stock {
  border-color: rgba(145,99,39,.25) !important;
  background: rgba(172,123,58,.09) !important;
  color: #75634d !important;
}

html[data-theme="light"] body .cart-item__stock strong {
  color: #8b5b1f !important;
}

@media (max-width: 760px) {
  body .cart-item__controls,
  body .cart-layout--checkout-top .cart-item__controls {
    justify-items: start !important;
    min-width: 0 !important;
  }

  body .cart-item__stock {
    min-width: 0 !important;
  }
}

/* VOEVODA — mobile cart stock visibility, final override */
@media (max-width: 760px) {
  body.page-cart .cart-item,
  body .cart-layout--checkout-top .cart-item {
    overflow: visible !important;
  }

  body.page-cart .cart-item__controls,
  body .cart-layout--checkout-top .cart-item__controls {
    grid-column: 2 / -1 !important;
    grid-row: auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 4px 0 0 !important;
    gap: 7px 10px !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.page-cart .cart-item__quantity-label,
  body .cart-layout--checkout-top .cart-item__quantity-label {
    flex: 0 0 100% !important;
    display: block !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.page-cart .cart-item__quantity,
  body .cart-layout--checkout-top .cart-item__quantity {
    flex: 0 0 128px !important;
    width: 128px !important;
    min-width: 128px !important;
    max-width: 128px !important;
  }

  body.page-cart .cart-item__stock,
  body .cart-layout--checkout-top .cart-item__stock {
    position: static !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: 100% !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 5px 10px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body.page-cart .cart-item__stock strong,
  body .cart-layout--checkout-top .cart-item__stock strong {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 470px) {
  body.page-cart .cart-item__controls,
  body .cart-layout--checkout-top .cart-item__controls {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  body.page-cart .cart-item__quantity-label,
  body .cart-layout--checkout-top .cart-item__quantity-label {
    flex-basis: auto !important;
  }

  body.page-cart .cart-item__stock,
  body .cart-layout--checkout-top .cart-item__stock {
    min-width: 128px !important;
  }
}

/* VOEVODA — final mobile cart quantity fit fix */
@media (max-width: 760px) {
  body .cart-layout--checkout-top .cart-item,
  body .cart-list .cart-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    grid-template-columns: 82px minmax(0, 1fr) 32px !important;
    grid-template-areas:
      "image info remove"
      "image price price"
      "controls controls controls" !important;
    column-gap: 10px !important;
    row-gap: 10px !important;
  }

  body .cart-layout--checkout-top .cart-item__image,
  body .cart-list .cart-item__image {
    grid-area: image !important;
    width: 82px !important;
    max-width: 82px !important;
  }

  body .cart-layout--checkout-top .cart-item__info,
  body .cart-list .cart-item__info {
    grid-area: info !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body .cart-layout--checkout-top .cart-item__info h3,
  body .cart-list .cart-item__info h3,
  body .cart-layout--checkout-top .cart-item__info a,
  body .cart-list .cart-item__info a {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  body .cart-layout--checkout-top .cart-item__price,
  body .cart-list .cart-item__price {
    grid-area: price !important;
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: start !important;
    text-align: left !important;
    min-width: 0 !important;
  }

  body .cart-layout--checkout-top .cart-item__remove,
  body .cart-list .cart-item__remove {
    grid-area: remove !important;
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: end !important;
    align-self: start !important;
  }

  body .cart-layout--checkout-top .cart-item__controls,
  body .cart-list .cart-item__controls {
    grid-area: controls !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    display: grid !important;
    grid-template-columns: 116px minmax(0, 1fr) !important;
    grid-template-areas:
      "label label"
      "quantity stock" !important;
    align-items: center !important;
    justify-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    gap: 7px 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body .cart-layout--checkout-top .cart-item__quantity-label,
  body .cart-list .cart-item__quantity-label {
    grid-area: label !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body .cart-layout--checkout-top .cart-item__quantity,
  body .cart-list .cart-item__quantity {
    grid-area: quantity !important;
    display: grid !important;
    grid-template-columns: 34px 48px 34px !important;
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    overflow: hidden !important;
  }

  body .cart-layout--checkout-top .cart-item__quantity button,
  body .cart-layout--checkout-top .cart-item__quantity input,
  body .cart-list .cart-item__quantity button,
  body .cart-list .cart-item__quantity input {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    line-height: 40px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  body .cart-layout--checkout-top .cart-item__quantity input,
  body .cart-list .cart-item__quantity input {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    font-size: 16px !important;
  }

  body .cart-layout--checkout-top .cart-item__stock,
  body .cart-list .cart-item__stock {
    grid-area: stock !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
    line-height: 1.25 !important;
    overflow: hidden !important;
  }
}

@media (max-width: 430px) {
  body .cart-layout--checkout-top .cart-item,
  body .cart-list .cart-item {
    grid-template-columns: 68px minmax(0, 1fr) 30px !important;
    padding: 10px !important;
  }

  body .cart-layout--checkout-top .cart-item__image,
  body .cart-list .cart-item__image {
    width: 68px !important;
    max-width: 68px !important;
    height: 64px !important;
  }

  body .cart-layout--checkout-top .cart-item__controls,
  body .cart-list .cart-item__controls {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "label"
      "quantity"
      "stock" !important;
    gap: 7px !important;
  }

  body .cart-layout--checkout-top .cart-item__stock,
  body .cart-list .cart-item__stock {
    width: auto !important;
    max-width: 100% !important;
    justify-self: start !important;
  }
}


/* VOEVODA — compact payment-security logos in cart */
.cart-payment-security {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(207, 174, 99, .12);
  opacity: .78;
}

.cart-payment-security__label {
  flex: 0 0 auto;
  color: var(--muted, #9d9487);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cart-payment-security img {
  display: block;
  width: min(310px, 58vw);
  height: auto;
  max-height: 30px;
  object-fit: contain;
  object-position: right center;
}

html[data-theme="light"] .cart-payment-security,
body.theme-day .cart-payment-security,
[data-theme="day"] .cart-payment-security {
  border-top-color: rgba(67, 50, 32, .12);
  opacity: .82;
}

@media (max-width: 640px) {
  .cart-payment-security {
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    text-align: center;
  }

  .cart-payment-security img {
    width: min(100%, 340px);
    max-height: 28px;
    object-position: center;
  }
}

/* VOEVODA 1.0.18 — staged checkout */
.cart-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-bottom:24px;border:1px solid rgba(181,137,54,.24);background:rgba(255,255,255,.025)}
.cart-step{appearance:none;border:0;border-right:1px solid rgba(181,137,54,.18);background:transparent;color:inherit;padding:14px 12px;display:flex;align-items:center;justify-content:center;gap:9px;cursor:pointer;opacity:.52}
.cart-step:last-child{border-right:0}.cart-step span{width:26px;height:26px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;font-size:12px}.cart-step strong{font-size:12px;text-transform:uppercase;letter-spacing:.06em}.cart-step.is-active{opacity:1;background:rgba(181,137,54,.10)}.cart-step.is-done{opacity:.82}.cart-step.is-done span{background:#b58a36;color:#111;border-color:#b58a36}
[data-cart-page][data-checkout-step="1"] .cart-checkout{display:none!important}
[data-cart-page]:not([data-checkout-step="1"]) .cart-main{display:none!important}
[data-checkout-panel]{display:none!important}
[data-cart-page][data-checkout-step="2"] [data-checkout-panel="2"],
[data-cart-page][data-checkout-step="3"] [data-checkout-panel="3"]{display:block!important}
[data-cart-page][data-checkout-step="2"] .cart-order-form__columns{display:block!important}
.cart-step-actions{display:flex!important;justify-content:space-between;gap:12px;margin-top:18px}.cart-start-checkout{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.cart-start-checkout .button--gold{min-width:260px}
.cart-confirmation{padding:22px;border:1px solid rgba(181,137,54,.22)}.cart-confirmation__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.cart-confirmation__card{padding:16px;border:1px solid rgba(181,137,54,.16);background:rgba(255,255,255,.025)}.cart-confirmation__card h4{margin:0 0 10px;font-size:13px;text-transform:uppercase;letter-spacing:.06em}.cart-confirmation__card p{margin:4px 0;font-size:13px;line-height:1.55}.cart-confirmation__card--wide{grid-column:1/-1}
[data-cart-page]:not([data-checkout-step="1"]) .cart-checkout__header{margin-bottom:18px}
@media(max-width:700px){.cart-steps{grid-template-columns:repeat(3,1fr)}.cart-step{padding:10px 4px;gap:4px;flex-direction:column}.cart-step strong{font-size:9px}.cart-confirmation__grid{grid-template-columns:1fr}.cart-confirmation__card--wide{grid-column:auto}.cart-step-actions,.cart-start-checkout{flex-direction:column}.cart-step-actions .button,.cart-start-checkout .button{width:100%;min-width:0}}

/* =========================================================
   VOEVODA 1.0.19 — checkout visual polish
   Pure presentation layer over staged checkout logic.
   ========================================================= */

.cart-page-section {
  padding-top: 22px !important;
}

.cart-steps {
  position: relative;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 0 !important;
  margin: 0 auto 28px !important;
  padding: 0 18px !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}
.cart-steps::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 16.666%;
  right: 16.666%;
  height: 1px;
  background: rgba(181,137,54,.28);
  z-index: 0;
}
.cart-step {
  position: relative;
  z-index: 1;
  min-height: 58px;
  padding: 0 8px !important;
  border: 0 !important;
  background: transparent !important;
  opacity: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}
.cart-step span {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(181,137,54,.34) !important;
  background: var(--panel, #17130f) !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  box-shadow: 0 0 0 5px var(--background, #0d0b08);
}
.cart-step strong {
  font-size: 10px !important;
  line-height: 1.15;
  letter-spacing: .09em !important;
  color: var(--muted);
}
.cart-step.is-active span {
  background: linear-gradient(135deg,#d3a34e,#b6812e) !important;
  border-color: #d7ad63 !important;
  color: #15110c !important;
  box-shadow: 0 0 0 5px var(--background, #0d0b08), 0 8px 22px rgba(181,137,54,.18);
}
.cart-step.is-active strong { color: var(--text, #f3ecdf); }
.cart-step.is-done span {
  background: #6e5a32 !important;
  border-color: #9c7a3d !important;
  color: #fff !important;
}
.cart-step.is-done span::before { content: "✓"; font-size: 14px; }
.cart-step.is-done span { font-size: 0 !important; }

/* Step 1 — clean basket + sticky total */
.cart-basket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
.cart-basket-content {
  min-width: 0;
}
.cart-head {
  margin-bottom: 14px !important;
  padding: 0 2px 12px !important;
  border-bottom: 1px solid rgba(181,137,54,.18);
}
.cart-head h2 {
  margin: 5px 0 0 !important;
  font-size: clamp(26px,2.6vw,36px) !important;
  line-height: 1 !important;
  text-transform: none !important;
}
.cart-basket-summary {
  position: sticky;
  top: 94px;
  padding: 22px;
  border: 1px solid rgba(181,137,54,.25);
  border-radius: 16px;
  background: linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015));
  box-shadow: 0 18px 42px rgba(0,0,0,.10);
}
.cart-basket-summary > .kicker {
  display: block;
  margin-bottom: 16px;
}
.cart-basket-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(181,137,54,.13);
}
.cart-basket-summary__row span { color: var(--muted); font-size: 12px; }
.cart-basket-summary__row strong { font-size: 15px; }
.cart-basket-summary__row--total {
  margin-top: 4px;
  padding-top: 16px;
}
.cart-basket-summary__row--total strong {
  font-size: 24px;
  line-height: 1;
  color: var(--gold-light, #d5b36a);
}
.cart-basket-summary p {
  margin: 2px 0 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.cart-basket-summary .button {
  margin-top: 10px;
  min-height: 48px;
}
.cart-basket-summary__clear {
  display: block;
  width: 100%;
  margin-top: 13px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.cart-basket-summary__clear:hover { color: #b56b5e; }

.cart-list {
  display: grid;
  gap: 12px !important;
}
.cart-item,
body.page-cart .cart-item,
body .cart-layout--checkout-top .cart-item {
  display: grid !important;
  grid-template-columns: 132px minmax(0,1fr) 132px 122px 30px !important;
  gap: 18px !important;
  align-items: center !important;
  min-height: 150px !important;
  padding: 14px 14px 14px 12px !important;
  border: 1px solid rgba(181,137,54,.18) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.018) !important;
  box-shadow: none !important;
}
.cart-item:hover { border-color: rgba(181,137,54,.34) !important; }
.cart-item__image,
body.page-cart .cart-item__image,
body .cart-list .cart-item__image {
  width: 132px !important;
  height: 120px !important;
  min-width: 132px !important;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.035);
}
.cart-item__image img { width:100%; height:100%; object-fit:contain; }
.cart-item__info { min-width: 0; }
.cart-item__type {
  margin-bottom: 6px;
  font-size: 9px !important;
  letter-spacing: .10em;
  color: var(--gold, #b58a36);
}
.cart-item__info h3 {
  margin: 0 0 7px !important;
  font-size: 17px !important;
  line-height: 1.24 !important;
  text-transform: none !important;
}
.cart-item__info p,
.cart-item__info small {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 10px !important;
  line-height: 1.45;
}
.cart-item__controls {
  justify-self: center;
  align-items: center !important;
  text-align: center;
}
.cart-item__quantity-label { font-size: 9px !important; }
.cart-item__quantity {
  margin: 6px auto 4px !important;
  border-radius: 9px;
  overflow: hidden;
}
.cart-item__stock { font-size: 9px !important; white-space: nowrap; }
.cart-item__price {
  justify-self: end;
  text-align: right;
}
.cart-item__price strong { font-size: 17px !important; white-space: nowrap; }
.cart-item__remove {
  align-self: start;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  font-size: 18px !important;
  opacity: .62;
}
.cart-item__remove:hover { opacity: 1; background: rgba(156,74,60,.12) !important; }

/* Steps 2-3 — content left, sticky summary right */
@media (min-width: 1001px) {
  .cart-checkout {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 320px !important;
    column-gap: 24px !important;
    align-items: start !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  .cart-checkout__header { display: contents !important; }
  .cart-checkout__intro {
    grid-column: 1;
    padding: 4px 2px 16px;
    border-bottom: 1px solid rgba(181,137,54,.18);
  }
  .cart-checkout__intro h2 {
    margin: 5px 0 7px !important;
    font-size: clamp(28px,2.8vw,38px) !important;
    line-height: 1 !important;
    text-transform: none !important;
  }
  .cart-checkout__intro p { max-width: 690px; margin: 0 !important; font-size: 12px !important; line-height:1.55; }
  .cart-summary {
    grid-column: 2;
    grid-row: 1 / span 4;
    position: sticky !important;
    top: 94px;
    align-self: start;
    padding: 22px !important;
    border: 1px solid rgba(181,137,54,.25) !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015)) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.10) !important;
  }
  .cart-summary > .kicker { padding: 0 0 12px !important; }
  .cart-summary__row {
    min-height: 0 !important;
    padding: 12px 0 !important;
    border-top: 1px solid rgba(181,137,54,.13) !important;
  }
  .cart-summary__row--total strong { font-size: 24px !important; color: var(--gold-light,#d5b36a); }
  .cart-summary p { padding: 4px 0 0 !important; font-size: 10px !important; line-height:1.55 !important; }
  .cart-ammo-alert,
  .cart-order-form {
    grid-column: 1;
  }
}

.cart-order-form {
  margin-top: 16px !important;
  padding: 0 !important;
  background: transparent !important;
}
.cart-order-form__columns {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}
.cart-form-section {
  padding: 22px !important;
  border: 1px solid rgba(181,137,54,.18) !important;
  border-radius: 15px !important;
  background: rgba(255,255,255,.018) !important;
  box-shadow: none !important;
}
.cart-form-section__head {
  margin: 0 0 18px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid rgba(181,137,54,.14) !important;
  gap: 12px !important;
}
.cart-form-section__head > span {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  display: grid !important;
  place-items: center;
  border: 1px solid rgba(181,137,54,.34) !important;
  border-radius: 8px !important;
  color: var(--gold-light,#d5b36a) !important;
  font-size: 10px !important;
}
.cart-form-section__head h3 {
  margin: 0 0 3px !important;
  font-size: 20px !important;
  text-transform: none !important;
}
.cart-form-section__head p {
  margin: 0 !important;
  font-size: 10px !important;
  color: var(--muted) !important;
}
.cart-form-grid,
.cart-delivery-grid { gap: 13px !important; }
.cart-form-grid label > span,
.cart-delivery-grid label > span,
.cart-cdek-options legend {
  display:block;
  margin-bottom: 6px !important;
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--muted);
}
.cart-form-grid input,
.cart-form-grid select,
.cart-form-grid textarea,
.cart-delivery-grid input,
.cart-delivery-grid select,
.cart-delivery-grid textarea,
.cart-company-card input {
  min-height: 46px !important;
  border-radius: 9px !important;
  border-color: rgba(181,137,54,.22) !important;
  padding: 11px 13px !important;
}

/* Delivery/payment as selectable cards */
.cart-cdek-options__grid,
.cart-payment-options {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 12px !important;
}
.cart-payment-options { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
.cart-cdek-option,
.cart-payment-option {
  position: relative;
  display: block !important;
  min-height: 104px;
  padding: 16px !important;
  border: 1px solid rgba(181,137,54,.20) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.018) !important;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.cart-cdek-option:hover,
.cart-payment-option:hover {
  border-color: rgba(181,137,54,.48) !important;
  transform: translateY(-1px);
}
.cart-cdek-option:has(input:checked),
.cart-payment-option:has(input:checked) {
  border-color: #b98a3e !important;
  background: rgba(185,138,62,.10) !important;
  box-shadow: inset 0 0 0 1px rgba(185,138,62,.12);
}
.cart-cdek-option input,
.cart-payment-option input {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 16px;
  height: 16px;
  accent-color: #b98a3e;
}
.cart-cdek-option > span,
.cart-payment-option > span {
  display:block;
  padding-right: 24px;
}
.cart-cdek-option strong,
.cart-payment-option strong {
  display:block;
  margin-bottom: 6px;
  font-size: 14px;
}
.cart-cdek-option small,
.cart-payment-option small {
  display:block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.cart-step-actions {
  margin-top: 14px !important;
  padding: 16px 0 0 !important;
  border-top: 1px solid rgba(181,137,54,.14);
}
.cart-step-actions .button { min-height: 46px; }

.cart-confirmation__grid {
  gap: 12px !important;
}
.cart-confirmation__card {
  padding: 18px !important;
  border-radius: 12px !important;
  border-color: rgba(181,137,54,.18) !important;
  background: rgba(255,255,255,.018) !important;
}
.cart-confirmation__card h4 {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  color: var(--gold-light,#d5b36a);
}
.cart-confirmation__card p { margin: 4px 0 !important; font-size: 11px !important; line-height:1.5; }
.cart-order-form__footer {
  margin-top: 14px !important;
  padding: 20px !important;
  border: 1px solid rgba(181,137,54,.18) !important;
  border-radius: 15px !important;
  background: rgba(255,255,255,.018) !important;
}
.cart-order-actions .button--gold { min-height: 52px !important; font-size: 12px !important; }

/* Light theme polish */
html[data-theme="light"] [data-cart-page] .cart-step span {
  background: #fffdf9 !important;
  box-shadow: 0 0 0 5px #f4efe7;
}
html[data-theme="light"] [data-cart-page] .cart-step.is-active span {
  box-shadow: 0 0 0 5px #f4efe7, 0 8px 22px rgba(181,137,54,.16);
}
html[data-theme="light"] [data-cart-page] .cart-basket-summary,
html[data-theme="light"] [data-cart-page] .cart-summary,
html[data-theme="light"] [data-cart-page] .cart-form-section,
html[data-theme="light"] [data-cart-page] .cart-order-form__footer,
html[data-theme="light"] [data-cart-page] .cart-confirmation__card,
html[data-theme="light"] [data-cart-page] .cart-item,
html[data-theme="light"] [data-cart-page] .cart-cdek-option,
html[data-theme="light"] [data-cart-page] .cart-payment-option {
  background: #fffdf9 !important;
  border-color: #ded2bf !important;
  box-shadow: 0 10px 28px rgba(68,53,33,.045) !important;
}
html[data-theme="light"] [data-cart-page] .cart-cdek-option:has(input:checked),
html[data-theme="light"] [data-cart-page] .cart-payment-option:has(input:checked) {
  background: #fbf3e5 !important;
  border-color: #bd914c !important;
}
html[data-theme="light"] [data-cart-page] .cart-item__image {
  background: #faf7f1 !important;
}

@media (max-width: 1180px) {
  .cart-basket-layout { grid-template-columns: minmax(0,1fr) 280px; }
  .cart-item,
  body.page-cart .cart-item,
  body .cart-layout--checkout-top .cart-item {
    grid-template-columns: 110px minmax(0,1fr) 122px 104px 28px !important;
    gap: 12px !important;
  }
  .cart-item__image,
  body.page-cart .cart-item__image,
  body .cart-list .cart-item__image {
    width: 110px !important;
    min-width: 110px !important;
    height: 104px !important;
  }
}

@media (max-width: 1000px) {
  .cart-basket-layout { grid-template-columns: 1fr; }
  .cart-basket-summary { position: static; }
  .cart-checkout { display:block !important; }
  .cart-summary { position:static !important; margin-top:12px; }
  .cart-checkout__header { display:grid !important; grid-template-columns:1fr !important; }
}

@media (max-width: 760px) {
  .cart-page-section { padding-top: 12px !important; }
  .cart-steps { padding:0 !important; margin-bottom:18px !important; }
  .cart-steps::before { top:14px; left:12%; right:12%; }
  .cart-step { min-height: 48px; gap:5px !important; }
  .cart-step span { width:28px !important; height:28px !important; box-shadow:0 0 0 3px var(--background,#0d0b08); }
  .cart-step.is-active span { box-shadow:0 0 0 3px var(--background,#0d0b08),0 6px 16px rgba(181,137,54,.18); }
  .cart-step strong { font-size:8px !important; letter-spacing:.03em !important; }
  html[data-theme="light"] [data-cart-page] .cart-step span { box-shadow:0 0 0 3px #f4efe7; }
  html[data-theme="light"] [data-cart-page] .cart-step.is-active span { box-shadow:0 0 0 3px #f4efe7,0 6px 16px rgba(181,137,54,.16); }

  .cart-head h2 { font-size:28px !important; }
  .cart-item,
  body.page-cart .cart-item,
  body .cart-layout--checkout-top .cart-item {
    grid-template-columns: 86px minmax(0,1fr) 28px !important;
    grid-template-areas:
      "image info remove"
      "image controls controls"
      "price price price" !important;
    gap: 10px 12px !important;
    padding: 12px !important;
    min-height:0 !important;
  }
  .cart-item__image,
  body.page-cart .cart-item__image,
  body .cart-list .cart-item__image { grid-area:image; width:86px !important; min-width:86px !important; height:86px !important; }
  .cart-item__info { grid-area:info; }
  .cart-item__info h3 { font-size:14px !important; }
  .cart-item__controls { grid-area:controls; justify-self:start !important; display:flex !important; flex-direction:row !important; flex-wrap:wrap; gap:8px !important; text-align:left; }
  .cart-item__quantity-label { width:100%; }
  .cart-item__stock { align-self:center; }
  .cart-item__price { grid-area:price; justify-self:end; padding-top:8px; border-top:1px solid rgba(181,137,54,.12); width:100%; }
  .cart-item__remove { grid-area:remove; }

  .cart-basket-summary { padding:18px; }
  .cart-cdek-options__grid,
  .cart-payment-options { grid-template-columns:1fr !important; }
  .cart-cdek-option,
  .cart-payment-option { min-height:0; }
  .cart-form-section { padding:16px !important; }
  .cart-order-form__footer { padding:16px !important; }
  .cart-step-actions { flex-direction:column-reverse !important; }
  .cart-step-actions .button { width:100%; }
}

/* =========================================================
   VOEVODA 1.0.22 — checkout summary containment fix
   Keep the right summary fully inside the checkout container.
   ========================================================= */
@media (min-width: 1001px) {
  [data-cart-page] .cart-layout--checkout-top {
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    min-width: 0 !important;
  }

  [data-cart-page] .cart-checkout {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 286px) !important;
    gap: 22px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  [data-cart-page] .cart-checkout__intro,
  [data-cart-page] .cart-order-form,
  [data-cart-page] .cart-ammo-alert,
  [data-cart-page] .cart-summary {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  [data-cart-page] .cart-summary {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 286px !important;
    overflow: hidden !important;
    padding: 18px !important;
  }

  [data-cart-page] .cart-summary__row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 11px 0 !important;
  }

  [data-cart-page] .cart-summary__row span {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    line-height: 1.25 !important;
  }

  [data-cart-page] .cart-summary__row strong {
    min-width: 0 !important;
    max-width: 150px !important;
    text-align: right !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.15 !important;
  }

  [data-cart-page] .cart-summary__row--total strong {
    font-size: 22px !important;
  }

  [data-cart-page] .cart-summary p {
    padding: 4px 0 0 !important;
    overflow-wrap: anywhere !important;
  }
}

/* At narrower desktop widths the summary moves below the form rather than clipping. */
@media (min-width: 1001px) and (max-width: 1240px) {
  [data-cart-page] .cart-checkout {
    grid-template-columns: minmax(0, 1fr) 250px !important;
    gap: 16px !important;
  }
  [data-cart-page] .cart-summary {
    max-width: 250px !important;
    padding: 15px !important;
  }
  [data-cart-page] .cart-summary__row strong {
    max-width: 125px !important;
  }
}

@media (max-width: 1000px) {
  [data-cart-page] .cart-summary {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  [data-cart-page] .cart-summary__row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-width: 0 !important;
  }
  [data-cart-page] .cart-summary__row strong {
    min-width: 0 !important;
    text-align: right !important;
    white-space: normal !important;
  }
}

/* =========================================================
   VOEVODA 1.0.24 — final checkout summary layout correction
   Old premium CSS made .cart-summary a 3-column grid. That
   internal grid forced the card wider than its right column.
   Use a simple vertical summary card on steps 2-4.
   ========================================================= */
[data-cart-page] .cart-summary {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 286px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

[data-cart-page] .cart-summary > .kicker {
  display: block !important;
  width: 100% !important;
  padding: 0 0 10px !important;
  margin: 0 !important;
  border: 0 !important;
  white-space: normal !important;
}

[data-cart-page] .cart-summary__row,
[data-cart-page] .cart-layout--checkout-top .cart-summary__row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 12px 0 !important;
  border-left: 0 !important;
  border-top: 1px solid rgba(181,137,54,.14) !important;
  box-sizing: border-box !important;
}

[data-cart-page] .cart-summary__row span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}

[data-cart-page] .cart-summary__row strong {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 150px !important;
  margin: 0 !important;
  text-align: right !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

[data-cart-page] .cart-summary__row--total strong {
  font-size: 22px !important;
}

[data-cart-page] .cart-summary p,
[data-cart-page] .cart-layout--checkout-top .cart-summary p {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 0 0 !important;
  border: 0 !important;
  font-size: 9px !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere !important;
  box-sizing: border-box !important;
}

@media (min-width: 1001px) {
  [data-cart-page] .cart-checkout {
    grid-template-columns: minmax(0, 1fr) 286px !important;
    column-gap: 22px !important;
  }
  [data-cart-page] .cart-summary {
    grid-column: 2 !important;
    grid-row: 1 / span 10 !important;
    justify-self: stretch !important;
    align-self: start !important;
  }
  [data-cart-page] .cart-order-form,
  [data-cart-page] .cart-checkout__intro,
  [data-cart-page] .cart-ammo-alert {
    grid-column: 1 !important;
    min-width: 0 !important;
  }
}

@media (min-width: 1001px) and (max-width: 1180px) {
  [data-cart-page] .cart-checkout {
    grid-template-columns: minmax(0, 1fr) 240px !important;
    column-gap: 16px !important;
  }
  [data-cart-page] .cart-summary {
    max-width: 240px !important;
  }
  [data-cart-page] .cart-summary__row strong {
    max-width: 116px !important;
  }
}

@media (max-width: 1000px) {
  [data-cart-page] .cart-checkout {
    display: block !important;
  }
  [data-cart-page] .cart-summary {
    position: static !important;
    max-width: none !important;
    margin: 14px 0 0 !important;
  }
}

/* =========================================================
   VOEVODA 1.0.26 — checkout summary breathing room
   Keep the summary visually detached from the right wall.
   ========================================================= */
@media (min-width: 1181px) {
  [data-cart-page] .cart-checkout {
    padding-right: 28px !important;
    column-gap: 30px !important;
  }

  [data-cart-page] .cart-summary {
    justify-self: stretch !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 1001px) and (max-width: 1180px) {
  [data-cart-page] .cart-checkout {
    padding-right: 18px !important;
    column-gap: 22px !important;
  }
}


/* VOEVODA 1.0.28 — checkout step headings spacing */
@media (min-width: 901px) {
  .checkout-step-panel[data-checkout-step="2"] > .checkout-step-panel__header,
  .checkout-step-panel[data-checkout-step="3"] > .checkout-step-panel__header {
    padding-left: 28px !important;
    padding-right: 28px !important;
    padding-top: 22px !important;
    padding-bottom: 18px !important;
  }

  .checkout-step-panel[data-checkout-step="2"] > .checkout-step-panel__header h2,
  .checkout-step-panel[data-checkout-step="3"] > .checkout-step-panel__header h2,
  .checkout-step-panel[data-checkout-step="2"] > .checkout-step-panel__header p,
  .checkout-step-panel[data-checkout-step="3"] > .checkout-step-panel__header p {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .checkout-step-panel[data-checkout-step="2"] > .checkout-step-panel__body,
  .checkout-step-panel[data-checkout-step="3"] > .checkout-step-panel__body {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
}

@media (max-width: 900px) {
  .checkout-step-panel[data-checkout-step="2"] > .checkout-step-panel__header,
  .checkout-step-panel[data-checkout-step="3"] > .checkout-step-panel__header {
    padding-left: 18px !important;
    padding-right: 18px !important;
    padding-top: 18px !important;
    padding-bottom: 14px !important;
  }
}


/* =========================================================
   VOEVODA 1.0.29 — three-step checkout and real step headings
   ========================================================= */
[data-cart-page] .cart-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

[data-cart-page] .cart-steps::before {
  left: 16.666% !important;
  right: 16.666% !important;
}

/* Current markup uses .cart-checkout__intro, not .checkout-step-panel. */
@media (min-width: 1001px) {
  [data-cart-page][data-checkout-step="2"] .cart-checkout__intro,
  [data-cart-page][data-checkout-step="3"] .cart-checkout__intro {
    padding: 20px 28px !important;
    margin: 0 0 6px 0 !important;
    border: 1px solid rgba(181,137,54,.14) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.018) !important;
    box-sizing: border-box !important;
  }

  html[data-theme="light"] [data-cart-page][data-checkout-step="2"] .cart-checkout__intro,
  html[data-theme="light"] [data-cart-page][data-checkout-step="3"] .cart-checkout__intro {
    background: rgba(255,255,255,.50) !important;
    border-color: rgba(112,77,36,.14) !important;
  }
}

@media (max-width: 1000px) {
  [data-cart-page][data-checkout-step="2"] .cart-checkout__intro,
  [data-cart-page][data-checkout-step="3"] .cart-checkout__intro {
    padding: 18px 20px !important;
    margin: 0 0 14px 0 !important;
    border: 1px solid rgba(181,137,54,.14) !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }
}

[data-cart-page][data-checkout-step="3"] .cart-order-form__footer {
  margin-top: 18px !important;
}

[data-cart-page][data-checkout-step="3"] .cart-step-actions--payment {
  margin-bottom: 0 !important;
}


/* VOEVODA 1.0.68 — PayKeeper checkout result link */
[data-cart-payment-link][hidden]{display:none!important}
[data-cart-empty] [data-cart-payment-link]:not([hidden]){display:inline-flex!important;margin:14px auto 10px}

/* VOEVODA 1.0.73 — checkout step action visibility fix.
   Generic .cart-step-actions uses !important elsewhere, so explicitly keep
   step actions hidden unless their own checkout step is active. */
[data-cart-page] .cart-step-actions[data-checkout-panel] {
  display: none !important;
}
[data-cart-page][data-checkout-step="2"] .cart-step-actions[data-checkout-panel="2"],
[data-cart-page][data-checkout-step="3"] .cart-step-actions[data-checkout-panel="3"] {
  display: flex !important;
}


/* VOEVODA 2.3.3 — loyalty eligibility in checkout */
.cart-loyalty-box{margin:14px 0 0;padding:15px 16px;border:1px solid rgba(201,166,103,.34);background:rgba(201,166,103,.055);border-radius:12px}
.cart-loyalty-box__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.cart-loyalty-box__head>div{display:grid;gap:3px}.cart-loyalty-box__head strong{font-size:14px}.cart-loyalty-box__head a{font-size:11px;color:var(--gold-light);text-decoration:none}.cart-loyalty-box__head a:hover{text-decoration:underline}
.cart-loyalty-box__input{display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:12px}.cart-loyalty-box__input>span{font-size:12px;color:var(--muted)}.cart-loyalty-box__input input{width:100%;min-height:42px;padding:8px 11px;border:1px solid var(--line-soft);background:rgba(0,0,0,.18);color:var(--text);border-radius:8px}
.cart-loyalty-box__meta{display:flex;justify-content:space-between;gap:14px;margin-top:10px;color:var(--muted);font-size:10px;line-height:1.45}.cart-loyalty-box__meta span{white-space:nowrap}.cart-loyalty-box__meta strong{color:var(--gold-light)}
.cart-loyalty-box__rule{margin:9px 0 0;padding-top:9px;border-top:1px solid var(--line-soft);font-size:10px;line-height:1.5;color:var(--muted)}
.cart-loyalty-login{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0 0;padding:12px 14px;border:1px solid var(--line-soft);border-radius:10px;background:rgba(255,255,255,.018);font-size:11px}.cart-loyalty-login strong{color:var(--gold-light)}.cart-loyalty-login span{color:var(--muted)}.cart-loyalty-login a{color:var(--gold-light)}
html[data-theme="light"] .cart-loyalty-box{background:rgba(174,122,48,.06);border-color:rgba(139,96,44,.25)}html[data-theme="light"] .cart-loyalty-box__input input{background:#fff}
@media(max-width:620px){.cart-loyalty-box{padding:13px}.cart-loyalty-box__head{gap:10px}.cart-loyalty-box__input{grid-template-columns:1fr}.cart-loyalty-box__meta{display:grid;gap:5px}.cart-loyalty-box__meta span{white-space:normal}}
