#smart-checkout {
  margin-top: 20px;
  margin-bottom: 24px;
}

#smart-checkout,
#smart-checkout * {
  box-sizing: border-box;
}

body.smart-checkout-page main {
  padding-bottom: 0;
}

#smart-checkout .row {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
}

#smart-checkout [class*="col-"] {
  float: none;
  min-width: 0;
  position: relative;
}

#smart-checkout .form-label {
  display: block;
  line-height: 1.35;
  margin-bottom: 6px;
  position: static;
}

#smart-checkout .form-control,
#smart-checkout .form-select,
#smart-checkout textarea {
  clear: both;
  display: block;
  float: none;
  height: auto;
  line-height: 1.5;
  min-height: 42px;
  position: relative;
  width: 100%;
}

#smart-checkout select.form-select {
  padding-right: 36px;
}

.sc-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sc-heading h1 {
  margin: 0;
}

.sc-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.sc-main,
.sc-sidebar {
  display: grid;
  gap: 16px;
}

.sc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  clear: both;
  overflow: visible;
  padding: 16px;
}

.sc-card h3 {
  font-size: 18px;
  margin: 0 0 14px;
}

.sc-radio,
.sc-checkbox {
  display: block;
  margin: 8px 0;
}

.sc-payments {
  display: grid;
  gap: 6px;
}

.sc-cart-lines {
  display: grid;
  gap: 10px;
}

.sc-cart-line {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 72px auto;
}

.sc-cart-line strong,
.sc-cart-line small {
  display: block;
}

.sc-cart-line small,
.sc-location-note {
  color: #6b7280;
}

.sc-promo-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 8px;
}

.sc-total-row,
.sc-grand-total {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.sc-discount-row {
  color: #15803d;
}

.sc-free-shipping {
  border-radius: 6px;
  font-size: 13px;
  margin: 8px 0;
  padding: 8px 10px;
}

.sc-free-shipping.is-reached {
  background: #dcfce7;
  color: #166534;
}

.sc-free-shipping.is-pending {
  background: #fff7ed;
  color: #9a3412;
}

.sc-grand-total {
  border-top: 1px solid #e5e7eb;
  font-size: 18px;
  margin-top: 6px;
  padding-top: 14px;
}

.sc-summary-confirm {
  display: block !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-top: 14px;
  min-height: 54px;
  position: static !important;
  width: 100% !important;
}

.sc-alert {
  margin-bottom: 16px;
}

.sc-payment-page {
  margin: 0 auto;
  max-width: 520px;
  min-height: 0;
  padding-bottom: 48px;
}

.sc-payment-page .sc-card {
  min-height: 0;
  padding: 14px;
}

.sc-payment-frame {
  clear: both;
  display: block;
  min-height: 0;
  overflow: visible;
  padding-bottom: 52px;
  position: relative;
  width: 100%;
}

.sc-payment-frame form,
.sc-payment-frame iframe,
.sc-payment-frame > div {
  max-width: 100%;
}

.sc-payment-frame form {
  margin: 0 auto !important;
  max-width: 460px !important;
}

.sc-payment-frame label,
.sc-payment-frame .form-label {
  margin-bottom: 4px !important;
}

.sc-payment-frame .form-control,
.sc-payment-frame input,
.sc-payment-frame select {
  min-height: 38px !important;
}

.sc-payment-frame .form-group,
.sc-payment-frame .mb-3,
.sc-payment-frame .row {
  margin-bottom: 10px !important;
}

.sc-payment-frame iframe {
  display: block;
  height: 42px !important;
  min-height: 42px;
}



.sc-final-actions {
  margin-bottom: 24px;
}

.sc-confirm-mobile,
.sc-confirm-desktop {
  display: block !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  min-height: 52px;
  margin-top: 16px;
  position: static !important;
  width: 100% !important;
}

.sc-confirm-desktop {
  display: block !important;
}


@media (min-width: 992px) {
  .sc-layout {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  .sc-sidebar {
    position: static;
  }

  .sc-final-actions {
    display: none !important;
  }

  .sc-confirm-mobile {
    display: none !important;
  }

}

/* Куриерски лога (Smart Checkout Checkout) — истински лога на куриерите */
/* wrap (не nowrap!) — плочките се пренасят на нов ред, за да не разпъват формата */
.sc-courier-logos{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 12px;max-width:100%}
.sc-courier-tile{border:2px solid #e3e3e3;border-radius:8px;background:#fff;padding:5px 9px;cursor:pointer;transition:border-color .15s,box-shadow .15s;flex:0 0 auto}
.sc-courier-tile:hover{border-color:#b9b9b9}
.sc-courier-tile.active{border-color:#008060;box-shadow:0 0 0 2px rgba(0,128,96,.18)}
.sc-logo{display:block;width:76px;height:22px;background-repeat:no-repeat;background-position:center;background-size:contain;text-indent:-9999px;overflow:hidden;white-space:nowrap}
.sc-logo-econt{background-image:url("../image/couriers/econt-logo.webp")}
.sc-logo-speedy{background-image:url("../image/couriers/speedy-logo.webp")}
.sc-logo-boxnow{background-image:url("../image/couriers/boxnow-logo.webp")}
.sc-logo-pigeon{background-image:url("../image/couriers/pigeon-logo.webp")}
.sc-logo-sameday{background-image:url("../image/couriers/sameday-logo.webp")}
.sc-logo-pickup{background-image:url("../image/couriers/pickup.svg")}

/* Мобилна подредба — колоните на цял ред, за да не се застъпват полетата */
#smart-checkout .row > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
}
@media (max-width: 767px) {
  #smart-checkout .row > [class*="col-"] { margin-bottom: 12px; }
  #smart-checkout .sc-courier-logos { flex-wrap: wrap; }
}
@media (min-width: 768px) {
  #smart-checkout .row > .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  #smart-checkout .row > .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  #smart-checkout .row > .col-md-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
}

/* Резервирано място за абсолютния футър на темата (по-малко на мобилно, където футърът е по-висок).
   Футърът на темата на demo-v4 е ~661px висок на мобилно, затова резервираме 680px, за да не
   покрива последното поле (бонус точки) в секция „Отстъпки". */
@media (max-width: 991px) {
  #container > main { padding-bottom: 680px !important; }
}

/* ==========================================================================
   TAXTA SKIN v2 (2026-07-21) — адаптирана e-commerce структура:
   ДВЕ колони (лява 1/3: данни+доставка+адрес; дясна 2/3: плащане+количка+завършване),
   заглавия = чист текст 14px bold uppercase #303841 (БЕЗ лента),
   количка = таблица със снимка 120px, Ubuntu, зелен CTA #3CC472, квадратно.
   ========================================================================== */
#smart-checkout {
  font-family: "Ubuntu", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #303841;
}

/* Двуколонен grid като taxta (405px / 798px ≈ 1:2). */
#smart-checkout .sc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 25px;
  align-items: start;
}
#smart-checkout .sc-col { display: grid; gap: 25px; align-content: start; }
@media (max-width: 991px) {
  #smart-checkout .sc-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Заглавие на страницата */
#smart-checkout .sc-heading h1 { font-size: 22px; font-weight: 700; }

/* Секция — лек контур, вътрешен отстъп 15px (както checkout-section на taxta). */
#smart-checkout .sc-card {
  background: #fff;
  border: 1px solid #e4e6e8;
  border-radius: 0;
  padding: 15px;
  margin: 0;
}
/* Заглавие на секция — ЧИСТ текст (без лента), 14px bold uppercase. */
#smart-checkout .sc-card > h3 {
  background: none; border: 0; padding: 0;
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  color: #303841; margin: 0 0 15px;
}
#smart-checkout .sc-card-body { margin: 0; }

/* Полета — квадратни, зелен фокус. */
#smart-checkout .form-control,
#smart-checkout .form-select,
#smart-checkout textarea { border: 1px solid #d5d8db; border-radius: 0; font-size: 14px; }
#smart-checkout .form-control:focus,
#smart-checkout .form-select:focus,
#smart-checkout textarea:focus {
  border-color: #3cc472; box-shadow: 0 0 0 2px rgba(60,196,114,.15); outline: none;
}

/* Куриерски плочки */
#smart-checkout .sc-courier-tile {
  border: 1px solid #d5d8db; border-radius: 0; background: #fff;
  padding: 6px 8px; margin: 0 6px 6px 0;
}
#smart-checkout .sc-courier-tile.active,
#smart-checkout .sc-courier-tile[aria-pressed="true"] {
  border-color: #3cc472; box-shadow: inset 0 0 0 1px #3cc472;
}

/* Радио редове (доставка/плащане) — как taxta ги реди. */
#smart-checkout .sc-radio,
#smart-checkout .sc-checkbox { display: block; padding: 7px 0; margin: 0; }
#smart-checkout .sc-radio input,
#smart-checkout .sc-checkbox input { margin-right: 8px; }

/* ------ Количка: ТАБЛИЦА като taxta (снимка/име/модел/кол-во/ед.цена/общо) ------ */
#smart-checkout .sc-cart-table-wrap { overflow-x: auto; }
#smart-checkout .sc-cart-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
#smart-checkout .sc-cart-table th,
#smart-checkout .sc-cart-table td {
  border: 1px solid #e4e6e8; padding: 8px; vertical-align: middle;
}
#smart-checkout .sc-cart-table thead th {
  background: #f7f8f9; font-weight: 700; text-align: center; white-space: nowrap;
}
#smart-checkout .sc-cart-table .td-image { width: 90px; text-align: center; }
#smart-checkout .sc-cart-table .td-image img { max-width: 80px; height: auto; display: inline-block; }
#smart-checkout .sc-cart-table .td-name a,
#smart-checkout .sc-cart-table .td-name strong { font-weight: 400; color: #303841; }
#smart-checkout .sc-cart-table .td-model { color: #6b7280; text-align: center; }
#smart-checkout .sc-cart-table .td-qty { width: 84px; text-align: center; }
#smart-checkout .sc-cart-table .td-qty .sc-qty { width: 68px; margin: 0 auto; text-align: center; }
#smart-checkout .sc-cart-table .td-price,
#smart-checkout .sc-cart-table .td-total { text-align: right; white-space: nowrap; }

/* Тотали под таблицата — десни редове като taxta. */
#smart-checkout .sc-totals { margin-top: 10px; margin-left: auto; max-width: 340px; }
#smart-checkout .sc-total-row,
#smart-checkout .sc-grand-total {
  display: flex; justify-content: space-between; gap: 12px; padding: 6px 0;
  border-bottom: 1px dotted #e4e6e8;
}
#smart-checkout .sc-grand-total {
  border-bottom: 0; border-top: 2px solid #e4e6e8;
  font-size: 16px; font-weight: 700; margin-top: 4px;
}
#smart-checkout .sc-discount-row { color: #15803d; }

/* Потвърждението наследява .btn-primary от активната тема. */
#smart-checkout .sc-confirm { width: 100%; }

/* „Приложи" бутони — дискретни. */
#smart-checkout [data-sc-apply] { border-radius: 0; }
#smart-checkout .sc-promo-row {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-top: 8px;
}

/* Fix: базовият .sc-cart-line е display:grid (за стария layout) — в таблицата
   редът трябва да е нормален table-row, иначе клетките колабират. */
#smart-checkout .sc-cart-table .sc-cart-line { display: table-row; grid-template-columns: none; }
#smart-checkout .sc-cart-table .sc-cart-line strong,
#smart-checkout .sc-cart-table .sc-cart-line small { display: inline; }

/* ------ Куриерски лога v2: ЕДРИ, изпълват плочката (не точка на бял фон) ------ */
#smart-checkout .sc-courier-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(106px, 1fr));
  gap: 8px;
}
#smart-checkout .sc-courier-tile {
  width: 100%; margin: 0; padding: 6px;
  border: 1px solid #d5d8db; border-radius: 0; background: #fff;
  display: flex; align-items: center; justify-content: center;
  min-height: 54px;
}
#smart-checkout .sc-courier-tile:hover { border-color: #3cc472; }
#smart-checkout .sc-courier-tile.active {
  border-color: #3cc472; box-shadow: inset 0 0 0 2px #3cc472;
}
#smart-checkout .sc-logo {
  width: 100%; height: 40px;
  background-size: contain; background-position: center; background-repeat: no-repeat;
}

/* ------ BOX NOW = голям банер на цял ред + мобилни фиксове ------ */
#smart-checkout .sc-courier-tile[data-code="boxnow"] { padding: 4px 6px; background: #44D62C; border-color: #44D62C; }
#smart-checkout .sc-courier-tile[data-code="boxnow"]:hover { border-color: #2fb31b; }
#smart-checkout .sc-courier-tile[data-code="boxnow"].active { border-color: #1e8f10; box-shadow: inset 0 0 0 2px #1e8f10; }
#smart-checkout .sc-courier-tile[data-code="boxnow"] .sc-logo { height: 48px; }

@media (max-width: 600px) {
  #smart-checkout .sc-courier-logos { grid-template-columns: repeat(2, 1fr); }
  /* количката: скрий колона „Модел" на телефон, за да не разпъва */
  #smart-checkout .sc-cart-table .td-model { display: none; }
  #smart-checkout .sc-cart-table { font-size: 12px; }
  #smart-checkout .sc-cart-table th, #smart-checkout .sc-cart-table td { padding: 6px 4px; }
  #smart-checkout .sc-cart-table .td-image { width: 60px; }
  #smart-checkout .sc-cart-table .td-image img { max-width: 52px; }
  #smart-checkout .sc-totals { max-width: 100%; }
  #smart-checkout .sc-heading { flex-wrap: wrap; }
}

/* Количка като таксата: Снимка | Име(+модел под него) | Кол-во | Общо. Дясно подравняване. */
#smart-checkout .sc-cart-table .td-name strong { display:block; font-weight:400; }
#smart-checkout .sc-cart-table .td-name small { display:block; color:#8a9099; font-size:11px; margin-top:2px; }
#smart-checkout .sc-cart-table .td-qty { width:70px; }
#smart-checkout .sc-cart-table .td-qty .sc-qty { width:56px; padding:4px; text-align:center; }
#smart-checkout .sc-cart-table .td-total { text-align:right; white-space:nowrap; font-weight:600; }
/* Поле за описание под количката (в „Завършване"), над бутона */
#smart-checkout .sc-comment { margin-bottom:12px; }

/* ------ Плащане като таксата: карти с икона (заглавие горе, икона отдолу), избрано=зелено ------ */
#smart-checkout .sc-pay-card:hover { border-color:#3cc472; }
#smart-checkout .sc-pay-card:has(input:checked) { border-color:#3cc472; background:#eafaf0; box-shadow:inset 0 0 0 1px #3cc472; }
#smart-checkout .sc-pay-card:has(input:checked) .sc-pay-icon { opacity:1; }
#smart-checkout .sc-pay-check { position:absolute; top:6px; right:6px; width:18px; height:18px; border-radius:50%; background:#3cc472; opacity:0; }
#smart-checkout .sc-pay-card:has(input:checked) .sc-pay-check { opacity:1; }
#smart-checkout .sc-pay-check::after { content:""; position:absolute; left:6px; top:3px; width:4px; height:8px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }

/* FIX количка: таблицата пълни 100%, „Продукт" взима свободното място, останалите тесни */
#smart-checkout .sc-cart-table { width:100% !important; table-layout:auto; }
#smart-checkout .sc-cart-table .td-image { width:96px; }
#smart-checkout .sc-cart-table .td-name  { width:auto; white-space:normal; }
#smart-checkout .sc-cart-table .td-name strong { font-size:14px; }
#smart-checkout .sc-cart-table .td-qty   { width:80px; }
#smart-checkout .sc-cart-table .td-total { width:100px; }

/* FIX2: форсирам табличния модел (нещо сменяше display на клетките) */
#smart-checkout .sc-cart-table { display:table !important; width:100% !important; }
#smart-checkout .sc-cart-table thead { display:table-header-group !important; }
#smart-checkout .sc-cart-table tbody { display:table-row-group !important; }
#smart-checkout .sc-cart-table tr { display:table-row !important; }
#smart-checkout .sc-cart-table th,
#smart-checkout .sc-cart-table td { display:table-cell !important; float:none !important; }

/* Количка 1:1 като таксата: 6 колони + количество с Обнови/Премахни */
#smart-checkout .sc-cart-table .td-image { width:96px; }
#smart-checkout .sc-cart-table .td-name { width:auto; }
#smart-checkout .sc-cart-table .td-name a { color:#2f6fb0; text-decoration:none; }
#smart-checkout .sc-cart-table .td-name a:hover { text-decoration:underline; }
#smart-checkout .sc-cart-table .td-model { width:120px; color:#6b7280; font-size:12px; white-space:normal; }
#smart-checkout .sc-cart-table .td-qty { width:150px; }
#smart-checkout .sc-cart-table .td-price,
#smart-checkout .sc-cart-table .td-total { width:96px; text-align:right; white-space:nowrap; }
#smart-checkout .sc-cart-table .td-total { font-weight:600; }
#smart-checkout .sc-qty-group { display:flex; align-items:stretch; gap:0; }
#smart-checkout .sc-qty-group .sc-qty { width:52px; text-align:center; border-radius:0; padding:4px; }
#smart-checkout .sc-qty-group button { border:0; width:32px; cursor:pointer; color:#fff; font-size:13px; }
#smart-checkout .sc-qty-group .sc-cart-update { background:#3cc472; }
#smart-checkout .sc-qty-group .sc-cart-update:hover { background:#34ab63; }
#smart-checkout .sc-qty-group .sc-cart-remove { background:#e0524d; }
#smart-checkout .sc-qty-group .sc-cart-remove:hover { background:#c9433f; }

/* ==== Количка 1:1 с таксата (тотали сиви #eee редове, хедър сив, padding 8/14) ==== */
#smart-checkout .sc-cart-table { border-collapse:separate; border-spacing:0; font-size:14px; }
#smart-checkout .sc-cart-table thead th {
  background:#eee !important; color:#333; font-weight:700; text-transform:none;
  text-align:center; padding:8px 14px; font-size:13px; border:0;
}
#smart-checkout .sc-cart-table td { padding:8px 14px; border:0; border-bottom:1px solid #eee; }
#smart-checkout .sc-cart-table .td-name a { color:#277cd9; }
#smart-checkout .sc-cart-table .td-image { text-align:center; }
#smart-checkout .sc-cart-table .td-model { text-align:center; }

/* Тотали = сиви редове на цял ред, етикет+стойност дясно, bold */
#smart-checkout .sc-totals { margin:0; max-width:100%; }
#smart-checkout .sc-total-row,
#smart-checkout .sc-grand-total {
  display:grid; grid-template-columns:1fr 150px; gap:0;
  background:#eee; padding:12px; margin:0 0 2px 0; font-weight:700; border:0;
}
#smart-checkout .sc-total-row span,
#smart-checkout .sc-total-row strong,
#smart-checkout .sc-grand-total span,
#smart-checkout .sc-grand-total strong { text-align:right; }
#smart-checkout .sc-grand-total { font-size:15px; }
#smart-checkout .sc-discount-row { display:grid; grid-template-columns:1fr 150px; background:#eee; padding:12px; margin:0 0 2px; font-weight:700; }
#smart-checkout .sc-discount-row span, #smart-checkout .sc-discount-row strong { text-align:right; }

/* Двойната валута е дълга — редовете да НЕ падат на нов ред */
#smart-checkout .sc-total-row,
#smart-checkout .sc-grand-total,
#smart-checkout .sc-discount-row { grid-template-columns: 1fr auto !important; gap:18px; }
#smart-checkout .sc-total-row span, #smart-checkout .sc-total-row strong,
#smart-checkout .sc-grand-total span, #smart-checkout .sc-grand-total strong,
#smart-checkout .sc-discount-row span, #smart-checkout .sc-discount-row strong { white-space:nowrap; }
/* колоните цена/общо в количката също без пренос */
#smart-checkout .sc-cart-table .td-price,
#smart-checkout .sc-cart-table .td-total { white-space:nowrap; width:1%; }
#smart-checkout .sc-cart-table .td-model { width:1%; white-space:nowrap; }
#smart-checkout .sc-cart-table .td-qty { width:1%; }

/* ===== Количка 1:1 с таксата (финал, точни стойности) ===== */
#smart-checkout .sc-cart-table { border-collapse:separate; border-spacing:0; width:100%; font-size:14px; font-family:"Ubuntu",sans-serif; }
/* хедър: сив #eee, bold 700, 12px, център */
#smart-checkout .sc-cart-table thead th {
  background:#eee !important; font-weight:700 !important; font-size:12px !important; color:#333 !important;
  padding:8px 14px !important; border:0 !important; text-align:center !important;
}
#smart-checkout .sc-cart-table thead .td-name { text-align:left !important; }
#smart-checkout .sc-cart-table thead .td-price,
#smart-checkout .sc-cart-table thead .td-total { text-align:right !important; }
/* продуктов ред: нормален 400, 14px, #333, БЕЗ рамки/фон */
#smart-checkout .sc-cart-table tbody td {
  font-weight:400 !important; font-size:14px !important; color:#333 !important;
  padding:8px 14px !important; border:0 !important; background:transparent !important;
}
#smart-checkout .sc-cart-table tbody .td-image { text-align:center !important; }
#smart-checkout .sc-cart-table tbody .td-name { text-align:left !important; white-space:normal !important; }
#smart-checkout .sc-cart-table tbody .td-name a { color:#277cd9 !important; font-weight:400 !important; }
#smart-checkout .sc-cart-table tbody .td-model { text-align:center !important; color:#333 !important; font-size:14px !important; }
#smart-checkout .sc-cart-table tbody .td-qty { text-align:center !important; }
#smart-checkout .sc-cart-table tbody .td-price,
#smart-checkout .sc-cart-table tbody .td-total { text-align:right !important; white-space:nowrap !important; }

/* ===== Целият чекаут по таксата: ширина/колони + червено подчертаване на заглавията ===== */
#smart-checkout { max-width:1240px !important; }
#smart-checkout .sc-layout { grid-template-columns:minmax(0,400px) minmax(0,1fr) !important; gap:25px !important; }
@media (max-width:991px){ #smart-checkout .sc-layout { grid-template-columns:minmax(0,1fr) !important; } }
#smart-checkout .sc-card { border:1px solid #e4e6e8; border-radius:3px; padding:15px; }
#smart-checkout .sc-card > h3 {
  position:relative; padding-bottom:10px; margin:0 0 15px;
  font-size:14px; font-weight:700; text-transform:uppercase; color:#303841; background:none;
}
#smart-checkout .sc-card > h3::after {
  content:""; position:absolute; left:0; bottom:0; width:50px; height:2px; background:#DA0A22;
}

/* ===== МОБИЛЕН FIX: колоните/картите да не се разпъват от широката таблица ===== */
#smart-checkout .sc-col,
#smart-checkout .sc-card,
#smart-checkout .sc-card-body,
#smart-checkout .sc-cart-table-wrap { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }

@media (max-width:600px){
  /* количката се събира: крием Модел + Ед. цена (остават Снимка/Име/Кол-во/Общо) */
  #smart-checkout .sc-cart-table .td-model,
  #smart-checkout .sc-cart-table .td-price { display:none !important; }
  #smart-checkout .sc-cart-table th, #smart-checkout .sc-cart-table td { padding:6px 8px !important; font-size:13px !important; }
  #smart-checkout .sc-cart-table .td-image { width:56px; }
  #smart-checkout .sc-cart-table .td-image img { max-width:48px; }
  /* плащане: 2 карти една до друга, но да се събират */
  #smart-checkout .sc-pay-card { flex:1 1 120px; min-height:80px; }
  #smart-checkout .sc-pay-title { font-size:12px; }
  #smart-checkout .sc-pay-icon { height:34px; }
  /* куриери 2 колони; BoxNow банер цял ред */
  #smart-checkout .sc-courier-logos { grid-template-columns:repeat(2,1fr); }
  /* тотали да не преливат */
  #smart-checkout .sc-total-row, #smart-checkout .sc-grand-total { padding:10px !important; font-size:13px; }
  #smart-checkout { max-width:100% !important; }
}

@media (max-width:600px){
  /* количката пасва 100% без вътрешен скрол */
  #smart-checkout .sc-cart-table { table-layout:fixed; width:100% !important; }
  #smart-checkout .sc-cart-table .td-name { width:auto; word-break:break-word; white-space:normal !important; }
  #smart-checkout .sc-cart-table .td-qty { width:92px; }
  #smart-checkout .sc-qty-group .sc-qty { width:38px; }
  #smart-checkout .sc-qty-group button { width:24px; }
  #smart-checkout .sc-cart-table .td-total { width:70px; }
}

/* Карта на офисите/автоматите (Leaflet) */
#smart-checkout .sc-map-row { margin-top:10px; }
#smart-checkout .sc-office-map { height:300px; width:100%; border:1px solid #d5d8db; border-radius:3px; z-index:0; }
#smart-checkout .sc-map-hint { font-size:12px; color:#6b7280; margin-top:6px; }
#smart-checkout .leaflet-container { font:inherit; }
@media (max-width:600px){ #smart-checkout .sc-office-map { height:240px; } }
/* Персонализиран маркер „пратка + локация" (без бял фон на Leaflet divIcon) */
#smart-checkout .sc-pin, .sc-pin { background:transparent; border:0; }
.sc-pin svg { display:block; filter:drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.sc-pin.is-active { z-index:1000 !important; }
.sc-pin.is-active svg { animation:bcPinPop .25s ease-out; }
@keyframes bcPinPop { 0%{ transform:scale(.75); } 60%{ transform:scale(1.15); } 100%{ transform:scale(1); } }
.leaflet-popup-content .sc-map-pick { display:inline-block; margin-top:4px; color:#2fa84f; font-weight:600; text-decoration:none; }
.leaflet-popup-content .sc-map-pick:hover { text-decoration:underline; }
/* Избран офис/автомат (селекцията е от картата, като BoxNow) */
#smart-checkout .sc-selected-office { display:flex; align-items:flex-start; gap:9px; margin-bottom:10px; padding:10px 12px; background:#f0faf4; border:1px solid #2fa84f; border-radius:4px; }
#smart-checkout .sc-selected-office-icon { flex:0 0 auto; width:20px; height:20px; margin-top:1px; background:no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 30 42'><path d='M15 41C15 41 27 25 27 13A12 12 0 1 0 3 13C3 25 15 41 15 41Z' fill='%232fa84f'/><circle cx='15' cy='13' r='8.6' fill='%23fff'/><path d='M15 7.4 L20 10 V16 L15 18.6 L10 16 V10 Z' fill='%232fa84f'/></svg>"); }
#smart-checkout .sc-selected-office-text { display:flex; flex-direction:column; gap:2px; min-width:0; }
#smart-checkout .sc-selected-office-name { font-size:14px; font-weight:600; color:#1f2937; }
#smart-checkout .sc-selected-office-addr { font-size:12px; color:#6b7280; }
#smart-checkout .sc-map-hint { font-size:12px; color:#6b7280; margin-top:6px; }

/* Търсене + плъзгащ се списък с офиси/автомати (като slider-а на taxta) */
#smart-checkout .sc-office-picker { margin-bottom:10px; }
#smart-checkout .sc-office-search { margin-bottom:6px; }
/* Вертикален списък с офиси/автомати (скрол нагоре-надолу) */
#smart-checkout .sc-office-list { max-height:230px; overflow-y:auto; overflow-x:hidden; border:1px solid #d5d8db; border-radius:4px; background:#fff; -webkit-overflow-scrolling:touch; }
#smart-checkout .sc-office-item { display:flex; flex-direction:column; gap:2px; width:100%; text-align:left; padding:9px 12px; margin:0; border:0; border-bottom:1px solid #eef0f2; background:#fff; cursor:pointer; font:inherit; }
#smart-checkout .sc-office-item:last-child { border-bottom:0; }
#smart-checkout .sc-office-item:hover { background:#f5f7f9; }
#smart-checkout .sc-office-item.is-selected { background:#f0faf4; box-shadow:inset 3px 0 0 #2fa84f; }
#smart-checkout .sc-office-item-name { font-size:13.5px; font-weight:600; color:#1f2937; }
#smart-checkout .sc-office-item-addr { font-size:12px; color:#6b7280; }
#smart-checkout .sc-office-empty { padding:12px; font-size:13px; color:#6b7280; text-align:center; }
/* Доставка до адрес: квартал/село → улица (търсачка) → номер, над картата */
#smart-checkout .sc-address-fields { margin-bottom:10px; }
#smart-checkout .sc-af-city, #smart-checkout .sc-af-street, #smart-checkout .sc-af-village, #smart-checkout .sc-af-quarter { position:relative; }
#smart-checkout .sc-city-first { margin-bottom: 14px; }
#smart-checkout .sc-selected-city-clear { border:0; background:transparent; color:#6b7280; cursor:pointer; font-size:15px; line-height:1; padding:2px 6px; }
#smart-checkout .sc-selected-city-clear:hover { color:#DA0A22; }
#smart-checkout .sc-selected-village-clear, #smart-checkout .sc-selected-quarter-clear { border:0; background:transparent; color:#6b7280; cursor:pointer; font-size:15px; line-height:1; padding:2px 6px; }
#smart-checkout .sc-selected-village-clear:hover, #smart-checkout .sc-selected-quarter-clear:hover { color:#DA0A22; }
#smart-checkout .sc-street-list { position:absolute; left:0; right:0; top:100%; z-index:500; max-height:240px; overflow-y:auto; background:#fff; border:1px solid #d5d8db; border-radius:0 0 4px 4px; box-shadow:0 6px 16px rgba(0,0,0,.12); -webkit-overflow-scrolling:touch; }
#smart-checkout .sc-street-item { display:block; width:100%; text-align:left; padding:9px 12px; margin:0; border:0; border-bottom:1px solid #eef0f2; background:#fff; cursor:pointer; font:inherit; font-size:13.5px; color:#1f2937; }
#smart-checkout .sc-street-item:last-child { border-bottom:0; }
#smart-checkout .sc-street-item:hover { background:#f0faf4; }
#smart-checkout .sc-street-empty { padding:10px 12px; font-size:13px; color:#6b7280; }
#smart-checkout .sc-selected-street { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 12px; background:#f0faf4; border:1px solid #2fa84f; border-radius:4px; }
#smart-checkout .sc-selected-street-name { font-size:14px; font-weight:600; color:#1f2937; }
#smart-checkout .sc-selected-street-clear { border:0; background:transparent; color:#6b7280; cursor:pointer; font-size:15px; line-height:1; padding:2px 6px; }
#smart-checkout .sc-selected-street-clear:hover { color:#DA0A22; }

/* Вход / Регистрация / Гост */
#smart-checkout .sc-acc-tabs { display:flex; gap:0; border:1px solid #d5d8db; border-radius:3px; overflow:hidden; margin-bottom:12px; }
#smart-checkout .sc-acc-tab { flex:1; margin:0; text-align:center; padding:9px 6px; cursor:pointer; font-size:13px; background:#fff; border-right:1px solid #d5d8db; }
#smart-checkout .sc-acc-tab:last-child { border-right:0; }
#smart-checkout .sc-acc-tab input { display:none; }
#smart-checkout .sc-acc-tab.active { background:#3cc472; color:#fff; font-weight:700; }
#smart-checkout .sc-login-box .form-control { margin-bottom:8px; }
#smart-checkout .sc-login-box .sc-do-login { width:100%; }
#smart-checkout .sc-login-err { color:#c9433f; font-size:13px; margin-top:8px; }

/* Тотали под поръчката: под-редовете НЕ болт, само „Общо" болт */
#smart-checkout .sc-total-row,
#smart-checkout .sc-total-row span,
#smart-checkout .sc-total-row strong,
#smart-checkout .sc-discount-row,
#smart-checkout .sc-discount-row span,
#smart-checkout .sc-discount-row strong { font-weight:400 !important; }
#smart-checkout .sc-grand-total,
#smart-checkout .sc-grand-total span,
#smart-checkout .sc-grand-total strong { font-weight:700 !important; }

/* Smart Checkout Checkout 1.6.0 RC — scoped integration layout */
body.smart-checkout-page #smart-checkout { max-width: 1440px; }
#smart-checkout .sc-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(360px,480px); gap:24px; align-items:start; }
#smart-checkout .sc-main { display:grid; gap:18px; }
#smart-checkout .sc-sidebar { position:sticky; top:18px; }
#smart-checkout .sc-couriers { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
#smart-checkout .sc-courier-tile { min-width:118px; min-height:66px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; }
#smart-checkout .sc-courier-name { font-size:12px; font-weight:700; }
#smart-checkout .sc-payments {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  min-width:0;
}
#smart-checkout .sc-payment-option {
  position:relative;
  display:grid;
  grid-template-columns:56px minmax(0,1fr) 24px;
  align-items:center;
  gap:12px;
  min-height:94px;
  padding:14px;
  margin:0;
  border:1px solid #dfe5e2;
  border-radius:14px;
  background:#fff;
  cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
#smart-checkout .sc-payment-option:hover {
  border-color:#a9bbb3;
  box-shadow:0 8px 22px rgba(26,52,41,.07);
  transform:translateY(-1px);
}
#smart-checkout .sc-payment-option:has(input:checked) {
  border-color:#13a86b;
  background:#f7fffb;
  box-shadow:0 0 0 2px rgba(19,168,107,.13);
}
#smart-checkout .sc-payment-option > input {
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
#smart-checkout .sc-payment-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  border-radius:13px;
  background:#f3f7f5;
  overflow:hidden;
}
#smart-checkout .sc-payment-icon img {
  display:block;
  width:42px;
  height:42px;
  object-fit:contain;
}
#smart-checkout .sc-payment-copy {
  display:flex;
  flex-direction:column;
  min-width:0;
}
#smart-checkout .sc-payment-copy strong {
  color:#24352e;
  font-size:16px;
  line-height:1.25;
  font-weight:700;
}
#smart-checkout .sc-payment-copy small {
  margin-top:4px;
  color:#6d7b75;
  font-size:13px;
  line-height:1.3;
}
#smart-checkout .sc-payment-check {
  display:flex;
  align-items:center;
  justify-content:center;
  width:23px;
  height:23px;
  border:1px solid #ced8d3;
  border-radius:50%;
  color:transparent;
  background:#fff;
  font-size:11px;
}
#smart-checkout .sc-payment-option:has(input:checked) .sc-payment-check {
  border-color:#13a86b;
  color:#fff;
  background:#13a86b;
}
#smart-checkout .sc-invoice-fields[hidden] { display:none !important; }
@media (max-width:575.98px) {
  #smart-checkout .sc-payments { grid-template-columns:1fr; }
  #smart-checkout .sc-payment-option { min-height:82px; grid-template-columns:48px minmax(0,1fr) 22px; padding:12px; gap:10px; }
  #smart-checkout .sc-payment-icon { width:48px; height:48px; }
  #smart-checkout .sc-payment-icon img { width:36px; height:36px; }
}
#smart-checkout .sc-office-map { min-height:380px; border:1px solid #e1e5e9; border-radius:12px; overflow:hidden; }
#smart-checkout .sc-qty-group { display:flex; align-items:center; gap:4px; }
#smart-checkout .sc-cart-update, #smart-checkout .sc-cart-remove { border:0; background:#f1f3f5; border-radius:6px; min-width:32px; min-height:32px; }
@media (max-width: 991.98px) { #smart-checkout .sc-layout { grid-template-columns:1fr; } #smart-checkout .sc-sidebar { position:static; } }
@media (max-width: 575.98px) { #smart-checkout { padding-left:10px; padding-right:10px; } #smart-checkout .sc-card { padding:12px; } #smart-checkout .sc-courier-tile { min-width:calc(50% - 5px); } #smart-checkout .sc-office-map { min-height:300px; } }

/* ===== Smart Checkout Checkout 1.6.2: дефолтен избор Вход / Регистрация / Гост ===== */
#smart-checkout .sc-account-options {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  margin:0;
}

#smart-checkout .sc-account-option {
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:0;
  padding:0;
  color:#303841;
  font-size:14px;
  font-weight:400;
  cursor:pointer;
}

#smart-checkout .sc-account-option input {
  width:14px;
  height:14px;
  margin:0;
  accent-color:#2684d9;
}

#smart-checkout .sc-account-login,
#smart-checkout .sc-account-register {
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #eceff2;
}

#smart-checkout .sc-account-login[hidden],
#smart-checkout .sc-account-register[hidden],
#smart-checkout .sc-customer-card[hidden] {
  display:none !important;
}

#smart-checkout .sc-account-help {
  margin:0 0 12px;
  color:#667085;
  font-size:13px;
  line-height:1.55;
}

#smart-checkout .sc-register-link {
  min-width:210px;
}

/* ===== Smart Checkout Checkout 1.6.2: мобилна количка без застъпване ===== */
@media (max-width:600px) {
  #smart-checkout .sc-cart-table-wrap {
    overflow:visible !important;
  }

  #smart-checkout .sc-cart-table {
    display:block !important;
    width:100% !important;
    table-layout:auto !important;
  }

  #smart-checkout .sc-cart-table thead {
    display:none !important;
  }

  #smart-checkout .sc-cart-table tbody {
    display:block !important;
    width:100% !important;
  }

  #smart-checkout .sc-cart-table .sc-cart-line {
    display:grid !important;
    grid-template-columns:58px minmax(0,1fr) auto;
    grid-template-areas:
      "image name total"
      "image qty qty";
    align-items:start;
    column-gap:9px;
    row-gap:8px;
    width:100% !important;
    padding:10px 0;
    border-bottom:1px solid #e5e7eb;
  }

  #smart-checkout .sc-cart-table .sc-cart-line:last-child {
    border-bottom:0;
  }

  #smart-checkout .sc-cart-table .sc-cart-line > td {
    display:block !important;
    width:auto !important;
    min-width:0 !important;
    padding:0 !important;
    border:0 !important;
  }

  #smart-checkout .sc-cart-table .td-image {
    grid-area:image;
    width:58px !important;
    text-align:center !important;
  }

  #smart-checkout .sc-cart-table .td-image img {
    display:block;
    width:auto;
    max-width:54px !important;
    max-height:70px;
    margin:0 auto;
  }

  #smart-checkout .sc-cart-table .td-name {
    grid-area:name;
    min-width:0 !important;
    padding-right:4px !important;
  }

  #smart-checkout .sc-cart-table .td-name a {
    display:block;
    overflow-wrap:anywhere;
    line-height:1.35;
  }

  #smart-checkout .sc-cart-table .td-model,
  #smart-checkout .sc-cart-table .td-price {
    display:none !important;
  }

  #smart-checkout .sc-cart-table .td-qty {
    grid-area:qty;
    justify-self:end;
    width:auto !important;
    text-align:right !important;
  }

  #smart-checkout .sc-cart-table .td-total {
    grid-area:total;
    align-self:start;
    justify-self:end;
    width:auto !important;
    min-width:70px !important;
    padding-left:6px !important;
    text-align:right !important;
    white-space:nowrap !important;
    font-weight:700 !important;
  }

  #smart-checkout .sc-qty-group {
    display:flex !important;
    align-items:center;
    justify-content:flex-end;
    gap:5px !important;
    width:auto !important;
  }

  #smart-checkout .sc-qty-group .sc-qty {
    flex:0 0 50px;
    width:50px !important;
    height:34px;
    margin:0 !important;
    padding:4px 6px !important;
  }

  #smart-checkout .sc-qty-group button {
    flex:0 0 34px;
    width:34px !important;
    min-width:34px !important;
    height:34px;
    min-height:34px !important;
    padding:0 !important;
  }

  #smart-checkout .sc-account-options {
    gap:12px;
  }

  #smart-checkout .sc-register-link {
    width:100%;
    min-width:0;
  }
}

/* ===== Smart Checkout Checkout 1.6.4: надежден мобилен режим на количката ===== */
#smart-checkout.sc-mobile-cart-mode .sc-cart-table-wrap {
  overflow:visible !important;
}

#smart-checkout.sc-mobile-cart-mode .sc-cart-table {
  display:block !important;
  width:100% !important;
  table-layout:auto !important;
}

#smart-checkout.sc-mobile-cart-mode .sc-cart-table thead {
  display:none !important;
}

#smart-checkout.sc-mobile-cart-mode .sc-cart-table tbody {
  display:block !important;
  width:100% !important;
}

#smart-checkout.sc-mobile-cart-mode .sc-cart-table .sc-cart-line {
  display:grid !important;
  grid-template-columns:58px minmax(0,1fr) auto !important;
  grid-template-areas:
    "image name total"
    "image qty qty" !important;
  align-items:start !important;
  column-gap:9px !important;
  row-gap:8px !important;
  width:100% !important;
  padding:10px 0 !important;
  border-bottom:1px solid #e5e7eb !important;
}

#smart-checkout.sc-mobile-cart-mode .sc-cart-table .sc-cart-line > td {
  display:block !important;
  width:auto !important;
  min-width:0 !important;
  padding:0 !important;
  border:0 !important;
  float:none !important;
}

#smart-checkout.sc-mobile-cart-mode .sc-cart-table .td-model,
#smart-checkout.sc-mobile-cart-mode .sc-cart-table .td-price {
  display:none !important;
}

#smart-checkout.sc-mobile-cart-mode .sc-cart-table .td-image {
  grid-area:image !important;
  width:58px !important;
  text-align:center !important;
}

#smart-checkout.sc-mobile-cart-mode .sc-cart-table .td-name {
  grid-area:name !important;
  min-width:0 !important;
  padding-right:4px !important;
}

#smart-checkout.sc-mobile-cart-mode .sc-cart-table .td-qty {
  grid-area:qty !important;
  justify-self:end !important;
  width:auto !important;
  text-align:right !important;
}

#smart-checkout.sc-mobile-cart-mode .sc-cart-table .td-total {
  grid-area:total !important;
  align-self:start !important;
  justify-self:end !important;
  width:auto !important;
  min-width:70px !important;
  padding-left:6px !important;
  text-align:right !important;
  white-space:nowrap !important;
  font-weight:700 !important;
}

@media screen and (max-device-width:767px) {
  #smart-checkout .sc-cart-table .td-model,
  #smart-checkout .sc-cart-table .td-price {
    display:none !important;
  }
}



/* Smart Checkout 1.7.1 — два валидни режима за адрес. */
#smart-checkout .sc-address-mode {
  padding: 10px 12px;
  border: 1px solid #e4e6e8;
  border-radius: 8px;
  background: #f8f9fa;
}
#smart-checkout .sc-address-details .form-label { white-space: nowrap; }
#smart-checkout .sc-address-locality-mode .form-text,
#smart-checkout .sc-address-street-mode .form-text { font-size: 12px; }

/* Smart Checkout 1.7.13 — сравнение на активните доставки */
#smart-checkout .sc-shipping-compare {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #dfe7e3;
  border-radius: 12px;
  background: #f8fbf9;
}
#smart-checkout .sc-shipping-compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
#smart-checkout .sc-shipping-compare-head strong {
  font-size: 16px;
  color: #20352b;
}
#smart-checkout .sc-shipping-compare-status {
  font-size: 13px;
  color: #68756f;
  text-align: right;
}
#smart-checkout .sc-shipping-compare-methods {
  display: grid;
  gap: 8px;
}
#smart-checkout .sc-compare-method {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 9px 12px;
  border: 2px solid #e0e6e3;
  border-radius: 10px;
  background: #fff;
  color: #24342c;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
#smart-checkout .sc-compare-method:not(:disabled) {
  cursor: pointer;
}
#smart-checkout .sc-compare-method:not(:disabled):hover {
  border-color: #47a977;
}
#smart-checkout .sc-compare-method.active,
#smart-checkout .sc-compare-method[aria-pressed="true"] {
  border-color: #008060;
  box-shadow: 0 0 0 2px rgba(0, 128, 96, .14);
  background: #fbfffd;
}
#smart-checkout .sc-compare-method:disabled {
  cursor: default;
  opacity: .72;
}
#smart-checkout .sc-compare-method .sc-logo {
  width: 76px;
  height: 30px;
}
#smart-checkout .sc-compare-method-body,
#smart-checkout .sc-compare-method-value {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#smart-checkout .sc-compare-method-title {
  font-weight: 700;
  line-height: 1.25;
}
#smart-checkout .sc-compare-method-location {
  margin-top: 3px;
  color: #6d7772;
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#smart-checkout .sc-compare-method-value {
  align-items: flex-end;
  gap: 3px;
  text-align: right;
  white-space: nowrap;
}
#smart-checkout .sc-compare-method-value strong {
  color: #0b694f;
  font-size: 17px;
}
#smart-checkout .sc-compare-cheapest {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e7f6ee;
  color: #08704f;
  font-size: 11px;
  font-weight: 700;
}
#smart-checkout .sc-compare-selected {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #008060;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
#smart-checkout .sc-compare-selected::before { content: "✓"; }
#smart-checkout .sc-compare-method.active .sc-compare-selected,
#smart-checkout .sc-compare-method[aria-pressed="true"] .sc-compare-selected {
  display: inline-flex;
}
#smart-checkout .sc-compare-method-message {
  max-width: 190px;
  color: #6f7773;
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
}
#smart-checkout .sc-compare-method.is-needs_address:not(:disabled) .sc-compare-method-message {
  color: #9b6515;
  font-weight: 600;
}
#smart-checkout .sc-compare-empty,
#smart-checkout .sc-compare-loading {
  padding: 13px;
  border-radius: 9px;
  background: #fff;
  color: #6f7773;
  text-align: center;
}
#smart-checkout .sc-compare-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid #d5e5dc;
  border-top-color: #008060;
  border-radius: 50%;
  animation: sc-compare-spin .75s linear infinite;
}
@keyframes sc-compare-spin { to { transform: rotate(360deg); } }

@media (max-width: 575.98px) {
  #smart-checkout .sc-shipping-compare {
    padding: 10px;
  }
  #smart-checkout .sc-shipping-compare-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  #smart-checkout .sc-shipping-compare-status {
    text-align: left;
  }
  #smart-checkout .sc-compare-method {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 60px;
    padding: 8px;
  }
  #smart-checkout .sc-compare-method .sc-logo {
    width: 62px;
    height: 26px;
  }
  #smart-checkout .sc-compare-method-title {
    font-size: 14px;
  }
  #smart-checkout .sc-compare-method-value strong {
    font-size: 15px;
  }
  #smart-checkout .sc-compare-method-message {
    max-width: 105px;
  }
}
#smart-checkout .sc-shipping-compare.is-loading .sc-shipping-compare-methods {
  opacity: .68;
  pointer-events: none;
}


/* Smart Checkout 1.7.17 — стабилна база с административен updater */
#smart-checkout .sc-locker-payment-info {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(13, 110, 253, .22);
  border-left: 4px solid #0d6efd;
  border-radius: 9px;
  background: rgba(13, 110, 253, .06);
  color: #344054;
  font-size: 14px;
  line-height: 1.45;
}

#smart-checkout .sc-locker-size-info {
  display: block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(13, 110, 253, .15);
  font-weight: 600;
  color: #253b33;
}

/* Smart Checkout 1.7.18 — компактни адресни полета и ясен статус „Не се предлага“ */
#smart-checkout .sc-address-locality-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px;
}
#smart-checkout .sc-address-details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
#smart-checkout .sc-address-field { min-width: 0; }
#smart-checkout .sc-address-field .form-control { width: 100%; }
#smart-checkout .sc-compare-method.is-not_offered .sc-compare-method-message {
  color: #6f7773;
  font-weight: 600;
}
@media (max-width: 520px) {
  #smart-checkout .sc-address-locality-grid { grid-template-columns: minmax(0, 1fr); }
  #smart-checkout .sc-address-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

