/* ============================================================
   Customer self-order KIOSK — กล้วยทอดแม่ประทุม
   Food-delivery dashboard style: bright cream + vivid orange,
   soft rounded cards, touch-first. Separate from cashier POS.
   ============================================================ */

:root {
  --kk-orange: #f2700c;
  --kk-orange-bright: #ff9f2e;
  --kk-orange-soft: #fff1dc;
  --kk-grad: linear-gradient(135deg, #ff9f2e, #f2700c);
  --kk-grad-deep: linear-gradient(120deg, #ffa836 0%, #f2700c 60%, #e25a00 100%);
  --kk-green: #2e9f5c;
  --kk-grad-green: linear-gradient(135deg, #3fb07a, #1e8e5a);
  --kk-text: #2c1b0f;
  --kk-text-soft: #6e5b47;
  --kk-muted: #9b8a78;
  --kk-faint: #b5a48e;
  --kk-cream: #fff6ea;
  --kk-surface: #ffffff;
  --kk-border: #f2e6d2;
  --kk-radius: 16px;
  --kk-radius-lg: 20px;
  --kk-shadow-sm: 0 4px 12px rgba(120, 75, 14, .08);
  --kk-shadow: 0 10px 26px -8px rgba(120, 75, 14, .18);
  --kk-shadow-lg: 0 22px 48px -16px rgba(120, 75, 14, .4);
  --kk-font: "Noto Sans Thai", "Inter", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body.kk-body {
  font-family: var(--kk-font);
  color: var(--kk-text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 159, 46, .12), transparent 38%),
    radial-gradient(circle at 88% 16%, rgba(242, 112, 12, .08), transparent 36%),
    linear-gradient(180deg, #fffaf3 0%, #fdeedd 100%);
  min-height: 100%;
}

/* ── Shell layout (full-screen, edge-to-edge like the cashier POS) ─ */
.kk-shell {
  display: grid;
  grid-template-columns: 88px 1fr 380px;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ── Left icon rail ─────────────────────────────────────────── */
.kk-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 22px;
  gap: 10px;
  height: 100vh;
  background: var(--kk-surface);
  border-right: 1px solid var(--kk-border);
  box-shadow: 12px 0 32px -24px rgba(120, 75, 14, .2);
}
.kk-rail__brand {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: var(--kk-grad);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  display: grid;
  place-items: center;
  text-decoration: none;
  margin-bottom: 16px;
  box-shadow: 0 10px 22px rgba(242, 112, 12, .42);
  transition: transform .15s ease;
}
.kk-rail__brand:hover { transform: scale(1.06); }
.kk-rail__nav { display: flex; flex-direction: column; gap: 8px; }
.kk-rail__item {
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  color: var(--kk-faint);
  border-radius: 16px;
  font-size: 19px;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.kk-rail__item:hover { color: var(--kk-orange); background: var(--kk-orange-soft); }
.kk-rail__item.is-on {
  background: var(--kk-grad);
  color: #fff;
  box-shadow: 0 10px 20px rgba(242, 112, 12, .4);
}
.kk-rail__foot { margin-top: auto; }
.kk-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────────── */
.kk-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 26px;
  flex-shrink: 0;
}
.kk-head-title { flex-shrink: 0; }
.kk-head-title h1 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.kk-head-title small { font-size: 12px; color: var(--kk-muted); font-weight: 600; }
.kk-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--kk-text);
  flex-shrink: 0;
}
.kk-brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--kk-grad);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(242, 112, 12, .4);
}
.kk-brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.kk-brand__text strong { font-size: 16px; font-weight: 800; }
.kk-brand__text small { font-size: 11.5px; color: var(--kk-muted); font-weight: 600; }
.kk-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--kk-surface);
  border-radius: 14px;
  padding: 0 18px;
  height: 50px;
  box-shadow: var(--kk-shadow-sm);
  color: var(--kk-faint);
}
.kk-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--kk-text);
  outline: none;
}
.kk-search input::placeholder { color: var(--kk-faint); font-weight: 600; }

/* ── Scroll area ────────────────────────────────────────────── */
.kk-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 4px 26px 0;
  scrollbar-width: thin;
}
.kk-scroll::-webkit-scrollbar { width: 8px; }
.kk-scroll::-webkit-scrollbar-thumb { background: rgba(180, 150, 110, .3); border-radius: 8px; }

/* ── Promo carousel ─────────────────────────────────────────── */
.kk-promo { margin-bottom: 22px; }
.kk-promo__stage {
  position: relative;
  border-radius: var(--kk-radius-lg);
  overflow: hidden;
  box-shadow: var(--kk-shadow);
  background: var(--kk-surface);
}
.kk-promo__track {
  display: flex;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.kk-slide {
  min-width: 100%;
  height: 188px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.kk-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .12) 55%, transparent 80%);
}
.kk-slide__txt { position: relative; z-index: 2; padding: 0 34px; max-width: 70%; }
.kk-slide__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.kk-slide__title {
  margin: 0 0 14px;
  font-size: 25px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.kk-slide__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--kk-orange);
  font-size: 13px;
  font-weight: 900;
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}
.kk-promo__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: 0;
  color: var(--kk-orange);
  font-size: 15px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
  transition: transform .15s ease;
}
.kk-promo__arrow:hover { transform: translateY(-50%) scale(1.08); }
.kk-promo__arrow--l { left: 12px; }
.kk-promo__arrow--r { right: 12px; }
.kk-promo__dots {
  position: absolute;
  left: 34px;
  bottom: 16px;
  display: flex;
  gap: 7px;
  z-index: 5;
}
.kk-promo__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: all .25s ease;
}
.kk-promo__dot.is-on { width: 26px; background: #fff; }

/* ── Category chips ─────────────────────────────────────────── */
.kk-cats {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  margin-bottom: 20px;
  scrollbar-width: none;
}
.kk-cats::-webkit-scrollbar { display: none; }
.kk-cat {
  flex-shrink: 0;
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 14px 8px 12px;
  background: var(--kk-surface);
  border: 0;
  border-radius: 18px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--kk-shadow-sm);
  transition: transform .18s ease, background .18s ease;
}
.kk-cat__emoji {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--kk-orange-soft);
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  transition: background .18s ease;
}
.kk-cat__label { font-size: 12.5px; font-weight: 800; color: var(--kk-text); white-space: nowrap; }
.kk-cat__count { font-size: 10.5px; font-weight: 700; color: var(--kk-muted); }
.kk-cat:hover { transform: translateY(-3px); }
.kk-cat.is-on {
  background: var(--kk-grad);
  box-shadow: 0 12px 22px rgba(242, 112, 12, .38);
}
.kk-cat.is-on .kk-cat__emoji { background: rgba(255, 255, 255, .25); }
.kk-cat.is-on .kk-cat__label,
.kk-cat.is-on .kk-cat__count { color: #fff; }

/* ── Section title ──────────────────────────────────────────── */
.kk-sec {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.kk-sec h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.kk-sec__count {
  background: var(--kk-orange-soft);
  color: var(--kk-orange);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

/* ── Menu grid ──────────────────────────────────────────────── */
.kk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.kk-card {
  background: var(--kk-surface);
  border-radius: var(--kk-radius-lg);
  padding: 12px;
  position: relative;
  cursor: pointer;
  box-shadow: var(--kk-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 0;
  text-align: left;
  font-family: inherit;
  width: 100%;
}
.kk-card:hover { transform: translateY(-4px); box-shadow: var(--kk-shadow); }
.kk-card:active { transform: translateY(-1px); }
.kk-card__media {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: var(--kk-orange-soft);
  display: grid;
  place-items: center;
  font-size: 46px;
  overflow: hidden;
  position: relative;
  margin-bottom: 11px;
}
.kk-card__media img { width: 100%; height: 100%; object-fit: cover; }
.kk-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--kk-orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 3px 8px rgba(120, 75, 14, .14);
}
.kk-card__badge--out { color: var(--kk-muted); }
.kk-card__name {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.kk-card__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--kk-muted);
  font-weight: 700;
  margin-bottom: 9px;
}
.kk-card__meta .star { color: #ffb300; }
.kk-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.kk-card__price { font-size: 18px; font-weight: 900; color: var(--kk-orange); }
.kk-card__add {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--kk-grad);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(242, 112, 12, .45);
  transition: transform .12s ease;
}
.kk-card__add:active { transform: scale(.86); }
.kk-card.is-out { opacity: .62; }
.kk-card.is-out .kk-card__add { display: none; }
.kk-card__soldout {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .55);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  color: var(--kk-text-soft);
}

/* ── Empty state ────────────────────────────────────────────── */
.kk-empty { text-align: center; padding: 60px 24px; color: var(--kk-text-soft); }
.kk-empty i { font-size: 38px; color: var(--kk-faint); margin-bottom: 12px; }
.kk-empty p { font-size: 14px; font-weight: 600; margin: 0; }
.kk-foot-space { height: 30px; }

/* ── Cart panel (right) ─────────────────────────────────────── */
.kk-cart {
  background: var(--kk-surface);
  border-left: 1px solid var(--kk-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  box-shadow: -12px 0 32px -24px rgba(120, 75, 14, .2);
}
.kk-cart__head {
  padding: 22px 22px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--kk-border);
}
.kk-cart__head h2 { margin: 0; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.kk-cart__head h2 i { color: var(--kk-orange); }
.kk-cart__clear {
  border: 0;
  background: transparent;
  color: var(--kk-muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 9px;
}
.kk-cart__clear:hover { background: #fdeaea; color: #d24a3a; }
.kk-cart__items { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.kk-cart__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--kk-faint);
  text-align: center;
  padding: 24px;
}
.kk-cart__empty i { font-size: 38px; }
.kk-cart__empty p { margin: 0; font-size: 14px; font-weight: 700; color: var(--kk-text-soft); line-height: 1.6; }
.kk-cart__empty small { font-size: 12px; font-weight: 600; color: var(--kk-muted); }

/* Cart line item */
.kk-li {
  display: flex;
  gap: 11px;
  align-items: center;
  background: var(--kk-cream);
  border-radius: 14px;
  padding: 10px;
}
.kk-li__media {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--kk-orange-soft);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}
.kk-li__media img { width: 100%; height: 100%; object-fit: cover; }
.kk-li__body { flex: 1; min-width: 0; }
.kk-li__name { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kk-li__note { font-size: 10.5px; color: var(--kk-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kk-li__price { font-size: 12.5px; color: var(--kk-orange); font-weight: 900; margin-top: 2px; }
.kk-li__qty {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 11px;
  padding: 3px;
  box-shadow: var(--kk-shadow-sm);
}
.kk-li__qty button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--kk-orange);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.kk-li__qty button:active { background: var(--kk-orange-soft); }
.kk-li__qty span { min-width: 22px; text-align: center; font-size: 13px; font-weight: 800; }

/* Cart foot */
.kk-cart__foot { padding: 16px 18px 18px; border-top: 1px dashed #ead9be; }
.kk-cart__rows { margin-bottom: 12px; }
.kk-cart__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--kk-text-soft); font-weight: 600; margin-bottom: 6px; }
.kk-cart__row--total { font-size: 14px; color: var(--kk-text); font-weight: 900; margin-top: 8px; }
.kk-cart__row--total strong { font-size: 21px; color: var(--kk-orange); }

/* ── Pay button ─────────────────────────────────────────────── */
.kk-pay {
  width: 100%;
  border: 0;
  border-radius: var(--kk-radius);
  background: var(--kk-grad);
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  font-size: 15px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 12px 24px -6px rgba(242, 112, 12, .55);
  transition: transform .12s ease;
}
.kk-pay span { display: inline-flex; align-items: center; gap: 9px; }
.kk-pay:active { transform: scale(.98); }
.kk-pay--green { background: var(--kk-grad-green); box-shadow: 0 12px 24px -6px rgba(30, 142, 90, .5); justify-content: center; }

/* ── Mobile floating bar ────────────────────────────────────── */
.kk-mobbar {
  display: none;
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  border: 0;
  align-items: center;
  gap: 12px;
  background: var(--kk-grad);
  color: #fff;
  border-radius: 17px;
  padding: 13px 18px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 16px 30px -8px rgba(242, 112, 12, .6);
}
.kk-mobbar__cnt {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .24);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
}
.kk-mobbar__txt { flex: 1; text-align: left; font-size: 11.5px; font-weight: 700; opacity: .92; display: flex; flex-direction: column; }
.kk-mobbar__txt strong { font-size: 16px; font-weight: 900; }
.kk-mobbar__go { font-size: 13.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 7px; }

/* ── Overlays & sheets ──────────────────────────────────────── */
.kk-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(44, 27, 15, .5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: kkFade .2s ease;
}
@keyframes kkFade { from { opacity: 0; } to { opacity: 1; } }
.kk-sheet {
  background: var(--kk-surface);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--kk-shadow-lg);
  animation: kkPop .26s cubic-bezier(.22, 1, .36, 1);
}
@keyframes kkPop { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.kk-sheet__grip { width: 42px; height: 4px; border-radius: 999px; background: #e7d8c0; margin: 12px auto 0; flex-shrink: 0; }
.kk-sheet__x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(44, 27, 15, .06);
  color: var(--kk-text-soft);
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
}
.kk-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; flex-shrink: 0; }
.kk-sheet__head h3 { margin: 0; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.kk-sheet__head h3 i { color: var(--kk-orange); }
.kk-sheet__items { flex: 1; overflow-y: auto; padding: 6px 18px; display: flex; flex-direction: column; gap: 10px; }
.kk-sheet__foot { padding: 16px 18px 20px; border-top: 1px solid var(--kk-border); flex-shrink: 0; }

/* Product detail sheet */
.kk-pd { overflow-y: auto; }
.kk-pd__media {
  height: 200px;
  background: var(--kk-orange-soft);
  display: grid;
  place-items: center;
  font-size: 72px;
  overflow: hidden;
}
.kk-pd__media img { width: 100%; height: 100%; object-fit: cover; }
.kk-pd__body { padding: 18px 20px 20px; }
.kk-pd__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--kk-orange-soft);
  color: var(--kk-orange);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.kk-pd__body h3 { margin: 0 0 7px; font-size: 20px; font-weight: 900; }
.kk-pd__desc { margin: 0 0 16px; font-size: 13px; color: var(--kk-text-soft); line-height: 1.6; }
.kk-pd__note-label, .kk-input-label { display: block; font-size: 12px; font-weight: 700; color: var(--kk-text-soft); margin-bottom: 7px; }
.kk-input-label + .kk-input { margin-bottom: 12px; }
.kk-input-opt { font-weight: 600; color: var(--kk-muted); font-size: 11px; }
.kk-input {
  width: 100%;
  border: 1.5px solid var(--kk-border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--kk-text);
  outline: none;
  background: #fffdf9;
}
.kk-input:focus { border-color: var(--kk-orange-bright); }
/* Order note to the shop (special requests) */
.kk-note { resize: none; line-height: 1.5; min-height: 56px; }
.kk-note-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.kk-note-chip {
  border: 1.5px solid var(--kk-border);
  background: #fffdf9;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--kk-text-soft);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.kk-note-chip:hover, .kk-note-chip:focus-visible {
  border-color: var(--kk-orange-bright);
  background: var(--kk-cream-warm, #fff6df);
  color: var(--kk-text);
  outline: none;
}
.kk-note-count { text-align: right; font-size: 11px; color: var(--kk-muted); font-weight: 700; margin-top: 4px; }
.kk-pd__foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.kk-qty {
  display: flex;
  align-items: center;
  background: var(--kk-cream);
  border-radius: 13px;
  padding: 4px;
}
.kk-qty button {
  width: 40px;
  height: 40px;
  border: 0;
  background: #fff;
  color: var(--kk-orange);
  font-size: 20px;
  font-weight: 900;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--kk-shadow-sm);
}
.kk-qty button:active { transform: scale(.9); }
.kk-qty span { min-width: 40px; text-align: center; font-size: 16px; font-weight: 800; }
.kk-pd__add {
  flex: 1;
  border: 0;
  border-radius: 13px;
  background: var(--kk-grad);
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  font-size: 14.5px;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 10px 20px -6px rgba(242, 112, 12, .5);
}
.kk-pd__add:active { transform: scale(.98); }

/* Mode chooser sheet */
.kk-sheet--mode { max-width: 430px; }
.kk-mode { padding: 4px 20px 20px; }
.kk-mode h3 { margin: 0 0 4px; font-size: 19px; font-weight: 900; text-align: center; }
.kk-mode__sub { margin: 0 0 18px; font-size: 12.5px; color: var(--kk-muted); font-weight: 600; text-align: center; }
.kk-mo {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: 2px solid var(--kk-border);
  background: #fffdf9;
  border-radius: 18px;
  padding: 15px;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 12px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.kk-mo:hover { border-color: var(--kk-orange-bright); transform: translateY(-2px); }
.kk-mo.is-sel { border-color: var(--kk-orange); background: var(--kk-cream); }
.kk-mo--online.is-sel { border-color: var(--kk-green); background: #e9f6ef; }
.kk-mo__ic {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 21px;
  color: #fff;
  flex-shrink: 0;
}
.kk-mo__ic--store { background: var(--kk-grad); }
.kk-mo__ic--online { background: var(--kk-grad-green); }
.kk-mo__tx { flex: 1; min-width: 0; }
.kk-mo__tx strong { display: block; font-size: 15px; font-weight: 800; }
.kk-mo__tx small { display: block; font-size: 11.5px; color: var(--kk-text-soft); font-weight: 600; line-height: 1.45; margin-top: 2px; }
.kk-mo__tags { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.kk-mtag { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #f1efe8; color: #5f5e5a; }
.kk-mtag--o { background: var(--kk-orange-soft); color: #b7791f; }
.kk-mtag--g { background: #e1f5ee; color: #0f6e56; }
.kk-mo__chk {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #e0cdb0;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  background: transparent;
}
.kk-mo.is-sel .kk-mo__chk { background: var(--kk-orange); border-color: var(--kk-orange); }
.kk-mo--online.is-sel .kk-mo__chk { background: var(--kk-green); border-color: var(--kk-green); }
.kk-mode .kk-pay { justify-content: center; margin-top: 4px; }
.kk-mode .kk-pay span { justify-content: center; }
.kk-mode__hint { margin: 11px 0 0; font-size: 11.5px; color: var(--kk-muted); text-align: center; font-weight: 600; }

/* ── Stepper ────────────────────────────────────────────────── */
.kk-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px 12px;
  flex-shrink: 0;
}
.kk-step {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--kk-faint);
  background: var(--kk-cream);
  padding: 7px 4px;
  border-radius: 9px;
  white-space: nowrap;
}
.kk-step.is-active { color: #fff; background: var(--kk-grad); }
.kk-step.is-done { color: var(--kk-green); background: #e9f6ef; }

/* ── Payment sheet ──────────────────────────────────────────── */
.kk-sheet--pay { max-width: 420px; }
.kk-paybody { padding: 2px 20px 8px; overflow-y: auto; }
.kk-paytabs {
  display: flex;
  gap: 8px;
  background: var(--kk-cream);
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.kk-paytab {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--kk-text-soft);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background .15s ease, color .15s ease;
}
.kk-paytab.is-on { background: #fff; color: var(--kk-orange); box-shadow: var(--kk-shadow-sm); }
.kk-qr {
  width: 210px;
  height: 210px;
  margin: 0 auto 16px;
  background: #fff;
  border: 3px solid var(--kk-orange-soft);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--kk-shadow-sm);
}
.kk-qr-svg { width: 100%; height: 100%; display: block; }
.kk-qr-note { font-size: 12px; color: var(--kk-muted); text-align: center; }
.kk-payinfo { background: var(--kk-cream); border-radius: 14px; padding: 4px 14px; }
.kk-payinfo__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--kk-text-soft);
  border-bottom: 1px solid var(--kk-border);
}
.kk-payinfo__row:last-child { border-bottom: 0; }
.kk-payinfo__row strong { color: var(--kk-text); font-weight: 800; }
.kk-copy {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  color: var(--kk-orange);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: .02em;
}
.kk-copy::after { content: "\f0c5"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; opacity: .55; }
.kk-bank { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0 0; }
.kk-bank__logo {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--kk-grad-green);
  color: #fff;
  font-size: 28px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px -6px rgba(30, 142, 90, .5);
}
.kk-bank .kk-payinfo { width: 100%; }
.kk-payamount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--kk-orange-soft);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--kk-text-soft);
}
.kk-payamount strong { font-size: 22px; font-weight: 900; color: var(--kk-orange); }
.kk-pay-note { margin: 12px 0 4px; font-size: 11.5px; color: var(--kk-muted); text-align: center; font-weight: 600; line-height: 1.5; }

/* Review form */
.kk-rv-form { padding: 10px 18px 4px; flex-shrink: 0; }
.kk-rv-hint { margin: 10px 0 0; font-size: 11.5px; color: var(--kk-muted); text-align: center; font-weight: 600; }

/* Done sheet */
.kk-sheet--done { max-width: 380px; }
.kk-done { padding: 36px 28px 30px; text-align: center; }
.kk-done__check {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--kk-grad-green);
  color: #fff;
  font-size: 34px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  box-shadow: 0 14px 28px -8px rgba(30, 142, 90, .55);
  animation: kkPopBig .4s cubic-bezier(.22, 1.4, .4, 1);
}
@keyframes kkPopBig { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.kk-done h3 { margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.kk-done__sub { margin: 0 0 18px; font-size: 13px; color: var(--kk-text-soft); }
.kk-done__code {
  font-size: 34px;
  font-weight: 900;
  color: var(--kk-orange);
  letter-spacing: .02em;
  background: var(--kk-orange-soft);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}
.kk-done__total { font-size: 14px; color: var(--kk-text-soft); font-weight: 700; margin-bottom: 22px; }
.kk-done__total strong { font-size: 20px; color: var(--kk-text); }
.kk-done__actions { display: flex; flex-direction: column; gap: 10px; }
.kk-done__actions .kk-pay { justify-content: center; }
.kk-pay--ghost {
  background: #fff;
  color: var(--kk-orange);
  border: 1.5px solid var(--kk-orange-soft);
  box-shadow: none;
}
.kk-pay--ghost span { color: var(--kk-orange); }
.kk-done__hint { margin: 16px 0 0; font-size: 11px; color: var(--kk-muted); font-weight: 600; }
.kk-done__hint i { color: var(--kk-faint); margin-right: 4px; }

/* ── Slip upload ────────────────────────────────────────────── */
.kk-sheet--line { max-width: 420px; }
.kk-lineprompt { padding: 30px 24px 26px; text-align: center; }
.kk-lineprompt__icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #06c755;
  color: #fff;
  font-size: 36px;
  box-shadow: 0 16px 32px -14px rgba(6, 199, 85, .75);
  margin-bottom: 16px;
}
.kk-lineprompt h3 { margin: 0 0 8px; font-size: 21px; font-weight: 900; color: var(--kk-text); }
.kk-lineprompt p { margin: 0 auto 18px; color: var(--kk-text-soft); font-size: 13px; line-height: 1.65; max-width: 330px; }
.kk-lineprompt small { display: block; margin-top: 14px; color: var(--kk-muted); font-size: 11px; line-height: 1.55; }
.kk-lineprompt__actions { display: flex; flex-direction: column; gap: 10px; }
.kk-pay--line { background: #06c755; box-shadow: 0 12px 24px -8px rgba(6, 199, 85, .55); justify-content: center; }

.kk-slip { margin-top: 14px; }
.kk-slip__drop {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 2px dashed var(--kk-orange);
  border-radius: 14px;
  background: var(--kk-orange-soft);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.kk-slip__drop:hover { background: #ffe8cc; }
.kk-slip__drop > i { font-size: 26px; color: var(--kk-orange); flex-shrink: 0; }
.kk-slip__txt { display: flex; flex-direction: column; gap: 2px; }
.kk-slip__txt strong { font-size: 13.5px; font-weight: 800; color: var(--kk-text); }
.kk-slip__txt small { font-size: 11px; color: var(--kk-text-soft); font-weight: 600; line-height: 1.4; }
.kk-slip__preview {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1.5px solid var(--kk-green);
  border-radius: 14px;
  background: #eefaf2;
}
.kk-slip__preview img {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid var(--kk-border);
}
.kk-slip__meta { flex: 1; font-size: 12.5px; font-weight: 700; color: #16794a; display: flex; align-items: center; gap: 7px; min-width: 0; }
.kk-slip__meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kk-slip__remove {
  width: 30px; height: 30px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: var(--kk-muted);
  cursor: pointer;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 13px;
}
.kk-slip__remove:hover { color: #d4453a; background: #ffecea; }

/* ── History button (header) ────────────────────────────────── */
.kk-histbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border: 1.5px solid var(--kk-border);
  background: var(--kk-surface);
  color: var(--kk-text-soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.kk-histbtn:hover { border-color: var(--kk-orange); color: var(--kk-orange); background: var(--kk-orange-soft); }
.kk-histbtn i { font-size: 14px; }

/* ── History sheet ──────────────────────────────────────────── */
.kk-sheet--history { max-width: 460px; }
.kk-hist { padding: 4px 18px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.kk-hrow {
  border: 1px solid var(--kk-border);
  border-radius: 14px;
  padding: 14px;
  background: var(--kk-surface);
  box-shadow: var(--kk-shadow-sm);
}
.kk-hrow__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.kk-hrow__id { font-size: 16px; font-weight: 900; color: var(--kk-orange); letter-spacing: .02em; }
.kk-hbadge { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.kk-hbadge--paid { background: #e9f6ef; color: var(--kk-green); }
.kk-hbadge--wait { background: #fff1dc; color: #b06a00; }
.kk-hrow__items { font-size: 12.5px; color: var(--kk-text-soft); font-weight: 600; line-height: 1.5; margin-bottom: 10px; }
.kk-hrow__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.kk-hrow__when { font-size: 11.5px; color: var(--kk-muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.kk-hrow__total { font-size: 16px; font-weight: 900; color: var(--kk-text); }
.kk-hrow__dl {
  width: 100%;
  border: 1.5px solid var(--kk-orange-soft);
  background: var(--kk-orange-soft);
  color: var(--kk-orange);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  padding: 10px;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s ease;
}
.kk-hrow__dl:hover { background: #ffe8cc; }
.kk-hist__empty { padding: 50px 30px; text-align: center; color: var(--kk-faint); }
.kk-hist__empty i { font-size: 42px; margin-bottom: 14px; opacity: .5; }
.kk-hist__empty p { font-size: 14px; font-weight: 700; color: var(--kk-text-soft); line-height: 1.6; }
.kk-hist__empty small { color: var(--kk-muted); font-weight: 600; }

/* ── Toast ──────────────────────────────────────────────────── */
.kk-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  background: var(--kk-text);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  z-index: 80;
  box-shadow: 0 12px 28px rgba(44, 27, 15, .35);
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.kk-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.kk-toast i { color: #6fe0a0; }

/* ── Tablet ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .kk-shell { grid-template-columns: 76px 1fr 320px; }
  .kk-rail__brand, .kk-rail__item { width: 48px; height: 48px; }
  .kk-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 13px; }
  .kk-slide { height: 168px; }
  .kk-slide__title { font-size: 22px; }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .kk-shell { grid-template-columns: 1fr; }
  .kk-cart { display: none; }
  .kk-rail { display: none; }
  .kk-main { height: 100vh; }
  .kk-header { padding: 14px 16px; gap: 10px; }
  .kk-brand__text { display: none; }
  .kk-histbtn { padding: 11px; }
  .kk-histbtn span { display: none; }
  .kk-scroll { padding: 4px 16px 0; }
  .kk-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kk-slide { height: 150px; }
  .kk-slide__txt { max-width: 80%; padding: 0 22px; }
  .kk-slide__title { font-size: 19px; margin-bottom: 11px; }
  .kk-promo__arrow { display: none; }
  .kk-mobbar { display: flex; }
  .kk-foot-space { height: 90px; }
  .kk-sheet { max-width: 100%; align-self: flex-end; border-radius: 24px 24px 0 0; max-height: 92vh; }
  .kk-overlay { padding: 0; align-items: flex-end; }
}
@media (max-width: 380px) {
  .kk-grid { gap: 10px; }
  .kk-card__media { font-size: 38px; }
}
