 :root{
    --bg:#0b1220;        /* arka plan */
    --panel:#111a2e;     /* panel arka plan */
    --muted:#1b2948;     /* sınır/ayırıcı */
    --text:#e9eef7;      /* metin */
    --accent:#4da3ff;    /* vurgu */
    --good:#22c55e;      /* onay */
    --warn:#ff0000;      /* uyarı */
    --danger:#ef4444;    /* tehlike */
    --ready:#26ca3c;    /* tehlike */
    --tile-size:90px;   /* kare buton boyutu */
    --pr-tile-size: 220px; /* ürünler buton boyu*/
    --radius:20px;       /* köşe yuvarlaklığı */
    --gap:12px;          /* grid boşluğu */
     --pr-gap:40px;          /* grid boşluğu */
    /* chip yüksekliği kontrolü (istersen 40–48px arası oynatabilirsin) */
  --chip-h: 44px;
  --chip-gap: 8px;
  --cat-rows: 2; /* tam iki satır göster */
  --side-w: 500px;
  }
  *{box-sizing:border-box}
  html,body{height:98%}
  body{
    margin:0; background:var(--bg); color:var(--text);
    font-family:Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  }
.app{
  display: grid;
  grid-template-columns: var(--side-w) 1fr var(--side-w);
  gap: var(--gap);
  padding: 16px;
  height: 100%;
}
  .panel{background:var(--panel); border:1px solid var(--muted); border-radius:var(--radius); display:flex; flex-direction:column; min-height:0}
  .panel h3{margin:0; padding:12px 14px; border-bottom:1px solid var(--muted); font-size:16px}
  .panel .content{padding:12px; overflow:auto; min-height:0}

  /* Büyük kare buton (dokunmatik) */
  .tile{
    width:var(--tile-size); height:var(--tile-size);
    border-radius: calc(var(--radius) + 4px);
    background:#0e1730; border:1px solid var(--muted); color:var(--text);
    display:flex; align-items:center; justify-content:center; text-align:center;
    font-weight:600; padding:8px; cursor:pointer; user-select:none;
    transition: transform .05s ease, border-color .2s ease, background .2s ease;
  }
  .tile:active{ transform:scale(.98) }
  .tile.primary{ border-color:var(--accent); box-shadow:0 0 0 1px #000 inset }
  .tile.good{ border-color:var(--good) }
  .tile.warn{ border-color:var(--warn) }
  .tile.danger{ border-color:var(--danger) }

  .grid-tiles{ display:grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile-size),1fr)); gap:var(--gap); align-content:start }


  /* Menü Paneli */

  .pr-tile{
    width:var(--pr-tile-size); height:150px;
    border-radius: calc(var(--radius) + 4px);
    background:#0e1730; border:1px solid var(--muted); color:var(--text);
    display:flex; align-items:center; justify-content:center; text-align:center;
    font-weight:600; padding:8px; cursor:pointer; user-select:none;
    transition: transform .05s ease, border-color .2s ease, background .2s ease;
  }
  .pr-tile:active{ transform:scale(.98) }
  .pr-tile.primary{ border-color:var(--accent); box-shadow:0 0 0 1px #000 inset }
  .pr-tile.good{ border-color:var(--good) }
  .pr-tile.warn{ border-color:var(--warn) }
  .pr-tile.danger{ border-color:var(--danger) }

  .grid-pr-tiles{ display:grid; grid-template-columns: repeat(auto-fill, minmax(var(--pr-tile-size),1fr)); gap:var(--pr-gap); align-content:start; -webkit-scrollbar { width: 0;height: 0; }}


  /* Masa paneli */
  .legend{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px; align-items:center}
  .dot{width:10px; height:10px; border-radius:50%; display:inline-block}
  .dot.free{background:var(--good)}
  .dot.busy{background:var(--warn)}
  .dot.res{background:var(--accent)}
  .table-tile{ position:relative }
  .table-tile small{ position:absolute; bottom:6px; right:8px; opacity:.7; font-weight:500 }
  .badge{ position:absolute; top:6px; left:8px; font-size:11px; padding:2px 6px; border-radius:999px; border:1px solid var(--muted); background:#0c1530; opacity:.9 }

  /* Menü paneli */
 .categories{
  display:flex;
  flex-wrap: wrap;                 /* çok önemli: satır sarmayı aç */
  column-gap: var(--chip-gap);
  row-gap: var(--chip-gap);
  padding: 0 12px 12px;
  border-bottom:1px solid var(--muted);
  /* tam 2 satır alan ayır: (satır yüksekliği + boşluk) * satır sayısı */
  max-height: calc(var(--cat-rows) * (var(--chip-h) + var(--chip-gap)));
  overflow:auto;                   /* 2 satırı aşarsa kaydırılsın */
}
  .chip{
  display:flex;
  align-items:center;
  height: var(--chip-h);
  white-space: nowrap;
  padding: 0 14px;                 /* yatay iç boşluk */
  border-radius:999px;
  border:1px solid var(--muted);
  cursor:pointer;
  font-weight:600;
}
.chip.active{ border-color:var(--accent); background:#0f1b37; }

  .menu-tools{ display:flex; gap:8px; padding:12px; border-bottom:1px solid var(--muted) }
  .search{ flex:1; display:flex; gap:8px }
  .search input{ flex:1; height:48px; border-radius:14px; border:1px solid var(--muted); background:#0e1730; color:var(--text); padding:0 12px; font-size:16px }
  .search button{ height:48px }

  /* Adisyon paneli */
  .bill{ display:flex; flex-direction:column; gap:8px; height:100% }
  .bill-header{ display:flex; gap:8px; align-items:center; justify-content:space-between }
  .bill-body{ flex:1; overflow:auto; border:1px dashed var(--muted); border-radius:14px; padding:8px }
  .bill-item{ display:grid; grid-template-columns: 1fr auto auto; gap:8px; align-items:center; padding:8px; border-bottom:1px dashed #15264a }
  .bill-item:last-child{ border-bottom:none }
  .qty-stepper{ display:flex; align-items:center; gap:6px }
  .qty-stepper button{ width:36px; height:36px; border-radius:10px; border:1px solid var(--muted); background:#0e1730; color:var(--text); font-weight:700 }
  .money{ font-feature-settings:"tnum" on, "ss01" on; font-variant-numeric: tabular-nums }
  .bill-footer{ display:grid; grid-template-columns: 1fr 1fr; gap:8px }
  .totals{ display:grid; gap:6px; padding:8px; border:1px solid var(--muted); border-radius:14px }
  .actions{ display:grid; gap:8px }
  .btn{ height:56px; border-radius:16px; border:1px solid var(--muted); background:#0e1730; color:var(--text); font-weight:700; cursor:pointer }
  .btn.primary{ border-color:var(--accent) }
  .btn.good{ border-color:var(--good) }
  .btn.warn{ border-color:var(--warn) }
  .btn.danger{ border-color:var(--danger) }
  .btn.ready{ border-color:var(--ready) }

  /* Alt bar (kısa yol) */
  .dock{ position:fixed; left:0; right:0; bottom:0; padding:8px 12px; background:linear-gradient(180deg, rgba(11,18,32,0), var(--bg)); }
  .dock .bar{ max-width:1400px; margin:0 auto; display:flex; gap:8px; justify-content:center }
  .dock .tile{ height:76px; width:160px }

  /* Touch hedefleri */
  button, .tile, .chip{ touch-action:manipulation }

  /* Mobil/dikey uyarlama */
 @media (max-width: 1200px){
  .app{
    grid-template-columns: 1fr;
    padding-bottom: 100px;
  }
  .dock{ position: sticky; bottom: 0; } /* sticky için yer belirt */

  .menu-tools{display:none;}
}




  /* Mobil header */
  .mobile-header{ display:none; position:sticky; top:0; z-index:10; background:var(--panel); border-bottom:1px solid var(--muted); padding:10px 12px; align-items:center; gap:8px }
  .mobile-header .back{ height:40px; border:1px solid var(--muted); border-radius:12px; background:#0e1730; color:var(--text); font-weight:700; padding:0 12px }
  .mobile-header .title{ font-weight:800; font-size:16px }

  /* Masa kartı içi mini aksiyonlar (yalnızca mobilde) */
  .table-actions{ display:none; gap:8px; position:absolute; left:8px; right:8px; bottom:8px }
  .table-actions .mini{ flex:1; height:40px; border-radius:12px; border:1px solid var(--muted); background:#0e1730; color:var(--text); font-weight:700 }

  /* Mobil route tabanlı görünürlük */
  @media (max-width: 900px){
    .app{ grid-template-columns:1fr; padding-bottom:100px }
    .mobile-header{ display:flex }
    #panel-menu, #panel-bill, #panel-tables{ display:none }
    body[data-route="tables"] #panel-tables{ display:flex }
    body[data-route="order"] #panel-menu{ display:flex }
    body[data-route="order"] #panel-bill{ display:flex }
    body[data-route="checkout"] #panel-bill{ display:flex }
    body[data-route="checkout"] #panel-tables, body[data-route="checkout"] #panel-menu{ display:none }
    .table-actions{ display:flex }
  }

  /* Test sonuç paneli (dev) */
  #testPanel{ position:fixed; right:12px; top:12px; background:#0e1730; border:1px solid var(--muted); border-radius:14px; padding:10px 12px; max-width:360px; font-size:13px; line-height:1.4; box-shadow:0 10px 30px rgba(0,0,0,.35); display:none }
  #testPanel.pass{ border-color:var(--good) }
  #testPanel.fail{ border-color:var(--danger) }

  #panel-menu .content{
  overflow:auto;
  min-height:0;
}
/* === Panel özel değişkenler === */
:root{
  --tbl-tile-size: 90px;    /* MASA kutuları */
  --pr-tile-size: 150px;    /* MENÜ kutuları */
  --pr-gap: 40px;           /* MENÜ aralığı */
}

/* === MENÜ paneli: büyük karo + geniş aralık === */
#panel-menu .tile{
  width: var(--pr-tile-size);
  height: 150px;
}
#panel-menu .grid-tiles{
  gap: var(--pr-gap);
  grid-template-columns: repeat(auto-fill, minmax(var(--pr-tile-size), 1fr));
}

/* === MASA paneli: küçük karo + normal aralık === */
#panel-tables .tile{
  width: var(--tbl-tile-size);
  height: var(--tbl-tile-size);
}
#panel-tables .grid-tiles{
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(var(--tbl-tile-size), 1fr));
}

/* Menü kartı: kutu dışına taşmayı tamamen engelle */
.pr-tile{
  position: relative;
  overflow: hidden;          /* taşmayı kes */
  padding: 8px;
}
.pr-tile *{ min-width: 0; }  /* ellipsis için gerekli */

/* Kutu içi düzen: görsel üstte, ad ve fiyat altta */
.product-card{
  display: grid;
  grid-template-rows: 1fr auto auto; /* img alanı esnek, ad+fiyat sabit */
  align-items: center;
  justify-items: center;
  gap: 3px;
  width: 100%;
  height: 100%;
}

/* Görsel alanı: kutudan taşmasın, ortalansın */
.product-media{
  width: 100%;
  height: 100%;
  min-height: 0;             /* grid overflow fix */
  display: grid;
  place-items: center;
  padding: 2px;

  /* asıl sihir burada */
  background-size: contain;    /* görselin tamamı görünür, letterbox olabilir */
  background-position: center; /* ortala */
  background-repeat: no-repeat;
  background-origin: content-box; /* padding içini baz al */
  background-clip: content-box;   /* padding'i arka plandan düş */
  background-color: #111a2e;      /* boş kenarlar için zemin (isteğe bağlı) */
}
.product-img{
  max-width: 90%;
  max-height: calc(var(--pr-tile-size) * 0.65); /* 120px için ~66px */
  object-fit: contain;
  display: block;
}

/* İsim: 2 satırda otomatik kısalt (line clamp) */
.product-name{
  text-align: center;
  font-weight: 700;
  line-height: 1.15;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;           /* ← asıl kısaltma */
  -webkit-box-orient: vertical;
  overflow: hidden;                 /* fazlasını kes */
  text-overflow: ellipsis;
}

/* Fiyat: tek satır, taşma olursa ellipsis */
.product-price{
  text-align: center;
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px){
 /* Varsayılan: sadece kategoriler */
  body[data-mobile-view="cats"] #panel-tables { display:none; }
  body[data-mobile-view="cats"] #panel-bill   { display:none; }
  body[data-mobile-view="cats"] #panel-menu   { display:block; }
  body[data-mobile-view="cats"] #productsGrid { display:none; }   /* sadece kategoriler görünsün */

  /* Ürünlere geçince: yine sadece menü paneli, ürün grid'i açık */
  body[data-mobile-view="prods"] #panel-tables { display:none; }
  body[data-mobile-view="prods"] #panel-bill   { display:none; }
  body[data-mobile-view="prods"] #panel-menu   { display:block; }
  body[data-mobile-view="prods"] #productsGrid { display:grid; }

  /* Adisyon görünümü istenirse: sadece adisyon paneli */
  body[data-mobile-view="bill"] #panel-tables { display:none; }
  body[data-mobile-view="bill"] #panel-menu   { display:none; }
  body[data-mobile-view="bill"] #panel-bill   { display:block; }

@media (max-width: 900px){
    #panel-menu .categories{
    /* Tek satır flex yerine grid kullanalım */
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 sütun */
    grid-auto-rows: 44px;                             /* her satır yüksekliği */
    gap: 10px;
    padding: 8px;
    align-content: start;

    /* Yüksekliği büyüt ve dikey kaydırmaya izin ver */
    height: 400px !important;        /* ihtiyaca göre 220/320 yapabilirsin */
    max-height: none !important;
    overflow-y: auto;
    overflow-x: hidden;

    /* Eski yatay scroll kalıntılarını etkisizleştir */
    -webkit-overflow-scrolling: touch;
  }

  #panel-menu .categories .chip{
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* taşmadan tek satır label */
    padding: 12px 10px;
  }

  }
  .categories .chip.active{ background:#0ea5e9; color:#fff; }
}

/* Varsayılan */
#panel-menu #categoryBar { display:block; }
#panel-menu .categories-mobile { display:none; }

/* Masaüstünde ikonları gizle (sadece img’i değil tüm grid zaten kapalı) */
.categories-mobile img { display:none; }

/* Mobil görünüm anahtarları */
@media (max-width: 768px){
  /* KATEGORİ SAHNESİ: sadece ikon grid açık */
  body[data-mobile-view="cats"] #panel-menu .categories-mobile { display:grid !important; }
  body[data-mobile-view="cats"] #panel-menu #categoryBar,
  body[data-mobile-view="cats"] #panel-menu .menu-tools,
  body[data-mobile-view="cats"] #panel-menu .content { display:none !important; }

  /* ÜRÜN SAHNESİ: ikon grid kapalı, ürün alanları açık */
  body[data-mobile-view="prods"] #panel-menu .categories-mobile { display:none !important; }
  body[data-mobile-view="prods"] #panel-menu #categoryBar,
  body[data-mobile-view="prods"] #panel-menu .menu-tools,
  body[data-mobile-view="prods"] #panel-menu .content { display:block !important; }

  /* Grid stilleri */
  #panel-menu .categories-mobile{
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap:14px; padding:10px 8px;
  }
  #panel-menu .categories-mobile .category-item{
    background: var(--panel, #101a2e);
    border:1px solid var(--br, #696a6b);
    border-radius:14px; padding:10px 6px; text-align:center; user-select:none;
  }
  #panel-menu .categories-mobile .category-item img{
    width:64px; height:64px; object-fit:contain; display:block; margin:0 auto 6px;
  }
  #panel-menu .categories-mobile .category-item span{
    font-size:13px; line-height:1.2; display:block;
  }

  .btn{ height:36px; border-radius:16px; border:1px solid var(--muted); background:#0e1730; color:var(--text); font-weight:700; cursor:pointer }
  .btn.primary{ border-color:var(--accent) }
  .btn.good{ border-color:var(--good) }
  .btn.warn{ border-color:var(--warn) }
  .btn.danger{ border-color:var(--danger) }

}

/* Dokunma geri bildirimi */
.categories-mobile .category-item:active{ transform:scale(0.98); }

@media (max-width: 768px){
  /* Ürün sahnesinde kategori barını tamamen gizle */
  body[data-mobile-view="prods"] #panel-menu #categoryBar{
    display: none !important;
  }

  /* Ürün sahnesinde başlığı gizle → üstte sadece Geri kalsın */
  body[data-mobile-view="prods"] .mobile-header .title{
    display: none !important;
  }

  /* (İstersen) Kategori sahnesinde başlık görünsün */
  body[data-mobile-view="cats"] .mobile-header .title{
    display: block !important;
  }
}
@media (max-width: 768px){
  /* Ürün sahnesinde üst başlık ve kategori bar gizli */
  body[data-mobile-view="prods"] #panel-menu #categoryBar,
  body[data-mobile-view="prods"] .mobile-header .title {
    display: none !important;
  }

  /* Ürün sahnesinde arama kutusu ve not ekle butonu gizli */
  body[data-mobile-view="prods"] #panel-menu .menu-tools .search,
  body[data-mobile-view="prods"] #panel-menu #noteBtn {
    display: none !important;
  }
}
/* Guest + Mobil + Adisyon görünümü: sadeleştir */
@media (max-width: 900px){
  body[data-guest="1"][data-mobile-view="bill"] #panel-bill .bill-header,
 
  body[data-guest="1"][data-mobile-view="bill"] #panel-bill .actions .btn:not(#guestSubmit),
  body[data-guest="1"][data-mobile-view="bill"] #panel-bill .totals > div:nth-of-type(1), /* Ara Toplam satırı */
  body[data-guest="1"][data-mobile-view="bill"] #panel-bill .totals > div:nth-of-type(2), /* KDV satırı */
  body[data-guest="1"][data-mobile-view="bill"] #panel-bill .totals > hr {
    display: none !important;
  }

  /* Siparişi Onayla butonu tek kalsın ve geniş olsun */
  body[data-guest="1"][data-mobile-view="bill"] #panel-bill #guestSubmit{
    display: inline-block !important;
    width: 100%;
    margin-top: 12px;
  }
}
/* ---- Yeni sipariş bildirimi: toast ---- */
#toastHost { position: fixed; right: 16px; bottom: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #0b1222; color: #eaf2ff; border: 1px solid #2a3a63; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); padding: 10px 12px; min-width: 240px; max-width: 360px;
  display: flex; align-items: center; gap: 10px; animation: toastIn .18s ease-out;
}
.toast .msg { flex: 1; font-size: 14px; line-height: 1.3; }
.toast .btn { font-size: 13px; padding: 6px 10px; border-radius: 8px; cursor: pointer; background:#1c2a4e; border:1px solid #415a9c; color:#dce6ff; }
.toast .btn:hover { filter: brightness(1.1); }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

/* ---- Masa kutusunda "yeni" rozeti ve vurgu ---- */
#tablesGrid .table-tile.has-new { position: relative; box-shadow: 0 0 0 2px #15b57a inset; }
#tablesGrid .table-tile .new-badge {
  position: absolute; top: 8px; right: 8px; background: #fd0000; color: #ffffff;
  font-weight: 800; font-size: 11px; padding: 3px 6px; border-radius: 999px; box-shadow: 0 3px 10px rgba(21,181,122,.35);
}
/* Varsayılan karo görünümü */
.table-tile{
  border: 2px solid #e5e7eb; /* nötr gri */
  border-radius: 12px;
 
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

/* FREE (müsait) -> yeşil kenar */
.table-tile.free{
  border-color: #22c55e;              /* Tailwind green-500 */
  box-shadow: 0 0 0 1px rgba(34,197,94,.25) inset;
  /* istersen çok hafif açık yeşil zemin: background:#f0fdf4; */
}

/* PENDING -> turuncu */
.table-tile.warn{
  border-color: #ff0000;              /* orange-400 */
  
}

/* SENT -> mavi */
.table-tile.primary{
  border-color: #60a5fa;              /* blue-400 */
  
}

/* (opsiyonel) seçili masa vurgusu */
.table-tile.selected{
  outline: 2px solid #111827;
  outline-offset: 2px;
}
/* Overlay */
#mergeModal.modal-backdrop{
  position: fixed; inset: 0;
  display: none;                /* .show olduğunda flex olacak */
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.45);
  z-index: 9999;                /* üstte olsun */
  padding: 16px;                /* mobilde kenarlık */
}
#mergeModal.modal-backdrop.show{ display: flex; }

/* Kart */
#mergeModal .modal-card{
  width: min(92vw, 420px);
  background: #1f1e1e; color: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
#mergeModal .modal-card h3{ margin: 0 0 10px; font-size: 18px; }
#mergeModal .form-row{ margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
#mergeModal label{ font-size: 14px; opacity: .8; }
#mergeModal input{
  height: 38px; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 10px;
}
#mergeModal .actions{ margin-top: 12px; display: flex; gap: 8px; justify-content: flex-end; }
#mergeModal .btn{ height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid #e5e7eb; background: #ff0101; cursor: pointer; }
#mergeModal .btn.good{ background: #16a34a; color: #fff; border-color: #16a34a; }
#mergeModal .muted{ opacity: .75; font-size: 12px; }

/* MOVE modal (overlay) */
#moveModal.modal-backdrop{
  position: fixed; inset: 0;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); z-index: 9999; padding: 16px;
}
#moveModal.modal-backdrop.show{ display: flex; }
#moveModal .modal-card{
  width: min(92vw, 420px);
  background: #1f1e1e; color: #ffffff;
  border-radius:14px; padding:16px 18px;
  box-shadow:0 18px 60px rgba(0,0,0,.35);
}
#moveModal .modal-card h3{ margin:0 0 10px; font-size:18px; }
#moveModal .form-row{ margin:10px 0; display:flex; flex-direction:column; gap:6px; }
#moveModal label{ font-size:14px; opacity:.8; }
#moveModal input{ height:38px; padding:6px 10px; border:1px solid #e5e7eb; border-radius:10px; }
#moveModal .actions{ margin-top:12px; display:flex; gap:8px; justify-content:flex-end; }
#moveModal .btn{ height:36px; padding:0 14px; border-radius:10px; border:1px solid #e5e7eb; background: #ff0101; cursor: pointer; }
#moveModal .btn.good{ background:#2563eb; color:#fff; border-color:#2563eb; } /* mavi */
#moveModal .muted{ opacity:.75; font-size:12px; }

/* CHECKOUT modal (overlay) */
#checkoutModal.modal-backdrop{
  position: fixed; inset:0;
  display:none; align-items:center; justify-content:center;
  background: rgba(0,0,0,.45); z-index: 10000; padding:16px;
}
#checkoutModal.modal-backdrop.show{ display:flex; }

#checkoutModal .modal-card{
  width: min(96vw, 540px);
   background: #1f1e1e; color: #ffffff;
  border-radius:14px; padding:16px 18px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}
#checkoutModal h3{ margin:0 0 10px; font-size:18px; }
#checkoutModal .summary{
  max-height: 40vh; overflow:auto; border:1px solid #e5e7eb; border-radius:10px; padding:10px; margin:8px 0 12px;
}
#checkoutModal .sum-row{
  display:flex; justify-content:space-between; margin:4px 0;
}
#checkoutModal .sum-row.total{ font-weight:800; font-size:16px; border-top:1px dashed #e5e7eb; padding-top:6px; }

#checkoutModal .form-row{ margin:10px 0; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
#checkoutModal label{ font-size:14px; opacity:.85; }
#checkoutModal input[type="number"]{
  height:38px; padding:6px 10px; border:1px solid #e5e7eb; border-radius:10px; width:120px;
}
#checkoutModal .pay-amounts{ display:none; gap:10px; }
#checkoutModal .pay-amounts.show{ display:flex; }

#checkoutModal .actions{ margin-top:12px; display:flex; gap:8px; justify-content:flex-end; }
#checkoutModal .btn{ height:36px; padding:0 14px; border-radius:10px; border:1px solid #e5e7eb; background: #ff0101; cursor: pointer; }
#checkoutModal .btn.good{ background:#16a34a; color:#fff; border-color:#16a34a; }
#checkoutModal .btn.warn{ background:#2563eb; color:#fff; border-color:#2563eb; }
#checkoutModal .muted{ opacity:.75; font-size:12px; }

