/* ===== ШРИФТ ===== */
body.alp-cart, body.alp-cart *, body.alp-checkout, body.alp-checkout * {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ===== КОРЗИНА (шаг 1) ===== */
.t706__sidebar-content { background: #FFFFFF !important; padding: 18px 18px 22px !important; }
.t706__sidebar-heading {
  font-size: 17px !important; font-weight: 900 !important; text-transform: uppercase !important;
  letter-spacing: -0.01em !important; color: #0A0A0A !important; border-bottom: none !important;
  padding-bottom: 4px !important; margin-bottom: 2px !important;
}
.t706__sidebar-prodamount-wrap { display: none !important; }

.alp-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 12px; }
.alp-steps-text {
  order: -1; flex-basis: 100%; font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: #8C8C88; margin: 0 0 5px;
}
.alp-dot { flex: 1; height: 4px; border-radius: 2px; background: #E8E8E4; width: auto; }
.alp-dot.on { background: #FF3F00; }

.alp-shipping-container {
  background: linear-gradient(135deg, #0A0A0A 0%, #1C1C1C 100%);
  border-radius: 14px; padding: 14px 16px; margin: 0 0 14px;
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.1);
}
.alp-shipping-container.is-done { background: linear-gradient(135deg, #0F2A1A 0%, #14361F 100%); }
.alp-shipping-header { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 800; color: #FFFFFF; margin-bottom: 10px; }
.alp-shipping-pct { font-size: 18px; font-weight: 900; color: #FF3F00; margin-left: 8px; }
.alp-shipping-container.is-done .alp-shipping-pct { color: #4ADE80; }
.alp-shipping-track { width: 100%; height: 8px; background: #2A2A2A; border-radius: 4px; overflow: hidden; }
.alp-shipping-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #FF7A3D, #FF3F00); transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.alp-shipping-container.is-done .alp-shipping-fill { background: linear-gradient(90deg, #6EE7A0, #4ADE80); }
.alp-shipping-hint { font-size: 11px; color: #BDBDBD; margin-top: 8px; line-height: 1.4; }

.alp-summary { background: #F7F7F5; border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; }
.alp-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #6B6B6B; margin: 0 0 7px; }
.alp-summary-row b { color: #0A0A0A; font-weight: 800; }
.alp-summary-row.total { margin: 8px 0 0; padding-top: 10px; border-top: 1px dashed #D4D4D0; font-size: 14px; font-weight: 800; color: #0A0A0A; }
.alp-summary-row.total b { font-size: 20px; font-weight: 900; color: #FF3F00; }
.alp-free { color: #16A34A; font-weight: 800; }

.alp-perks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.alp-perk {
  display: flex; align-items: center; gap: 6px; background: #FFFFFF; border: 1px solid #ECECE8;
  border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 11px; font-weight: 700; color: #0A0A0A;
}
.alp-perk-icon {
  width: 18px; height: 18px; border-radius: 50%; background: #0A0A0A; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; font-size: 9px; flex-shrink: 0;
}

.alp-gift-box {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px;
  border: 1.5px dashed #FFB39B; border-radius: 14px; background: #FFF8F5; cursor: pointer;
}
.alp-gift-box input[type="checkbox"] { accent-color: #FF3F00; width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; }
.alp-gift-title { font-size: 13px; font-weight: 800; color: #0A0A0A; display: block; }
.alp-gift-desc { font-size: 11px; color: #6B6B6B; margin-top: 1px; display: block; }

.alp-crosssell-box { margin: 0 0 12px; }
.alp-crosssell-head { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #8C8C88; margin-bottom: 8px; }
.alp-crosssell-item {
  display: flex; align-items: center; gap: 10px; background: #FFFFFF; border: 1px solid #ECECE8;
  border-radius: 14px; padding: 10px; margin-bottom: 6px;
}
.alp-crosssell-img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #F0F0EC; flex-shrink: 0; }
.alp-crosssell-info { flex: 1; min-width: 0; }
.alp-crosssell-title { font-size: 12px; font-weight: 800; color: #0A0A0A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alp-crosssell-price { font-size: 13px; font-weight: 900; color: #0A0A0A; margin-top: 1px; }
.alp-crosssell-old { font-size: 11px; color: #8C8C88; text-decoration: line-through; margin-left: 6px; font-weight: 500; }
.alp-crosssell-btn {
  background: #0A0A0A; color: #FFFFFF; border: none; font-size: 11px; font-weight: 800;
  padding: 0 12px; min-height: 38px; border-radius: 10px; cursor: pointer; white-space: nowrap;
}
.alp-crosssell-btn:hover { background: #FF3F00; }

.alp-trust-badge { text-align: center; font-size: 10px; color: #8C8C88; margin-top: 10px; line-height: 1.4; }

.t706__sidebar-btn, .t706__submit {
  background: #0A0A0A !important; color: #FFFFFF !important; min-height: 52px !important; line-height: 52px !important;
  border-radius: 14px !important; font-size: 14px !important; font-weight: 900 !important; letter-spacing: 0.04em !important;
  width: 100% !important; box-shadow: 0 8px 18px rgba(10, 10, 10, 0.16) !important; transition: background 0.2s ease !important;
}
.t706__sidebar-btn:hover, .t706__submit:hover { background: #FF3F00 !important; }

/* ===== ПУСТАЯ КОРЗИНА ===== */
#alp-empty { display: none; text-align: center; padding: 16px 4px 6px; }
#alp-empty .alp-empty-art {
  width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, #FF7A3D, #FF3F00); display: flex; align-items: center; justify-content: center;
  font-size: 42px; box-shadow: 0 0 0 10px #FFF0EA; animation: alpBob 2.6s ease-in-out infinite;
}
#alp-empty .alp-empty-title { font-size: 18px; font-weight: 900; color: #0A0A0A; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 6px; }
#alp-empty .alp-empty-text { font-size: 13px; color: #6B6B6B; line-height: 1.45; margin-bottom: 14px; }
#alp-empty .alp-empty-steps { display: grid; gap: 6px; text-align: left; margin: 0 0 16px; }
#alp-empty .alp-empty-step {
  display: flex; align-items: center; gap: 10px; background: #F7F7F5; border-radius: 12px;
  padding: 10px 12px; font-size: 13px; font-weight: 700; color: #0A0A0A;
}
#alp-empty .alp-empty-step b {
  width: 22px; height: 22px; border-radius: 50%; background: #0A0A0A; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0;
}
#alp-empty .alp-empty-btn {
  display: block; background: #0A0A0A; color: #FFFFFF; text-decoration: none; font-size: 13px; font-weight: 900;
  padding: 14px; border-radius: 14px; text-transform: uppercase; letter-spacing: 0.04em;
}
#alp-empty .alp-empty-btn:hover { background: #FF3F00; }
body.alp-cart-empty #alp-empty { display: block; }
body.alp-cart-empty .t706__sidebar-btn, body.alp-cart-empty .t706__submit {
  background: #E5E5E2 !important; color: #8C8C88 !important; pointer-events: none !important; box-shadow: none !important;
}

/* ===== ШАГ 2: КОНТАКТЫ И ДОСТАВКА ===== */
body.alp-checkout { background: #FAFAF8; }

#alp-steps2 { margin: 0 0 12px; }
#alp-recap {
  background: #0A0A0A; color: #FFFFFF; border-radius: 14px; padding: 12px 14px; margin: 0 0 14px;
  display: flex; justify-content: space-between; align-items: center;
}
#alp-recap span:first-child { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #BDBDBD; }
#alp-recap span:last-child { font-size: 18px; font-weight: 900; color: #FF3F00; }

/* Поля ввода, включая промокод */
body.alp-checkout input:not([type="checkbox"]):not([type="radio"]),
body.alp-checkout select,
body.alp-checkout textarea,
body.alp-checkout .t-inputpromocode {
  background: #FFFFFF !important; border: 1px solid #E2E2DE !important; border-radius: 12px !important;
  min-height: 46px !important; padding: 0 14px !important; font-size: 15px !important; color: #0A0A0A !important;
  box-shadow: none !important; outline: none !important; transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
body.alp-checkout input:focus, body.alp-checkout select:focus, body.alp-checkout textarea:focus,
body.alp-checkout .t-inputpromocode:focus {
  border-color: #FF3F00 !important; box-shadow: 0 0 0 3px rgba(255, 63, 0, 0.12) !important;
}
body.alp-checkout label {
  font-size: 10px !important; font-weight: 800 !important; color: #6B6B6B !important;
  text-transform: uppercase !important; letter-spacing: 0.07em !important; margin-bottom: 4px !important;
}

/* Промокод и кнопка «Активировать» в одну строку */
body.alp-checkout div:has(> .t-inputpromocode__btn) {
  display: flex !important; gap: 8px !important; align-items: stretch !important;
}
body.alp-checkout .t-inputpromocode { flex: 1 1 auto !important; width: auto !important; }
body.alp-checkout .t-inputpromocode__btn {
  display: flex !important; align-items: center !important; justify-content: center !important;
  min-height: 46px !important; padding: 0 16px !important; border-radius: 12px !important;
  background: #0A0A0A !important; color: #FFFFFF !important; font-size: 12px !important; font-weight: 800 !important;
  text-transform: uppercase !important; letter-spacing: 0.05em !important; cursor: pointer !important; white-space: nowrap !important;
}
body.alp-checkout .t-inputpromocode__btn:hover { background: #FF3F00 !important; }

/* Выбор доставки: компактные карточки */
body.alp-checkout label:has(input[type="radio"]) {
  display: flex !important; align-items: center !important; gap: 10px !important;
  background: #FFFFFF !important; border: 1px solid #E2E2DE !important; border-radius: 12px !important;
  padding: 10px 12px !important; margin: 0 0 6px !important; cursor: pointer !important;
  text-transform: none !important; font-size: 14px !important; font-weight: 800 !important; color: #0A0A0A !important;
  letter-spacing: 0 !important;
}
body.alp-checkout label:has(input[type="radio"]:checked) {
  border-color: #FF3F00 !important; background: #FFF8F5 !important; box-shadow: inset 0 0 0 1px #FF3F00 !important;
}
body.alp-checkout input[type="radio"] { accent-color: #FF3F00 !important; width: 18px !important; height: 18px !important; }
body.alp-checkout input[type="checkbox"] { accent-color: #FF3F00 !important; }

/* Ошибки: одна плашка, без вложенных рамок */
body.alp-checkout [class*="rror"] {
  background: transparent !important; border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important;
}
body.alp-checkout [class*="rror"]:not(:has([class*="rror"])) {
  background: #FFF3EE !important; color: #B42318 !important; border: 1px solid #FFB39B !important;
  border-radius: 12px !important; padding: 8px 12px !important; margin: 0 0 10px !important;
  font-size: 12px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important;
}

/* Кнопки карт */
#alp-map { display: flex; gap: 6px; margin: 8px 0 12px; }
#alp-map a {
  flex: 1; text-align: center; text-decoration: none; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 11px 8px; border-radius: 12px;
  background: #FFFFFF; color: #0A0A0A !important; border: 1px solid #E2E2DE; transition: all 0.2s ease;
}
#alp-map a:first-child { background: #0A0A0A; color: #FFFFFF !important; border-color: #0A0A0A; }
#alp-map a:hover { border-color: #FF3F00; color: #FF3F00 !important; }
#alp-map a:first-child:hover { background: #FF3F00; color: #FFFFFF !important; border-color: #FF3F00; }

/* Кнопка оформления на шаге 2 */
body.alp-checkout button[type="submit"], body.alp-checkout .t-submit, body.alp-checkout .t706__submit {
  background: #0A0A0A !important; color: #FFFFFF !important; min-height: 52px !important; border-radius: 14px !important;
  font-size: 14px !important; font-weight: 900 !important; letter-spacing: 0.04em !important; width: 100% !important;
  box-shadow: 0 8px 18px rgba(10, 10, 10, 0.16) !important; transition: background 0.2s ease !important;
}
body.alp-checkout button[type="submit"]:hover, body.alp-checkout .t-submit:hover { background: #FF3F00 !important; }

/* Подсказка про промокод на шаге 1 */
.alp-summary::before {
  content: 'Есть промокод? Введите его на следующем шаге';
  display: block; font-size: 11px; color: #8C8C88; margin-bottom: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== АНИМАЦИИ ===== */
@keyframes alpFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes alpBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: no-preference) {
  body.alp-cart .alp-shipping-container, body.alp-cart .alp-summary, body.alp-cart .alp-perk,
  body.alp-cart .alp-gift-box, body.alp-cart .alp-crosssell-item, body.alp-checkout #alp-recap,
  body.alp-checkout #alp-steps2 {
    animation: alpFadeIn 0.35s ease-out both;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== АДАПТИВ ДЛЯ ТЕЛЕФОНА (до 600 px) ===== */
@media (max-width: 600px) {
  html, body { overflow-x: hidden !important; }
  .t706__sidebar-content { padding: 16px 14px 20px !important; }
  .alp-shipping-container { padding: 12px 14px !important; }
  .alp-crosssell-btn { width: 100% !important; min-height: 44px !important; }
  body.alp-checkout input:not([type="checkbox"]):not([type="radio"]),
  body.alp-checkout select, body.alp-checkout textarea, body.alp-checkout .t-inputpromocode {
    min-height: 50px !important; font-size: 16px !important;  /* 16px: iPhone не увеличивает экран при вводе */
  }
  #alp-map { flex-direction: column; }
  #alp-map a { flex: none; width: 100%; }
}

/* Переключатель «Товар / На модели» в каталоге */
.alp-toggle { display: flex; width: fit-content; margin: 10px auto 0; background: #F1F1EF; border-radius: 999px; padding: 4px; gap: 4px; }
.alp-t-btn { border: 0; background: transparent; font-size: 12px; font-weight: 800; padding: 7px 14px; border-radius: 999px; color: #6B6B6B; cursor: pointer; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important; transition: background 0.2s ease, color 0.2s ease; }
.alp-t-btn.is-on { background: #0A0A0A; color: #FFFFFF; }
.alp-t-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ===== КАРТОЧКА ТОВАРА: цвета, наличие, предзаказ, нижняя панель ===== */
#alp-colors { margin: 18px 0 16px; font-family: 'Inter', -apple-system, sans-serif; }
.alp-colors-head { font-size: 14px; color: #0A0A0A; margin-bottom: 10px; font-weight: 600; }
.alp-colors-head b { font-weight: 900; }
.alp-stock { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; margin-left: 6px; }
.alp-stock.in { background: #E6F9EC; color: #0B7A36; }
.alp-stock.out { background: #F1F1EF; color: #6B6B6B; }
.alp-colors-row { display: flex; flex-wrap: wrap; gap: 8px; }
.alp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; border: 2px solid #0A0A0A; background: #FFFFFF; color: #0A0A0A; text-decoration: none; font-size: 13px; font-weight: 700; transition: transform .15s ease, background .15s ease; }
.alp-chip i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: block; flex: 0 0 20px; }
.alp-chip:hover { transform: translateY(-2px); background: #FFF1EB; }
.alp-chip.is-on { background: #FF3F00; border-color: #FF3F00; color: #FFFFFF; }
.alp-chip.is-out { opacity: .45; border-style: dashed; }
#alp-preorder { margin-top: 14px; display: inline-block; background: #0A0A0A; color: #FFFFFF; border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 700; }
#alp-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 2px solid #0A0A0A; box-shadow: 0 -8px 24px rgba(0,0,0,.08); font-family: 'Inter', -apple-system, sans-serif; }
.alp-bb-name { font-size: 12px; color: #6B6B6B; font-weight: 600; }
.alp-bb-price { font-size: 18px; font-weight: 900; color: #0A0A0A; }
.alp-bb-btn { flex: 0 1 260px; border: 0; border-radius: 999px; background: #FF3F00; color: #FFFFFF; font-weight: 800; font-size: 15px; padding: 14px 18px; cursor: pointer; transition: transform .15s ease; }
.alp-bb-btn:hover { transform: scale(1.02); }
body:has(#alp-buybar) { padding-bottom: 90px; }
@media (max-width: 600px) {
  .alp-chip { font-size: 12px; padding: 6px 12px 6px 6px; }
  .alp-bb-price { font-size: 16px; }
}
