/* mirespresso_redesign — /order/ (sale.order.ajax template mr_checkout = server-side copy of
   aspro_max's v2, see scripts/build-checkout-template.sh). The checkout DOM is built by the real
   Aspro/Bitrix JS (order_ajax.js, bx-soa-* classes); this file re-dresses it in the redesign's look
   (approved mock: src/styles/components/_checkout.scss) and supplies the handful of bootstrap rules
   the markup relies on, because global bootstrap.css is deliberately not loaded here (it would
   restyle the redesign header/footer/.container). Hand-written; everything is scoped to
   .checkout-page so nothing leaks into the header/footer. */

/* ---- Page frame ------------------------------------------------------------------------------ */
.checkout-page {
  padding-top: calc(var(--header-height) + var(--space-6));
  padding-bottom: var(--space-9);
  min-height: 60vh;
}
.checkout-page__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
}
.checkout-page__back {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.checkout-page__back:hover {
  color: var(--color-brand-hover);
}

/* ---- Bootstrap subset the bx-soa markup needs ---------------------------------------------- */
.checkout-page .hidden { display: none !important; }
.checkout-page .clearfix::after { content: ""; display: table; clear: both; }
.checkout-page .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}
.checkout-page [class*="col-"] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
}
.checkout-page .container-fluid { padding-left: 0; padding-right: 0; }
@media (min-width: 768px) {
  .checkout-page .col-sm-3 { width: 25%; }
  .checkout-page .col-sm-4 { width: 33.3333%; }
  .checkout-page .col-sm-6 { width: 50%; }
  .checkout-page .col-sm-8 { width: 66.6667%; }
  .checkout-page .col-sm-9 { width: 75%; }
  .checkout-page .col-sm-12 { width: 100%; }
}
@media (min-width: 1024px) {
  .checkout-page .col-md-3 { width: 25%; }
  .checkout-page .col-md-4 { width: 33.3333%; }
  .checkout-page .col-md-6 { width: 50%; }
  .checkout-page .col-md-8 { width: 66.6667%; }
  .checkout-page .col-md-9 { width: 75%; }
  .checkout-page .col-md-12 { width: 100%; }
}
.checkout-page .form-group { margin-bottom: var(--space-4); }
.checkout-page .form-control,
.checkout-page input[type="text"],
.checkout-page input[type="email"],
.checkout-page input[type="tel"],
.checkout-page textarea,
.checkout-page select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0.6em 0.9em;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font: inherit;
  color: var(--color-text);
}
.checkout-page .form-control:focus,
.checkout-page input:focus,
.checkout-page textarea:focus,
.checkout-page select:focus {
  outline: none;
  border-color: var(--color-brand);
}
.checkout-page textarea { min-height: 96px; resize: vertical; }
.checkout-page .alert { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }
.checkout-page .alert-danger { background: var(--color-brand-soft); color: var(--color-brand); }
.checkout-page .alert-warning { background: var(--color-bg-subtle); color: var(--color-text); }

/* ---- Layout: main column + sticky summary (mock .checkout-layout) -------------------------- */
.checkout-page #bx-soa-order-main {
  display: grid;
  gap: var(--space-8);
  margin: 0;
}
@media (min-width: 1024px) {
  .checkout-page #bx-soa-order-main {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    align-items: start;
  }
  .checkout-page .bx-soa-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-5));
  }
}
.checkout-page #bx-soa-order-main > [class*="col-"] { width: auto; padding: 0; }
.checkout-page .bx-soa,
.checkout-page .pandd {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.checkout-page .bx-soa > div:empty { display: none; }

/* ---- Sections (mock .checkout-section, as cards) ------------------------------------------- */
.checkout-page .bx-soa-section {
  margin: 0;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: none;
}
.checkout-page .bx-soa-section-title-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin: 0 0 var(--space-5);
  padding: 0;
  border: 0;
  background: none;
}
.checkout-page .bx-soa-section-title {
  margin: 0;
  padding: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--color-text);
}
.checkout-page .change_city {
  margin-left: var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-brand);
  cursor: pointer;
}
.checkout-page .change-info,
.checkout-page .change-info.btn {
  margin-left: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.checkout-page .change-info:hover { color: var(--color-brand-hover); }

/* Buyer type: tabs (mock .checkout-tabs) */
.checkout-page .bx-soa-person-type { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0; }
.checkout-page .bx-soa-person-type .person-type { margin: 0; }
.checkout-page .person-type label {
  position: relative;
  display: inline-block;
  padding: 0 0 var(--space-2);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  cursor: pointer;
}
.checkout-page .person-type.active label {
  color: var(--color-text);
  border-bottom-color: var(--color-brand);
}
.checkout-page .person-type input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ---- Option cards: delivery, payment, saved profiles (mock .checkout-option-card) ---------- */
.checkout-page .bx-soa-pp { margin: 0; }
.checkout-page .bx-soa-pp-item-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-3);
  padding: 0;
}
.checkout-page .bx-soa-pp-item-container > .bx-soa-pp-company {
  width: auto;
  margin: 0;
  padding: 0;
}
.checkout-page .bx-soa-pp-company-inner {
  height: 100%;
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.checkout-page .bx-soa-pp-company-inner:hover { border-color: var(--color-border-strong); }
.checkout-page .bx-selected > .bx-soa-pp-company-inner,
.checkout-page .bx-soa-pp-company-inner.active {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
}
.checkout-page .bx-soa-pp-company-graf-container {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}
.checkout-page .bx-soa-pp-company-checkbox {
  position: static !important;
  display: inline-block !important;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 3px 0 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  accent-color: var(--color-brand);
}
.checkout-page .bx-soa-pp-company-label,
.checkout-page .bx-soa-pp-company-label span {
  margin: 0;
  padding: 0;
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  cursor: pointer;
}
.checkout-page .bx-soa-pp-company-label::before,
.checkout-page .bx-soa-pp-company-label::after { content: none !important; }
.checkout-page .bx-soa-pp-delivery-cost,
.checkout-page .bx-soa-pp-delivery-period {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding-left: calc(16px + var(--space-2));
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.checkout-page .bx-soa-pp-delivery-cost .bx-soa-pp-list-description {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}
.checkout-page .bx-soa-pp-company-description {
  margin-top: var(--space-2);
  padding-left: calc(16px + var(--space-2));
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
.checkout-page .bx-soa-pp-company-inject { padding-left: calc(16px + var(--space-2)); }
.checkout-page .bx-soa-more { margin-top: var(--space-5); }

/* Collapsed "recap" state of a completed section (mock .checkout-option-recap) */
.checkout-page .bx-compact-inner {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
}
.checkout-page .bx-compact-title { font-weight: var(--font-weight-medium); color: var(--color-text); }

/* ---- Buttons --------------------------------------------------------------------------------- */
.checkout-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-5);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.checkout-page .btn:hover { border-color: var(--color-brand); }
.checkout-page .btn-order-save,
.checkout-page .btn.btn-order-save {
  width: 100%;
  min-height: 52px;
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: var(--color-text-inverse);
  font-size: var(--font-size-md);
}
.checkout-page .btn-order-save:hover {
  border-color: var(--color-brand-hover);
  background: var(--color-brand-hover);
}

/* ---- Summary (mock .checkout-summary) -------------------------------------------------------- */
.checkout-page .bx-soa-total-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
}
.checkout-page .bx-soa-cart-total {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.checkout-page .bx-soa-cart-total-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-1) 0;
  border: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.checkout-page .bx-soa-cart-total-line .bx-soa-cart-d { color: var(--color-text); text-align: right; }
.checkout-page .bx-soa-cart-total-line-totals {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-md);
  color: var(--color-text);
}
.checkout-page .bx-soa-cart-total-line-totals .bx-soa-cart-d {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}
.checkout-page .bx-soa-price-free { color: var(--color-success); }
.checkout-page .bx-soa-coupon { margin: var(--space-4) 0 0; }
.checkout-page #bx-soa-order-main .bx-soa-coupon-input input.form-control {
  border-color: var(--color-border-strong);
  border-radius: var(--radius-md);
}
.checkout-page .bx-soa-cart-conditions { font-size: var(--font-size-sm); color: var(--color-text-muted); }
.checkout-page .licence_block {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-2);
}
.checkout-page .licence_block input[type="checkbox"] {
  position: static !important;
  display: inline-block !important;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  accent-color: var(--color-brand);
}
.checkout-page .licence_block label.license { flex: 1; margin: 0; padding: 0; cursor: pointer; }
.checkout-page .licence_block label.license::before,
.checkout-page .licence_block label.license::after { content: none !important; }
.checkout-page .licence_block a { color: var(--color-brand); }
.checkout-page .licence_block label.error { order: 3; width: 100%; color: var(--color-brand); }

/* ---- Details found on the live render --------------------------------------------------------- */
/* "Другой город" opens the city picker (scripts/order.js slideToggle sets an inline display);
   it shares .bx-soa-section-title-container with the titles, so re-hide it here. */
.checkout-page .bx-soa-section-location {
  display: none;
  width: 100%;
  margin: 0 0 var(--space-5);
}
/* City search (bitrix:sale.location.selector.search). Its stock CSS clips the field to a 25px
   .bx-ui-sls-container (overflow:hidden) while our generic input rule makes the two stacked inputs
   44px tall — the city name was cut in half. The field is redrawn here: .dropdown-block is the
   visible box, the inputs inside fill it, the suggestion pane drops below it. */
.checkout-page .bx-sls {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 480px;
}
.checkout-page .bx-sls .dropdown-block {
  order: 1;
  position: relative;
  box-sizing: border-box;
  height: 48px;
  padding: 0 44px 0 44px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: none;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}
.checkout-page .bx-sls .dropdown-block:focus-within { border-color: var(--color-brand); }
.checkout-page .bx-sls .dropdown-icon {
  top: 50%;
  left: 16px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: none;
  border: 2px solid var(--color-text-muted);
  border-radius: 50%;
  box-sizing: border-box;
}
.checkout-page .bx-sls .dropdown-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  background: var(--color-text-muted);
  transform: rotate(45deg);
}
.checkout-page .bx-sls .bx-ui-sls-container {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.checkout-page .bx-sls .bx-ui-sls-fake,
.checkout-page .bx-sls .bx-ui-sls-route {
  height: 100% !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0 !important;
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
  line-height: 46px;
  color: var(--color-text) !important;
}
.checkout-page .bx-sls .bx-ui-sls-route { color: var(--color-text-muted) !important; }
.checkout-page .bx-sls .dropdown-fade2white {
  top: 1px;
  right: 40px;
  width: 24px;
  height: calc(100% - 2px);
  background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--color-surface));
}
.checkout-page .bx-sls .bx-ui-sls-clear {
  top: 50%;
  right: 8px;
  width: 30px;
  height: 30px;
  margin: -15px 0 0;
  border-radius: 50%;
  background: none;
}
.checkout-page .bx-sls .bx-ui-sls-clear::before,
.checkout-page .bx-sls .bx-ui-sls-clear::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 1px;
  background: var(--color-text-muted);
  transform: rotate(45deg);
}
.checkout-page .bx-sls .bx-ui-sls-clear::after { transform: rotate(-45deg); }
.checkout-page .bx-sls .bx-ui-sls-clear:hover { background: var(--color-bg-subtle); }
.checkout-page .bx-sls .bx-ui-sls-loader { top: 50%; right: 8px; margin-top: -15px; }
.checkout-page .bx-sls .bx-ui-sls-pane {
  top: calc(100% + 4px);
  left: -1px;
  width: calc(100% + 2px);
  max-height: 320px;
  padding: var(--space-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.checkout-page .bx-sls .bx-ui-sls-variants .bx-ui-sls-variant,
.checkout-page .bx-sls .dropdown-item {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm, 6px);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}
.checkout-page .bx-sls .dropdown-item-text { color: var(--color-text-muted); }
.checkout-page .bx-sls .dropdown-item-text span { color: var(--color-text); }
.checkout-page .bx-sls .bx-ui-sls-variants .bx-ui-sls-variant:hover,
.checkout-page .bx-sls .bx-ui-sls-variant-active { background: var(--color-bg-subtle); }
.checkout-page .bx-sls .bx-ui-sls-error { color: var(--color-brand); }
.checkout-page .bx-sls .bx-ui-sls-error-message:empty { display: none; }
/* quick picks under the field, as small pills */
.checkout-page .bx-sls .bx-ui-sls-quick-locations.quick-locations {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
}
.checkout-page .bx-sls .quick-location-tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin: 0;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: var(--font-size-sm);
  line-height: 1;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.checkout-page .bx-sls .quick-location-tag::before,
.checkout-page .bx-sls .quick-location-tag::after { content: none; }
.checkout-page .bx-sls .quick-location-tag:hover { border-color: var(--color-brand); color: var(--color-brand); }
.checkout-page .bx-sls .bx-ui-sls-error-message { order: 3; }
.checkout-page .bx-soa-reference {
  margin-top: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Saved buyer profiles: wider cards, "Изменить" under the e-mail instead of on top of it */
#bx-soa-properties .bx-soa-pp-item-container { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.checkout-page .bx-soa-pp-company-props {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  margin-top: var(--space-2);
  padding-left: calc(16px + var(--space-2));
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.checkout-page .bx-soa-pp-company-props .bx-soa-pp-company-label,
.checkout-page .bx-soa-pp-company-props .bx-soa-pp-company-label span {
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
}
.checkout-page .bx-soa-change-profile {
  position: static;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.checkout-page .bx-soa-change-profile:hover { color: var(--color-brand-hover); }

/* Secondary buttons ("Добавить еще", "Продолжить"): the Bitrix theme paints them blue */
.checkout-page #bx-soa-order-main .btn-default,
.checkout-page #bx-soa-order-main .add-profile {
  margin-top: var(--space-4);
  border-color: var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: none;
}
.checkout-page #bx-soa-order-main .btn-default:hover,
.checkout-page #bx-soa-order-main .add-profile:hover { border-color: var(--color-brand); }
/* ---- Delivery & payment as a list of rows (mock .checkout-option-list), not a card grid ------
   Row: (radio + name) left, price / period right; "Подробнее" (js/checkout-shim.js) expands the
   description that Aspro would show as a "?" tooltip. */
#bx-soa-delivery .bx-soa-pp-item-container,
#bx-soa-paysystem .bx-soa-pp-item-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
#bx-soa-delivery .bx-soa-pp-item-container > .bx-soa-pp-company > .bx-soa-pp-company-inner,
#bx-soa-paysystem .bx-soa-pp-item-container > .bx-soa-pp-company > .bx-soa-pp-company-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-5);
  row-gap: var(--space-1);
  height: auto;
  padding: var(--space-4) var(--space-5);
}
.checkout-page .bx-soa-pp-company-inner > .bx-soa-pp-company-graf-container { grid-column: 1; grid-row: 1; }
.checkout-page .bx-soa-pp-company-inner > .bx-soa-pp-delivery-cost,
.checkout-page .bx-soa-pp-company-inner > .bx-soa-pp-delivery-period {
  grid-column: 2;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  text-align: right;
  white-space: nowrap;
}
.checkout-page .bx-soa-pp-company-inner > .bx-soa-pp-delivery-cost { grid-row: 1; font-size: var(--font-size-md); }
.checkout-page .bx-soa-pp-company-inner > .bx-soa-pp-delivery-period { grid-row: 2; font-size: var(--font-size-xs); }
.checkout-page .bx-soa-pp-list-termin { display: none; }
.checkout-page .mr-cost-pending .bx-soa-pp-delivery-cost .bx-soa-pp-list-description { font-size: 0; }
.checkout-page .mr-cost-pending .bx-soa-pp-delivery-cost .bx-soa-pp-list-description::after {
  content: "рассчитаем при выборе";
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
}
.checkout-page .mr-cost-free .bx-soa-pp-delivery-cost .bx-soa-pp-list-description { font-size: 0; }
.checkout-page .mr-cost-free .bx-soa-pp-delivery-cost .bx-soa-pp-list-description::after {
  content: "бесплатно";
  font-size: var(--font-size-md);
  color: var(--color-success);
}
/* the originals the toggle replaces */
.checkout-page .bx-soa-pp-company .hint,
.checkout-page .bx-soa-pp-company-inner > .bx-soa-pp-company-description { display: none !important; }
.checkout-page .bx-soa-pp-company-inner > .bx-soa-pp-company-inject,
.checkout-page .bx-soa-pp-company-inner > .mr-opt-desc { grid-column: 1 / -1; }
.checkout-page .bx-soa-pp-company-inner > .bx-soa-pp-company-inject:empty { display: none; }
.checkout-page .mr-opt-more {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 0 calc(16px + var(--space-2));
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  cursor: pointer;
}
.checkout-page .mr-opt-more::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}
.checkout-page .mr-opt-more[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
.checkout-page .mr-opt-more:hover { color: var(--color-brand-hover); }
.checkout-page .mr-opt-desc {
  margin: var(--space-1) 0 0;
  padding-left: calc(16px + var(--space-2));
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
}
/* A module's sentence in place of a price (OZON: "(доставка будет бесплатной)") — js/checkout-shim.js */
.checkout-page .mr-cost-note .bx-soa-pp-delivery-cost .bx-soa-pp-list-description {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  white-space: normal;
  color: var(--color-success);
}

/* OZON's pickup-point block (.bx-soa-pp-delivery-calculate, added by the OZON module only to its
   own row) — a full-width line under the name; its stock bright-blue square button is redrawn as
   the redesign's outline pill. */
.checkout-page .bx-soa-pp-company-inner > .bx-soa-pp-delivery-calculate {
  grid-column: 1 / -1;
  margin: var(--space-2) 0 0;
  padding: 0 0 0 calc(16px + var(--space-2));
}
.checkout-page .bx-soa-pp-delivery-calculate .bx-soa-pp-list-description { font-size: var(--font-size-sm); }
.checkout-page .ozon-pvz-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 0 var(--space-5);
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  color: var(--color-brand);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.checkout-page .ozon-pvz-select-btn:hover { background: var(--color-brand); color: var(--color-text-inverse); }

/* "OZON недоступен: заказ тяжелее 25 кг" under the delivery list (js/checkout-shim.js) */
.checkout-page .mr-ozon-note {
  width: 100%;
  margin: var(--space-3) 0 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Phones: there is no room for a price column next to a two-line name (the price column used to
   take the whole width and squeeze the name to 0px, so the words ran into each other). Stack it:
   name, then price and term under it, then "Подробнее". */
@media (max-width: 599px) {
  #bx-soa-delivery .bx-soa-pp-item-container > .bx-soa-pp-company > .bx-soa-pp-company-inner,
  #bx-soa-paysystem .bx-soa-pp-item-container > .bx-soa-pp-company > .bx-soa-pp-company-inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-1);
    padding: var(--space-4);
  }
  .checkout-page .bx-soa-pp-company-inner > .bx-soa-pp-company-graf-container { grid-column: 1; grid-row: auto; }
  .checkout-page .bx-soa-pp-company-inner > .bx-soa-pp-delivery-cost,
  .checkout-page .bx-soa-pp-company-inner > .bx-soa-pp-delivery-period {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    padding-left: calc(16px + var(--space-2));
    text-align: left;
    white-space: normal;
  }
  .checkout-page .bx-soa-pp-company-inner > .bx-soa-pp-delivery-cost { margin-top: var(--space-1); font-size: var(--font-size-md); }
  .checkout-page .bx-soa-pp-company-inner > .mr-opt-more { margin-top: var(--space-1); }
}

/* ---- Form details found on the mobile pass (2026-11-27) --------------------------------------- */
/* Buyer fields: Aspro pads .row-props 9px 10px, so the fields sat indented from the section title */
.checkout-page .bx-soa-customer .row-props { margin: 0 -12px; padding: 0; }
.checkout-page .bx-soa-customer .bx-soa-customer-field { margin: 0 0 var(--space-4); padding: 0 12px; }
.checkout-page .bx-soa-section-content { padding: 0; }
.checkout-page input::placeholder,
.checkout-page textarea::placeholder { color: var(--color-text-muted); opacity: 0.6; }
.checkout-page .bx-soa-customer-field textarea.form-control { min-height: 88px; }

/* "Продолжить": Aspro wraps it in 16px 11px 29px padding + a 16px margin */
.checkout-page .bx-soa-more { margin: var(--space-5) 0 0; padding: 0; }
.checkout-page #bx-soa-order-main .bx-soa-more .bx-soa-more-btn { margin-top: 0; }

/* Address + comment under the delivery list: Aspro pads each 10px (indented from the cards) */
.checkout-page .bx-soa-pp > [class*="col-"] > .bx-soa-pp-company-item { padding: 0; }
.checkout-page .bx-soa-pp > .bx-soa-extraprops { margin-top: var(--space-6); }
.checkout-page .bx-soa-title-subblock {
  margin: 0 0 var(--space-4);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--color-text);
}

/* "Поле … обязательно": Aspro positions it absolutely under the field, on top of the next label */
.checkout-page #bx-soa-order-main .bx-soa-tooltip.bx-soa-tooltip-static {
  position: static;
  display: block;
  width: auto;
  max-width: none;
  margin: var(--space-1) 0 0;
  padding: 0;
  opacity: 1;
  transform: none;
}
.checkout-page .bx-soa-tooltip .tooltip-arrow { display: none; }
.checkout-page .bx-soa-tooltip .tooltip-inner {
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: var(--font-size-xs);
  line-height: 1.4;
  text-align: left;
  color: var(--color-brand);
}
.checkout-page .has-error .form-control { border-color: var(--color-brand); }

/* Recap of a completed section: full width, not inset by Aspro's 9px 15px 32px */
.checkout-page .bx-compact-wrapper { margin: 0; padding: 0; }

@media (max-width: 599px) {
  .checkout-page .bx-soa-section { padding: var(--space-5) var(--space-4); }
  .checkout-page .bx-soa-total-wrapper { padding: var(--space-5) var(--space-4); }
  .checkout-page .bx-soa-section-title-container { margin-bottom: var(--space-4); }
}

/* ...but the submit button carries .btn-default too — keep it brand red */
.checkout-page #bx-soa-order-main .btn-order-save {
  margin-top: 0;
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: var(--color-text-inverse);
}
.checkout-page #bx-soa-order-main .btn-order-save:hover {
  border-color: var(--color-brand-hover);
  background: var(--color-brand-hover);
}
