/* /assets/css/checkout.css
 * Checkout layout and page-specific states.
 */

/* ========================================================================== */
/* Page shell */
/* ========================================================================== */
.checkout-page{
  background: var(--checkout-bg);
  color: var(--checkout-tx);
  padding: 18px 0 32px;
}

.checkout-shell{
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 14px;
}

.checkout-top{ margin-bottom: 14px; }

.checkout-h1{
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.checkout-note{
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--checkout-bd);
  border-radius: 12px;
  background: #f7f7f2;
  color: var(--checkout-muted);
}
.checkout-note a{
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
}
.checkout-link-accent{ color: var(--accent) !important; }

/* ========================================================================== */
/* Summary */
/* ========================================================================== */
.checkout-summary{
  border-radius: var(--checkout-radius);
  overflow: hidden;
}
.checkout-summary__row{
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid var(--checkout-bd);
}
.checkout-summary__row:first-child{ border-top: 0; }
.checkout-summary__row--grand{ background: #f7f7f2; }

.checkout-summary__label{
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--checkout-muted);
  min-width: 0;
}
.checkout-summary__value{
  font-weight: 900;
  white-space: nowrap;
}

.checkout-edit{
  font-size: 12px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  white-space: nowrap;
}
.checkout-edit:hover{ filter: brightness(.95); }

/* ========================================================================== */
/* Form layout */
/* ========================================================================== */
.checkout-form{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* ========================================================================== */
/* Steps nav */
/* ========================================================================== */
.steps-nav{
  position: sticky;
  top: var(--stickyTop);
  z-index: 30;
  border-radius: var(--checkout-radius);
  overflow: hidden;
}

.steps-nav__head{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--checkout-bd);
}

.steps-nav__title{
  font-weight: 900;
  letter-spacing: -0.01em;
}

.steps-nav__meta{
  color: var(--checkout-muted);
  font-size: 13px;
  font-weight: 700;
}

.steps-nav__bar{
  height: 4px;
  background: rgba(23,27,24,.06);
}
.steps-nav__barFill{
  height: 4px;
  width: 0%;
  background: var(--accent);
  transition: width .25s ease;
}

.steps-nav__list{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stepBtn{
  appearance: none;
  border: 0;
  border-right: 1px solid rgba(0,0,0,.06);
  background: transparent;
  padding: 10px 10px;
  cursor: pointer;

  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;

  min-width: 0;
  transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.stepBtn:last-child{ border-right: 0; }

.stepBtn .n{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.68);
  flex: 0 0 auto;
  font-weight: 900;
}

.stepBtn .t{
  font-size: 13px;
  color: var(--checkout-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

/* Active */
.stepBtn.is-active{ background: rgba(37,72,168,.08); }
.stepBtn.is-active .n{ background: var(--accent); color: #fff; }
.stepBtn.is-active .t{ color: var(--checkout-tx); font-weight: 900; }

/* Done */
.stepBtn.is-done .n{
  background: rgba(37,72,168,.16);
  color: rgba(23,27,24,.82);
}

/* Locked */
.stepBtn.is-locked{ opacity: .45; cursor: default; }
.stepBtn.is-locked:hover{ background: transparent; }

/* Nav error state */
.steps-nav.has-error{
  border-color: rgba(220,38,38,.35);
  box-shadow: 0 0 0 4px rgba(220,38,38,.08), var(--checkout-shadow);
}

/* ========================================================================== */
/* Steps / headings / errors */
/* ========================================================================== */
.step{
  border-radius: var(--checkout-radius);
  padding: 14px;
}

.step__head{
  margin-bottom: 10px;
}

.step-title{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.step-state{
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.step-errors{
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(180,35,24,.22);
  background: rgba(180,35,24,.08);
  border-radius: 12px;
  color: #7f1d1d;
}
.step-errors ul{ margin: 0; padding-left: 18px; }
.step-errors li{ margin: 3px 0; }

.step__actions{
  margin-top: 12px;
}

/* ========================================================================== */
/* Notices */
/* ========================================================================== */
.notice{
  margin-bottom: 0;
  padding: 10px 12px;
}

/* ========================================================================== */
/* Boxes / grid */
/* ========================================================================== */
.step-box{
  padding: 12px;
  border-radius: 12px;
}

.grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ========================================================================== */
/* Fields */
/* ========================================================================== */
.field{ display: block; min-width: 0; }
.field--half{ grid-column: span 1; }

.field .label{
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 13px;
  color: rgba(0,0,0,.68);
  margin-bottom: 6px;
  font-weight: 800;
}

.req{ color: var(--err); }

.field input,
.field select,
.field textarea{
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.field textarea{ resize: vertical; }

/* Disabled */
.field input[disabled],
.field input:disabled,
.field textarea:disabled,
.field select:disabled{
  background: rgba(0,0,0,.03);
  color: rgba(0,0,0,.70);
}

.hint{
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--checkout-muted2);
}

/* ========================================================================== */
/* Actions */
/* ========================================================================== */
.actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
  align-items: center;
}

/* ========================================================================== */
/* Buttons come from ui-buttons.css */
/* ========================================================================== */

/* ========================================================================== */
/* Choice cards */
/* ========================================================================== */
.choice-group{
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.choice-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.choice-grid--single{ grid-template-columns: 1fr; }

/* Choice card */
.choice-card{
  position: relative;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}

.choice-card input{
  position: absolute;
  left: 14px;
  top: 14px;
  width: 18px;
  height: 18px;
  opacity: 1;
  pointer-events: none;
}

/* Radio accent */
.choice-card input{ accent-color: var(--accent); }

.choice-card__body{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 12px 44px;
  transition: background .15s ease, box-shadow .15s ease;
}

.choice-card__title{
  font-weight: 900;
  letter-spacing: -0.01em;
}
.choice-card__sub{
  color: var(--checkout-muted);
  font-size: 13px;
  font-weight: 700;
}

.choice-card:hover{
  background: var(--ui-surface-muted);
}

/* ========================================================================== */
/* Delivery (step 3) */
/* ========================================================================== */

/* Delivery choice panel */
.delivery-state{
  display: grid;
  gap: 10px;
}

.step[data-step="3"] .choice-group{
  margin-bottom: 12px;
}

.step[data-step="3"] .choice-grid{
  background: var(--panel-bg);
  border: 1px solid var(--panel-bd);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--panel-inset);
}

/* Delivery radio */
.step[data-step="3"] .choice-card input[name="delivery_method"]{
  accent-color: var(--accent);
}

/* Selected fallback without :has() */
.step[data-step="3"] .choice-card input[name="delivery_method"]:checked + .choice-card__body{
  background: var(--pick-bg);
  border-radius: 12px;
  box-shadow:
    0 0 0 4px var(--pick-ring),
    0 0 0 1px var(--pick-bd) inset;
}

/* Selected card when :has() is available */
.step[data-step="3"] .choice-card:has(input[name="delivery_method"]:checked){
  border-color: var(--pick-bd);
  box-shadow: 0 0 0 4px var(--pick-ring);
}

/* ========================================================================== */
/* Payment (step 4) */
/* ========================================================================== */

/* Step 4 card surface comes from ui-pages.css */

/* First payment card header */
.step[data-step="4"] .card:first-of-type .card-head{
  background: #f7f7f2;
  border-bottom-color: rgba(23,27,24,.08);
}

/* Payment title icon */
.step[data-step="4"] .card:first-of-type .card-title{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.step[data-step="4"] .card:first-of-type .card-title::before{
  content: "💳";
  font-size: 16px;
  line-height: 1;
}

/* Payment choice panel */
.step[data-step="4"] .card:first-of-type > .choice-group{
  margin-bottom: 12px;
}

.step[data-step="4"] .card:first-of-type .choice-grid{
  background: var(--panel-bg);
  border: 1px solid var(--panel-bd);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--panel-inset);
}

/* Payment radio */
.step[data-step="4"] .choice-card input[name="payment_method"]{
  accent-color: var(--accent);
}

/* Payment option icons */
.step[data-step="4"] .choice-card input[name="payment_method"] + .choice-card__body .choice-card__title{
  display: flex;
  align-items: center;
  gap: 10px;
}
.step[data-step="4"] .choice-card input[name="payment_method"][value="card_transfer"] + .choice-card__body .choice-card__title::before{
  content: "💳";
  font-size: 16px;
  line-height: 1;
  opacity: .95;
}
.step[data-step="4"] .choice-card input[name="payment_method"][value="qr"] + .choice-card__body .choice-card__title::before{
  content: "🔳";
  font-size: 16px;
  line-height: 1;
  opacity: .75;
}

/* Selected fallback without :has() */
.step[data-step="4"] .choice-card input[name="payment_method"]:checked + .choice-card__body{
  background: var(--pick-bg);
  border-radius: 12px;
  box-shadow:
    0 0 0 4px var(--pick-ring),
    0 0 0 1px var(--pick-bd) inset;
}

/* Selected card when :has() is available */
.step[data-step="4"] .choice-card:has(input[name="payment_method"]:checked){
  border-color: var(--pick-bd);
  box-shadow: 0 0 0 4px var(--pick-ring);
}

/* Disabled card */
.choice-card--disabled{
  opacity: .55;
  cursor: default;
}
.choice-card--disabled .choice-card__sub{
  color: rgba(0,0,0,.45);
  font-weight: 800;
}

/* Payment comment field */
.step[data-step="4"] .card:first-of-type .field{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0,0,0,.10);
}

/* ========================================================================== */
/* CDEK inline UI */
/* ========================================================================== */
.choice-card--cdek .choice-card__body{ gap: 8px; }

.choice-card__row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.choice-card__text{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.choice-card__actions{ flex: 0 0 auto; }

.btn-pvz{
  padding: 9px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.step[data-step="3"] .btn-pvz{
  background: #ffffff;
  border-color: var(--ui-border-strong);
  color: var(--ui-text);
}

.step[data-step="3"] .btn-pvz:hover{
  background: var(--ui-surface-muted);
  border-color: rgba(37,72,168,.24);
  color: var(--ui-accent);
}

#cdekExtra{
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.pvz-mini{
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(23,27,24,.10);
  background: #f7f7f2;
  color: var(--checkout-tx);
}
.pvz-mini.is-selected{
  border-color: rgba(37,72,168,.24);
  background: rgba(37,72,168,.06);
}

.pvz-mini__title{
  display: flex;
  align-items: center;
  gap: 8px;
}
.pvz-mini__code{
  font-size: 12px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.7);
  color: rgba(0,0,0,.72);
}

.pvz-mini__addr{
  margin-top: 4px;
  font-size: 13px;
  color: var(--checkout-muted);
}
.pvz-mini__meta{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0,0,0,.70);
}

.btn-change-city{
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
}

/* ========================================================================== */
/* Generic cards */
/* ========================================================================== */
.card{
  margin-top: 12px;
  border-radius: var(--checkout-radius);
  overflow: hidden;
}

.card-head{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(23,27,24,.08);
  background: #f7f7f2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-title{
  font-weight: 900;
  letter-spacing: -0.01em;
}
.card-sub{
  margin-top: 4px;
  font-size: 13px;
  color: var(--checkout-muted);
  font-weight: 700;
}

/* Inner spacing */
.card > .grid,
.card > .choice-grid,
.card > .field{
  padding: 12px 14px 14px;
  margin: 0;
}
.card > .choice-grid{ margin-bottom: 0; }

/* Step 3 post block */
.step[data-step="3"] #postBlock.card{
  border-color: rgba(17, 24, 22, .14);
  background: rgba(255,255,255,.94);
}

/* ========================================================================== */
/* City autocomplete */
/* ========================================================================== */
.suggest{
  position: relative;
  margin-top: 8px;
  border: 1px solid rgba(23,27,24,.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(10,15,12,.08);
  overflow: hidden;
}
.suggest-item{
  padding: 10px 12px;
  cursor: pointer;
  border-top: 1px solid rgba(0,0,0,.06);
  font-size: 14px;
}
.suggest-item:first-child{ border-top: 0; }
.suggest-item:hover{ background: rgba(0,0,0,.03); }

/* ========================================================================== */
/* Order list */
/* ========================================================================== */
.order-list{
  list-style: none;
  padding: 10px 14px 0;
  margin: 0;
}
.order-item{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(23,27,24,.08);
  align-items: baseline;
}
.order-item .qty{
  color: var(--checkout-muted);
  font-size: 13px;
  white-space: nowrap;
  font-weight: 700;
}
.order-item .sum{
  font-weight: 900;
  white-space: nowrap;
}

.order-total-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}
.order-total-row span{ color: var(--checkout-muted); font-weight: 800; }
.order-total-row strong{ white-space: nowrap; font-weight: 900; }
.order-total-row--grand{
  border-top: 1px solid rgba(23,27,24,.08);
  background: #f7f7f2;
}

/* ========================================================================== */
/* Responsive */
/* ========================================================================== */
@media (max-width: 900px){
  .checkout-shell{ max-width: 760px; }
  .stepBtn{ padding: 10px 8px; }
  .stepBtn .t{ font-size: 12px; }
}

@media (max-width: 720px){
  .grid{ grid-template-columns: 1fr; }
  .field--half{ grid-column: auto; }
  .choice-grid{ grid-template-columns: 1fr; }

  .actions{ justify-content: flex-end; }
  .actions .btn-primary{ margin-left: auto; }
  .actions .btn-ghost{ margin-right: auto; }

  .stepBtn{
    padding: 10px 6px 8px;
    flex-direction: column;
    gap: 6px;
  }
  .stepBtn .n{
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .stepBtn .t{
    display: block;
    font-size: 10.5px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-weight: 800;
  }

  .choice-card input{
    width: 20px;
    height: 20px;
    left: 12px;
    top: 12px;
  }
  .choice-card__body{ padding-left: 46px; }

  .choice-card__row{
    flex-direction: column;
    align-items: stretch;
  }
  .btn-pvz{ width: 100%; }

  .step[data-step="3"] .choice-grid{ padding: 10px; }
  .step[data-step="4"] .card:first-of-type > .choice-grid{ padding: 10px; }
}

@media (max-width: 420px){
  .checkout-h1{ font-size: 20px; }
  .steps-nav__head{ padding: 10px 12px; }
  .step{ padding: 12px; }
}

/* ========================================================================== */
/* Safety */
/* ========================================================================== */
#cdekOpenFloatingBtn{ display: none !important; }

/* ==========================================================================
   Minimum order
   ========================================================================== */
.checkout-min-order{
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(183,121,31,.22);
  background: rgba(183,121,31,.08);
  box-shadow: none;
}

.checkout-min-order.is-active{
  display: block;
}

.checkout-min-order__title{
  font-size: 14px;
  line-height: 1.25;
  font-weight: 950;
  color: #111;
  margin-bottom: 4px;
}

.checkout-min-order__text{
  font-size: 13px;
  line-height: 1.45;
  color: rgba(0,0,0,.78);
}

.checkout-min-order__text strong{
  font-weight: 950;
  color: #111;
}

.checkout-min-order__actions{
  margin-top: 9px;
}

.checkout-min-order__link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.checkout-min-order__link:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-min-order.is-bump{
  animation: checkoutMinOrderBump .46s ease;
}

@keyframes checkoutMinOrderBump{
  0%   { transform: scale(1); }
  18%  { transform: scale(1.018); }
  36%  { transform: scale(.994); }
  54%  { transform: scale(1.014); }
  72%  { transform: scale(.997); }
  100% { transform: scale(1); }
}

/* ========================================================================== */
/* Single-page checkout layout */
/* ========================================================================== */
.checkout-page--single{
  padding-top: 12px;
}

.checkout-hero{
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.checkout-hero__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.checkout-edit--top{
  margin-top: 6px;
  white-space: nowrap;
}

.checkout-note--hero{
  margin: 0;
}

.checkout-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.checkout-form--single{
  display: grid;
  gap: 16px;
}

.checkout-section{
  padding: 16px;
}

.checkout-section__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.checkout-section__eyebrow{
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--checkout-muted2);
}

.checkout-section__status{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface-muted);
  color: var(--ui-muted-strong);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.checkout-section__status[data-state="done"]{
  background: var(--ui-success-soft);
  border-color: rgba(31,122,79,.18);
  color: var(--ui-success);
}

.checkout-section__status[data-state="invalid"]{
  background: var(--ui-danger-soft);
  border-color: rgba(180,35,24,.18);
  color: var(--ui-danger);
}

.checkout-section__status[data-state="draft"]{
  background: var(--ui-accent-soft);
  border-color: rgba(37,72,168,.16);
  color: var(--ui-accent);
}

.actions--section{
  margin-top: 14px;
  justify-content: flex-start;
}

.checkout-side{
  display: grid;
  gap: 14px;
}

.checkout-summary--sticky{
  position: sticky;
  top: 92px;
}

.checkout-order-card{
  overflow: hidden;
}

.checkout-submit{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(37,72,168,.14);
  background: linear-gradient(180deg, rgba(248,250,255,.98) 0%, #ffffff 100%);
}

.checkout-submit__meta{
  display: grid;
  gap: 3px;
}

.checkout-submit__total-label{
  font-size: 12px;
  font-weight: 900;
  color: var(--checkout-muted2);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.checkout-submit__total-value{
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.03em;
  color: var(--checkout-tx);
}

.checkout-submit__btn{
  min-width: 220px;
}

@media (max-width: 980px){
  .checkout-layout{
    grid-template-columns: 1fr;
  }

  .checkout-side{
    order: -1;
  }

  .checkout-summary--sticky{
    position: static;
  }
}

@media (max-width: 720px){
  .checkout-hero__head,
  .checkout-section__head,
  .checkout-submit{
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-edit--top{
    margin-top: 0;
  }

  .checkout-submit__btn{
    width: 100%;
    min-width: 0;
  }

  .checkout-submit__total-value{
    font-size: 24px;
  }
}

/* ========================================================================== */
/* Design pass */
/* ========================================================================== */
.checkout-page{
  background:
    radial-gradient(circle at top left, rgba(208,225,255,.42) 0%, rgba(208,225,255,0) 28%),
    linear-gradient(180deg, #f7f8f5 0%, #fbfbf9 180px, #f4f1ea 100%);
  padding: 22px 0 44px;
}

.checkout-shell{
  max-width: 1180px;
  padding: 0 18px;
}

.checkout-h1{
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.05;
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.checkout-hero{
  gap: 16px;
  margin-bottom: 20px;
}

.checkout-note,
.checkout-summary,
.checkout-order-card,
.checkout-min-order,
.checkout-section,
.step-box,
.card{
  border: 1px solid rgba(27, 39, 32, .08);
  box-shadow: 0 14px 34px rgba(41, 36, 24, .06);
}

.checkout-note{
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(8px);
  color: rgba(42,44,38,.78);
}

.checkout-summary,
.checkout-order-card,
.checkout-min-order,
.checkout-section,
.card{
  border-radius: 16px;
  background: rgba(255,255,255,.92);
}

.checkout-summary__row,
.order-total-row{
  padding: 14px 16px;
}

.checkout-summary__row--grand,
.order-total-row--grand{
  background: linear-gradient(180deg, rgba(248,250,255,.96) 0%, rgba(243,247,255,.98) 100%);
}

.checkout-summary__label,
.order-total-row span{
  color: rgba(66, 72, 78, .74);
  font-weight: 800;
}

.checkout-summary__value,
.order-total-row strong{
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: #111a15;
}

.checkout-edit{
  font-size: 12px;
  font-weight: 900;
  text-underline-offset: 3px;
}

.checkout-layout{
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 22px;
}

.checkout-form--single{
  gap: 18px;
}

.checkout-section{
  padding: 18px;
}

.checkout-section__head{
  margin-bottom: 14px;
}

.checkout-section__eyebrow{
  color: rgba(106, 97, 82, .78);
}

.step-title{
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #171b18;
}

.checkout-section__status{
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border-color: rgba(27,39,32,.10);
  background: rgba(248,246,240,.96);
  color: rgba(91, 86, 74, .88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.step-state{
  gap: 12px;
  margin-bottom: 12px;
}

.step-errors{
  padding: 11px 13px;
  border-radius: 14px;
  border-color: rgba(180,35,24,.14);
  background: rgba(180,35,24,.06);
}

.step-box,
.card{
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(252,251,248,.98) 100%);
}

.card{
  margin-top: 0;
}

.card-head{
  padding: 0 0 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(27,39,32,.08);
  background: transparent;
}

.card-title{
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #171b18;
}

.card-sub{
  color: rgba(84, 90, 96, .74);
}

.field .label{
  margin-bottom: 7px;
  color: rgba(37, 40, 46, .86);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .01em;
}

.field input,
.field select,
.field textarea{
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(28, 37, 34, .10);
  background: #fcfcfa;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}

.field textarea{
  min-height: 112px;
}

.field input:hover,
.field select:hover,
.field textarea:hover{
  border-color: rgba(37,72,168,.18);
  background: #ffffff;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(37,72,168,.35);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37,72,168,.08);
}

.field input:not(:placeholder-shown),
.field textarea:not(:placeholder-shown){
  background: #ffffff;
}

.hint{
  margin-top: 7px;
  color: rgba(95, 97, 104, .72);
}

.actions{
  gap: 12px;
}

.actions--section .btn{
  min-width: 170px;
}

.choice-grid,
.step[data-step="3"] .choice-grid,
.step[data-step="4"] .card:first-of-type .choice-grid{
  gap: 12px;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.choice-card{
  border: 1px solid rgba(27,39,32,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,246,241,.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.choice-card:hover{
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(249,248,244,.96) 100%);
  border-color: rgba(37,72,168,.22);
  box-shadow: 0 12px 24px rgba(28,31,28,.05);
  transform: translateY(-1px);
}

.choice-card__body{
  gap: 5px;
  min-height: 100%;
  padding: 14px 16px 14px 46px;
}

.choice-card__title{
  font-size: 15px;
  color: #171b18;
}

.choice-card__sub{
  color: rgba(79, 84, 91, .74);
  font-size: 12px;
  line-height: 1.45;
}

.step[data-step="3"] .choice-card input[name="delivery_method"]:checked + .choice-card__body,
.step[data-step="4"] .choice-card input[name="payment_method"]:checked + .choice-card__body{
  background: linear-gradient(180deg, rgba(242,247,255,.98) 0%, rgba(235,243,255,.95) 100%);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(37,72,168,.18), 0 0 0 4px rgba(37,72,168,.08);
}

.step[data-step="3"] .choice-card:has(input[name="delivery_method"]:checked),
.step[data-step="4"] .choice-card:has(input[name="payment_method"]:checked){
  border-color: rgba(37,72,168,.24);
  box-shadow: 0 12px 28px rgba(37,72,168,.08);
}

.choice-card--disabled{
  background: linear-gradient(180deg, rgba(250,250,250,.9) 0%, rgba(243,243,243,.92) 100%);
}

.choice-card--disabled:hover{
  transform: none;
  border-color: rgba(27,39,32,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.choice-card__row{
  gap: 14px;
}

.choice-card__actions{
  align-self: center;
}

.step[data-step="3"] .btn-pvz{
  min-width: 142px;
  background: #ffffff;
  border-color: rgba(27,39,32,.12);
  box-shadow: 0 8px 16px rgba(27,39,32,.05);
}

.step[data-step="3"] .btn-pvz:hover{
  background: #ffffff;
  border-color: rgba(37,72,168,.30);
  box-shadow: 0 10px 18px rgba(37,72,168,.08);
}

#cdekExtra{
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(27,39,32,.12);
}

.pvz-mini{
  border-radius: 14px;
  border-color: rgba(27,39,32,.08);
  background: rgba(248,246,241,.95);
}

.pvz-mini.is-selected{
  border-color: rgba(37,72,168,.18);
  background: rgba(240,246,255,.92);
}

.delivery-state{
  gap: 12px;
  margin-top: 12px;
}

#postBlock.card{
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(252,250,246,.98) 100%);
}

.order-list{
  padding: 0;
}

.order-item{
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px 12px;
  padding: 13px 16px;
}

.order-item .name{
  font-weight: 800;
  color: #171b18;
}

.order-item .qty{
  align-self: center;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(244,246,249,.9);
}

.order-item .sum{
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.checkout-min-order{
  margin-top: 0;
  background: linear-gradient(180deg, rgba(255,250,238,.98) 0%, rgba(255,247,231,.98) 100%);
  border-color: rgba(183,121,31,.18);
}

.checkout-submit{
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border-color: rgba(37,72,168,.12);
  box-shadow: 0 14px 28px rgba(37,72,168,.08);
}

.checkout-submit__meta{
  gap: 5px;
}

.checkout-submit__total-label{
  color: rgba(89, 89, 92, .72);
}

.checkout-submit__total-value{
  font-size: 32px;
}

.checkout-submit__btn{
  min-width: 232px;
  min-height: 48px;
}

.place-result{
  margin-top: 12px;
}

@media (max-width: 980px){
  .checkout-page{
    padding-top: 18px;
  }

  .checkout-layout{
    gap: 16px;
  }
}

@media (max-width: 720px){
  .checkout-page{
    padding-top: 14px;
  }

  .checkout-shell{
    padding: 0 12px;
  }

  .checkout-note,
  .checkout-summary,
  .checkout-order-card,
  .checkout-min-order,
  .checkout-section,
  .card,
  .checkout-submit{
    border-radius: 14px;
  }

  .checkout-section,
  .step-box,
  .card,
  .checkout-submit{
    padding: 14px;
  }

  .checkout-h1{
    font-size: 28px;
  }

  .checkout-summary__row,
  .order-total-row,
  .order-item{
    padding-left: 14px;
    padding-right: 14px;
  }

  .choice-card__body{
    padding: 13px 14px 13px 44px;
  }

  .choice-card__actions{
    align-self: stretch;
  }

  .step[data-step="3"] .btn-pvz{
    width: 100%;
    min-width: 0;
  }

  .checkout-submit__total-value{
    font-size: 28px;
  }
}