/* ==========================================================================
   Cart + checkout (WooCommerce blocks): distraction-free, premium, sticky actions
   ========================================================================== */
body.sb-checkout-mode { background: var(--sb-mist); }
.sb-chead { background: var(--sb-white); border-bottom: 1px solid var(--sb-line); }
.sb-chead .sb-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.sb-chead__secure { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border-radius: var(--sb-r-pill); background: #E8F4EC; color: #145C34; font-size: var(--sb-t-13); font-weight: 650; white-space: nowrap; }
.sb-chead__secure svg { flex: none; width: 15px; height: 15px; color: var(--sb-ok); }
.sb-chead__help { display: inline-flex; align-items: center; gap: 8px; font-size: var(--sb-t-14); color: var(--sb-slate); text-decoration: none; }
.sb-chead__help svg { flex: none; width: 18px; height: 18px; color: var(--sb-ink); }
.sb-chead__help b { color: var(--sb-ink); font-weight: 600; white-space: nowrap; }
.sb-chead__help:hover b { text-decoration: underline; }
@media (max-width: 760px) {
  .sb-chead .sb-container { gap: 10px; height: 64px; }
  .sb-chead .sb-logo { font-size: 1.15rem; gap: 8px; margin-right: auto; }
  .sb-chead__helptxt { display: none; }
  .sb-chead__help { justify-content: center; width: 40px; height: 40px; border: 1px solid var(--sb-line); border-radius: 50%; }
}
@media (max-width: 340px) { .sb-chead__secure span { display: none; } .sb-chead__secure { padding: 0 9px; } }

.sb-woo { padding-top: clamp(24px, 3vw, 40px); }
.sb-woo h1.sb-woo__title { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: 18px; }

/* progress steps (a real sequence) */
.sb-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 28px; padding: 0; counter-reset: kwstep; }
.sb-steps li { counter-increment: kwstep; flex: 1; display: grid; gap: 8px; font-size: var(--sb-t-13); color: var(--sb-slate); }
.sb-steps li::before { content: ""; height: 4px; border-radius: 2px; background: var(--sb-line); }
.sb-steps li.is-done::before { background: var(--sb-graphite); }
.sb-steps li.is-current::before { background: var(--sb-volt); }
.sb-steps li.is-current { color: var(--sb-ink); font-weight: 600; }
.sb-steps a { color: inherit; text-decoration: none; }
.sb-steps a:hover { text-decoration: underline; }

/* layout */
.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart { margin: 0; }
.wc-block-components-sidebar-layout { gap: 28px; flex-wrap: nowrap; }
.wc-block-components-sidebar-layout .wc-block-components-main { padding-right: 0 !important; }
@media (min-width: 900px) {
  .wc-block-checkout__sidebar, .wc-block-cart__sidebar { position: sticky !important; top: 24px; align-self: flex-start; }
}

/* step cards */
.wc-block-checkout__form .wc-block-components-checkout-step,
.wc-block-checkout__form > .wp-block-woocommerce-checkout-express-payment-block,
.wc-block-cart-items, .wc-block-cart .wc-block-components-main > table {
  background: var(--sb-white); border: 1px solid var(--sb-line); border-radius: 22px; padding: 24px 24px 20px !important; margin: 0 0 14px !important;
}
.wc-block-components-checkout-step__container { padding-left: 0 !important; }
.wc-block-components-checkout-step::after { display: none !important; }
.wc-block-components-checkout-step__heading { margin: 0 0 16px !important; align-items: center; }
.wc-block-components-checkout-step__title { font-size: var(--sb-t-21) !important; font-weight: 650 !important; letter-spacing: -0.02em; display: flex !important; align-items: center; gap: 12px; }
.wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__title::before {
  position: static !important; flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sb-graphite); color: var(--sb-volt); font-size: var(--sb-t-14); font-weight: 650; margin: 0 !important; transform: none !important;
}
.wc-block-components-checkout-step__description { color: var(--sb-slate) !important; font-size: var(--sb-t-14) !important; }

/* fields */
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-textarea {
  border-radius: 14px !important; border: 1px solid var(--sb-line) !important; background: var(--sb-white) !important; min-height: 56px; font-size: var(--sb-t-16) !important;
}
.wc-block-components-text-input input:focus, .wc-blocks-components-select .wc-blocks-components-select__select:focus {
  border-color: var(--sb-ink) !important; box-shadow: 0 0 0 4px rgba(14,16,19,.07) !important; outline: none !important;
}
.wc-block-components-text-input label, .wc-blocks-components-select__label { color: var(--sb-slate) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { border-radius: 6px; border-color: #B9BEC6; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--sb-graphite); border-color: var(--sb-graphite); }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--sb-volt) !important; }

/* shipping + payment options as cards */
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option {
  border: 1.5px solid var(--sb-line) !important; border-radius: 16px !important; margin: 0 0 8px !important; box-shadow: none !important; background: var(--sb-white);
}
.wc-block-components-radio-control__option-checked, .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted {
  border-color: var(--sb-ink) !important; box-shadow: none !important;
}
.wc-block-components-radio-control__input:checked { border-color: var(--sb-graphite) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--sb-graphite) !important; }
.wc-block-components-radio-control__label, .wc-block-components-radio-control__secondary-label { font-weight: 600; }

/* order summary */
.wc-block-checkout__sidebar, .wc-block-cart__sidebar { background: var(--sb-white); border: 1px solid var(--sb-line); border-radius: 24px; padding: 24px !important; }
.wc-block-components-order-summary-item__image { width: 64px !important; }
.wc-block-components-order-summary-item__image img { width: 64px !important; height: 64px; object-fit: contain; background: var(--sb-mist); border-radius: 12px; padding: 4px; mix-blend-mode: normal; }
.wc-block-components-order-summary-item__quantity { background: var(--sb-graphite) !important; color: var(--sb-white) !important; border: 0 !important; box-shadow: none !important; }
.wc-block-components-order-summary-item__description .wc-block-components-product-name { font-weight: 560; font-size: var(--sb-t-14); line-height: 1.35; }
.wc-block-components-totals-item { font-size: var(--sb-t-14); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-size: var(--sb-t-18) !important; font-weight: 650 !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: var(--sb-t-24) !important; font-weight: 680 !important; letter-spacing: -0.02em; }
.wc-block-components-totals-discount .wc-block-components-totals-item__value, .wc-block-components-product-metadata .wc-block-components-sale-badge { color: var(--sb-ok); }
.wc-block-components-product-price__regular { color: var(--sb-slate); }
.wc-block-components-sale-badge { background: var(--sb-volt) !important; color: var(--sb-graphite) !important; border: 0 !important; border-radius: 6px !important; font-weight: 650; }

/* primary actions */
.wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button {
  min-height: 58px !important; border-radius: var(--sb-r-pill) !important; background: var(--sb-volt) !important; color: var(--sb-graphite) !important;
  font-size: var(--sb-t-18) !important; font-weight: 680 !important; border: 0 !important; box-shadow: none !important; width: 100%;
}
.wc-block-components-checkout-place-order-button:hover, .wc-block-cart__submit-button:hover { background: var(--sb-volt-deep) !important; }
.wc-block-components-checkout-place-order-button .wc-block-components-button__text::before {
  content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -2px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1013' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}
.wc-block-components-checkout-return-to-cart-button { color: var(--sb-slate) !important; font-weight: 560; }
.wc-block-checkout__terms { font-size: var(--sb-t-13); color: var(--sb-slate); }

/* sticky Place order on phones */
@media (max-width: 899px) {
  .wc-block-checkout__actions_row { flex-direction: column-reverse; gap: 8px; }
  body.sb-checkout-mode { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .wc-block-checkout__actions .wc-block-components-checkout-return-to-cart-button { font-size: var(--sb-t-13); }
  .wc-block-cart__submit-container--sticky {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important; background: rgba(255,255,255,.97) !important;
    backdrop-filter: blur(12px); border-top: 1px solid var(--sb-line); box-shadow: 0 -12px 24px -20px rgba(14,16,19,.35) !important;
  }
  .wc-block-components-sidebar-layout { flex-wrap: wrap; }
  .wc-block-checkout__form .wc-block-components-checkout-step { padding: 20px 18px 16px !important; }
}

/* fixed Place order bar (phones): lives outside the React checkout, proxies the real button */
.sb-cobar { display: none; }
@media (max-width: 899px) {
  .sb-cobar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--sb-line); box-shadow: 0 -16px 32px -24px rgba(14,16,19,.45); transform: translateY(110%); transition: transform .25s var(--sb-ease); }
  .sb-cobar.is-shown { transform: none; }
  .sb-cobar__total span { display: block; font-size: var(--sb-t-12); color: var(--sb-slate); }
  .sb-cobar__total b { display: block; font-size: var(--sb-t-21); font-weight: 680; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .sb-cobar .sb-btn { flex: 1; min-height: 52px; margin-left: auto; gap: 8px; }
  .sb-cobar .sb-btn svg { width: 16px; height: 16px; }
}
.sb-ctrust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.sb-ctrust div { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--sb-white); border: 1px solid var(--sb-line); font-size: var(--sb-t-13); color: var(--sb-slate); }
.sb-ctrust svg { flex: none; width: 20px; height: 20px; color: var(--sb-ink); }
.sb-ctrust b { display: block; color: var(--sb-ink); font-size: var(--sb-t-14); font-weight: 600; }
@media (max-width: 700px) { .sb-ctrust { grid-template-columns: 1fr; } }
.sb-cfoot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: var(--sb-t-13); color: var(--sb-slate); }
.sb-cfoot .sb-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.sb-cfoot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sb-cfoot a { color: inherit; }

/* product page: sticky bar with both actions, mobile polish */
.sb-mbar__btns { display: flex; gap: 8px; margin-left: auto; }
.sb-mbar .sb-btn { min-height: 48px; padding: 0 18px; font-size: 0.9375rem; }
.sb-mbar .sb-price { flex-direction: column; align-items: flex-start; gap: 0; }
.sb-mbar .sb-price ins { font-size: var(--sb-t-18); }
.sb-mbar .sb-price del { font-size: var(--sb-t-12); }
@media (max-width: 380px) { .sb-mbar .sb-btn { padding: 0 13px; font-size: var(--sb-t-14); } }
.sb-secnav__buy .sb-btn--buy2 { --bg: var(--sb-graphite); --fg: var(--sb-white); --bd: var(--sb-graphite); }
@media (max-width: 760px) {
  .sb-tiles { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  .sb-tile { padding: 12px; }
  .sb-tile dd { font-size: var(--sb-t-16); }
  .sb-compare table { min-width: 0; width: max-content; font-size: var(--sb-t-13); }
  .sb-compare th, .sb-compare td { padding: 12px 14px; }
  .sb-compare thead th { width: 168px; min-width: 168px; }
  .sb-compare thead th:first-child, .sb-compare tbody th { position: sticky; left: 0; z-index: 1; width: 96px; min-width: 96px; background: var(--sb-white); box-shadow: 1px 0 0 var(--sb-line); }
  .sb-cmp-head img { width: 64px; height: 64px; }
  .sb-cmp-head a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--sb-t-13); }
  .sb-gallery__stage { border-radius: 20px; }
  .sb-gallery__stage img { inset: 5%; width: 90%; height: 90%; }
  .sb-block { padding: 44px 0; }
  .sb-block__head { margin-bottom: 22px; }
}

/* ---- fixes: one-line Place order button, cleaner order summary ---- */
.wc-block-components-checkout-place-order-button .wc-block-components-button__text { display: inline-flex !important; flex-direction: row !important; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; }
.wc-block-components-checkout-place-order-button .wc-block-components-button__text::before { margin: 0 !important; flex: none; }
.wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text { display: inline; }
.wc-block-components-checkout-place-order-button { min-height: 60px !important; padding: 0 24px !important; }
.wc-block-components-order-summary-item__description .wc-block-components-product-metadata__description { display: none; }
.wc-block-components-order-summary-item__description .wc-block-components-product-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wc-block-components-order-summary-item { padding: 12px 0 !important; }
.wc-block-checkout__sidebar .wc-block-components-panel__button, .wc-block-components-order-summary .wc-block-components-panel__button { font-weight: 650 !important; }
.wc-block-checkout__terms { margin-top: 8px !important; }

/* ---- what happens after you order ---- */
.sb-next { margin-top: 18px; padding: 24px; border-radius: 22px; background: var(--sb-graphite); color: var(--sb-white); }
.sb-next h2 { font-size: var(--sb-t-18); margin-bottom: 16px; }
.sb-next ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: kwn; }
.sb-next li { counter-increment: kwn; position: relative; padding: 16px; border-radius: 16px; background: var(--sb-carbon); border: 1px solid var(--sb-iron); }
.sb-next li::before { content: counter(kwn); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 10px; border-radius: 50%; background: var(--sb-volt); color: var(--sb-graphite); font-size: var(--sb-t-13); font-weight: 700; }
.sb-next b { display: block; font-size: var(--sb-t-14); font-weight: 620; }
.sb-next span { display: block; margin-top: 4px; font-size: var(--sb-t-13); color: #C9CDD3; line-height: 1.5; }
@media (max-width: 700px) { .sb-next ol { grid-template-columns: minmax(0, 1fr); } .sb-next { padding: 20px 16px; } }

/* ---- secure line, payment badges, financing ---- */
.sb-assure { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 18px; padding: 14px 18px; border-radius: 16px; background: var(--sb-white); border: 1px solid var(--sb-line); }
.sb-assure__lock { display: inline-flex; align-items: center; gap: 8px; font-size: var(--sb-t-14); font-weight: 600; }
.sb-assure__lock svg { width: 18px; height: 18px; color: var(--sb-ok); }
.sb-assure__pay { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-assure__pay span { padding: 4px 9px; border-radius: 6px; border: 1px solid var(--sb-line); font-size: var(--sb-t-12); font-weight: 600; }
.sb-assure__fin { margin: 10px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--sb-volt-soft); font-size: var(--sb-t-14); }

/* ---- order confirmation ---- */
.sb-ty { display: grid; gap: 18px; }
.sb-ty__head { display: flex; gap: 18px; align-items: flex-start; padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: var(--sb-white); border: 1px solid var(--sb-line); }
.sb-ty__head h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); letter-spacing: -0.03em; }
.sb-ty__head p { margin: 10px 0 0; color: var(--sb-slate); overflow-wrap: anywhere; }
.sb-ty__head--fail { display: block; background: #FDF3F1; border-color: #F3C9C1; }
.sb-ty__ok { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sb-ok); color: var(--sb-white); animation: sb-pop .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.sb-ty__ok svg { width: 26px; height: 26px; }
@keyframes sb-pop { from { transform: scale(.4); opacity: 0; } }
.sb-ty__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; border-radius: 18px; overflow: hidden; background: var(--sb-line); border: 1px solid var(--sb-line); }
.sb-ty__facts div { background: var(--sb-white); padding: 16px 18px; }
.sb-ty__facts dt { font-size: var(--sb-t-12); color: var(--sb-slate); }
.sb-ty__facts dd { margin: 4px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.sb-ty__card { padding: clamp(20px, 2.6vw, 28px); border-radius: 22px; background: var(--sb-white); border: 1px solid var(--sb-line); }
.sb-ty__card h2 { display: flex; align-items: center; gap: 10px; font-size: var(--sb-t-18); margin-bottom: 14px; }
.sb-ty__card h2 svg { width: 20px; height: 20px; color: var(--sb-ok); }
.sb-ty__card p { margin: 0 0 10px; font-size: var(--sb-t-14); color: #2D323A; }
.sb-ty__card address { font-style: normal; font-size: var(--sb-t-14); line-height: 1.6; }
.sb-ty__muted { color: var(--sb-slate) !important; }
.sb-ty__card--dark { background: var(--sb-graphite); border-color: var(--sb-graphite); color: var(--sb-white); }
.sb-ty__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: kwty; }
.sb-ty__steps li { counter-increment: kwty; padding: 16px; border-radius: 16px; background: var(--sb-carbon); border: 1px solid var(--sb-iron); }
.sb-ty__steps li::before { content: counter(kwty); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 10px; border-radius: 50%; background: var(--sb-iron); color: var(--sb-white); font-size: var(--sb-t-13); font-weight: 700; }
.sb-ty__steps li.is-done::before { content: "\2713"; background: var(--sb-ok); }
.sb-ty__steps b { display: block; font-size: var(--sb-t-14); }
.sb-ty__steps span { display: block; margin-top: 4px; font-size: var(--sb-t-13); color: #C9CDD3; line-height: 1.5; }
.sb-ty__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sb-ty__side { display: grid; gap: 18px; }
.sb-ty__items { list-style: none; margin: 0; padding: 0; }
.sb-ty__items li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--sb-line); }
.sb-ty__img img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: var(--sb-mist); padding: 4px; mix-blend-mode: multiply; }
.sb-ty__name b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--sb-t-14); font-weight: 600; line-height: 1.35; }
.sb-ty__name small { color: var(--sb-slate); font-size: var(--sb-t-12); }
.sb-ty__price { font-weight: 600; font-size: var(--sb-t-14); white-space: nowrap; }
.sb-ty__totals { margin: 12px 0 0; }
.sb-ty__totals div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: var(--sb-t-14); }
.sb-ty__totals dt { color: var(--sb-slate); }
.sb-ty__totals dd { margin: 0; text-align: right; }
.sb-ty__totals .is-total { border-top: 1px solid var(--sb-line); margin-top: 6px; padding-top: 14px; font-size: var(--sb-t-18); font-weight: 680; }
.sb-ty__totals .is-total dt { color: var(--sb-ink); }
.sb-ty__card--warranty { background: #F1FAF4; border-color: #CFEBDA; }
.sb-ty__prep { margin: 0; padding-left: 1.1em; font-size: var(--sb-t-14); line-height: 1.6; }
.sb-ty__prep li { margin: 4px 0; }
.sb-ty__more { margin: 6px 0 0; }
@media (max-width: 860px) {
  .sb-ty__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-ty__steps { grid-template-columns: minmax(0, 1fr); }
  .sb-ty__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .sb-ty__head { flex-direction: column; } .sb-ty__items li { grid-template-columns: 56px minmax(0, 1fr); } .sb-ty__price { grid-column: 2; } }

/* Stripe assurance card (checkout + cart) */
.sb-assure.sb-assure--cards { display: block; padding: 16px 18px; }
.sb-assure__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.sb-assure__note { margin: 10px 0 0; max-width: 62ch; font-size: var(--sb-t-13); line-height: 1.5; color: var(--sb-slate); }
.sb-assure__stripe { display: flex; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sb-line); }

/* Payment step: secure card panel + Powered by Stripe (inserted above the card fields) */
.sb-paytrust { margin: 0 0 16px; border: 1px solid var(--sb-line); border-radius: 14px; background: var(--sb-white); overflow: hidden; }
.sb-paytrust__main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 16px; }
.sb-paytrust__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sb-paytrust__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #E8F4EC; color: var(--sb-ok); }
.sb-paytrust__icon svg { width: 18px; height: 18px; }
.sb-paytrust__txt { display: grid; gap: 2px; min-width: 0; }
.sb-paytrust__txt b { font-size: var(--sb-t-14); font-weight: 650; line-height: 1.25; color: var(--sb-ink); }
.sb-paytrust__txt span { font-size: var(--sb-t-12); line-height: 1.35; color: var(--sb-slate); }
.sb-paytrust .sb-marks { gap: 5px; }
.sb-paytrust .sb-marks svg { width: 36px; height: 24px; }
.sb-paytrust__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 16px; border-top: 1px solid var(--sb-line); background: var(--sb-mist); }
.sb-poweredby { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 6px; background: var(--sb-graphite); color: #fff; white-space: nowrap; }
.sb-poweredby span { font-size: 11px; font-weight: 500; letter-spacing: .01em; color: rgba(255, 255, 255, .82); }
.sb-poweredby i { width: 1px; height: 14px; background: rgba(255, 255, 255, .3); }
.sb-poweredby b { position: relative; top: -1px; font-size: 15px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.sb-paytrust__note { min-width: 0; font-size: var(--sb-t-12); line-height: 1.4; color: var(--sb-slate); }
@media (max-width: 480px) {
  .sb-paytrust__main { padding: 14px; }
  .sb-paytrust__cards { width: 100%; padding-left: 48px; }
  .sb-paytrust__foot { padding: 10px 14px; }
}

/* Payment method: one clean card (no nested border), content flush under the label */
.wc-block-components-radio-control-accordion-option { overflow: hidden; }
.wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option { border: 0 !important; border-radius: 0 !important; margin: 0 !important; background: transparent; }
.wc-block-components-radio-control-accordion-option::after, .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option::after { display: none !important; }
.wc-block-components-radio-control-accordion-content { padding: 0 16px 16px !important; }
.wc-block-components-radio-control--highlight-checked::after { display: none !important; }
@media (max-width: 480px) { .wc-block-components-radio-control-accordion-content { padding: 0 12px 14px !important; } }

/* ==========================================================================
   Checkout polish v3: preview, numbered steps, calm fields, delivery card,
   savings, pay amount, compact timeline, desktop trust, loading shimmer
   ========================================================================== */

/* Your order preview (phones) */
.sb-cprev { margin: 0 0 12px; border: 1px solid var(--sb-line); border-radius: 22px; background: var(--sb-white); overflow: hidden; }
.sb-cprev ul { list-style: none; margin: 0; padding: 4px 18px; }
.sb-cprev li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; }
.sb-cprev li + li { border-top: 1px solid var(--sb-line); }
.sb-cprev__img { position: relative; width: 56px; height: 56px; border-radius: 12px; background: var(--sb-mist); }
.sb-cprev__img img { display: block; width: 100%; height: 100%; padding: 4px; object-fit: contain; border-radius: 12px; mix-blend-mode: multiply; }
.sb-cprev__img i { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--sb-graphite); color: var(--sb-white); font-size: 11px; font-style: normal; font-weight: 700; }
.sb-cprev__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--sb-t-14); font-weight: 560; line-height: 1.35; }
.sb-cprev__price { text-align: right; white-space: nowrap; }
.sb-cprev__price b { display: block; font-size: var(--sb-t-16); font-weight: 680; letter-spacing: -0.01em; }
.sb-cprev__price del { display: block; font-size: var(--sb-t-12); color: var(--sb-slate); }
li.sb-cprev__more { display: block; font-size: var(--sb-t-13); color: var(--sb-slate); }
.sb-cprev__save { display: flex; align-items: center; gap: 8px; margin: 0; padding: 11px 18px; background: #E8F4EC; color: #145C34; font-size: var(--sb-t-13); font-weight: 600; }
.sb-cprev__save svg { flex: none; width: 16px; height: 16px; }
.sb-cprev__save b { font-weight: 750; }
@media (min-width: 900px) { .sb-cprev { display: none; } }
body.sb-co-wide .sb-cprev { display: none; }

/* Numbered steps that turn into green checks when complete */
.wc-block-checkout__form { counter-reset: kwco; }
.wc-block-checkout__form .wc-block-components-checkout-step { counter-increment: kwco; padding: 20px 20px 18px !important; margin: 0 0 12px !important; border-radius: 20px; }
.wc-block-checkout__form .wc-block-components-checkout-step__heading { margin: 0 0 14px !important; }
.wc-block-checkout__form .wc-block-components-checkout-step__title { display: flex !important; align-items: center; gap: 0 !important; font-size: var(--sb-t-18) !important; font-weight: 650 !important; letter-spacing: -0.02em; }
.wc-block-checkout__form .wc-block-components-checkout-step .wc-block-components-checkout-step__title::before {
  content: counter(kwco) !important; position: static !important; flex: none; display: inline-grid !important; place-items: center;
  width: 28px !important; height: 28px !important; margin: 0 12px 0 0 !important; border-radius: 50%;
  background: var(--sb-graphite) !important; color: var(--sb-volt) !important; font-size: 13px !important; font-weight: 700 !important;
  line-height: 1 !important; letter-spacing: 0; transform: none !important; transition: background-color .25s var(--sb-ease);
}
.wc-block-checkout__form .wc-block-components-checkout-step[data-sb-done] .wc-block-components-checkout-step__title::before {
  content: "" !important;
  background: var(--sb-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat center / 14px 14px !important;
}
/* Shorter section titles */
.wc-block-checkout__form .wp-block-woocommerce-checkout-contact-information-block .wc-block-components-checkout-step__title,
.wc-block-checkout__form .wp-block-woocommerce-checkout-shipping-methods-block .wc-block-components-checkout-step__title,
.wc-block-checkout__form .wp-block-woocommerce-checkout-payment-block .wc-block-components-checkout-step__title { font-size: 0 !important; }
.wc-block-checkout__form .wp-block-woocommerce-checkout-contact-information-block .wc-block-components-checkout-step__title::after { content: "Contact"; content: "Contact" / ""; }
.wc-block-checkout__form .wp-block-woocommerce-checkout-shipping-methods-block .wc-block-components-checkout-step__title::after { content: "Delivery"; content: "Delivery" / ""; }
.wc-block-checkout__form .wp-block-woocommerce-checkout-payment-block .wc-block-components-checkout-step__title::after { content: "Payment"; content: "Payment" / ""; }
.wc-block-checkout__form .wc-block-components-checkout-step__title::after { font-size: var(--sb-t-18); font-weight: 650; letter-spacing: -0.02em; }
@media (max-width: 899px) { .wc-block-checkout__form .wc-block-components-checkout-step { padding: 18px 16px 16px !important; } }

/* Calm fields: thin borders, amber focus, green check when complete */
.wc-block-checkout__form .wc-block-components-text-input:not(.has-error) input:not(:focus),
.wc-block-checkout__form .wc-blocks-components-select__select:not(:focus),
.wc-block-checkout__form .wc-block-components-combobox-control input:not(:focus) { border-color: var(--sb-line) !important; box-shadow: none !important; }
.wc-block-checkout__form .wc-block-components-text-input:not(.has-error) input:hover:not(:focus),
.wc-block-checkout__form .wc-blocks-components-select__select:hover:not(:focus) { border-color: #C3C8CF !important; }
.wc-block-checkout__form .wc-block-components-text-input input:focus,
.wc-block-checkout__form .wc-blocks-components-select__select:focus,
.wc-block-checkout__form .wc-block-components-combobox-control input:focus { border-color: var(--sb-volt-deep) !important; box-shadow: 0 0 0 4px rgba(255, 176, 32, .22) !important; outline: none !important; }
.wc-block-checkout__form .wc-block-components-text-input[data-sb-ok] input {
  padding-right: 44px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%231F8A4C'/%3E%3Cpath d='m6 10.2 2.6 2.6L14 7.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 18px 18px !important;
}

/* Delivery date card (in the Delivery step) */
.sb-eta { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--sb-volt-soft); border: 1px solid #F8DFA6; }
.sb-eta__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--sb-white); color: var(--sb-ink); box-shadow: 0 1px 0 rgba(14, 16, 19, .06); }
.sb-eta__icon svg { width: 19px; height: 19px; }
.sb-eta__body { min-width: 0; }
.sb-eta__k { display: block; font-size: var(--sb-t-12); color: #7A5A12; }
.sb-eta b { display: block; margin: 1px 0 4px; font-size: var(--sb-t-16); font-weight: 680; letter-spacing: -0.01em; color: var(--sb-ink); }
.sb-eta__d { display: block; font-size: var(--sb-t-13); line-height: 1.45; color: #4A4F57; }

/* Savings row under the total */
.sb-saverow { display: flex; align-items: center; gap: 8px; margin: 6px 16px 14px; padding: 10px 12px; border-radius: 12px; background: #E8F4EC; color: #145C34; font-size: var(--sb-t-13); font-weight: 600; }
.sb-saverow svg { flex: none; width: 16px; height: 16px; }
.sb-saverow b { margin-left: auto; font-size: var(--sb-t-14); font-weight: 750; white-space: nowrap; }

/* Pay button shows the amount; reassurance line underneath */
.wc-block-components-checkout-place-order-button__text[data-sb-amount] { font-size: 0 !important; }
.wc-block-components-checkout-place-order-button__text[data-sb-amount]::after { content: "Pay " attr(data-sb-amount) " securely"; font-size: var(--sb-t-18); font-variant-numeric: tabular-nums; }
.sb-under { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 0 0; font-size: var(--sb-t-13); color: var(--sb-slate); white-space: nowrap; }
.sb-nw { white-space: nowrap; }
.sb-under svg { flex: none; width: 16px; height: 16px; color: var(--sb-ok); }

/* Compact after-you-order timeline */
.sb-tl { margin-top: 16px; padding: 18px 18px 20px; border: 1px solid var(--sb-line); border-radius: 22px; background: var(--sb-white); }
.sb-tl h2 { margin: 0 0 14px; font-size: var(--sb-t-16); font-weight: 650; letter-spacing: -0.01em; }
.sb-tl ol { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.sb-tl li { position: relative; min-width: 0; }
.sb-tl li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: 40px; right: 2px; height: 2px; border-radius: 1px; background: var(--sb-line); }
.sb-tl__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 50%; background: var(--sb-graphite); color: var(--sb-volt); }
.sb-tl li:first-child .sb-tl__dot { background: var(--sb-ok); color: var(--sb-white); }
.sb-tl__dot svg { width: 16px; height: 16px; }
.sb-tl b { display: block; font-size: var(--sb-t-13); font-weight: 650; line-height: 1.3; }
.sb-tl li > span:not(.sb-tl__dot) { display: block; margin-top: 3px; font-size: var(--sb-t-12); line-height: 1.4; color: var(--sb-slate); }

/* Desktop: trust points inside the order summary column */
.wc-block-checkout__sidebar .sb-ctrust { grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 18px 0 0; }
.wc-block-checkout__sidebar .sb-ctrust div { padding: 12px 14px; border: 0; background: var(--sb-mist); }
@media (min-width: 900px) { .sb-woo .wc-block-components-sidebar-layout { gap: 32px; } }

/* Loading: shimmer while the secure card form loads */
@keyframes sb-shim { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.wc-block-components-radio-control-accordion-option:has(input[value*="stripe"]) .wc-block-components-radio-control-accordion-content:not(:has(iframe))::before {
  content: ""; display: block; height: 228px; margin-top: 8px; border-radius: 12px;
  background: linear-gradient(90deg, var(--sb-mist) 25%, #FBFBFC 50%, var(--sb-mist) 75%); background-size: 200% 100%; animation: sb-shim 1.3s linear 14;
}
.wc-block-components-shipping-rates-control .wc-block-components-loading-mask:has(.wc-block-components-spinner) .wc-block-components-loading-mask__children {
  border-radius: 16px; background: linear-gradient(90deg, var(--sb-mist) 25%, #FBFBFC 50%, var(--sb-mist) 75%); background-size: 200% 100%; animation: sb-shim 1.3s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .wc-block-components-radio-control-accordion-content::before, .wc-block-components-loading-mask__children { animation: none !important; }
}

/* ---------------------------------------------------------------- Track order page */
.sb-trk .sb-page__head { margin-bottom: 28px; }
.sb-trk__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.sb-trk__side { display: grid; gap: 12px; }
.sb-trk__card { padding: 20px 22px; border-radius: var(--sb-r-panel); background: var(--sb-mist); }
.sb-trk__card h2 { font-size: var(--sb-t-16); letter-spacing: -0.01em; margin: 0 0 8px; }
.sb-trk__card p, .sb-trk__card ul { margin: 0; font-size: var(--sb-t-14); line-height: 1.6; color: #2D323A; }
.sb-trk__card ul { padding-left: 1.1em; margin-bottom: 10px; }
.sb-trk__card li + li { margin-top: 4px; }
.sb-trk__card p a { color: inherit; font-weight: 600; overflow-wrap: anywhere; }
.sb-trk .woocommerce-notices-wrapper { margin-bottom: 16px; }
.sb-trkform { padding: clamp(20px, 3vw, 32px); border-radius: 22px; border: 1px solid var(--sb-line); background: var(--sb-white); }
.sb-trkform__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.sb-trkform .sb-field { margin: 0; }
.sb-trkform__btn svg { width: 18px; height: 18px; }
.sb-trkres { display: grid; gap: 18px; }
.sb-trkres__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.sb-trkres__head h2 { margin: 0; font-size: var(--sb-t-24); letter-spacing: -0.025em; }
.sb-trkres__status { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: var(--sb-r-pill); font-size: var(--sb-t-14); font-weight: 600; }
.sb-trkres__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sb-trkres__status.is-live { background: var(--sb-volt-soft); color: #7A4B00; }
.sb-trkres__status.is-done { background: #E8F5EE; color: var(--sb-ok); }
.sb-trkres__status.is-wait { background: var(--sb-mist); color: var(--sb-slate); }
.sb-trkres__status.is-stop { background: #FDF3F1; color: var(--sb-bad); }
.sb-ty__facts.sb-trkres__facts { display: flex; flex-wrap: wrap; }
.sb-ty__facts.sb-trkres__facts div { flex: 1 1 150px; }
.sb-trkres__note { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--sb-mist); font-size: var(--sb-t-14); line-height: 1.55; }
.sb-trkres__note a { color: inherit; font-weight: 600; }
.sb-trksteps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sb-trksteps li { position: relative; padding-right: 14px; }
.sb-trksteps li::before { content: ""; position: relative; z-index: 1; display: block; width: 28px; height: 28px; margin-bottom: 12px; border-radius: 50%; background: var(--sb-white); box-shadow: inset 0 0 0 2px var(--sb-line); }
.sb-trksteps li::after { content: ""; position: absolute; top: 13px; left: 28px; right: 0; height: 2px; background: var(--sb-line); }
.sb-trksteps li:last-child::after { display: none; }
.sb-trksteps li.is-done::before { box-shadow: none; background: var(--sb-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.sb-trksteps li.is-done::after { background: var(--sb-ok); }
.sb-trksteps li.is-now::before { box-shadow: 0 0 0 5px var(--sb-volt-soft); background: var(--sb-volt); }
.sb-trksteps b { display: block; font-size: var(--sb-t-14); }
.sb-trksteps span { display: block; margin-top: 3px; font-size: var(--sb-t-13); line-height: 1.45; color: var(--sb-slate); }
.sb-trkres__updates h2 { margin-bottom: 12px; }
.sb-trknotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sb-trknotes li { padding-left: 14px; border-left: 2px solid var(--sb-volt); }
.sb-trknotes time { font-size: var(--sb-t-12); color: var(--sb-slate); }
.sb-trknotes p { margin: 4px 0 0; font-size: var(--sb-t-14); overflow-wrap: anywhere; }
.sb-trkres__again { margin: 0; }
@media (max-width: 960px) { .sb-trk__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .sb-trkform__fields { grid-template-columns: minmax(0, 1fr); }
  .sb-trkform__btn { width: 100%; }
  .sb-trksteps { grid-template-columns: minmax(0, 1fr); }
  .sb-trksteps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; padding: 0 0 18px; }
  .sb-trksteps li:last-child { padding-bottom: 0; }
  .sb-trksteps li::before { grid-row: span 2; margin: 0; }
  .sb-trksteps li::after { top: 28px; bottom: 0; left: 13px; right: auto; width: 2px; height: auto; }
  .sb-trksteps b { padding-top: 4px; }
}
