/* ==========================================================================
   Checkout-only styles
   Loaded only on /personal/cart/ and /personal/order/make/
   Split from custom.css to avoid conflicts with parallel site/modal work.
   ========================================================================== */

.form-group.bx-soa-customer-field {
  max-width: 500px;
}

/* Корзина: кнопка "Быстрое оформление" отключена. */
#yastore-checkout-button {
  display: none !important;
}

/* Страница оформления заказа */
#bx-soa-paysystem {
  display: none !important;
}

#bx-soa-total .bx-soa-cart-total-button-container,
#bx-soa-total-mobile .bx-soa-cart-total-button-container {
  display: none !important;
}

#bx-soa-orderSave [data-save-button="true"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Поля транспортного модуля не показываем покупателю. */
[data-property-id-row="20"],
[data-property-id-row="21"],
[data-property-id-row="22"],
[data-property-id-row="30"],
[data-property-id-row="31"],
[data-property-id-row="32"] {
  display: none !important;
}

.checkout-location-tools {
  margin-top: 12px;
}

.checkout-location-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-location-chip {
  appearance: none;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid #d8dee8;
  border-radius: 18px;
  background: #fff;
  color: #1d314f;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.checkout-location-chip:hover,
.checkout-location-chip:focus {
  border-color: #e43e16;
  background: #fff7f4;
  color: #e43e16;
  outline: none;
}

/* 2026-08-18: extra quick cities are shown only in the desktop checkout. */
.checkout-location-chip--desktop-extra,
.checkout-location-other__desktop {
  display: none;
}

.checkout-location-other__mobile {
  display: inline;
}

@media (min-width: 998px) {
  .checkout-location-chip--desktop-extra {
    display: inline-block;
  }

  .checkout-location-other__desktop {
    display: inline;
  }

  .checkout-location-other__mobile {
    display: none;
  }
}

.checkout-location-or {
  margin: 10px 0 8px;
  color: #8a94a3;
  font-size: 13px;
  line-height: 18px;
}

.checkout-location-detect {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #cfd7e2;
  border-radius: 6px;
  background: #fff;
  color: #1d314f;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  transition: border-color .15s ease, background-color .15s ease;
}

.checkout-location-detect:hover,
.checkout-location-detect:focus {
  border-color: #aeb9c6;
  background: #f6f8fa;
  outline: none;
}

.checkout-location-detect__icon {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 997px) {
  .basket-item-amount-btn-plus,
  .basket-item-amount-btn-minus {
    border: 0;
    background-color: inherit;
  }

  .cart .bx-soa-cart-total {
    border: 0 !important;
  }
}

@media (max-width: 767.98px) {
  #bx-soa-orderSave [data-save-button="true"] {
    width: 100%;
    min-height: 50px;
    margin: 10px 0 0 !important;
  }

  .checkout-location-quick {
    gap: 7px;
  }

  .checkout-location-chip {
    flex: 1 1 calc(50% - 7px);
    min-width: 0;
    text-align: center;
  }

  .checkout-location-detect {
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .checkout-location-chip {
    flex-basis: 100%;
  }
}

@media (max-width: 1200px) {
  .cart .bx-soa-cart-total .bx-soa-cart-total-line .bx-soa-cart-d {
    width: inherit;
  }

  .table-shopping-cart__item:hover,
  .table-shopping-cart__item:hover td {
    background: #FFF;
  }
}

.bx-soa-pp-company-graf-container {
  border-radius: 6px;
}

#bx-soa-delivery .bx-soa-pp-company .bx-soa-pp-company-subTitle,
#bx-soa-delivery .bx-soa-pp-company .bx-soa-pp-company-logo {
  display: none;
}

#bx-soa-paysystem .bx-soa-pp-desc-container {
  display: none;
}

.SDEK_selectPVZ {
  background-color: #e43e16;
  color: #FFF;
  margin: .5rem 0;
}
.SDEK_selectPVZ:hover {
  color: #FFF;
}

/* ==========================================================================
   Checkout UI — согласованный адаптивный пакет 2026-08-10
   ========================================================================== */

/* Тип плательщика: два аккуратных равных переключателя без выхода за контейнер. */
#bx-soa-person-type .form-check-group.cart__block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 12px;
  width: 100%;
  max-width: 500px;
  margin-bottom: 30px;
  padding-top: 10px;
  box-sizing: border-box;
}

#bx-soa-person-type .form-check-group.cart__block > .bx-soa-custom-label {
  display: none;
}

#bx-soa-person-type .cart__block .form-check.box {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 58px;
  margin: 0;
  padding: 12px 14px;
  box-sizing: border-box;
}

#bx-soa-person-type .cart__block .box input {
  flex: 0 0 auto;
  margin-right: 12px;
}

#bx-soa-person-type .cart__block .box .form-check-label {
  min-width: 0;
  white-space: nowrap;
  overflow: visible;
}

/* Доставка: плитки способов доставки остаются основными.
   Блок выбора ПВЗ/постамата НЕ скрываем. В правом информационном блоке
   оставляем только интерактивные элементы транспортных модулей. */
#bx-soa-delivery .bx-soa-pp-desc-container {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  order: 3;
}

#bx-soa-delivery .bx-soa-pp-desc-container .bx-soa-pp-company-subTitle,
#bx-soa-delivery .bx-soa-pp-desc-container .bx-soa-pp-company-logo,
#bx-soa-delivery .bx-soa-pp-desc-container .bx-soa-pp-list {
  display: none !important;
}

#bx-soa-delivery .bx-soa-pp-desc-container .bx-soa-pp-company,
#bx-soa-delivery .bx-soa-pp-desc-container .bx-soa-pp-company-block {
  margin: 0;
  padding: 0;
}

/* Обычные длинные описания скрываем, но описание с кнопкой/полем выбора
   ПВЗ или постамата оставляем видимым. */
#bx-soa-delivery .bx-soa-pp-company-desc:not(:has(button)):not(:has(input)):not(:has(select)):not(:has(.SDEK_selectPVZ)) {
  display: none !important;
}

#bx-soa-pickup {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#bx-soa-delivery .bx-soa-pp-item-container {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

#bx-soa-delivery .bx-soa-pp-item-container > .row {
  margin-right: -7px;
  margin-left: -7px;
}

#bx-soa-delivery .bx-soa-pp-item-container .bx-soa-pp-company {
  flex: 0 0 25%;
  width: 25%;
  max-width: 25%;
  margin: 0;
  padding: 7px;
  box-sizing: border-box;
}

/* Карточка доставки повторяет подтверждённый макет:
   checkbox сверху слева, реальный логотип по центру, название внутри рамки. */
#bx-soa-delivery .checkout-delivery-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: auto !important;
  min-height: 178px;
  padding: 26px 14px 16px;
  border: 1px solid #d6dce3;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

#bx-soa-delivery .bx-soa-pp-company.bx-selected .checkout-delivery-tile {
  border-color: #78bf2a;
  background: #fbfff7;
  box-shadow: 0 0 0 1px rgba(120, 191, 42, .12);
}

#bx-soa-delivery .checkout-delivery-tile .bx-soa-pp-company-checkbox {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 20px;
  height: 20px;
  margin: 0;
  z-index: 2;
}

#bx-soa-delivery .checkout-delivery-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 72px;
  margin: 4px auto 10px;
  border-radius: 50%;
  background: #f6f8fa;
  box-sizing: border-box;
  overflow: hidden;
}

#bx-soa-delivery .checkout-delivery-logo-wrap .bx-soa-pp-company-image {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  flex: 0 0 auto;
  width: 76px;
  max-width: 76px;
  height: 44px;
  margin: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

#bx-soa-delivery .checkout-delivery-title {
  width: 100%;
  min-width: 0;
  margin-top: auto;
  color: #111820;
  text-align: center;
  overflow-wrap: anywhere;
}

#bx-soa-delivery .checkout-delivery-title__main {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

#bx-soa-delivery .checkout-delivery-title__detail {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
}

#bx-soa-delivery .bx-soa-pp-delivery-cost {
  display: none !important;
}

#bx-soa-pickup,
#bx-soa-pickup .bx-soa-section-content,
#bx-soa-pickup .bx_soa_pickup {
  max-width: 100%;
  box-sizing: border-box;
}

/* Native IPOL selector is a fallback only. When the map is embedded inline,
   v7 rules below hide the duplicate selector/strip. */
body:not(.checkout-sdek-inline-active) #bx-soa-delivery .SDEK_selectPVZ {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 10px 0 4px;
  padding: 10px 16px;
  border: 0;
  border-radius: 7px;
  background: #e43e16;
  color: #fff !important;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
}

/* Статус кнопки определения города. */
.checkout-location-detect.is-loading {
  cursor: wait;
  opacity: .7;
}

.checkout-location-status {
  min-height: 18px;
  margin-top: 7px;
  font-size: 12px;
  line-height: 18px;
}

.checkout-location-status:empty {
  display: none;
}

.checkout-location-status.is-loading {
  color: #7b8490;
}

.checkout-location-status.is-error {
  color: #b42318;
}

.checkout-location-status.is-success {
  color: #287a36;
}

/* Карточка товара в checkout — мобильный вариант 2: верхняя строка товар,
   нижняя строка количество + сумма. Никаких наложений на фото или рамку. */
@media (max-width: 1199.98px) and (min-width: 768px) {
  #bx-soa-delivery .bx-soa-pp-item-container .bx-soa-pp-company {
    flex: 0 0 33.333333%;
    width: 33.333333%;
    max-width: 33.333333%;
  }
}

@media (max-width: 767.98px) {
  .cart .basket-items-list {
    padding-right: 0;
    padding-left: 0;
  }

  .cart .basket-items-list-wrapper-compact .basket-items-list-item-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    margin: 0 0 12px;
    padding: 12px !important;
    border: 1px solid #dfe3e8 !important;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
  }

  .cart .basket-items-list-wrapper-compact td.basket-items-list-item-descriptions {
    display: block !important;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0 !important;
    padding: 0 0 12px !important;
    border: 0 !important;
    box-sizing: border-box;
  }

  .cart .basket-items-list-wrapper-compact .basket-items-list-item-descriptions-inner {
    position: relative;
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    width: 100%;
    min-width: 0;
  }

  .cart .basket-items-list-wrapper-compact .basket-item-block-image {
    grid-column: 1;
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    height: 76px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }

  .cart .basket-items-list-wrapper-compact .basket-item-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
  }

  .cart .basket-items-list-wrapper-compact .basket-item-image {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 76px !important;
    max-height: 76px !important;
    margin: 0 !important;
    object-fit: contain;
  }

  .cart .basket-items-list-wrapper-compact .basket-item-block-info {
    grid-column: 2;
    min-width: 0;
    padding: 0 30px 0 0;
    box-sizing: border-box;
  }

  .cart .basket-items-list-wrapper-compact .basket-item-info-name,
  .cart .basket-items-list-wrapper-compact .basket-item-info-name-link {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0 !important;
    font-size: 14px;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .cart .basket-items-list-wrapper-compact .basket-item-actions-remove.visible-xs {
    position: absolute;
    top: 0;
    right: 0;
    width: 26px;
    height: 26px;
    z-index: 2;
  }

  .cart .basket-items-list-wrapper-compact td.basket-items-list-item-amount,
  .cart .basket-items-list-wrapper-compact td.basket-items-list-item-price {
    display: flex !important;
    align-items: center;
    min-width: 0;
    min-height: 54px;
    padding: 12px 0 4px !important;
    border: 0 !important;
    border-top: 1px solid #edf0f3 !important;
    box-sizing: border-box;
  }

  .cart .basket-items-list-wrapper-compact td.basket-items-list-item-amount {
    grid-column: 1;
    justify-content: flex-start;
    padding-right: 12px !important;
  }

  .cart .basket-items-list-wrapper-compact td.basket-items-list-item-price {
    grid-column: 2;
    justify-content: flex-end;
    text-align: right;
    white-space: nowrap;
  }

  .cart .basket-items-list-wrapper-compact .basket-item-block-amount {
    justify-content: flex-start;
    margin: 0;
    padding: 0;
  }

  .cart .basket-items-list-wrapper-compact .basket-item-block-price {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .cart .basket-items-list-wrapper-compact .basket-item-block-price > div {
    text-align: right;
  }

  .cart .basket-items-list-wrapper-compact .basket-item-price-current-text {
    font-size: 17px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .cart .basket-items-list-wrapper-compact .basket-item-price-title,
  .cart .basket-items-list-wrapper-compact .basket-item-price-difference {
    display: none !important;
  }

  #bx-soa-person-type .form-check-group.cart__block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 10px;
  }

  #bx-soa-person-type .cart__block .form-check.box {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 10px 10px;
    border-width: 3px;
  }

  #bx-soa-person-type .cart__block .box input {
    flex: 0 0 auto;
    margin-right: 8px;
  }

  #bx-soa-person-type .cart__block .box .form-check-label {
    min-width: 0;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
  }

  #bx-soa-delivery .bx-soa-pp-item-container .bx-soa-pp-company {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
  }

  #bx-soa-delivery .checkout-delivery-tile {
    min-height: 170px;
    padding: 24px 10px 14px;
  }

  #bx-soa-delivery .checkout-delivery-logo-wrap {
    width: 86px;
    height: 68px;
  }

  #bx-soa-delivery .checkout-delivery-logo-wrap .bx-soa-pp-company-image {
    width: 72px;
    max-width: 72px;
    height: 42px;
  }

  #bx-soa-delivery .checkout-delivery-title__main {
    font-size: 14px;
  }

  #bx-soa-delivery .checkout-delivery-title__detail {
    font-size: 13px;
  }
}

@media (max-width: 339.98px) {
  #bx-soa-person-type .form-check-group.cart__block {
    grid-template-columns: 1fr;
  }

  #bx-soa-delivery .bx-soa-pp-item-container .bx-soa-pp-company {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .cart .basket-items-list-wrapper-compact .basket-items-list-item-container {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px !important;
  }

  .cart .basket-items-list-wrapper-compact .basket-items-list-item-descriptions-inner {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }

  .cart .basket-items-list-wrapper-compact .basket-item-block-image,
  .cart .basket-items-list-wrapper-compact .basket-item-image-link {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 64px;
  }

  .cart .basket-items-list-wrapper-compact .basket-item-image {
    max-width: 64px !important;
    max-height: 64px !important;
  }
}


/* ========================================================================
   Checkout v4 — location confirmation + mobile payer rows
   ======================================================================== */
.checkout-location-other {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  background: #fff;
  color: #1d314f;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.checkout-location-other:hover,
.checkout-location-other:focus {
  border-color: #e43e16;
  background: #fff7f4;
  color: #e43e16;
  outline: none;
}

.checkout-location-help {
  max-width: 620px;
  margin-top: 8px;
  color: #6f7885;
  font-size: 12px;
  line-height: 1.45;
}

.checkout-location-status.is-info {
  color: #526071;
}

@media (max-width: 767.98px) {
  /* Each payer type occupies its own row on phones. */
  #bx-soa-person-type .form-check-group.cart__block {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
  }

  #bx-soa-person-type .form-check-group.cart__block > .form-check.box {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
  }

  #bx-soa-person-type .form-check-group.cart__block > .form-check.box .form-check-input {
    flex: 0 0 auto !important;
    margin-right: 10px !important;
  }

  #bx-soa-person-type .form-check-group.cart__block > .form-check.box .form-check-label {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow: hidden !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
  }

  .checkout-location-other,
  .checkout-location-detect {
    width: 100%;
  }

  .checkout-location-help {
    max-width: 100%;
    font-size: 12px;
  }
}


/* ==========================================================================
   Checkout / cart v5 — single totals, conditional address, compact mobile cart
   ========================================================================== */

/* ZIP is a technical field. It becomes visible only if server validation
   explicitly requires manual input. */
#bx-soa-region .checkout-zip-property {
  display: none !important;
}
#bx-soa-region .checkout-zip-property.is-visible {
  display: block !important;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e1a33a;
  border-radius: 8px;
  background: #fffaf0;
}
.checkout-zip-hint {
  margin-top: 6px;
  color: #7a5b18;
  font-size: 12px;
  line-height: 1.4;
}

/* Contextual address under the selected address-delivery method. */
.checkout-delivery-details {
  width: 100%;
  max-width: 680px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #dfe5eb;
  border-radius: 10px;
  background: #fbfcfd;
  box-sizing: border-box;
}
.checkout-delivery-details__title {
  margin-bottom: 6px;
  color: #020d18;
  font-family: "Artegra Sans Extended", "Artegra Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.checkout-delivery-details__hint {
  margin-bottom: 12px;
  color: #647181;
  font-size: 13px;
  line-height: 1.45;
}
.checkout-delivery-details__hint.is-warning {
  color: #9a6412;
}
.checkout-delivery-details .bx-soa-customer-field {
  position: relative;
  max-width: 100% !important;
  margin-bottom: 0;
}
.checkout-delivery-details .bx-soa-custom-label {
  display: block;
  margin-bottom: 6px;
}
.checkout-address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10020;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #cfd8e3;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(2, 13, 24, .14);
}
.checkout-address-suggestion {
  appearance: none;
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
  color: #1d314f;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.checkout-address-suggestion:last-child { border-bottom: 0; }
.checkout-address-suggestion:hover,
.checkout-address-suggestion:focus {
  background: #f4f7fa;
  outline: none;
}
.checkout-address-status {
  min-height: 17px;
  margin-top: 5px;
  color: #778391;
  font-size: 11px;
  line-height: 1.4;
}

/* A transport module may have its own city control. After it is safely
   synchronized from Bitrix LOCATION, it is not shown to the customer. */
.checkout-transport-city-autofilled {
  display: none !important;
}

/* Standalone /personal/cart/: total only after the product list; do not make it
   a second sticky header on phones. */
.checkout-cart-page [data-entity="basket-total-block"] {
  margin-top: 14px;
}

@media (max-width: 767.98px) {
  /* The desktop checkout sidebar must not duplicate the mobile total. */
  #bx-soa-total {
    display: none !important;
  }

  #bx-soa-total-mobile.checkout-mobile-total {
    display: block !important;
    width: 100%;
    margin: 24px 0 12px !important;
  }

  #bx-soa-total-mobile .bx-soa-cart-total {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid #e1e5ea !important;
    box-shadow: none !important;
    box-sizing: border-box;
  }

  /* One final order button only: the cloned total never contains a visible action. */
  #bx-soa-total-mobile .bx-soa-cart-total-button-container {
    display: none !important;
  }

  /* Compact product card, common to /personal/cart/ and embedded checkout basket. */
  .cart .basket-items-list-wrapper-compact td.basket-items-list-item-price-for-one {
    display: none !important;
  }

  .cart .basket-items-list-wrapper-compact .basket-item-actions-remove,
  .cart .basket-items-list-wrapper-compact .basket-item-actions-remove.d-block {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 28px !important;
    height: 28px !important;
    z-index: 3;
  }

  .checkout-cart-page .basket-checkout-container,
  .checkout-cart-page .basket-checkout-container-fixed,
  .checkout-cart-page .basket-checkout-container-fixed-hide {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .checkout-cart-page .basket-checkout-section-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .checkout-cart-page .basket-checkout-block,
  .checkout-cart-page .basket-checkout-block-total,
  .checkout-cart-page .basket-checkout-block-total-price,
  .checkout-cart-page .basket-checkout-block-btn {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left;
  }

  .checkout-cart-page .basket-coupon-block-total-price-current {
    font-size: 30px !important;
    line-height: 1.15;
    text-align: right;
  }

  .checkout-cart-page .basket-btn-checkout {
    width: 100%;
    min-height: 52px;
  }

  /* Leave enough scrolling room above the site's fixed bottom navigation and messengers. */
  .cart.page.wrapper {
    padding-bottom: 190px !important;
  }

  #bx-soa-orderSave {
    padding-bottom: 24px;
  }

  .checkout-delivery-details {
    max-width: 100%;
    padding: 14px 12px;
  }
}

@media (min-width: 768px) {
  #bx-soa-total-mobile.checkout-mobile-total {
    display: none !important;
  }
}

/* ==========================================================================
   Checkout v13 — canonical transport widgets (SDEK + Dellin)
   2026-08-18: one responsive layout; no legacy popup geometry in checkout.
   ========================================================================== */

.checkout-module-address-bridge,
.checkout-address-property-bridge {
  display: none !important;
}

body.checkout-sdek-inline-active #SDEK_mask,
body.checkout-sdek-inline-active #SDEK_closer,
body.checkout-sdek-inline-active #SDEK_head,
body.checkout-sdek-inline-active #SDEK_info,
body.checkout-sdek-inline-active #IPOLSDEK_injectHere,
body.checkout-sdek-inline-active .sdek_pvzLair,
body.checkout-sdek-inline-active .SDEK_selectPVZ {
  display: none !important;
}

.checkout-sdek-inline {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 14px 0 22px;
  padding: 14px;
  border: 1px solid #dfe5eb;
  border-radius: 10px;
  background: #fbfcfd;
  box-sizing: border-box;
}

.checkout-sdek-inline__title {
  margin: 0 0 10px;
  color: #020d18;
  font-family: "Artegra Sans Extended", "Artegra Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.checkout-sdek-inline__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}

.checkout-sdek-inline__body {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 500px;
}

body.checkout-sdek-inline-active #SDEK_pvz {
  position: relative !important;
  z-index: 20 !important;
  display: block !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 500px !important;
  min-height: 500px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 8px;
  background: #fff;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.checkout-sdek-inline-active #SDEK_map {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  float: none !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 500px !important;
  min-height: 500px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Only the root Yandex Maps element follows the checkout container.
   Internal ymaps-* layers keep geometry calculated by the API. */
body.checkout-sdek-inline-active #SDEK_map > ymaps {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

.checkout-sdek-points {
  display: flex;
  flex-direction: column;
  width: 300px;
  min-width: 0;
  height: 500px;
  overflow: hidden;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}

.checkout-sdek-points__title {
  flex: 0 0 auto;
  padding: 12px 12px 8px;
  color: #111820;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.checkout-sdek-points__search {
  flex: 0 0 auto;
  display: block;
  width: calc(100% - 20px);
  height: 40px;
  margin: 0 10px 10px;
  padding: 8px 10px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #fff;
  color: #26384a;
  font: inherit;
  font-size: 13px;
  line-height: 22px;
  box-sizing: border-box;
  outline: none;
}

.checkout-sdek-points__search:focus {
  border-color: #8da0b4;
}

.checkout-sdek-points__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border-top: 1px solid #edf0f3;
  -webkit-overflow-scrolling: touch;
}

.checkout-sdek-point {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 11px;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
  color: #26384a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.checkout-sdek-point:hover,
.checkout-sdek-point:focus,
.checkout-sdek-point.is-selected {
  background: #f3f7fa;
  outline: none;
}

.checkout-sdek-point.is-selected {
  box-shadow: inset 3px 0 0 #78bf2a;
}

.checkout-sdek-point__name,
.checkout-sdek-point__meta {
  display: block;
}

.checkout-sdek-point__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.checkout-sdek-point__meta {
  margin-top: 4px;
  color: #6f7b88;
  font-size: 11px;
  line-height: 1.4;
}

.checkout-sdek-points__empty {
  display: none;
  flex: 0 0 auto;
  padding: 12px;
  color: #6f7b88;
  font-size: 12px;
  line-height: 1.4;
}

.checkout-sdek-inline__selection {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #d9e2ea;
  border-radius: 8px;
  background: #fff;
  color: #26384a;
  font-size: 13px;
  line-height: 1.4;
}

.checkout-sdek-inline__selection.is-visible {
  display: block;
}

/* Dellin keeps its own module UI. We only guarantee a real responsive map host. */
#bx-soa-dellin,
#bx-soa-dellin .bx-soa-section-content,
#bx-soa-dellin .col,
#dellinMap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#dellinMap {
  display: block;
  height: 420px;
  min-height: 320px;
}

.checkout-delivery-total-pending-v12 .bx-soa-cart-d {
  opacity: .7;
}

.checkout-save-pending-v12 {
  pointer-events: none !important;
  opacity: .55 !important;
  cursor: wait !important;
}

@media (max-width: 767.98px) {
  .checkout-sdek-inline {
    margin: 10px 0 18px;
    padding: 8px;
    overflow: hidden;
  }

  .checkout-sdek-inline__title {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .checkout-sdek-inline__layout {
    display: block;
  }

  .checkout-sdek-inline__body,
  body.checkout-sdek-inline-active #SDEK_pvz,
  body.checkout-sdek-inline-active #SDEK_map {
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(300px, 58vh, 380px) !important;
    min-height: 300px !important;
  }

  .checkout-sdek-points {
    display: none;
  }

  .checkout-sdek-inline__selection {
    margin-top: 8px;
    padding: 9px 10px;
    font-size: 12px;
  }

  #bx-soa-dellin .col {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  #dellinMap {
    height: 360px !important;
    min-height: 320px !important;
    margin-bottom: 10px !important;
  }
}

@media (max-width: 767.98px) and (orientation: landscape) {
  .checkout-sdek-inline__body,
  body.checkout-sdek-inline-active #SDEK_pvz,
  body.checkout-sdek-inline-active #SDEK_map,
  #dellinMap {
    height: min(68vh, 340px) !important;
    min-height: 280px !important;
  }
}

/* 2026-08-19: basket product description is a safe link area; native controls remain independent. */
#basket-root .basket-items-list-item-descriptions[data-detail-url] {
  cursor: pointer;
}

#basket-root .basket-items-list-item-descriptions[data-detail-url] a,
#basket-root .basket-items-list-item-descriptions[data-detail-url] button,
#basket-root .basket-items-list-item-descriptions[data-detail-url] input,
#basket-root .basket-items-list-item-descriptions[data-detail-url] select,
#basket-root .basket-items-list-item-descriptions[data-detail-url] textarea {
  cursor: auto;
}
