/* ── Index page custom styles ── */
#menu-body { position: relative; }

.cat-bar-section {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(var(--white, 255,255,255), 1);
  padding: 8px 0 10px;
}
.categories .swiper-slide.cat-active h6 {
  color: black;
  font-weight: 700;
}
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 4px;
}
.cat-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(var(--white), 1);
  display: flex;
  flex-direction: column;
}
.cat-card-img { display: block; }
.cat-card-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.cat-card-img img,
.categories-img {
  background: url('../images/product/p1.png') center/38% no-repeat;
}
.lz-fade { opacity: 0; transition: opacity .25s ease; }
.lz-fade.lz-loaded { opacity: 1; }
.cat-card-body { padding: 8px; display: flex; flex-direction: column; flex: 1; }
.cat-card-footer { margin-top: auto; display: block; }
.cat-card-weight { font-size: 11px; color: rgba(var(--light-text), 1); margin: 0 0 6px; }
.cat-card-body h5 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(var(--dark-text), 1);
  line-height: 1.25;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.6em;
  margin: 0 0 6px;
}
.qty-widget { width: 100%; }
.qty-idle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(var(--box-bg), 1);
  border-radius: 8px;
  padding: 6px 10px;
}
.qty-price { font-size: 13px; font-weight: 600; color: rgba(var(--dark-text), 1); }
.qty-btn-add, .qty-btn-dec, .qty-btn-inc {
  width: 26px; height: 26px;
  border: none; background: white; color: black;
  border-radius: 6px; font-size: 18px; line-height: 1;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.qty-active {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(var(--box-bg), 1);
  border-radius: 8px; padding: 4px 6px; gap: 4px;
}
.qty-center { display: flex; flex-direction: column; align-items: center; flex: 1; }
.qty-num { font-size: 14px; font-weight: 700; color: rgba(var(--dark-text), 1); line-height: 1.2; }
.qty-sub-price { font-size: 10px; color: rgba(var(--light-text), 1); }
.kbju-row { display: flex; gap: 6px; margin: 10px 0 4px; }
.kbju-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  background: rgba(var(--box-bg), 1); border-radius: 8px; padding: 6px 4px;
}
.kbju-val { font-size: 13px; font-weight: 700; color: rgba(var(--dark-text), 1); line-height: 1.2; }
.kbju-label { font-size: 10px; color: rgba(var(--light-text), 1); margin-top: 2px; }
.bs-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0px;
  background: rgba(0,0,0,0.45); z-index: 298;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.bs-overlay.active { opacity: 1; pointer-events: all; }
.bottom-sheet {
  position: fixed; bottom: 50px; left: 50%;
  transform: translateX(-50%) translateY(calc(100% - 72px));
  width: 95%; max-width: 600px; max-height: 82vh;
  display: flex; flex-direction: column;
  z-index: 299;
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
  will-change: transform; touch-action: none;
}
.bottom-sheet.bs-expanded { transform: translateX(-50%) translateY(0);bottom: 35px; }
.bs-body {
  flex: 1; overflow: hidden; display: flex; flex-direction: column;
  background: rgba(var(--white), 1); min-height: 0;
}
.bottom-sheet:not(.bs-expanded) .bs-body { visibility: hidden; } /* прячем тело корзины, пока шторка свёрнута — не даёт содержимому вылезать под навбар */
.bs-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px 8px; }
.bs-header-row { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 10px; }
.bs-header-left { display: flex; align-items: center; gap: 7px; }
.bs-title { font-size: 19px; font-weight: 700; color: rgba(var(--dark-text), 1); margin: 0; }
.bs-count-badge {
  background: #ff8d2f; color: #fff; border-radius: 50%;
  min-width: 19px; height: 19px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; padding: 0 4px;
}
.bs-clear-btn {
  display: flex; align-items: center; gap: 4px;
  border: 1px solid #eeeeee; border-radius: 10px; padding: 5px 10px;
  font-size: 10px; background: none; cursor: pointer;
  color: rgba(var(--dark-text), 1); white-space: nowrap; font-weight: 600;
}
.bs-total-block { box-shadow: 0 2px 12px rgba(0,0,0,0.07); border-radius: 15px; margin-top: 10px; overflow: hidden; }
.bs-total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 500; color: rgba(var(--dark-text), 1);
  padding: 8px 10px; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.bs-row-icon { width: 24px; margin-right: 7px; vertical-align: middle; }
.bs-total-footer { background: #f1f7ed; padding: 8px 10px; font-size: 10px; display: flex; align-items: center; }
.bs-footer-icon { width: 16px; margin-right: 10px; margin-left: 6px; }
.bs-checkout {
  flex-shrink: 0; padding: 14px 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: rgba(var(--white), 1);
  border-radius: 15px 15px 0 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding-bottom: 35px;
}
.fp-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  border-radius: 15px; margin-bottom: 6px; padding: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.fp-item img { width: 73px; height: 80px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.fp-item-info { flex: 1; min-width: 0; height: 80px; }
.fp-item-info h6 {
  font-size: 13.8px; font-weight: 600; color: #282828;
  margin: 5px 0 2px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; width: 90%;
}
.fp-item-info .fp-price { font-size: 13px; font-weight: 600; color: black; bottom: 11px; position: absolute; }
.fp-item-qty {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  position: absolute; right: 10px; bottom: 10px;
}
.fp-item-qty button {
  width: 33px; height: 33px; border: none; background: rgba(var(--box-bg), 1);
  border-radius: 6px; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center; padding: 0;
  color: rgba(var(--dark-text), 1);
}
.fp-item-qty > span { font-size: 16px; font-weight: 700; min-width: 18px; text-align: center; color: rgba(var(--dark-text), 1); }
.fp-item-del {
  position: absolute; top: 5px; right: 4px; width: 25px; height: 25px;
  border: none; background: none; color: rgba(var(--light-text), 1);
  font-size: 25px; font-weight: 100; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0; opacity: 0.65;
}
.fp-item-del:active { opacity: 1; }
.fly-cart-info { margin-bottom: 32px; }
.fp-item-addons {
  font-size: 10px; color: rgba(var(--light-text), 1);
  margin: 5px 0 3px; line-height: 1.3;
  max-width: 90%; overflow: hidden; max-height: calc(1.3em * 2);
}
.fp-item-addons::before {
  content: ""; float: right; width: 85px;
  height: calc(1.3em * 2); shape-outside: inset(1.3em 0 0 0);
}
.bs-expanded .bs-bar { background: white; box-shadow: none; }
.bs-expanded .bs-bar-pill { background: rgb(216,216,216); }
.bs-bar {
  flex-shrink: 0; position: relative; height: 80px;
  background: linear-gradient(180deg, #414449 1.31%, #1f1f1f 101.06%);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.18);
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 10px 0; cursor: grab; touch-action: none;
  top: 0.5px;
}
.bs-bar-pill {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 4px; background: rgba(255,255,255,0.3);
  border-radius: 2px; pointer-events: none;
}
.fly-cart-info p { color: rgba(255,255,255,0.8); font-size: 12px; margin: 0 0 2px; }
.fly-cart-info h4 { color: #fff; font-size: 15px; font-weight: 700; margin: 0; }
.fly-cart-imgs {
  margin-bottom: 32px;
  display: flex; flex-direction: row-reverse; align-items: center;
}
.fly-cart-imgs img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid #2a2a2a; margin-left: -8px;
}
.fly-cart-imgs img:last-child,
.fly-cart-imgs .fly-cart-extra:last-child { margin-left: 0; }
.fly-cart-extra {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.18); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: -10px;
}
.bs-expanded #fly-cart { height: 20px; }
.bs-expanded .fly-cart-info,
.bs-expanded .fly-cart-imgs { display: none; }
.navbar-menu { z-index: 400 !important; }
.hidden { display: none !important; }

/* ─── Пустая корзина ────────────────────────────────────────────────────────
   .bs-empty на #bottom-sheet ставит cart.js. Разметка обычной корзины остаётся
   в DOM (её JS-хуки живы) — здесь она просто скрывается. */
.bottom-sheet:not(.bs-empty) .bs-empty-state { display: none; }
.bottom-sheet.bs-empty #fly-panel-items,
.bottom-sheet.bs-empty .bs-addons-section,
.bottom-sheet.bs-empty .bonus-card,
.bottom-sheet.bs-empty .bs-promo-section,
.bottom-sheet.bs-empty .bs-total-block,
.bottom-sheet.bs-empty .bs-checkout,
.bottom-sheet.bs-empty .bs-count-badge { display: none; }
.bottom-sheet.bs-empty .bs-clear-btn { opacity: .45; pointer-events: none; }

.bs-empty-state {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  /* нижний отступ — шторка прижата к bottom:35px и её край заходит под навбар,
     без него нижняя чипса/баннер оказываются под ним */
  padding: 4px 0 44px;
}
.bs-empty-img {
  width: 100%; max-width: 220px; height: auto;
  margin: 2px 0 12px; object-fit: contain;
}
.bs-empty-title {
  font-size: 18px; font-weight: 700;
  color: rgba(var(--dark-text), 1); margin: 0 0 6px;
}
.bs-empty-sub {
  font-size: 13px; line-height: 1.45; color: #8b8b8b;
  margin: 0 0 18px; max-width: 300px;
}
.bs-empty-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin: 0 0 20px; font-weight: 700;
}
.bs-empty-cta i { font-size: 18px; line-height: 1; }

.bs-empty-chips {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 6px; width: 100%;
}
.bs-empty-chip {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; gap: 6px; text-align: left;
}
.bs-empty-chip-ico {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--theme-color), 0.1);
  color: rgba(var(--theme-color), 1); font-size: 14px;
}
.bs-empty-chip-text { min-width: 0; display: flex; flex-direction: column; }
.bs-empty-chip-text b {
  font-size: 10px; font-weight: 700; line-height: 1.3;
  color: rgba(var(--dark-text), 1);
}
.bs-empty-chip-text span { font-size: 9px; line-height: 1.3; color: #9a9a9a; }

/* Баннер — заготовка: слот рендерится только когда в настройках типа бизнеса
   появится empty_cart.banner (см. include/cart-empty.php). */
.bs-empty-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; margin-top: 20px; padding: 14px 16px;
  border-radius: 16px; text-decoration: none;
  background: rgba(var(--theme-color), 0.07);
}
.bs-empty-banner-text { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.bs-empty-banner-text b { font-size: 15px; font-weight: 700; color: rgba(var(--dark-text), 1); }
.bs-empty-banner-text em {
  font-style: normal; font-size: 15px; font-weight: 700;
  color: rgba(var(--theme-color), 1);
}
.bs-empty-banner-text span { font-size: 12px; color: #8b8b8b; margin-top: 2px; }
.bs-empty-banner-img { width: 96px; height: auto; flex-shrink: 0; object-fit: contain; }
.product-detail-popup {
  top: 50px !important;
  height: calc(100dvh - 50px) !important;
  max-height: calc(100dvh - 50px) !important;
  display: flex !important; flex-direction: column !important;
  padding: 0 !important; overflow: hidden !important; will-change: transform;
}
.popup-drag-handle-wrap {
  position: absolute; top: 0; left: 0; right: 0; height: 48px; z-index: 10;
  display: flex; justify-content: center; align-items: flex-start; padding-top: 10px;
  touch-action: none; cursor: grab; background: transparent; pointer-events: all;
}
.popup-drag-pill { width: 48px; height: 5px; background: rgba(255,255,255,0.85); border-radius: 3px; }
#popup-inner { flex: 1; overflow: hidden; display: flex; flex-direction: column; padding: 0; }
.popup-scroll-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 20px 8px; }
.popup-footer {
  flex-shrink: 0; padding: 0 20px 10px;
  background: rgba(var(--white), 1);
  border-top: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-radius: 15px;
}
.popup-sizes-wrap { margin: 12px 0 4px; }
.popup-section-title { font-size: 14px; font-weight: 600; color: rgba(var(--dark-text), 1); margin: 0 0 8px; }
.popup-sizes { display: flex; gap: 8px; background: #fef7ef; padding: 5px; border-radius: 5px; }
.popup-size-btn {
  flex: 1; text-align: center; padding: 6px 4px;
  border-radius: 10px; border: none; background: transparent;
  color: rgba(var(--dark-text), 1); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background 0.18s, color 0.18s; line-height: 1.4;
}
.popup-size-btn:active { opacity: 0.8; }
.popup-size-btn.active { background: white;
    color: rgba(var(--theme-color), 1);
    border: 1px solid rgba(var(--theme-color), 1); }
.popup-size-weight { font-size: 11px; opacity: 0.75; }
.addon-hint { display: block; font-size: 9px; color: rgba(var(--light-text), 1); margin: 0px 0 6px; }
.cat-modal-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 4px; padding: 12px 0;
}
.cat-modal-cell { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cat-modal-cell h6 { font-size: 11px; margin-top: 5px; line-height: 1.2; word-break: break-word; }

/* ===== popup-recs ===== */
.popup-recs { padding: 8px 0 4px; }
.popup-recs-title { font-size: 14px; font-weight: 700; color: rgba(var(--title), 1); margin-bottom: 10px; }
.popup-recs-scroll {
  display: flex; flex-direction: row; flex-wrap: nowrap;
  gap: 10px; overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.popup-recs-scroll::-webkit-scrollbar { display: none; }
.popup-rec-card {
  flex: 0 0 140px; width: 140px; min-width: 140px; max-width: 140px;
  border-radius: 12px; overflow: hidden;
  border: 1.5px solid rgba(var(--black), 0.08);
  background: rgba(var(--white), 1);
  box-shadow: 0 2px 8px rgba(var(--black), 0.06);
  display: flex; flex-direction: column;
}
.popup-rec-click { cursor: pointer; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.popup-rec-click:active { opacity: 0.82; }
.popup-rec-img { width: 140px; height: 100px; object-fit: cover; display: block; flex-shrink: 0; }
.popup-rec-name {
  font-size: 12px; font-weight: 500; color: rgba(var(--dark-text), 1);
  padding: 6px 8px 4px; line-height: 1; flex: 1; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  max-height: 2.7em;
}
.popup-rec-qty { padding: 0 6px 6px; flex-shrink: 0; }
.popup-rec-idle {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(var(--box-bg), 1); border-radius: 8px; padding: 5px 8px;
}
.popup-rec-active {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(var(--box-bg), 1); border-radius: 8px; padding: 4px 6px; gap: 2px;
}
.popup-rec-price { font-size: 12px; font-weight: 600; color: rgba(var(--dark-text), 1); }
.popup-rec-btn-add, .popup-rec-btn-dec, .popup-rec-btn-inc {
  width: 24px; height: 24px; border: none; background: white; color: black;
  border-radius: 6px; font-size: 16px; line-height: 1; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.popup-rec-center { display: flex; flex-direction: column; align-items: center; flex: 1; }
.popup-rec-num { font-size: 13px; font-weight: 700; color: rgba(var(--dark-text), 1); line-height: 1.2; }
.popup-rec-sub-price { font-size: 10px; color: rgba(var(--light-text), 1); }

/* ===== popup-ingr (Состав — ингредиенты, компонентные характеристики) ===== */
.popup-ingr { padding: 8px 0 4px; }
.popup-ingr-head { font-size: 14px; font-weight: 700; color: rgba(var(--title), 1); margin-bottom: 10px; }
.popup-ingr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.popup-ingr-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(var(--black), 0.08); background: rgba(var(--white), 1);
  font-size: 13px; line-height: 1.2; color: rgba(var(--dark-text), 1);
}
.popup-ingr-qty { font-size: 12px; font-weight: 600; color: rgba(var(--theme-color), 1); }

/* ===== popup-comp (Composition — блюда в составе) ===== */
.popup-comp { position: relative; padding: 8px 0 4px; }
.popup-comp-toggle {
  width: 100%; display: flex; align-items: center; gap: 8px;
  background: none; border: none; padding: 0; margin-bottom: 10px; cursor: pointer;
}
.popup-comp-title { font-size: 14px; font-weight: 700; color: rgba(var(--title), 1); }
.popup-comp-badge {
  background: #7e8b99; color: #fff;
  font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; min-width: 22px; text-align: center;
}
.popup-comp-chevron { margin-left: auto; transition: transform 0.2s; font-size: 18px; color: rgba(var(--dark-text), 1); }
.popup-comp-toggle[aria-expanded="false"] .popup-comp-chevron { transform: rotate(-90deg); }
.popup-comp-list { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.popup-comp-list.collapsed { display: none; }
.popup-comp-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 8px;
  border-radius: 12px; cursor: pointer;
  background: rgba(var(--white), 1); transition: border-color 0.15s;
}
.popup-comp-item:active { opacity: 0.85; }
.popup-comp-item-extra { display: none; }
.popup-comp-spoiler {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  background: rgba(var(--black), 0.04);
  color: rgba(var(--title), 1);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.popup-comp-spoiler i { font-size: 16px; color: rgba(var(--content), 1); }
.popup-comp-list.collapsed + .popup-comp-spoiler { display: none; }
.popup-comp-img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.popup-comp-info { flex: 1; min-width: 0; }
.popup-comp-name {
  font-size: 11px; /*font-weight: 500;*/ color: rgba(var(--dark-text), 1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.popup-comp-meta { font-size: 11px; color: rgba(var(--light-text), 1); }
.popup-comp-serving {
  flex-shrink: 0; min-width: 26px; height: 26px; border-radius: 6px; padding: 0 6px;
  background: #f5f7f9; color: #1b242c;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* Tooltip — тёмный box со стрелкой; position:absolute внутри .popup-comp,
   поэтому окошко скроллится вместе с контентом (прикреплено к позиции), а не плавает */
.popup-comp-tooltip {
  position: absolute; left: 0; right: 0; z-index: 30;
  background: #3a424a; color: #fff; border-radius: 10px; padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: popupCompTipIn 0.15s ease-out;
}
@keyframes popupCompTipIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.popup-comp-tip-close {
  position: absolute; top: 8px; right: 10px; background: none; border: none;
  color: rgba(255, 255, 255, 0.7); font-size: 22px; line-height: 1; cursor: pointer; padding: 0;
}
.popup-comp-tip-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; padding-right: 20px; }
.popup-comp-tip-meta { font-size: 11px; color: rgba(255, 255, 255, 0.65); margin-bottom: 10px; }
.popup-comp-tip-kbju-title { font-size: 12px; font-weight: 700; margin-bottom: 6px; color: rgba(255, 255, 255, 0.9); }
.popup-comp-tip-kbju-row { font-size: 11px; color: rgba(255, 255, 255, 0.75); margin-bottom: 4px; }
.popup-comp-tip-desc { font-size: 11px; color: rgba(255, 255, 255, 0.7); margin: 8px 0; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.popup-comp-tip-open {
  width: 100%; margin-top: 8px; background: rgba(255, 255, 255, 0.12); border: none; color: #fff;
  font-size: 12px; font-weight: 600; padding: 8px; border-radius: 8px; cursor: pointer;
}
.popup-comp-tip-arrow {
  position: absolute; width: 14px; height: 14px; background: #3a424a;
  transform: translateX(-50%) rotate(45deg); bottom: -6px; border-radius: 2px;
}
.popup-comp-tooltip.arrow-up .popup-comp-tip-arrow { bottom: auto; top: -6px; }

/* ===== addon-tiles ===== */
.addon-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.addon-tile {
  border-radius: 10px;
  border: 1px solid rgba(var(--black), 0.1);
  background: rgba(var(--white), 1);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
  min-height: 49px;
  overflow: visible;
}
.addon-tile.selected {
  border-color: rgba(var(--theme-color), 1);
  background: rgba(var(--theme-color), 0.05);
}
.addon-tile.selected::after {
  content: '';
  position: absolute;
  top: -9px;
  right: -9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(var(--theme-color), 1);
  z-index: 1;
}
.addon-tile.selected::before {
  content: '';
  position: absolute;
  top: -4px;
  right: -1px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  z-index: 2;
  pointer-events: none;
}
.addon-tile-img {
  width: 33px;
  height: 33px;
  /*min-width: 44px;*/
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}
.addon-tile-body {
  flex: 1;
  min-width: 0;
}
.addon-tile-name {
  font-size: 8px;
  font-weight: 500;
  color: rgba(var(--title), 1);
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.addon-tile-price {
  font-size: 7px;
  font-weight: 500;
  color: rgba(var(--theme-color), 1);
  margin-top: 2px;
}
.addon-tile-btn {
  position: absolute;
  bottom: 8px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #e0dfdd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  color: #60412d;
  font-family: 'Roboto', sans-serif;
  font-weight: 100;
}
.addon-tile-btn i {
  position: absolute;
  bottom: 8px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #e0dfdd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  color: #60412d;
}
.addon-tile.selected .addon-tile-btn {
  display: none;
}
.addon-tiles-grid.is-limited .addon-tile:not(.selected) {
  cursor: default;
  opacity: 0.45;
  pointer-events: none;
}
.addon-tiles-grid.is-limited .addon-tile:not(.selected) .addon-tile-btn {
  display: none;
}
.addon-tile-extra {
  display: none;
}
.addon-tile-spoiler {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  background: rgba(var(--black), 0.04);
  color: rgba(var(--title), 1);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.addon-tile-spoiler i {
  font-size: 16px;
  color: rgba(var(--content), 1);
}

/* ===== addon-slider ===== */
.addon-slider-track {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.addon-slider-track::-webkit-scrollbar { display: none; }
.addon-slider-card {
  flex: 0 0 calc((100% - 15px) / 3);
  scroll-snap-align: start;
  border: 1px solid rgba(var(--black), 0.1);
  border-radius: 12px;
  background: rgba(var(--white), 1);
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.addon-slider-card.selected {
  border-color: rgba(var(--theme-color), 1);
  background: rgba(var(--theme-color), 0.05);
}
.addon-slider-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  height: 65px;
  border-radius: 11px 11px 0 0;
}
.addon-slider-title {
  font-size: 9px;
  font-weight: 600;
  color: rgba(var(--title), 1);
  padding: 5px 7px 3px;
  line-height: 1.3;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.addon-sl-bottom {
  display: flex;
  align-items: center;
  margin: 3px 7px 7px;
  gap: 6px;
}
.addon-slider-ctrl {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(var(--theme-color), 1);
  border-radius: 8px;
  padding: 4px 7px;
  background: #fff;
  gap: 4px;
}
.addon-sl-stepper {
  display: none;
  align-items: center;
  gap: 4px;
}
.addon-slider-card.selected .addon-sl-stepper { display: flex; }
.addon-slider-card.selected .addon-sl-add    { display: none; }
.addon-sl-minus, .addon-sl-plus {
  font-size: 14px;
  color: rgba(var(--theme-color), 1);
  cursor: pointer;
  line-height: 1;
}
.addon-sl-plus-hidden { display: none !important; }
.addon-sl-qty {
  font-size: 12px;
  font-weight: 600;
  color: rgba(var(--title), 1);
  min-width: 14px;
  text-align: center;
}
.addon-sl-price-in {
  font-size: 10px;
  font-weight: 600;
  color: rgba(var(--theme-color), 1);
  white-space: nowrap;
}
.addon-sl-price-out {
  display: none;
  font-size: 10px;
  font-weight: 600;
  color: rgba(var(--theme-color), 1);
  white-space: nowrap;
  flex-shrink: 0;
}
.addon-slider-card.selected .addon-sl-price-in  { display: none; }
.addon-slider-card.selected .addon-sl-price-out { display: block; }
.addon-sl-add {
  font-size: 16px;
  color: rgba(var(--theme-color), 1);
  cursor: pointer;
  line-height: 1;
  margin-left: auto;
}

/* ===== Addon groups wrap ===== */
.addon-groups-wrap { display: contents; }

/* ===== Addon group summary bar ===== */
.addon-group-summary {
  align-items: center;
  justify-content: space-between;
  background: rgba(var(--theme-color), 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 10px;
  gap: 10px;
}
.addon-summary-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.addon-summary-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(var(--theme-color), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.addon-summary-icon i {
  color: rgba(var(--theme-color), 1);
  font-size: 18px;
}
.addon-summary-text { flex: 1; min-width: 0; }
.addon-summary-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--title-color, #222);
}
.addon-summary-names {
  font-size: 11px;
  color: #888;
  overflow: hidden;
  max-height: 1.5em;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: max-height 0.35s ease;
}
.addon-summary-names.expanded {
  max-height: 10em;
  white-space: normal;
  text-overflow: clip;
}
.addon-summary-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.addon-summary-price {
  font-size: 13px;
  font-weight: 600;
  color: rgba(var(--theme-color), 1);
}
.addon-summary-right > i {
  color: rgba(var(--theme-color), 1);
  font-size: 18px;
  transition: transform 0.3s ease;
}

/* ===== section-pickup ===== */
.section-pickup { padding: 12px 0 8px; }

/* ---- Tabs ---- */
.pickup-tabs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  background: #fef9f6;
  border-radius: 11px; /*padding: 4px;*/ gap: 0;
  border-bottom: 1px solid rgba(var(--dashed-line), 1);
  padding: 5px;
}
.pickup-tab-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 5px; border: none; border-radius: 10px;
  font-size: 12px; font-weight: 500;
  background: transparent; color: #4e4c4d;
  cursor: pointer; transition: all .2s; white-space: nowrap;
  position: relative;
}
.pickup-tab-btn:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 30%; height: 40%;
  width: 1px;
  background: rgba(var(--dashed-line), 1);
  transition: opacity .2s;
}
.pickup-tab-btn.active::after,
.pickup-tab-btn.active + .pickup-tab-btn::before {
  opacity: 0;
}
.pickup-tab-btn:not(:last-child):has(+ .active)::after { opacity: 0; }
.pickup-tab-btn i { font-size: 14px;font-weight: 100; }
.pickup-tab-btn.active {
  border: 1px solid rgba(var(--theme-color), 1);
  background: white;
  color: rgba(var(--theme-color), 1);
  font-weight: 600;
  z-index: 1;
}

/* ---- Restaurant block ---- */
.pickup-restaurant-block {
  display: flex; align-items: center; gap: 10px;
  background: rgba(var(--white), 1);
  border: 1px solid rgba(var(--dashed-line), 1);
  border-radius: 14px; padding: 10px 12px; margin-bottom: 10px;
}
.pickup-restaurant-pin {
  width: 38px; height: 38px; flex-shrink: 0;
  background: rgba(var(--theme-color), 0.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: rgba(var(--theme-color), 1);
}
.pickup-restaurant-photo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.pickup-restaurant-info { flex: 1; min-width: 0; }
.pickup-restaurant-name {
  font-size: 14px; font-weight: 700; color: rgba(var(--dark-text), 1);
  display: flex; align-items: center; gap: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pickup-restaurant-name i { color: rgba(var(--theme-color), 1); font-size: 16px; flex-shrink: 0; }
.pickup-restaurant-addr { font-size: 11px; color: rgba(var(--light-text), 1); margin-top: 2px; }
.pickup-change-btn {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; color: rgba(var(--theme-color), 1);
  background: none; border: 1px solid rgba(var(--theme-color), 0.35);
  border-radius: 8px; padding: 5px 8px; white-space: nowrap; flex-shrink: 0; cursor: pointer;
}

/* ---- Hall: table selection card ---- */
.pickup-card {
  background: rgba(var(--white), 1);
  border: 1px solid rgba(var(--dashed-line), 1);
  border-radius: 16px; padding: 16px; margin-bottom: 10px;
}
.pickup-card-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: rgba(var(--dark-text), 1); }
.pickup-card-sub { font-size: 12px; color: rgba(var(--light-text), 1); margin: 0 0 16px; line-height: 1.45; }

.pickup-table-cols { display: flex; align-items: flex-start; }
.pickup-qr-col, .pickup-manual-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pickup-or-sep {
  font-size: 10px; color: rgba(var(--light-text), 1);
  margin: 90px 11px 0; padding: 10px 0px; flex-shrink: 0; align-self: flex-start;
  border-top: 1px solid lightgrey;
    border-bottom: 1px solid lightgrey;
}
.pickup-qr-illustration {
  width: 88px; height: 80px; background: rgba(var(--theme-color), 0.08);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: rgba(var(--theme-color), 1);
}
.pickup-table-illustration {
  width: 88px; height: 80px; background: rgba(var(--theme-color), 0.08);
  border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pickup-table-illustration img { width: 100%; height: 100%; object-fit: cover; }
.pickup-table-num-placeholder { font-size: 36px; font-weight: 800; color: rgba(var(--theme-color), 1); }
.pickup-col-label { font-size: 12px; font-weight: 600; color: rgba(var(--dark-text), 1); text-align: center; }
.pickup-col-sub { font-size: 11px; color: rgba(var(--light-text), 1); text-align: center; margin-top: -6px; }

.btn-pickup-orange, .btn-pickup-white, .btn-pickup-outline {
  border-radius: 10px; font-size: 13px;
  padding: 10px 10px; cursor: pointer; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: opacity .15s; box-sizing: border-box;
}
.btn-pickup-orange { background: rgba(var(--theme-color), 1); color: #fff; border: none; }
.btn-pickup-white { background: white; color: rgba(var(--theme-color), 1); border: 1px solid rgba(var(--theme-color), 1); padding: 8px 10px; }
.btn-pickup-outline { background: transparent; border: 1.5px solid rgba(var(--theme-color), 1); color: rgba(var(--theme-color), 1); }
.btn-pickup-full { width: 100%; }

.pickup-manual-form { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.pickup-table-input {
  width: 100%; padding: 7px 10px;
  border: 1.5px solid rgba(var(--dashed-line), 1);
  border-radius: 10px; font-size: 12px;
  background: rgba(var(--white), 1); color: rgba(var(--dark-text), 1);
  text-align: center; outline: none; box-sizing: border-box;
}
.pickup-table-input:focus { border-color: rgba(var(--theme-color), 1); }

/* ---- Hint cards ---- */
.pickup-hint-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(var(--white), 1);
  border: 1px solid rgba(var(--dashed-line), 1);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
}
.pickup-hint-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: rgba(var(--theme-color), 1);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}
.pickup-hint-icon--info { background: rgba(var(--theme-color), 0.1); color: rgba(var(--theme-color), 1); }
.pickup-hint-text { flex: 1; }
.pickup-hint-text strong { display: block; font-size: 13px; font-weight: 600; color: rgba(var(--dark-text), 1); }
.pickup-hint-text span { font-size: 11px; color: rgba(var(--light-text), 1); line-height: 1.4; }
.pickup-hint-arrow { font-size: 20px; color: rgba(var(--light-text), 1); flex-shrink: 0; }

/* ---- Notice ---- */
.pickup-notice {
  display: flex; align-items: flex-start; gap: 8px;
  background: #fef9f6;
  border-radius: 12px; padding: 5px 12px;
  font-size: 11px; line-height: 1.5;
  border: 1px solid rgba(var(--dashed-line), 1);
}
.pickup-notice i { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

/* ---- Table selected state ---- */
.pickup-table-selected-card {
  background: rgba(var(--white), 1);
  border: 1px solid rgba(var(--dashed-line), 1);
  border-radius: 16px; overflow: hidden; margin-bottom: 10px;
}
.pickup-table-selected-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px;
}
.pickup-table-check {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  background: #22c55e; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}
.pickup-table-selected-info { flex: 1; }
.pickup-table-selected-label { font-size: 12px; color: #22c55e; font-weight: 600; margin-bottom: 2px; }
.pickup-table-selected-num { font-size: 22px; font-weight: 800; color: rgba(var(--dark-text), 1); line-height: 1.2; }
.pickup-table-selected-rest {
  font-size: 11px; color: rgba(var(--light-text), 1); margin-top: 4px;
  display: flex; align-items: center; gap: 4px;
}
.pickup-change-table-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 9px; color: rgba(var(--theme-color), 1);
  background: none; border: 1px solid rgba(var(--theme-color), 0.5);
  border-radius: 8px; padding: 5px 5px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s; white-space: nowrap;
}
.pickup-change-table-btn:hover {
  background: rgba(var(--theme-color), 0.04); border-color: rgba(var(--theme-color), 0.7);
}

/* ---- Hall: restaurant selector card ---- */
.hall-loc-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fef9f6; border: 1px solid rgba(var(--dashed-line), 1);
  border-radius: 10px; padding: 0px 5px; margin-bottom: 10px;
}
.hall-loc-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.hall-loc-icon { flex-shrink: 0; }
.hall-loc-name { font-size: 12px; font-weight: 700; color: rgba(var(--dark-text), 1); }
.hall-loc-sub { font-size: 8px; color: rgba(var(--light-text), 1); }
.hall-loc-list-inner { margin-top: 0; }
.hall-loc-item { cursor: pointer; }
.pickup-table-delivery-note {
  display: flex; align-items: center; gap: 10px;
  background: rgba(34, 197, 94, 0.08); padding: 12px 14px;
  font-size: 13px; font-weight: 600; color: #16a34a;
}
.pickup-note-icon { font-size: 22px; flex-shrink: 0; }

/* ---- Bon appetit ---- */
.pickup-bon-appetit {
  display: flex; align-items: center; gap: 12px;
  background: rgba(var(--white), 1);
  border: 1px solid rgba(var(--dashed-line), 1);
  border-radius: 14px; padding: 14px; margin-top: 8px;
}
.pickup-bon-appetit > i { font-size: 30px; color: rgba(var(--theme-color), 1); }
.pickup-bon-appetit strong { display: block; font-size: 15px; font-weight: 700; color: rgba(var(--dark-text), 1); }
.pickup-bon-appetit span { font-size: 12px; color: rgba(var(--light-text), 1); }

/* ---- Самовывоз: map placeholder ---- */
.pickup-map-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #e8f0e9 0%, #d4e4d6 50%, #c8deca 100%);
  border-radius: 16px; margin-bottom: 10px;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-start; justify-content: flex-end;
}
.pickup-map-ready-badge {
  background: rgba(var(--white), 1); border-radius: 12px;
  padding: 8px 14px; margin: 10px;
  font-size: 24px; font-weight: 800; color: rgba(var(--theme-color), 1);
  text-align: center; line-height: 1.1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.pickup-map-ready-badge small { font-size: 10px; font-weight: 600; display: block; }

/* ---- Самовывоз: location list ---- */
.pickup-loc-list-wrap { display: flex; flex-direction: column; gap: 10px; }
.pickup-loc-card {
  background: rgba(var(--white), 1);
  border: 1px solid rgba(var(--dashed-line), 1);
  border-radius: 16px; overflow: hidden;
}
.pickup-loc-card--selected { border-color: rgba(var(--theme-color), 0.5); }
.pickup-nearest-badge {
  padding: 6px 14px;
  background: rgba(var(--theme-color), 0.07);
  font-size: 12px; font-weight: 600; color: rgba(var(--theme-color), 1);
  display: flex; align-items: center; gap: 4px;
}
.pickup-loc-card-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 6px; }
.pickup-loc-card-photo { flex-shrink: 0; }
.pickup-loc-card-photo img,
.pickup-loc-photo-placeholder { width: 30px; height: 45px; border-radius: 10px; object-fit: cover; }
.pickup-loc-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: rgba(var(--theme-color), 1);
}
.pickup-loc-card-info { flex: 1; min-width: 0; }
.pickup-loc-card-name { font-size: 14px; font-weight: 700; color: rgba(var(--dark-text), 1); margin-bottom: 4px; }
.pickup-loc-card-addr,
.pickup-loc-card-dist,
.pickup-loc-card-ready {
  font-size: 11px; color: rgba(var(--light-text), 1);
  display: flex; align-items: center; gap: 3px; margin-bottom: 2px;
}
.pickup-loc-card-ready span { color: rgba(var(--theme-color), 1); font-weight: 600; }
.pickup-loc-card-check { font-size: 22px; color: rgba(var(--theme-color), 1); flex-shrink: 0; align-self: center; }
.pickup-loc-card-action { padding: 8px 12px 12px; }

.pickup-takeaway-info {
  display: flex; align-items: center; gap: 12px;
  background: rgba(var(--white), 1);
  border: 1px solid rgba(var(--dashed-line), 1);
  border-radius: 14px; padding: 12px 14px;
}
.pickup-takeaway-info-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background: rgba(var(--theme-color), 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: rgba(var(--theme-color), 1);
}
.pickup-takeaway-info-text { flex: 1; }
.pickup-takeaway-info-text strong { display: block; font-size: 13px; font-weight: 600; color: rgba(var(--dark-text), 1); }
.pickup-takeaway-info-text span { font-size: 11px; color: rgba(var(--light-text), 1); }

/* ---- Delivery pane ---- */
.pickup-delivery-card {
  background: rgba(var(--white), 1);
  border: 1px solid rgba(var(--dashed-line), 1);
  border-radius: 14px; overflow: hidden; margin-bottom: 4px;
}
.pickup-delivery-row-inner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }

/* ---- Shared: loc-icon / loc-info (delivery pane) ---- */
.pickup-loc-icon {
  width: 38px; height: 38px;
  background: rgba(var(--white), 1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: rgba(var(--light-text), 1);
  flex-shrink: 0; border: 1px solid rgba(var(--dashed-line), 1);
}
.pickup-loc-icon--orange { color: rgba(var(--theme-color), 1); }
.pickup-loc-info { flex: 1; min-width: 0; }
.pickup-loc-info h4 { font-size: 14px; font-weight: 600; margin: 0 0 1px; color: rgba(var(--dark-text), 1); }
.pickup-loc-info span { font-size: 12px; color: rgba(var(--light-text), 1); }

/* ===== pickup-info-bar ===== */
.pickup-info-bar {
  display: flex; align-items: center; gap: 10px;
  background: rgba(var(--white), 1);
  /*border: 1px solid rgba(var(--dashed-line), 1);
  border-radius: 14px;*/ padding: 6px 14px;
  /*margin-bottom: 10px;*/ text-decoration: none; cursor: pointer;
  transition: background .15s;
  border-radius: 10px;
}
.pickup-info-bar:active { background: rgba(var(--light-theme-color), 1); }
.pickup-info-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
      background: rgb(254 249 246);
    border: 1px solid rgba(var(--theme-color), 1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
}
.pickup-info-text { flex: 1; min-width: 0; overflow: hidden; }
.pickup-info-text span { display: block; font-size: 11px; color: rgba(var(--light-text), 1); margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pickup-info-text strong { display: block; font-size: 12px; font-weight: 600; color: rgba(var(--dark-text), 1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pickup-info-arrow { font-size: 20px; color: rgba(var(--light-text), 1); flex-shrink: 0; }

/* ===== delivery-modal (bottom-sheet, см. .bottom-sheet-modal ниже) ===== */
#delivery-modal .modal-content {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px 20px 0 0; max-height: 92vh;
}
.delivery-modal-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 0px 16px 20px;
  background: rgba(var(--white), 1);
}
.delivery-modal-tabs {
  margin-bottom: 16px; position: sticky; top: 0; z-index: 10;
  background: #fef9f6; padding: 5px;
  margin-left: -16px; margin-right: -16px;
}

/* Delivery address pane */
.delivery-modal-pane { }
.delivery-addr-source {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(var(--light-text), 1);
  margin-bottom: 10px;
}
.delivery-addr-source i { color: rgba(var(--theme-color), 1); font-size: 15px; }
.delivery-addr-source strong { color: rgba(var(--dark-text), 1); }
.delivery-addr-input-row {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(var(--dashed-line), 1);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 10px;
  background: rgba(var(--white), 1);
}
.delivery-addr-input-row:focus-within { border-color: rgba(var(--theme-color), 1); }
.delivery-addr-pin { font-size: 18px; color: rgba(var(--theme-color), 1); flex-shrink: 0; }
.delivery-addr-field {
  flex: 1; border: none; outline: none; font-size: 14px;
  background: transparent; color: rgba(var(--dark-text), 1);
}

/* Takeaway location list in modal */
.delivery-loc-list { display: flex; flex-direction: column; gap: 8px; }
.delivery-loc-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid rgba(var(--dashed-line), 1);
  border-radius: 14px; cursor: pointer; transition: border-color .15s;
}
.delivery-loc-item--active { border-color: rgba(var(--theme-color), 1); background: rgba(var(--theme-color), 0.04); }
.delivery-loc-item-photo { flex-shrink: 0; }
.delivery-loc-item-photo img,
.delivery-loc-item-photo .pickup-loc-photo-placeholder { width: 46px; height: 46px; border-radius: 8px; }
.delivery-loc-item-info { flex: 1; min-width: 0; }
.delivery-loc-item-name { font-size: 13px; font-weight: 700; color: rgba(var(--dark-text), 1); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delivery-loc-item-sub { font-size: 11px; color: rgba(var(--light-text), 1); display: flex; align-items: center; gap: 3px; }
.delivery-loc-item-ready { font-size: 11px; color: rgba(var(--light-text), 1); margin-top: 1px; }
.delivery-loc-item-ready span { color: rgba(var(--theme-color), 1); font-weight: 600; }
.delivery-loc-check { font-size: 20px; color: rgba(var(--theme-color), 1); flex-shrink: 0; }
.delivery-loc-check--empty { color: rgba(var(--light-text), 1); }

/* Hall pane (modal) */
.modal-hall-cols { display: flex; align-items: flex-start; }
.modal-hall-col  { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; 
	background: #fef9f6;
    border-radius: 10px;
    padding: 10px;
	border: 1px solid rgba(var(--dashed-line), 1);
}
/*.modal-hall-illus {
  width: 72px; height: 64px; background: rgba(var(--theme-color), 0.08);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: rgba(var(--theme-color), 1);
}
.modal-hall-illus--num { font-size: 0; }
.modal-hall-illus--num .pickup-table-num-placeholder { font-size: 28px; }*/


input[type=number]
{
	text-align: left;
}
input[type=number]::placeholder
{
	color: #b2b2b2;
}

/* ===== Auth Modal ===== */
.am-page {
  background: #fefdfb; border-radius: 16px;
  overflow-y: auto;
}

/* Header with back arrow */
.am-header {
  display: flex; align-items: center;
  padding: 16px 20px 0;
}
.am-back-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.06); cursor: pointer;
  font-size: 22px; color: #1a1a1a; transition: background .2s;
}
.am-back-btn:hover { background: rgba(0,0,0,0.1); }

/* Hero */
.am-hero {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px 24px 25px;
}
.am-hero-text { flex: 1; padding-right: 12px; }
.am-title {
  font-size: 21px; font-weight: 500; color: #1a1a1a;
  margin: 0 0 10px; line-height: 1.15;
}
.am-subtitle {
  font-size: 11px; color: #888; margin: 0; line-height: 1.5;
}
.am-hero-art {
  position: relative; width: 160px; height: 110px; flex-shrink: 0;top: -50px;left: 10px;
}

/* Body */
.am-body { padding: 0 20px 32px; }

/* Field label */
.am-field-label {
  font-size: 11px; font-weight: 500; color: #1a1a1a; margin-bottom: 5px;
}

/* Phone field */
.am-field {
  display: flex; align-items: center;
  background: white; border-radius: 10px;
  padding: 10px 16px; border: 1.5px solid #f5f5f5; margin-bottom: 8px;
}
.am-field:focus-within { border-color: #f5a623; }
.am-field-right { display: flex; align-items: center; margin-right: 10px; flex-shrink: 0; }
.am-field-sep { width: 1px; height: 17px; background: #f5f5f5; margin-left: 10px;margin-right: 15px; }
.am-country-btn {
  display: flex; align-items: center; gap: 4px;
  border: none; background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 500; color: #1a1a1a; padding: 0;
  white-space: nowrap; flex-shrink: 0;
}
.am-country-btn #am-country-arrow {
  font-size: 16px; color: #aaa;
  transition: transform .2s;
}
.am-field-input {
  flex: 1; border: none; outline: none; font-size: 16px;
  color: #1a1a1a; background: transparent; min-width: 0;
}
.am-field-input::placeholder { color: #c0bab0; }

/* Phone wrap: positions dropdown relative to field */
.am-phone-wrap {
  position: relative;
  margin-bottom: 8px;
}
.am-phone-wrap .am-field {
  margin-bottom: 0;
}

/* Country dropdown */
.am-country-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff;
  border: 1.5px solid #ede8de;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  z-index: 200;
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0;
}
.am-cd-group-label {
  font-size: 11px; font-weight: 700;
  color: #aaa; text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 16px 4px;
}
.am-cd-divider {
  height: 1px; background: #f0ebe0;
  margin: 6px 0;
}
.am-cd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; cursor: pointer;
  transition: background .15s;
}
.am-cd-item:hover { background: #faf7f0; }
.am-cd-item--selected { background: rgba(245,166,35,0.07); }
.am-cd-flag {
  font-size: 20px; flex-shrink: 0; line-height: 1;
  width: 26px; text-align: center;
}
.am-cd-name {
  flex: 1; font-size: 14px; color: #1a1a1a;
}
.am-cd-code {
  font-size: 13px; font-weight: 600; color: #888; flex-shrink: 0;
}
.am-cd-item--selected .am-cd-name { font-weight: 600; color: #1a1a1a; }
.am-cd-item--selected .am-cd-code { color: #f5a623; }

/* Privacy note */
.am-field-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: #888; margin-bottom: 22px;
}
.am-field-note i { color: #f5a623; font-size: 14px; }

/* Error */
.am-error {
  font-size: 13px; border-radius: 10px; padding: 10px 14px;
  background: rgba(220,53,69,0.08); color: #dc3545; margin-bottom: 12px;
}

/* Section label */
.am-section-label {
  font-size: 11px; font-weight: 500; color: #1a1a1a; margin-bottom: 5px;
}

/* Messenger list */
.am-messenger-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.am-messenger-item {
  display: flex; align-items: center; gap: 14px;
  background: #fefefe; border: 1.5px solid #f5f5f5; border-radius: 14px;
  padding: 10px; cursor: pointer; text-align: left; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.am-messenger-item:hover { box-shadow: 0 2px 10px rgba(245,166,35,0.12); }
.am-messenger-item:active { box-shadow: none; }
.am-messenger-item:disabled { opacity: 0.6; cursor: not-allowed; }
.am-messenger-icon {
  width: 35px; height: 35px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 22px; color: white;
}
/*
.am-messenger--tg  { background: #2CA5E0; }
.am-messenger--wa  { background: #25D366; }
.am-messenger--max { background: linear-gradient(135deg,#7B2FF7,#5B6CF9); font-size: 18px; font-weight: 700; }
*/
.am-messenger-info { flex: 1; }
.am-messenger-name { font-size: 12px; font-weight: 500; color: #1a1a1a; }
.am-messenger-desc { font-size: 10px; color: #888; }
.am-messenger-arrow { font-size: 20px; color: #888; flex-shrink: 0; }

/* Security card */
.am-security-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff7f4; border-radius: 10px;
  padding: 10px; margin-bottom: 22px;
}
.am-security-icon { font-size: 22px; color: #f5a623; flex-shrink: 0; margin-top: 1px; }
.am-security-title { font-size: 11px; font-weight: 500; color: #1a1a1a;}
.am-security-desc  { font-size: 9px; color: #888; line-height: 1.5; }

/* Footer links */
.am-footer-links { text-align: center; font-size: 12px; color: #aaa; line-height: 1.8; }
.am-footer-links p { margin: 0 0 6px; }
.am-link { color: #eb7920; text-decoration: none; }
.am-link:hover { text-decoration: underline; }

/* Step 2: code verification */
.am-code-body { padding-top: 30px; }
.am-code-title {
  font-size: 18px; font-weight: 700; color: #1a1a1a;
  line-height: 1.4; margin-bottom: 32px;
}
.am-pin-row {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 24px;
}
.am-pin-input {
  width: 60px; height: 64px; border-radius: 14px;
  border: 2px solid #ede8de; background: white;
  text-align: center; font-size: 24px; font-weight: 700; color: #1a1a1a;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.am-pin-input:focus { border-color: #f5a623; box-shadow: 0 0 0 3px rgba(245,166,35,0.15); }
.am-change-phone {
  display: block; width: 100%; border: none; background: transparent;
  font-size: 14px; color: #f5a623; text-align: center;
  margin-bottom: 32px; cursor: pointer; padding: 8px 0;
}
.am-change-phone:hover { text-decoration: underline; }
.am-code-actions { display: flex; gap: 12px; }
.am-btn-back {
  flex: 1; height: 52px; border: 1.5px solid #e0dbd0;
  border-radius: 14px; background: white; font-size: 16px; font-weight: 600;
  color: #555; cursor: pointer; transition: background .2s;
}
.am-btn-back:hover { background: #f5f0e8; }
.am-btn-confirm {
  flex: 2; height: 52px; border: none;
  border-radius: 14px; background: #f5a623; font-size: 16px; font-weight: 700;
  color: white; cursor: pointer; transition: background .2s;
}
.am-btn-confirm:hover { background: #e09512; }
.am-btn-confirm:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== Auth Code Modal (Step 2) ===== */
#auth-code-modal .modal-content {
  border-radius: 16px; border: none;
  overflow-y: auto; padding-bottom: 32px;
}
/* ── Auth Step 2 ── */
.acm-hero-icon {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 90px; height: 90px;
}
.acm-messenger-circle {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  overflow: hidden;
}
.acm-pin-row {
  display: flex; gap: 10px; justify-content: center;
  margin-bottom: 12px;
}
.acm-pin-input {
  width: 60px; height: 64px; border-radius: 14px;
  border: 1.5px solid #f5f5f5; background: white;
  text-align: center; font-size: 26px; font-weight: 700; color: #1a1a1a;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.acm-pin-input:focus {
  border-color: #f5a623; box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}
.acm-resend {
  font-size: 12px; color: #888; margin-bottom: 16px;
}
.acm-timer { color: #f5a623; font-weight: 600; }
.acm-resend-link { color: #f5a623; font-weight: 600; text-decoration: none; }
.acm-resend-link:hover { text-decoration: underline; }
.acm-confirm {
  display: block; width: 100%; margin-bottom: 8px;
  height: 56px; border: none; border-radius: 16px;
  background: #f5a623; color: white; font-size: 17px; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.acm-confirm:hover { background: #e09512; }
.acm-confirm:disabled { opacity: 0.6; cursor: not-allowed; }
.acm-noreceive {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 8px; margin-bottom: 8px; padding: 14px 16px;
  background: #fafafa; border-radius: 14px;
}
.acm-noreceive-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.acm-noreceive-title { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.acm-noreceive-desc  { font-size: 11px; color: #888; line-height: 1.5; }

/* ===== Auth link modal ===== */
.alm-steps {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px;
}
.alm-step {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fafafa; border-radius: 14px; padding: 14px 16px;
}
.alm-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f5a623; color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.alm-step-text { font-size: 14px; color: #333; line-height: 1.5; padding-top: 3px; }
.alm-open-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 56px; border-radius: 16px;
  background: #2CA5E0; color: #fff; font-size: 17px; font-weight: 700;
  text-decoration: none; transition: opacity .2s;
}
.alm-open-btn:hover { opacity: 0.88; color: #fff; }
.alm-open-btn-icon {
  width: 30px; height: 30px; border-radius: 50%;
  overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ===== Yandex Maps Container ===== */
.yandex-map-container {
  width: 100%; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #f0f0f0;
}

/* ===== Bonus Card ===== */
.bonus-card {
  background: #fef7ef; padding: 12px 14px; border-radius: 15px;
  display: flex; align-items: center; gap: 12px; margin: 15px 0;
}
.bonus-icon { width: 50px; height: 50px; flex-shrink: 0; }
.bonus-info { flex: 1; }
.bonus-title {
  font-size: 15px; font-weight: 700; color: #0d0c0a;
}
.bonus-amount {
  color: #f5a623; font-size: 18px;
}
.bonus-subtitle {
  font-size: 11px; color: #555553; line-height: 12px; margin-top: 2px;
}
.bonus-btn {
  border: 1px solid #f5a623; color: #f5a623; background: white;
  border-radius: 15px; padding: 7px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all 0.2s;
}
.bonus-btn:hover {
  background: #f5a623; color: white;
}
.bonus-card--locked {
  background: rgba(245, 166, 35, 0.06); opacity: 0.8;
}
.bonus-card--locked .bonus-btn {
  border-color: #999; color: #999;
}
.bonus-card--locked .bonus-btn:hover {
  background: #f5a623; color: white; border-color: #f5a623;
}

/* ===== Bonus Redeem Modal ===== */
.bonus-modal-content {
  border-radius: 20px; overflow: hidden;
}
.bonus-modal-header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 18px 14px; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.bonus-modal-title {
  font-size: 17px; font-weight: 700; margin: 0; color: rgba(var(--dark-text),1);
}
.bonus-modal-avail {
  font-size: 12px; color: rgba(var(--light-text),1); margin-top: 2px;
}
.bonus-modal-body {
  padding: 18px;
}
.bonus-modal-hint {
  font-size: 12px; color: rgba(var(--light-text),1); margin-bottom: 14px;
}
.bonus-range-wrap { margin-bottom: 16px; }
.bonus-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px; outline: none;
  background: linear-gradient(to right, #f5a623 0%, #f5a623 0%, rgba(var(--dashed-line),1) 0%);
  cursor: pointer;
}
.bonus-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #f5a623; border: 3px solid white;
  box-shadow: 0 2px 6px rgba(245,166,35,0.4); cursor: pointer;
}
.bonus-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #f5a623; border: 3px solid white;
  box-shadow: 0 2px 6px rgba(245,166,35,0.4); cursor: pointer;
}
.bonus-input-wrap {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(var(--dashed-line),1); border-radius: 12px;
  padding: 10px 14px; transition: border-color .2s;
}
.bonus-input-wrap:focus-within { border-color: #f5a623; }
.bonus-input-icon { font-size: 18px; color: #f5a623; font-weight: 700; flex-shrink: 0; }
.bonus-input {
  flex: 1; border: none; outline: none; font-size: 22px; font-weight: 700;
  color: rgba(var(--dark-text),1); background: transparent; min-width: 0;
}
.bonus-input::placeholder { color: rgba(var(--light-text),1); font-weight: 400; font-size: 16px; }
.bonus-input-suffix { font-size: 13px; color: rgba(var(--light-text),1); white-space: nowrap; }
.bonus-modal-footer {
  display: flex; gap: 10px; padding: 14px 18px 18px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.bonus-modal-cancel { flex: 1; }
.bonus-modal-apply  { flex: 2; }

/* ===== Auth Status Card ===== */
.auth-status-card {
  padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.auth-status-badge {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: 12px; font-size: 13px;
}
.auth-status-badge i {
  font-size: 28px; flex-shrink: 0;
}
.auth-status-label {
  font-weight: 600; margin-bottom: 2px;
}
.auth-status-action {
  font-size: 12px; opacity: 0.7;
}
.auth-status-action a {
  color: inherit; text-decoration: none; font-weight: 600;
}
.auth-status-action a:active {
  text-decoration: underline;
}

/* Not authorized state */
.auth-status--unauthorized {
  background: rgba(220, 53, 69, 0.08); color: #dc3545;
}

/* Authorized state */
.auth-status--authorized {
  background: rgba(34, 197, 94, 0.08); color: #22c55e;
}
.auth-status--authorized .auth-status-action a {
  color: #22c55e;
}

/* ═══════════════════════════════════════════════
   SIDEBAR — new layout
═══════════════════════════════════════════════ */
.sb-header {
  padding: 12px 16px 0;
  min-height: auto;
  border-bottom: none;
}
.sb-body {
  padding: 0 16px 24px;
}
.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Profile card */
.sb-profile-card {
  padding: 16px 0 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 4px;
}
.sb-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.sb-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(var(--box-bg), 1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  color: rgba(var(--light-text), 1);
}
.sb-profile-info { flex: 1; min-width: 0; }
.sb-profile-name { font-size: 16px; font-weight: 700; color: rgba(var(--dark-text), 1); }
.sb-profile-sub  { font-size: 12px; margin-top: 2px; }
.sb-login-link   { color: #f5a623; text-decoration: none; font-weight: 600; }
.sb-profile-arrow { font-size: 22px; color: rgba(var(--light-text), 1); flex-shrink: 0; }

/* Bonus card */
.sb-bonus-card {
  margin-top: 12px;
  background: linear-gradient(135deg, #1aaa8c, #0d8a70);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  overflow: hidden;
  position: relative;
}
.sb-bonus-amount {
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.sb-bonus-cashback {
  margin-top: 6px; font-size: 13px;
  display: flex; align-items: center; gap: 6px;
}
.sb-cashback-badge {
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 12px; font-weight: 700;
}
.sb-bonus-img {
  width: 64px; height: 64px; object-fit: contain; flex-shrink: 0;
}

/* Section label */
.sb-section-label {
  font-size: 12px; font-weight: 700;
  color: rgba(var(--light-text), 1);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 14px 0 4px;
}

/* Nav list */
.sb-nav-list { padding: 0; margin: 0; list-style: none; }
.sb-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.sb-nav-item:last-child { border-bottom: none; }
.sb-nav-item h3 { flex: 1; font-size: 15px; font-weight: 500; margin: 0; color: rgba(var(--dark-text), 1); }
.sb-nav-icon { font-size: 20px; color: rgba(var(--light-text), 1); flex-shrink: 0; width: 24px; text-align: center; }

/* Divider */
.sb-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 8px 0; }

/* Contact / phone */
.sb-contact-section { padding: 12px 0 8px; }
.sb-contact-label { font-size: 12px; color: rgba(var(--light-text), 1); margin-bottom: 6px; }
.sb-phone-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 600;
  color: rgba(var(--dark-text), 1); text-decoration: none;
}
.sb-phone-link i { font-size: 20px; color: rgba(var(--light-text), 1); }

/* Google Play */
.sb-app-section { padding: 10px 0 6px; }
.sb-gplay-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #111; border-radius: 10px;
  padding: 8px 14px; text-decoration: none; color: white;
}
.sb-gplay-btn img { width: 22px; height: 22px; }
.sb-gplay-label { font-size: 10px; opacity: .7; }
.sb-gplay-store { font-size: 14px; font-weight: 700; }

/* Social links */
.sb-social-section { padding: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.sb-social-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: rgba(var(--dark-text), 1); text-decoration: underline;
}
.sb-vk-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px;
  background: #0077ff; color: white; font-size: 11px; font-weight: 700;
  text-decoration: none; flex-shrink: 0;
}
.sb-tg-icon { font-size: 20px; color: #2CA5E0; flex-shrink: 0; }


/* ═══════════════════════════════════════════════
   DELIVERY ADDRESS MODULE
═══════════════════════════════════════════════ */

/* ── List view ── */
.da-header-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(var(--box-bg), 1);
  border-radius: 14px; padding: 16px;
  margin-bottom: 16px;
}
.da-header-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%; background: rgba(var(--theme-color), 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: rgba(var(--theme-color), 1);
}
.da-header-title { font-size: 15px; font-weight: 700; color: rgba(var(--dark-text), 1); margin-bottom: 4px; }
.da-header-sub   { font-size: 13px; color: rgba(var(--light-text), 1); line-height: 1.4; }

.da-section-label {
  font-size: 13px; font-weight: 700;
  color: rgba(var(--dark-text), 1);
  margin: 12px 0 6px;
}

.da-option-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(var(--white), 1);
  border-radius: 12px;
  border: 1px solid rgba(var(--dashed-line), 1);
  padding: 12px 14px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color .2s;
}
.da-option-item:hover { border-color: rgba(var(--theme-color), 1); }
.da-option-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%; background: rgba(var(--theme-color), 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: rgba(var(--theme-color), 1);
}
.da-add-icon { background: rgba(34,197,94,0.1); color: #22c55e; }
.da-option-text { flex: 1; min-width: 0; }
.da-option-title { font-size: 14px; font-weight: 600; color: rgba(var(--dark-text), 1); }
.da-option-sub   { font-size: 12px; color: rgba(var(--light-text), 1); margin-top: 2px; }
.da-option-arrow { font-size: 20px; color: rgba(var(--light-text), 1); flex-shrink: 0; }

.da-add-new { margin-top: 4px; }

/* Saved address rows */
.da-saved-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
}
.da-saved-item:last-child { border-bottom: none; }
.da-saved-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%; background: rgba(var(--theme-color), 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: rgba(var(--theme-color), 1);
}
.da-saved-info  { flex: 1; min-width: 0; }
.da-saved-label { font-size: 14px; font-weight: 600; color: rgba(var(--dark-text), 1); }
.da-saved-addr  { font-size: 12px; color: rgba(var(--light-text), 1); margin-top: 2px;
                  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.da-saved-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(var(--light-text), 0.4);
  flex-shrink: 0;
}
.da-saved-radio--checked {
  border-color: rgba(var(--theme-color), 1);
  background: radial-gradient(circle at center, rgba(var(--theme-color), 1) 40%, transparent 41%);
}

/* Promo card */
.da-promo-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(var(--theme-color), 0.08);
  border-radius: 14px; padding: 14px 16px;
  margin-top: 16px;
}
.da-promo-icon  { font-size: 22px; color: rgba(var(--theme-color), 1); flex-shrink: 0; }
.da-promo-text  { flex: 1; }
.da-promo-title { font-size: 14px; font-weight: 600; color: rgba(var(--dark-text), 1); }
.da-promo-sub   { font-size: 12px; color: rgba(var(--light-text), 1); margin-top: 2px; }
.da-promo-moto  { font-size: 42px; color: rgba(var(--theme-color), 1); flex-shrink: 0; }

/* ── Add form view ── */
.da-add-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.da-back-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(var(--box-bg), 1);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer; flex-shrink: 0;
  color: rgba(var(--dark-text), 1);
}
.da-add-title {
  font-size: 17px; font-weight: 700; color: rgba(var(--dark-text), 1);
}

/* Map */
.da-map-wrap {
  position: relative;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(var(--dashed-line), 1);
}
.da-map-label-bubble {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  background: white; border-radius: 10px;
  padding: 8px 14px; text-align: center; z-index: 10;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  white-space: nowrap;
}
.da-map-label-bubble strong { font-size: 13px; display: block; color: rgba(var(--dark-text), 1); }
.da-map-label-bubble p { font-size: 11px; color: rgba(var(--light-text), 1); margin: 2px 0 0; }
.da-map-center-pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  z-index: 10; pointer-events: none;
  font-size: 38px; color: rgba(var(--theme-color), 1);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  line-height: 1;
}

/* Address input */
.da-addr-box { position: relative; }
.da-addr-field-wrap {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(var(--dashed-line), 1);
  border-radius: 12px; padding: 12px 14px;
  margin-bottom: 10px; background: rgba(var(--white), 1);
  transition: border-color .2s;
}
/* Список подсказок адреса — плавающая карточка под полем ввода */
.da-suggest-list {
  position: absolute; left: 0; right: 0; top: calc(100% - 4px);
  z-index: 20;
  background: rgba(var(--white), 1);
  border: 1px solid rgba(var(--dashed-line), 1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  max-height: 260px; overflow-y: auto;
}
.da-suggest-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(var(--dashed-line), 0.6);
}
.da-suggest-item:last-child { border-bottom: none; }
.da-suggest-item i { font-size: 16px; color: rgba(var(--theme-color), 1); margin-top: 2px; flex-shrink: 0; }
.da-suggest-item-text { display: flex; flex-direction: column; min-width: 0; }
.da-suggest-item-title {
  font-size: 13px; font-weight: 600; color: rgba(var(--dark-text), 1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.da-suggest-item-sub {
  font-size: 11px; color: rgba(var(--light-text), 1); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.da-suggest-item:hover, .da-suggest-item--active { background: rgba(var(--theme-color), 0.06); }
.da-addr-field-wrap:focus-within { border-color: rgba(var(--theme-color), 1); }
.da-addr-field-icon { font-size: 18px; color: rgba(var(--theme-color), 1); flex-shrink: 0; }
.da-addr-field {
  flex: 1; border: none; outline: none;
  font-size: 14px; background: transparent;
  color: rgba(var(--dark-text), 1);
}
.da-addr-field::placeholder { color: rgba(var(--light-text), 1); }
.da-addr-clear {
  background: none; border: none; cursor: pointer;
  color: rgba(var(--light-text), 1); padding: 0; font-size: 18px;
  display: flex; align-items: center;
}

/* Zone price / ETA info card */
.da-zone-info {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px;
  background: rgba(34,197,94,0.08);
  border: 1.5px solid rgba(34,197,94,0.25);
  border-radius: 12px;
  margin-bottom: 18px;
}
.da-zone-info-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 400; color: rgba(var(--dark-text), 1);
}
.da-zone-info-row i { font-size: 16px; color: #22c55e; }
.da-zone-info-warn {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.25);
  flex-direction: row; align-items: center; gap: 10px;
}
.da-zone-info-warn i { color: #ef4444; font-size: 22px; flex-shrink: 0; }
.da-zone-info-warn span { color: rgba(var(--dark-text), 1); font-size: 13px; font-weight: 400; flex: 1; }
.btn-disabled-zone { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* Address type */
.da-type-title {
  font-size: 14px; font-weight: 700; color: rgba(var(--dark-text), 1);
  margin-bottom: 10px;
}
.da-type-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.da-type-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 10px;
  border: 1.5px solid rgba(var(--dashed-line), 1);
  border-radius: 12px; background: rgba(var(--white), 1);
  cursor: pointer; font-size: 12px; color: rgba(var(--dark-text), 1);
  flex: 1; min-width: 60px; position: relative;
  transition: border-color .15s, background .15s;
}
.da-type-btn i { font-size: 22px; color: rgba(var(--light-text), 1); }
.da-type-btn.active {
  border-color: rgba(var(--theme-color), 1); background: rgba(var(--theme-color), 0.06);
}
.da-type-btn.active i { color: rgba(var(--theme-color), 1); }
.da-type-btn.active::after {
  content: '';
  position: absolute; top: 5px; right: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background-color: rgba(var(--theme-color), 1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2,6 5,9 10,3' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: center; background-size: 10px; background-repeat: no-repeat;
}

/* Private house switch */
.da-private-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.da-private-label { font-size: 14px; font-weight: 600; color: rgba(var(--dark-text), 1); }
.da-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.da-switch input { opacity: 0; width: 0; height: 0; }
.da-switch-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(var(--dashed-line), 1); border-radius: 24px; transition: background .2s;
}
.da-switch-slider::before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: rgba(var(--white), 1); border-radius: 50%; transition: transform .2s;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.da-switch input:checked + .da-switch-slider { background: rgba(var(--theme-color), 1); }
.da-switch input:checked + .da-switch-slider::before { transform: translateX(18px); }

/* Details inputs */
.da-details-title {
  font-size: 14px; font-weight: 700; color: rgba(var(--dark-text), 1);
  margin-bottom: 10px;
}
.da-details-opt { font-weight: 400; font-size: 12px; color: rgba(var(--light-text), 1); }
.da-details-row { display: flex; gap: 8px; margin-bottom: 8px; }
.da-detail-input {
  flex: 1; padding: 11px 12px;
  border: 1.5px solid rgba(var(--dashed-line), 1);
  border-radius: 10px; outline: none;
  font-size: 14px; background: rgba(var(--white), 1);
  color: rgba(var(--dark-text), 1);
  transition: border-color .2s;
}
.da-detail-input:focus { border-color: rgba(var(--theme-color), 1); }
.da-detail-input::placeholder { color: rgba(var(--light-text), 0.7); font-size: 13px; }
.da-detail-input.invalid { border-color: #e74c3c; }
.da-comment-wrap { margin-bottom: 18px; }
.da-comment-input { width: 100%; box-sizing: border-box; }

/* ════════════════════════════════════════
   Profile page  (/profile/)
   ════════════════════════════════════════ */

/* ── Header ── */
.pf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 16px 8px;
}
.pf-header h2 { margin: 0; font-size: 23px; font-weight: 700; }
.pf-header-icons { display: flex; gap: 12px; }
.pf-header-icons a { color: rgba(var(--dark-text),1); font-size: 22px; position: relative; text-decoration: none; }
.pf-notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: #ff4444; color: #fff; border-radius: 50%;
  font-size: 9px; min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; line-height: 1;
}

/* ── Profile info row ── */
.pf-info-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 16px 14px;
}
.pf-avatar-wrap { position: relative; flex-shrink: 0; top: -1px;left: 2px;}
.pf-avatar {
  width: 82px; height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(var(--theme-color), 1);
}
.pf-avatar-edit {
  position: absolute; bottom: 0; right: 0;
  width: 22px; height: 22px;
  background: #ff8d2f; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px;
  border: 2px solid #fff;
  cursor: pointer;
}
.pf-info-body { flex: 1; min-width: 0; }
.pf-info-name { font-size: 14px; font-weight: 700; margin-top: 16px; margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-info-phone { font-size: 12px; color: #6e6d72; margin-bottom: 3px; }
.pf-level-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: #fff2e9; border-radius: 20px;
  padding: 2px 3px 2px 7px; font-size: 9px; color: #000; font-weight: 500;
  cursor: pointer; text-decoration: none;
}
.pf-level-badge i { font-size: 13px;color: rgba(var(--theme-color), 1); }

/* ── Bonus card ── */
.pf-bonus-card {
  margin: 0 16px 16px;
  background: linear-gradient(135deg, #6b3200 0%, #b35800 35%, #d07800 60%, #9a4800 100%);
  border-radius: 20px;
  padding: 16px 16px 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(120,60,0,.35);
}
.pf-bonus-card::before {
  content: '';
  position: absolute; top: -30px; right: 60px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,200,80,.18) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.pf-bc-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.pf-bc-title { font-size: 15px; font-weight: 700; }
.pf-bc-detail-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.25); border: none;
  border-radius: 20px; padding: 5px 12px;
  color: #fff; font-size: 12px; font-weight: 600; cursor: pointer;
}
.pf-bc-detail-btn i { font-size: 14px; }
.pf-bc-middle {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}
.pf-bc-amount {
  font-size: 42px; font-weight: 900; line-height: 1;
  display: flex; align-items: center; gap: 8px; letter-spacing: -1px;
}
.pf-bc-amount i { font-size: 34px; color: #ffcc55; }
.pf-bc-bonuses { font-size: 16px; font-weight: 600; color: #ffc04a; margin: 3px 0 12px; }
.pf-bc-cashback-row { display: flex; align-items: center; gap: 10px; }
.pf-bc-cashback-circle {
  width: 60px; height: 60px; flex-shrink: 0;
  background: rgba(0,0,0,.30);
  border: 2px solid rgba(255,190,60,.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
}
.pf-bc-cashback-text { line-height: 1.3; }
.pf-bc-cashback-text b { font-size: 15px; font-weight: 800; display: block; }
.pf-bc-cashback-text span { font-size: 12px; opacity: .8; }
.pf-bc-gift {
  width: 110px; flex-shrink: 0;
  margin-bottom: -14px; margin-right: -4px;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}
.pf-bc-footer {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.22);
  border-radius: 14px;
  padding: 10px 12px;
}
.pf-bc-crown {
  width: 36px; height: 36px; flex-shrink: 0;
  border: 2px solid rgba(255,190,60,.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #ffc04a;
}
.pf-bc-upgrade { flex: 1; min-width: 0; }
.pf-bc-upgrade-title { font-size: 12px; font-weight: 700; white-space: nowrap; }
.pf-bc-upgrade-title b { color: #ffc04a; }
.pf-bc-upgrade-sub { font-size: 11px; opacity: .75; }
.pf-bc-upgrade-sub b { color: #ffc04a; font-weight: 700; }
.pf-bc-progress-wrap { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.pf-bc-progress {
  flex: 1; height: 4px; background: rgba(255,255,255,.2);
  border-radius: 4px; overflow: hidden;
}
.pf-bc-progress-fill { height: 100%; background: #ffb030; border-radius: 4px; width: 35%; }
.pf-bc-progress-pct { font-size: 10px; opacity: .7; white-space: nowrap; }
.pf-qr-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  background: #fff; border: none; border-radius: 12px;
  padding: 8px 12px; cursor: pointer; flex-shrink: 0;
  color: #333; min-width: 80px;
}
.pf-qr-btn .ri-qr-code-line { font-size: 22px; color: #555; }
.pf-qr-btn-text { font-size: 11px; font-weight: 700; color: #222; text-align: center; line-height: 1.3; }
.pf-qr-btn .ri-arrow-right-s-line { font-size: 14px; color: #888; margin-top: -2px; }

/* ── Menu list ── */
.pf-menu-section {
  margin: 10px 16px 8px;
  background: rgba(var(--white),1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    padding: 10px;
}
.pf-menu-item {
  display: flex; align-items: center;
      padding: 7px 10px 5px 0px; cursor: pointer; gap: 12px;
  border-bottom: 1px solid rgba(var(--dashed-line),.6);
  user-select: none;
}
.pf-menu-item:last-child { border-bottom: none; }
.pf-menu-item:active { background: rgba(var(--box-bg),.6); }
.pf-menu-icon {
  width: 25px; height: 25px;
  background: #fff4ec; border-radius: 30%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #ff8d2f; flex-shrink: 0;
}
.pf-menu-icon i {
    font-size: 19px;
}
.pf-menu-title { flex: 1; font-size: 12px; font-weight: 500; color: rgba(var(--dark-text),1); }
.pf-menu-arrow { color: #68676d; font-size: 17px; }
.pf-menu-item--logout .pf-menu-icon { background: #fff0f0; color: #ff4444; }
.pf-menu-item--logout .pf-menu-title { color: #ff4444; }

/* ── Section modal ── */
#section-modal .modal-header {
  border-bottom: 1px solid rgba(var(--dashed-line),.8);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
#section-modal .modal-header .btn-back {
  background: none; border: none; padding: 0;
  font-size: 22px; color: rgba(var(--dark-text),1); line-height: 1;
}
#section-modal .modal-title { font-size: 17px; font-weight: 700; margin: 0; flex: 1; }
#section-modal .modal-body { padding: 0; overflow-y: auto; }

/* ── Guest (not logged in) ── */
.pf-guest-card {
  margin: 40px 16px 16px;
  background: rgba(var(--white),1);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
}
.pf-guest-card i { font-size: 56px; color: #ff8d2f; }
.pf-guest-card h5 { font-size: 18px; font-weight: 700; margin: 12px 0 6px; }
.pf-guest-card p { font-size: 14px; color: rgba(var(--light-text),1); margin-bottom: 20px; }
.pf-guest-card .btn { padding: 12px 32px; border-radius: 12px; font-size: 15px; font-weight: 600; }

.da-save-btn { margin-top: 4px; }

/* ── Bottom-sheet modal ── */
.bottom-sheet-modal.show {
  display: flex !important;
  align-items: flex-end;
}
/* Nested bottom sheets (inside a fullscreen modal) — Bootstrap backdrop goes
   behind the parent modal, so we paint the darkening on the element itself */
.bottom-sheet-modal.nested-bs {
  transition: background 0.25s ease;
}
.bottom-sheet-modal.nested-bs.show {
  background: rgba(0,0,0,0.45) !important;
}
.bottom-sheet-modal .modal-dialog {
  margin: 0;
  max-width: 100%;
  width: 100%;
}
.modal.bottom-sheet-modal.fade .modal-dialog {
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.modal.bottom-sheet-modal.fade.show .modal-dialog {
  transform: translateY(0);
}
.bottom-sheet-modal .modal-content {
  border-radius: 20px 20px 0 0 !important;
  border-bottom: none;
  overflow: hidden;
}
/* Drag handle inside modals */
.modal-drag-handle {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
  touch-action: none;
  cursor: grab;
}
.modal-drag-pill {
  width: 36px;
  height: 4px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

/* ── Search & filter sheet (include/search-sheet.php) ── */
/* Оболочка шторки (подъём, радиус, ручка) — от .bottom-sheet-modal выше. */
.sf-sheet .modal-content {
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: rgba(var(--white), 1);
}
.sf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px 12px;
}
.sf-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: rgba(var(--dark-text), 1);
}
.sf-close {
  padding: 4px;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: rgba(var(--dark-text), 1);
}
.sf-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px;
}
.sf-foot {
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(var(--white), 1);
  border-top: 1px solid rgba(var(--black), 0.06);
}

.sf-search {
  position: relative;
  margin-bottom: 18px;
}
.sf-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: rgba(var(--light-text), 1);
}
.sf-search input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  border: 1px solid rgba(var(--theme-color), 1);
  border-radius: 12px;
  background: rgba(var(--white), 1);
  color: rgba(var(--dark-text), 1);
  font-size: 15px;
  outline: none;
}
.sf-search input::placeholder {
  color: rgba(var(--light-text), 1);
}

.sf-group {
  padding-bottom: 18px;
}
.sf-group-last {
  padding-bottom: 8px;
}
.sf-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sf-group-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(var(--dark-text), 1);
}
.sf-reset {
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: rgba(var(--theme-color), 1);
}

.sf-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sf-price-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(var(--black), 0.08);
  border-radius: 10px;
}
.sf-price-field span {
  font-size: 13px;
  color: rgba(var(--light-text), 1);
}
.sf-price-field input {
  width: 100%;
  border: none;
  outline: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: rgba(var(--dark-text), 1);
}
.sf-price-dash {
  color: rgba(var(--light-text), 1);
}

/* Двойной слайдер: два input[type=range] поверх одной дорожки. Сами инпуты
   прозрачны и не ловят клики — события принимают только бегунки. */
.sf-range {
  position: relative;
  height: 24px;
  margin-top: 14px;
}
.sf-range-track,
.sf-range-fill {
  position: absolute;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 3px;
}
.sf-range-track {
  left: 0;
  right: 0;
  background: rgba(var(--black), 0.1);
}
.sf-range-fill {
  background: rgba(var(--theme-color), 1);
}
.sf-range input[type=range] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 24px;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
          appearance: none;
}
.sf-range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(var(--white), 1);
  border: 3px solid rgba(var(--theme-color), 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.sf-range input[type=range]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(var(--white), 1);
  border: 3px solid rgba(var(--theme-color), 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.sf-range input[type=range]::-moz-range-track {
  background: none;
}

.sf-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.sf-chips::-webkit-scrollbar {
  display: none;
}
.sf-chip {
  flex: 0 0 auto;
  width: 84px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(var(--black), 0.08);
  border-radius: 12px;
  background: rgba(var(--white), 1);
  transition: border-color 0.2s, background 0.2s;
}
.sf-chip-img {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sf-chip-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sf-chip-text {
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  color: rgba(var(--dark-text), 1);
}
.sf-chip.is-active {
  border-color: rgba(var(--theme-color), 1);
  background: rgba(var(--theme-color), 0.08);
}
.sf-chip.is-active .sf-chip-text {
  color: rgba(var(--theme-color), 1);
  font-weight: 600;
}

/* Пилюли значений характеристик (блоки фильтров из привязки типа бизнеса).
   В отличие от .sf-chips (категории, горизонтальный скролл с картинками) —
   это текстовые пилюли, которые переносятся на новую строку. */
.sf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sf-pill {
  flex: 0 0 auto;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.2;
  color: rgba(var(--dark-text), 1);
  border: 1px solid rgba(var(--black), 0.08);
  border-radius: 999px;
  background: rgba(var(--white), 1);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.sf-pill.is-active {
  border-color: rgba(var(--theme-color), 1);
  background: rgba(var(--theme-color), 0.08);
  color: rgba(var(--theme-color), 1);
  font-weight: 600;
}

.sf-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid rgba(var(--black), 0.08);
  border-radius: 12px;
  font-size: 14px;
  color: rgba(var(--dark-text), 1);
}
.sf-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sf-toggle-ui {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 23px;
  border-radius: 12px;
  background: rgba(var(--black), 0.15);
  transition: background 0.2s;
}
.sf-toggle-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.sf-toggle input:checked + .sf-toggle-ui {
  background: rgba(var(--theme-color), 1);
}
.sf-toggle input:checked + .sf-toggle-ui::after {
  transform: translateX(17px);
}

.sf-apply {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: rgba(var(--theme-color), 1);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.sf-apply:disabled {
  opacity: 0.5;
}

/* Пустая выдача — иначе при отсутствии совпадений меню просто белеет. */
.sf-no-results {
  padding: 40px 20px 60px;
  text-align: center;
}
.sf-no-results i {
  font-size: 40px;
  color: rgba(var(--light-text), 1);
}
.sf-no-results h4 {
  margin: 12px 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: rgba(var(--dark-text), 1);
}
.sf-no-results p {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(var(--light-text), 1);
}
.sf-no-results button {
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  background: rgba(var(--theme-color), 1);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}


/* ── Sticky categories bar shadow ── */
#cat-bar-container.is-sticky {
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  transition: box-shadow 0.2s;
}

/* ── Add-ons section in cart ── */
.bs-addons-section {
  margin: 15px 0 4px;
  background: #fef9f6;
  padding: 5px;
}
.bs-addons-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(var(--dark-text),1);
  margin: 0 0 10px;
}
.bs-addons-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.bs-addons-grid::-webkit-scrollbar { display: none; }
.bs-addon-card {
  flex: 0 0 112px;
  width: 112px;
  background: white;
  border-radius: 14px;
  padding: 10px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.bs-addon-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}
.bs-addon-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(var(--dark-text),1);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
}
.bs-addon-weight {
  font-size: 11px;
  color: rgba(var(--light-text),1);
  margin-top: -2px;
}
.bs-addon-price {
  font-size: 13px;
  font-weight: 700;
  color: rgba(var(--dark-text),1);
}
/* Price row — qty=0: like qty-idle; qty>0: like qty-active */
.bs-addon-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(var(--box-bg),1);
  border-radius: 8px;
  padding: 5px 8px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
}
/* idle: цена слева, кнопка + справа */
.bs-addon-idle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(var(--box-bg),1);
  border-radius: 8px;
  padding: 5px 8px;
  width: 100%;
  box-sizing: border-box;
}
.bs-addon-add {
  width: 26px;
  height: 26px;
  border: none;
  background: white;
  color: black;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
/* active: счётчик на всю ширину */
.bs-addon-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(var(--box-bg),1);
  border-radius: 8px;
  padding: 4px 6px;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}
.bs-addon-dec,
.bs-addon-inc {
  width: 26px;
  height: 26px;
  border: none;
  background: white;
  color: black;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.bs-addon-qty {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
  text-align: center;
  color: rgba(var(--dark-text),1);
}
.bs-addon-ctrl { display: flex; justify-content: center; width: 100%; }

/* ── Promo code section ── */
.bs-promo-section {
  background: #fef9f6;
  border-radius: 14px;
  margin: 8px 0;
  overflow: hidden;
}
.bs-promo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
}
.bs-promo-icon {
  font-size: 22px;
  color: rgba(var(--theme-color),1);
  flex-shrink: 0;
}
.bs-promo-header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bs-promo-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(var(--dark-text),1);
}
.bs-promo-sublabel {
  font-size: 11px;
  color: rgba(var(--light-text),1);
}
.bs-promo-arrow {
  font-size: 20px;
  color: rgba(var(--light-text),1);
  transition: transform 0.25s;
}
.bs-promo-arrow.open {
  transform: rotate(90deg);
}
.bs-promo-body {
  padding: 0 14px 14px;
}
.bs-promo-form {
  display: flex;
  gap: 8px;
}
.bs-promo-input {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid rgba(0,0,0,0.1);
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  background: rgba(var(--white),1);
  color: rgba(var(--dark-text),1);
}
.bs-promo-input:focus {
  border-color: rgba(var(--theme-color),1);
}
.bs-promo-apply-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: none;
  background: rgba(var(--theme-color),1);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.bs-promo-status {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(var(--dark-text),1);
  display: flex;
  align-items: center;
  gap: 6px;
}
.bs-promo-clear {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: rgba(var(--light-text),1);
  cursor: pointer;
  padding: 0 2px;
}
.bs-promo-row {
  color: rgba(var(--theme-color),1);
}
.bs-row-icon-i {
  font-size: 16px;
  margin-right: 6px;
  vertical-align: middle;
}


/* Montserrat Font Family */

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}
/* ── Checkout modal ───────────────────────────────────────────────────────── */
.co-modal-content {
  max-height: 92vh; display: flex; flex-direction: column;
  border-radius: 20px 20px 0 0 !important;
}

/* Header */
.co-header {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 12px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06); flex-shrink: 0;
}
.co-back-btn {
  width: 30px; height: 30px; border: none;
  background: rgba(var(--box-bg),1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; color: rgba(var(--dark-text),1); font-size: 20px;
}
.co-header-center { flex: 1; text-align: center; }
.co-header-title {
  margin: 0; font-size: 15px; font-weight: 700;
  color: rgba(var(--dark-text),1); line-height: 1.2;
}
.co-header-sub {
  display: block; font-size: 10px; color: rgba(var(--light-text),1); margin-top: 1px;
}
.co-header-spacer { width: 30px; flex-shrink: 0; }

/* Scrollable body */
.co-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 12px 0; }

/* Section cards */
.co-section { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07); border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.co-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.co-section-title, .co-summary-title { font-size: 11px; font-weight: 700; color: #141414; display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.co-section-head .co-section-title { margin-bottom: 0; }
.co-section-icon { font-size: 15px; color: rgba(var(--theme-color),1);    font-weight: 100; }

/* "Изменить" button */
.co-change-btn {
  border: none; background: none; padding: 0;
  font-size: 10px;
  color: rgba(var(--theme-color),1); cursor: pointer; flex-shrink: 0;
}

/* Delivery card */
.co-delivery-card {
  display: flex; align-items: center; justify-content: space-between;
  background: white; border-radius: 12px; padding: 11px 13px; gap: 10px;
  border: 1.5px solid rgba(var(--theme-color),0.25);
}
.co-dc-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.co-dc-icon-wrap {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(var(--theme-color),0.1);
  display: flex; align-items: center; justify-content: center;
}
.co-dc-icon-wrap i, #co-dc-icon {
  font-size: 20px; color: rgba(var(--theme-color),1);
}
.co-dc-text { display: flex; flex-direction: column; min-width: 0; }
.co-dc-name { font-size: 14px; font-weight: 700; color: rgba(var(--dark-text),1); }
.co-dc-sub {
  font-size: 11px; color: rgba(var(--light-text),1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px;
}

/* Address hint (legacy, may be unused now) */
.co-address-hint { font-size: 12px; color: rgba(var(--light-text),1); margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.co-hint-free { color: #3d9f54; }

/* Pickup info bar (below tabs) */
.co-pickup-info {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(var(--white),1);
  cursor: pointer;
  transition: background 0.15s;
}
.co-pickup-info:active { background: rgba(var(--light-theme-color),1); }
.co-pickup-info-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: rgb(254 249 246);
  display: flex; align-items: center; justify-content: center;
}
.co-pickup-info-icon i { font-size: 17px; color: rgba(var(--theme-color),1); }
.co-pickup-info-text { flex: 1; min-width: 0; overflow: hidden; }
.co-pickup-info-text strong {
  display: block; font-size: 12px; font-weight: 600; color: rgba(var(--dark-text),1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.co-pickup-info-text span {
  display: block; font-size: 10px; color: rgba(var(--light-text),1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 1px;
}
.co-pickup-info .pickup-info-arrow { font-size: 18px; color: rgba(var(--light-text),0.7); }

/* Contacts compact card */
.co-contacts-card {
  display: flex; align-items: center; justify-content: space-between;
  background: white; border-radius: 8px; padding: 5px 10px;
  border: 1px solid rgba(0,0,0,0.07);
}
.co-contacts-info { display: flex; flex-direction: column; gap: 2px; }
.co-contacts-name { font-size: 10px; font-weight: 700; color: #141414; }
.co-contacts-phone { font-size: 10px; color: #767678; }
.co-contacts-arrow { font-size: 18px; color: rgba(var(--light-text),1); }

/* "Готово" button inside contacts edit */
.co-done-btn {
  display: flex; align-items: center; gap: 5px;
  border: none; background: rgba(var(--theme-color),0.1); border-radius: 8px;
  padding: 7px 12px; margin-top: 10px;
  font-size: 12px; font-weight: 600; color: rgba(var(--theme-color),1);
  cursor: pointer;
}

/* Input fields */
.co-input-wrap { width: 100%; }
.co-label { display: block; font-size: 10px; font-weight: 600; color: rgba(var(--light-text),1); margin-bottom: 4px; }
.co-input {
  width: 100%; border: 1px solid rgba(0,0,0,0.1); border-radius: 9px;
  padding: 8px 11px; font-size: 10px; color: rgba(var(--dark-text),1);
  background: white; outline: none; transition: border-color 0.2s;
  box-sizing: border-box; font-family: inherit;
}
/*.co-input:focus { border-color: rgba(var(--theme-color),1);padding: 8px 11px;min-height: 32px; }*/
.co-textarea { resize: none; overflow: hidden; line-height: 1.4; border-color: rgba(var(--theme-color),1);padding: 8px 11px;min-height: 32px;}
/* Ghost: textarea невидима пока нет фокуса — виден только placeholder */
/*.co-textarea:not(:focus) { border-color: transparent; background: transparent; padding-left: 0; padding-right: 0; }*/
.co-input-row { display: flex; gap: 8px; }

/* Comment section (collapsible, open by default) */
.co-comment-section { padding-bottom: 6px; }
.co-comment-header {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
}
.co-comment-header .co-section-title { margin-bottom: 0; }
.co-comment-chevron {
  font-size: 18px; color: rgba(var(--light-text),1);
  transition: transform 0.25s ease; flex-shrink: 0;
}
.co-comment-body { overflow: hidden; }

/* ── "На когда" section ── */
.co-when-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.co-when-title-wrap {
  display: flex; align-items: center; gap: 8px;
}
.co-when-title {
  font-size: 15px; font-weight: 700; color: rgba(var(--dark-text),1); line-height: 1.2;
}
.co-when-subtitle {
  font-size: 12px; color: rgba(var(--light-text),1); margin-top: 2px;
}
.co-when-tabs { display: flex; gap: 6px; flex-shrink: 0; }
.co-when-btn {
  display: flex; flex-direction: row; align-items: center; gap: 5px;
  padding: 8px 11px; border-radius: 10px;
  border: 1px solid rgba(var(--dashed-line),1); background: rgba(var(--white),1);
  font-size: 12px; font-weight: 500; color: rgba(var(--dark-text),1); cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.co-when-btn i { font-size: 14px; }
.co-when-btn.active {
  border-color: rgba(var(--theme-color),1);
  color: rgba(var(--theme-color),1);
  background: rgba(var(--white),1);
}

/* ── Drum (slot-machine) picker ── */
.co-drum-wrap {
  display: flex; gap: 10px; margin-bottom: 12px;
  position: relative;
}
/* Тонкая вертикальная разделительная линия по центру между бочками */
.co-drum-wrap::after {
  content: '';
  position: absolute;
  left: 50%; top: 0%; bottom: 0%;
  width: 1px;
  background: rgba(var(--dashed-line), 0.7);
  transform: translateX(-50%);
  pointer-events: none; z-index: 5;
}
/* Outer wrapper holds height/flex and the SVG border overlay */
.co-drum-col-wrap {
  flex: 1; position: relative;
  height: 252px;   /* 7 × 36px: 3 above + active + 3 below */
}
/* Inner column: clip to barrel shape, no border (clip-path clips borders away) */
.co-drum-col {
  width: 100%; height: 100%; position: relative;
  background: rgba(var(--white),1);
  overflow: hidden;
  clip-path: url(#co-drum-barrel);
  -webkit-clip-path: url(#co-drum-barrel);
}
/* SVG barrel border overlay — sits OUTSIDE co-drum-col, not clipped */
.co-drum-col-border {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 10; overflow: visible;
}
/* Gradient fade overlay on wrapper — covers content + SVG border + barrel side overflows.
   Uses white overlay (same as modal bg) so no mask-image/clip-path interaction issues. */
.co-drum-col-wrap::before,
.co-drum-col-wrap::after {
  content: ''; position: absolute;
  left: -10%; right: -10%;       /* extends past barrel side curves */
  pointer-events: none; z-index: 15;
}
.co-drum-col-wrap::before {
  top: 0; height: 30%;
  background: linear-gradient(to bottom, rgba(var(--white),1) 0%, rgba(var(--white),0) 100%);
}
.co-drum-col-wrap::after {
  bottom: 0; height: 30%;
  background: linear-gradient(to top, rgba(var(--white),1) 0%, rgba(var(--white),0) 100%);
}
.co-drum-col-border path {
  fill: none;
  stroke: rgba(var(--dashed-line), 1);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
.co-drum-list {
  height: 252px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.co-drum-list::-webkit-scrollbar { display: none; }

/* Padding items — no snap, invisible or showing prev days */
.co-drum-pad { height: 36px; flex-shrink: 0; scroll-snap-align: none !important; }
/* Previous/next items: visible but not selectable */
.co-drum-prev, .co-drum-next {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 9px; font-weight: 500;
  color: rgba(var(--dark-text),1);
  opacity: 0.55;
}
.co-drum-prev {
  border-top: 1px solid rgba(var(--dashed-line), 1);
  border-radius: 20px 20px 0 0;
}
.co-drum-prev .co-drum-c2 {
  min-width: 26px; text-align: center;
  font-size: 1.65em; line-height: 1;
}

.co-drum-item {
  height: 36px; flex-shrink: 0;
  scroll-snap-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; font-weight: 500;
  color: rgba(var(--dark-text),1);
  user-select: none; cursor: default;
}
.co-drum-item.co-drum--active {
  color: rgba(var(--theme-color),1);
  font-size: 13px;
}
/* Future items — bottom border cap */
.co-drum-item.co-drum--future {
  border-bottom: 1px solid rgba(var(--dashed-line), 1);
  border-radius: 0 0 20px 20px;
}
/* Date columns */
.co-drum-c1 { min-width: 42px; text-align: right; font-size: 10px;}
.co-drum-c2 { min-width: 26px; text-align: center;
  font-size: 1.65em; line-height: 1; }
.co-drum--active .co-drum-c2 { font-size: 1.9em; }
.co-drum-c3 { min-width: 30px; text-align: left; font-size: 10px;}
.co-drum--active .co-drum-c3 { font-weight: 400; }
/* Time columns */
.co-drum-t1, .co-drum-t3 { font-size: 1em; /*font-weight: 700;*/ }
.co-drum-t2 { opacity: 0.4; }

/* Highlight box — centred over middle item */
.co-drum-highlight {
  position: absolute; top: 50%; left: 1px; right: 1px;
  height: 36px; margin-top: -18px;
  border: 1px solid rgba(var(--theme-color),1);
  border-radius: 10px;
  background: rgba(var(--theme-color),0.07);
  pointer-events: none; z-index: 11;
}
/* Gradient fades handled by .co-drum-col-wrap::before/after */
/* Result info bar (shown after date+time selected) */
.co-when-result {
  display: flex; align-items: center; gap: 8px;
  background: rgba(var(--theme-color),0.07);
  border: 1px solid rgba(var(--theme-color),0.2);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 6px;
  font-size: 13px; font-weight: 500; color: rgba(var(--dark-text),1);
}
.co-when-result i { color: rgba(var(--theme-color),1); font-size: 16px; flex-shrink: 0; }
/* No slots */
.co-when-no-slots { font-size: 12px; color: #adb5bd; padding: 8px 2px; display: block; }
.co-when-hint { font-size: 12px; margin-top: 6px; }
.co-when-hint--ok    { color: #198754; }
.co-when-hint--error { color: #dc3545; }

/* Pay methods — tile grid */
.co-pay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.co-pay-grid--single { grid-template-columns: 1fr; }

.co-pay-tile {
  border-radius: 12px;
  border: 1.5px solid rgba(var(--black), 0.08);
  background: rgba(var(--white), 1);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
  min-width: 0;
}
.co-pay-tile.active {
  border-color: rgba(var(--theme-color), 1);
  background: rgba(var(--theme-color), 0.05);
}
/* checkmark badge (same pattern as addon-tile) */
.co-pay-tile.active::after {
  content: '';
  position: absolute;
  top: -9px; right: -9px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(var(--theme-color), 1);
  z-index: 1;
}
.co-pay-tile.active::before {
  content: '';
  position: absolute;
  top: -4px; right: -1px;
  width: 5px; height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  z-index: 2;
  pointer-events: none;
}

/* Icon box */
.co-pay-tile-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: rgba(var(--theme-color), 1);
}
.co-pay-tile-icon img { width: 26px; height: 26px; object-fit: contain; border-radius: 5px; }

/* Text */
.co-pay-tile-body { flex: 1; min-width: 0; }
.co-pay-tile-title {
  display: block;
  font-size: 11px; font-weight: 600;
  color: rgba(var(--title), 1);
  white-space: normal; line-height: 1.25;
}
.co-pay-tile-sub {
  display: block;
  font-size: 10px;
  color: rgba(var(--content), 1);
  margin-top: 2px;
  white-space: normal; line-height: 1.2;
}

.co-pay-radio { display: none; }

/* Steps bar */
.co-steps {
  display: flex; align-items: center;
  padding: 10px 16px 12px; flex-shrink: 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.co-step {
  display: flex; flex-direction: row; align-items: center; gap: 5px;
  flex-shrink: 0;
}
.co-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: rgba(0,0,0,0.07); color: rgba(var(--light-text),1);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.co-step-label {
  font-size: 12px; color: rgba(var(--light-text),1);
  font-weight: 500; white-space: nowrap;
}
.co-step--done .co-step-num {
  background: rgba(var(--theme-color),0.12);
  color: rgba(var(--theme-color),1);
}
.co-step--done .co-step-label { color: rgba(var(--light-text),1); }
.co-step--active .co-step-num {
  background: rgba(var(--theme-color),1);
  color: #fff;
}
.co-step--active .co-step-label {
  color: rgba(var(--theme-color),1); font-weight: 700;
}
.co-step-line {
  flex: 1; height: 1.5px; background: rgba(0,0,0,0.12);
  margin: 0 6px;
}
.co-step-line--done { background: rgba(0,0,0,0.12); }

/* Bonus earn block */
.co-earn-block {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(var(--theme-color),0.06) 0%, rgba(var(--theme-color),0.03) 100%);
  border: 1px solid rgba(var(--theme-color),0.15);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 2px;
}
.co-earn-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.co-earn-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.co-earn-label { font-size: 11px; color: rgba(var(--light-text),1); }
.co-earn-amount {
  font-size: 16px; font-weight: 700;
  color: rgba(var(--theme-color),1); line-height: 1.1;
}
.co-earn-sub { font-size: 10px; color: rgba(var(--light-text),1); }
.co-earn-info-btn {
  background: none; border: none; padding: 4px;
  color: rgba(var(--light-text),1); font-size: 18px;
  cursor: pointer; flex-shrink: 0;
}

/* Summary */
.co-summary-section { padding-bottom: 8px; }
.co-summary-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
/*.co-summary-title { font-size: 11px; font-weight: 700; #141414; }*/
.co-summary-count { font-size: 11px; color: rgba(var(--theme-color),1); }
.co-summary-rows { display: flex; flex-direction: column; }
.co-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 12px; }
.co-summary-label { color: #767678; font-size: 12px; }
.co-summary-val { font-weight: 600; font-size: 12px; }
.co-discount-val { color: rgba(var(--theme-color),1); }
.co-summary-divider { height: 1px; background: rgba(0,0,0,0.08); margin: 3px 0; }
.co-summary-total-row { padding-top: 7px; }
.co-summary-total-row .co-summary-label { font-size: 12px; font-weight: 700; color: rgba(var(--dark-text),1); }
.co-summary-total-row .co-total-val { font-size: 15px; font-weight: 700; color: rgba(var(--dark-text),1); }
.co-free { color: #3d9f54; font-weight: 600; }

/* Error */
.co-error-block {
  background: #fff0f0; border: 1px solid #fcc; border-radius: 12px;
  padding: 12px 14px; font-size: 13px; color: #c0392b;
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px;
}
.co-error-block i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* Submit */
.co-submit-wrap { flex-shrink: 0; padding: 10px 12px 8px; border-top: 1px solid rgba(0,0,0,0.06); background: rgba(var(--white),1); }
.co-submit-btn { display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 12px; padding: calc(8px + 4 * (100vw - 320px) / 1600); font-size: 14px; font-weight: 700; }
.co-submit-price { font-size: 14px; font-weight: 700; }

/* Footer info under submit */
.co-footer-info {
  display: flex; justify-content: space-between; align-items: center;
  gap: 6px; margin-top: 8px;
}
.co-footer-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: rgba(var(--light-text),1);
}
.co-footer-item i { font-size: 13px; color: rgba(var(--theme-color),1); }

/* Spinner */
.co-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: white; border-radius: 50%; animation: co-spin 0.7s linear infinite; vertical-align: middle; }
@keyframes co-spin { to { transform: rotate(360deg); } }

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}

/* ══════════════════════════════════════════════════════════════
   Страница привилегий  privilege.php
   ══════════════════════════════════════════════════════════════ */

/* ── Бонусная карта ── */
.priv-bc { background:linear-gradient(135deg,#ffaa45 0%,#e8701a 100%); border-radius:18px; padding:18px 16px 14px; position:relative; }
.priv-bc-qr { position:absolute; top:12px; right:12px; background:rgba(255,255,255,0.22); border:none; border-radius:9px; width:34px; height:34px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px; cursor:pointer; z-index:2; }
.priv-bc-main { display:flex; align-items:flex-start; gap:8px; margin-top:4px; }
.priv-bc-left { flex:1; min-width:0; }
.priv-bc-label { font-size:11px; color:rgba(255,255,255,0.8); margin-bottom:2px; }
.priv-bc-amount { font-size:48px; font-weight:800; color:#fff; line-height:1.05; display:flex; align-items:center; gap:6px; }
.priv-bc-amount i { font-size:28px; color:#ffdc6e; }
.priv-bc-bonuses { font-size:13px; color:rgba(255,255,255,0.85); margin:2px 0 7px; }
.priv-bc-rate { display:inline-block; background:rgba(0,0,0,0.28); color:#fff; font-size:10px; font-weight:700; padding:3px 9px; border-radius:20px; }
.priv-bc-right { flex-shrink:0; text-align:right; min-width:130px; }
.priv-bc-lvl-badge { display:inline-flex; align-items:center; gap:4px; background:rgba(0,0,0,0.45); color:#fff; font-size:10px; font-weight:800; padding:4px 10px; border-radius:20px; margin-bottom:5px; letter-spacing:.3px; }
.priv-bc-lvl-badge i { color:#ffd700; font-size:11px; }
.priv-bc-cashback { font-size:13px; font-weight:700; color:#fff; line-height:1.35; margin-bottom:6px; }
.priv-bc-gift { width:110px; display:block; margin-left:auto; margin-right:-8px; }
.priv-bc-progress { margin-top:12px; border-top:1px solid rgba(255,255,255,0.2); padding-top:10px; }
.priv-bc-progress-top { display:flex; justify-content:space-between; font-size:10px; color:rgba(255,255,255,0.85); margin-bottom:5px; }
.priv-bc-progress-row { display:flex; align-items:center; gap:7px; }
.priv-bc-bar { flex:1; height:7px; background:rgba(0,0,0,0.25); border-radius:4px; overflow:hidden; }
.priv-bc-fill { height:100%; background:#ffba30; border-radius:4px; }
.priv-bc-pct { font-size:11px; color:rgba(255,255,255,0.9); font-weight:700; white-space:nowrap; }

/* Декоративные точки */
.priv-dots { display:flex; justify-content:center; gap:5px; margin-top:10px; }
.priv-dot { width:6px; height:6px; border-radius:3px; background:#d4d4d4; transition:width .2s; }
.priv-dot--on { width:18px; background:rgba(var(--theme-color),1); }

/* ── Карточки уровней ── */
.priv-tiers-wrap { display:flex; gap:8px; overflow-x:auto; padding:20px 20px 4px; scrollbar-width:none; }
.priv-tiers-wrap::-webkit-scrollbar { display:none; }
.priv-tier { flex:0 0 calc(25% - 6px); min-width:78px; background:#fff; border-radius:10px; padding:14px 6px 10px; text-align:center; position:relative; }
.priv-tier--current { border: 1px solid rgba(var(--theme-color), 1); }
.priv-tier-badge { position:absolute; top:-6px; left:50%; transform:translateX(-50%); background:rgba(var(--theme-color),1); color:#fff; font-size:6px; font-weight:500; padding:2px 8px; border-radius:10px; white-space:nowrap; letter-spacing:.4px; }
.priv-tier-icon { width:42px; height:42px; margin:0 auto 6px; display:flex; align-items:center; justify-content:center; }
.priv-tier-icon img { width:100%; height:100%; object-fit:contain; }
.priv-tier-icon-fb { font-size:30px; }
.priv-tier-name { font-size:9px; font-weight:800; letter-spacing:.5px; margin-bottom:2px; }
.priv-tier-cashback { font-size:11px; font-weight:700; color:rgba(var(--dark-text),1); margin-bottom:2px; }
.priv-tier-range { font-size:9px; color:rgba(var(--light-text),1); line-height:1.3; }

/* ── Заголовки секций ── */
.priv-section-header { display:flex; align-items:center; justify-content:space-between; padding:15px 15px 8px; font-size:11px; font-weight:700; color:rgba(var(--dark-text),1); }
.priv-section-link { font-size:10px; color:rgba(var(--theme-color),1); text-decoration:none; display:flex; align-items:center; font-weight:600; }
.priv-section-link i { font-size:16px; }

/* ── Преимущества уровня (2×2) ── */
.priv-adv-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:0 20px; }
.priv-adv-item { background:#fff; border:1px solid #f0f0f0; border-radius:12px; padding:10px 8px; display:flex; flex-direction:column; align-items:flex-start; gap:6px;text-align: center;align-items: center; }
.priv-adv-icon { font-size:18px; color:rgba(var(--theme-color),1); }
.priv-adv-text { font-size:9px; color:rgba(var(--dark-text),1); line-height:1.35; font-weight:500; }

/* ── Реферальный блок ── */
.priv-invite { margin:15px 20px 0px; background:#fff8f2; border-radius:16px; padding:16px; }
.priv-invite-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:14px; }
.priv-invite-title { font-size:13px; font-weight:700; color:rgba(var(--dark-text),1); line-height:1.3; }
.priv-invite-subtitle { font-size:10px; font-weight:700; color:rgba(var(--dark-text),1); line-height:1.3; }
.priv-invite-people { position:relative; width:82px; height:10px; flex-shrink:0; }
.priv-invite-benefits { display:flex; gap:10px; margin-bottom:14px; }
.priv-invite-benefit { flex:1; display:flex; align-items:flex-start; gap:6px; font-size:8px; color:rgba(var(--dark-text),.75); line-height:1.4; }
.priv-invite-benefit > i { color:rgba(var(--theme-color),1); font-size:16px; flex-shrink:0; margin-top:1px; }
.priv-invite-benefit b { color:rgba(var(--dark-text),1); }
.priv-invite-actions { display:flex; gap:8px;}
.priv-invite-btn { flex:1; background:rgba(var(--theme-color),1); color:#fff; border:none; border-radius:8px; padding:7px; font-size:10.6px; cursor:pointer; }
.priv-invite-share { width:48px; height:48px; background:#fff; border:1.5px solid #ddd; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:20px; color:rgba(var(--dark-text),.65); cursor:pointer; flex-shrink:0; }

/* ── История бонусов ── */
.priv-history { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    padding: 0px 10px;
    border-radius: 10px;
    margin: 0px 15px; }
.priv-history-empty { padding:24px 20px; display:flex; flex-direction:column; align-items:center; gap:8px; color:rgba(var(--light-text),1); }
.priv-history-empty i { font-size:36px; }
.priv-history-empty span { font-size:13px; }
.priv-txn { display:flex; align-items:center; gap:12px; padding:5px 0; border-bottom:1px solid rgba(0,0,0,0.05); }
.priv-txn:last-child { border-bottom:none; }
.priv-txn-badge { width:25px; height:25px; border-radius:5px; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; line-height:1.2; text-align:center; }
.priv-txn-badge--plus { background:#e8f7eb; color:#27a743; }
.priv-txn-badge--minus { background:#fdeaea; color:#e53935; }
.priv-txn-info { flex:1; min-width:0; }
.priv-txn-title { font-size:10px; font-weight:600; color:rgba(var(--dark-text),1); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.priv-txn-sub { font-size:9px; color:rgba(var(--light-text),1); margin-top:1px; }
.priv-txn-right { text-align:right; flex-shrink:0; }
.priv-txn-date { font-size:9px; color:rgba(var(--light-text),1); }
.priv-txn-amount { font-size:14px; font-weight:700; margin-top:2px; }
.priv-txn-amount--plus { color:#27a743; }
.priv-txn-amount--minus { color:#e53935; }

/* Правила */
.priv-rules { text-align:center; padding:16px 20px; }
.priv-rules a { font-size:13px; color:rgba(var(--light-text),1); text-decoration:underline; text-underline-offset:2px; }

/* ── Bottom sheet: Пригласить друга ── */
.priv-im-sheet { max-height:82vh; overflow-y:auto; scrollbar-width:none; }
.priv-im-sheet::-webkit-scrollbar { display:none; }
.priv-im-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:9px; }
.priv-im-head-text { flex:1; }
.priv-im-title { font-size:17.9px; font-weight:600; color:rgba(var(--dark-text),1); margin:0 0 2px; }
.priv-im-sub { font-size:10.6px; color:rgba(var(--light-text),1); margin:0; }
.priv-im-illustration { width:120px; flex-shrink:0; margin-top:-8px; margin-right:-4px; }

/* Карточки выгоды */
.priv-im-benefits { display:flex; gap:13px; margin-bottom:15px; }
.priv-im-benefit { flex:1; border-radius:7px; padding:7px 12px; }
.priv-im-benefit--orange { background:#fff3e0; }
.priv-im-benefit--purple { background:#f3effe; }
.priv-im-ben-top { display:flex; align-items:center; gap:6px; margin-bottom:1px; }
.priv-im-ben-val { font-size:20px; font-weight:500; }
.priv-im-benefit--orange .priv-im-ben-val { color:#ff8d2f;   }
.priv-im-benefit--purple .priv-im-ben-val { color:#8e6bbf; }
.priv-im-ben-ico { font-size:18px; }
.priv-im-benefit--orange .priv-im-ben-ico { color:#ff8d2f; }
.priv-im-benefit--purple .priv-im-ben-ico { color:#8e6bbf; }
.priv-im-ben-label { font-size:10px; font-weight:600; color:rgba(var(--dark-text),1); margin-bottom:4px; }
.priv-im-ben-desc { font-size:7.3px; color:black; line-height:1.3; white-space: nowrap;}

/* Промокод */
.priv-im-code { margin-bottom:-1px;     padding: 4px 9px;}
.priv-im-code-label { font-size:8.7px; color:black; margin-bottom:2px; }
.priv-im-code-row { display:flex; align-items:center; gap:8px; border: 1.4px dashed #f5f5f5;
        padding: 3px 9px 3px 6px;
    border-radius: 5px;}
.priv-im-code-val { font-size:16px; font-weight:500; color:rgba(var(--dark-text),1); flex:1; letter-spacing:-0.7px; } 
.priv-im-copy { background:none; border:none; color:rgba(var(--theme-color),1); font-size:10px; font-weight:500; cursor:pointer; display:flex; align-items:center; gap:5px; white-space:nowrap; padding:0; }
.priv-im-copy i { font-size:14px; }

/* Кнопка поделиться */
.priv-im-share-btn { width:100%; background:rgba(var(--theme-color),1); color:#fff; border:none; border-radius:7px; padding:7px; font-size:10.6px; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:9px; }
.priv-im-share-btn i { font-size:13px; }

/* Соцсети */
.priv-im-socials { display:flex; justify-content:space-between; gap:4px; margin-bottom:4px; }
.priv-im-social { display:flex; flex-direction:column; align-items:center; gap:5px; text-decoration:none; min-width:0; flex:1; }
.priv-im-social-ico { width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:20px; flex-shrink:0; }
.priv-im-social span:last-child { font-size:8px;font-weight: 500; color:rgba(var(--dark-text),.7); text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; width:100%; text-align:center; }

/* Статистика */
.priv-im-stats { display:flex; align-items:center; gap:13px; background:#fef9f6; border-radius:10px; padding:5px 12px; margin: 13px 0px 15px 0px; cursor:pointer; }
.priv-im-stats-ico { width:35px; height:35px; background:rgba(var(--theme-color),1); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:20px; color:#fff; flex-shrink:0; }
.priv-im-stats-info { flex:1; min-width:0; }
.priv-im-stats-title { font-size:10.0px; font-weight:700; color:rgba(var(--dark-text),1);margin-top: 3px; }
.priv-im-stats-sub { font-size:8.7px; color:#6e6d72; }
.priv-im-stats-bonus { text-align:right; font-size:13px; font-weight:700; color:rgba(var(--theme-color),1); white-space:nowrap; }
.priv-im-stats-bonus i { font-size:14px; }
.priv-im-stats-bonus span { display:block; font-size:7.8px; color:#6e6d72; font-weight:400; }
.priv-im-stats-arr { font-size:20px; color:#bbb; flex-shrink:0; }

/* Список друзей */
.priv-im-friends-title { font-size:11.5px; font-weight:700; color:rgba(var(--dark-text),1); margin-bottom:8px; }
.priv-im-friends { /*margin-bottom:16px;*/ }
.priv-im-friend { display:flex; align-items:center; gap:14px; padding:5px 0; border-bottom:1px solid rgba(0,0,0,0.05); }
.priv-im-friend:last-child { border-bottom:none; }
.priv-im-friend-ava { position:relative; width:30px; height:30px; border-radius:50%; background:rgba(var(--theme-color),.15); display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:700; color:rgba(var(--theme-color),1); overflow:visible; flex-shrink:0; }
.priv-im-friend-ava img { width:44px; height:44px; border-radius:50%; object-fit:cover; position:absolute; top:0; left:0; }
.priv-im-dot { position:absolute; bottom:-2px; right:-2px; width:16px; height:16px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:9px; color:#fff; border:2px solid #fff; font-weight: 100;}
.priv-im-dot--green { background:#35c734; }
.priv-im-dot--orange { background:#ff8d2f; }
.priv-im-friend-info { flex:1; min-width:0; }
.priv-im-friend-name { font-size:10px; font-weight:600; color:rgba(var(--dark-text),1); margin-top: 2px;}
.priv-im-friend-status { font-size:8.2px; color:#6e6d72;margin-top: 2px; }
.priv-im-friend-right { text-align:right; flex-shrink:0; }
.priv-im-friend-bonus { font-size:12px; font-weight:600; color:#27a743;margin-top: 3px; }
.priv-im-friend-wait { font-size:9px; font-weight:600; color:rgba(var(--theme-color),1); }
.priv-im-friend-wait-sub { font-size:8px; color:#6e6d72; }

/* QR-секция */
.priv-im-qr { display:flex; align-items:center; gap:12px; background:#fef9f6; border-radius:10px; padding:10px; margin:15px 0px; }
.priv-im-qr-icon { flex-shrink:0; line-height:0; border-radius:8px; overflow:hidden; }
.priv-im-qr-info { flex:1; min-width:0; }
.priv-im-qr-title { font-size:9px; font-weight:700; color:rgba(var(--dark-text),1); margin-top: -3px;}
.priv-im-qr-sub { font-size:7.6px; color:rgba(var(--light-text),1); line-height:1.4; margin-top:2px; }
.priv-im-qr-btn { background:#fff; border:1px solid rgba(var(--theme-color),1); color:rgba(var(--theme-color),1); border-radius:8px; padding:4px 14px; font-size:8px; font-weight:500; cursor:pointer; white-space:nowrap; display:flex; align-items:center; gap:5px; flex-shrink:0; margin-top: -6px;}
.priv-im-qr-btn i { font-size:15px; }

/* Сноска */
.priv-im-footer { font-size:9px; color:rgba(var(--light-text),1); text-align:center; line-height:1.5; }
.priv-im-footer a { color:rgba(var(--theme-color),1); }

/* ── Bottom sheet: Все привилегии ── */
.priv-all-sheet { max-height:82vh; overflow-y:auto; scrollbar-width:none; }
.priv-all-sheet::-webkit-scrollbar { display:none; }
.priv-all-title { font-size:17px; font-weight:700; color:rgba(var(--dark-text),1); margin:16px 0 10px; }
.priv-all-subtitle { font-size:12px; color:rgba(var(--light-text),1); margin:-6px 0 12px; }

/* Сравнительная таблица */
.priv-cmp-wrap { overflow-x:auto; margin:0 -4px; }
.priv-cmp-table { width:100%; border-collapse:collapse; font-size:12px; }
.priv-cmp-feat-th { text-align:left; padding:8px 6px; font-weight:600; color:rgba(var(--dark-text),1); width:38%; font-size:12px; }
.priv-cmp-th { text-align:center; padding:8px 4px; font-size:10px; font-weight:800; letter-spacing:.4px; white-space:nowrap; width:15.5%; }
.priv-cmp-th--active { background:rgba(var(--theme-color),.07); border-radius:8px 8px 0 0; }
.priv-cmp-table tbody tr { border-top:1px solid rgba(0,0,0,0.05); }
.priv-cmp-feat { padding:10px 6px; vertical-align:middle; }
.priv-cmp-feat i { font-size:16px; color:rgba(var(--theme-color),1); vertical-align:middle; margin-right:6px; }
.priv-cmp-feat span { font-size:11px; color:rgba(var(--dark-text),1); line-height:1.35; vertical-align:middle; }
.priv-cmp-val { text-align:center; padding:10px 4px; font-size:12px; font-weight:700; vertical-align:middle; }
.priv-cmp-val--active { background:rgba(var(--theme-color),.07); }

/* Как работают уровни */
.priv-how-row { display:flex; align-items:center; gap:4px; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; }
.priv-how-row::-webkit-scrollbar { display:none; }
.priv-how-arrow { font-size:18px; color:#ccc; flex-shrink:0; }
.priv-how-card { flex:1; min-width:72px; background:rgba(var(--box-bg),1); border-radius:12px; padding:10px 6px; text-align:center; }
.priv-how-card--active { background:rgba(var(--theme-color),.08); }
.priv-how-icon { width:44px; height:44px; margin:0 auto 6px; display:flex; align-items:center; justify-content:center; }
.priv-how-icon img { width:100%; height:100%; object-fit:contain; }
.priv-how-name { font-size:9px; font-weight:800; letter-spacing:.5px; margin-bottom:2px; }
.priv-how-range { font-size:10px; color:rgba(var(--light-text),1); }

/* CTA карточка */
.priv-cta { background:#fff8f2; border:1px solid rgba(var(--theme-color),.2); border-radius:10px; padding:16px; margin-top:20px; }
.priv-cta-top { margin-bottom:14px; }
.priv-cta-label { font-size:12px; color:rgba(var(--light-text),1); margin-bottom:4px; }
.priv-cta-amount { font-size:34px; font-weight:800; color:rgba(var(--theme-color),1); line-height:1.1; margin-bottom:4px; }
.priv-cta-desc { font-size:12px; color:rgba(var(--dark-text),.7); line-height:1.4; }
.priv-cta-bottom { display:flex; align-items:center; gap:10px; }
.priv-cta-benefits { display:flex; gap:12px; flex:1; }
.priv-cta-benefit { display:flex; flex-direction:column; align-items:center; text-align:center; gap:2px; font-size:10px; color:rgba(var(--dark-text),.7); min-width:0; }
.priv-cta-benefit i { font-size:20px; color:rgba(var(--theme-color),1); }
.priv-cta-benefit b { font-size:11px; color:rgba(var(--dark-text),1); }
.priv-cta-btn { background:rgba(var(--theme-color),1); color:#fff; border:none; border-radius:12px; padding:12px 16px; font-size:14px; font-weight:700; white-space:nowrap; text-decoration:none; flex-shrink:0; display:inline-block; }

/* ── Bottom sheet: QR реферальной ссылки ── */
/* Открывается внутри #priv-invite-modal, поэтому нужен z-index выше 1055 */
#priv-ref-qr-modal { z-index: 1080; }
.priv-ref-qr-sheet { max-height:70vh; overflow:hidden; }
.priv-ref-qr-title { font-size:15px; font-weight:700; color:rgba(var(--dark-text),1); margin-bottom:16px; }
.priv-ref-qr-wrap  { display:flex; justify-content:center; margin-bottom:14px; }
.priv-ref-qr-code  { font-size:16px; font-weight:800; letter-spacing:1px; color:rgba(var(--dark-text),1); margin-bottom:6px; }
.priv-ref-qr-hint  { font-size:12px; color:rgba(var(--light-text),1); line-height:1.5; }
/* ── Page transition: progress bar + skeleton ────────────────────────────── */
#pt-veil {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #f7f7f7;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  overflow: hidden;
}
#pt-veil.pt-hide  { opacity: 0; pointer-events: none; }
#pt-veil:not(.pt-hide) { opacity: 1; pointer-events: all; }

/* ── Shimmer animation ── */
.sk-b {
  background: linear-gradient(90deg, #ececec 25%, #ddd 50%, #ececec 75%);
  background-size: 400px 100%;
  animation: sk-sh 1.3s ease-in-out infinite;
  border-radius: 10px;
}
@keyframes sk-sh {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

/* ── Skeleton blocks ── */
.sk-hdr {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px 14px;
  background: #fff;
}
.sk-hdr-icon  { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.sk-hdr-title { flex: 1; height: 20px; border-radius: 8px; }

.sk-tabs {
  display: flex; gap: 8px;
  padding: 10px 16px;
  background: #fff;
}
.sk-tab        { flex: 1; height: 38px; border-radius: 10px; }
.sk-tab-active { background: linear-gradient(90deg, #f5ddd0 25%, #ecc9b6 50%, #f5ddd0 75%); background-size: 400px 100%; animation: sk-sh 1.3s ease-in-out infinite; }

.sk-info-bar { margin: 12px 16px; height: 56px; border-radius: 14px; }

.sk-banners {
  display: flex; gap: 12px;
  padding: 4px 16px;
  overflow: hidden;
}
.sk-banner { flex-shrink: 0; width: 44vw; height: 52vw; max-width: 200px; max-height: 230px; border-radius: 16px; }

.sk-pill-row { padding: 14px 16px 8px; }
.sk-pill      { width: 110px; height: 28px; border-radius: 20px; }

.sk-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 4px 16px;
}
.sk-card { height: 54vw; max-height: 240px; border-radius: 16px; }


/* ── Link messenger panel ─────────────────────────────────────── */
.am-link-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a1a;
}
.am-link-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}
.am-link-open-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #2CA5E0;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  margin-bottom: 12px;
  transition: opacity 0.15s;
}
.am-link-open-btn:hover { opacity: 0.9; color: #fff; }
.am-link-retry-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid #dee2e6;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 10px;
  transition: border-color 0.15s;
}
.am-link-retry-btn:hover:not(:disabled) { border-color: #adb5bd; }
.am-link-retry-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.am-link-back-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: none;
  border: none;
  color: #888;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
}
.am-link-back-btn:hover { color: #333; }

/* ── Compact button overrides inside link panel ── */
#am-link-panel .alm-open-btn {
  height: auto;
  padding: 11px 16px;
  font-size: 0.875rem;
  border-radius: 12px;
  background: #fff !important;
  color: #1a1a1a;
  border: 1.5px solid rgba(0,0,0,0.1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
#am-link-panel .alm-open-btn:hover { opacity: 1; color: #1a1a1a; }
#am-link-panel .acm-confirm {
  height: auto;
  padding: 11px 16px;
  font-size: 0.875rem;
  border-radius: 12px;
  margin-top: 8px !important;
  background: #fff !important;
  color: #1a1a1a;
  border: 1.5px solid rgba(0,0,0,0.1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

/* ── Подарок по промокоду: позиция в корзине без счётчика и кнопки удаления ── */
.fp-item--gift {
  background: #fffaf7;
  box-shadow: 0 2px 12px rgba(255,122,0,.14);
  border: 1px dashed rgba(255,122,0,.45);
}
.fp-gift-badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin: 2px 0 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  color: #ff7a00; background: rgba(255,122,0,.12);
}
.fp-item-qty--gift {
  display: flex; align-items: center; justify-content: center;
  min-width: 34px; font-size: 13px; font-weight: 600; color: #888;
}
