:root {
  --green: #265b3a;
  --green-deep: #1e4a30;
  --gold: #d59a2c;
  --gold-deep: #c1861a;
  --cream: #f6f1e4;
  --cream-2: #efe7d4;
  --ink: #4a4034;
  --line: #d8caa8;
  --white: #fffdf7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

header { text-align: center; padding: 34px 20px 10px; }
header img {
  width: 150px;
  height: 150px;
  border-radius: 22px;
  box-shadow: 0 8px 26px rgba(38, 91, 58, .14);
  display: block;
  margin: 0 auto;
}
.brand-logo { width: min(170px, 42vw); height: auto; border-radius: 0; box-shadow: none; mix-blend-mode: multiply; }
.tag {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  opacity: .75;
  margin-top: 12px;
  font-size: 1.05rem;
}
.kicker {
  font-family: "Fraunces", serif;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--green);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  margin: 4px 0 0;
}
.kicker em { color: var(--gold); font-style: normal; }
.wrap { max-width: 840px; margin: 0 auto; padding: 8px 18px 40px; }
.page-nav { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.page-nav .btn { text-decoration: none; padding: 10px 16px; }
.page-nav .btn.active { background: var(--green); color: var(--white); border-color: var(--green); }
.menu-page { margin-top: 8px; }
.menu-body { background: #f5f1e7; }
.menu-body header { padding: 28px 20px 8px; }
.menu-logo { display: block; width: min(190px, 48vw); height: auto; margin: 0 auto 16px; mix-blend-mode: multiply; }
.menu-body .page-nav { margin-top: 12px; }
.menu-body .wrap { max-width: 920px; padding: 12px 18px 24px; }
.menu-page { background: transparent; border: 1px solid var(--green); border-radius: 12px; box-shadow: inset 0 0 0 5px #f5f1e7, inset 0 0 0 6px var(--gold); padding: 34px 42px 26px; }
.menu-page .menu-heading { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }
.menu-page .menu-heading h2 { font-size: clamp(1.65rem, 4vw, 2.2rem); }
.menu-page .menu-heading .sub { font-family: "Fraunces", serif; font-style: italic; }
.menu-page .menu-groups { gap: 18px; }
.menu-page .menu-group { border-top: 0; padding-top: 0; }
.menu-page .menu-group h3 { display: flex; align-items: center; justify-content: center; gap: 22px; font-size: 1.2rem; margin: 0 0 10px; }
.menu-page .menu-group h3::before, .menu-page .menu-group h3::after { content: ""; width: 64px; height: 2px; background: var(--gold); }
.menu-page .menu-items { display: grid; grid-template-columns: 1fr; gap: 6px; }
.menu-page .tea-menu-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.menu-page .tea-menu-column { min-width: 0; }
.menu-page .tea-base { width: 100%; display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--green-deep); font: inherit; font-family: "Fraunces", serif; font-size: 1.05rem; font-weight: 600; text-align: left; cursor: pointer; }
.menu-page .tea-base:hover, .menu-page .tea-base:focus-visible { color: var(--gold-deep); }
.menu-page .tea-base:focus-visible, .menu-page .menu-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.menu-page .tea-latte-title { padding: 12px 8px 3px; font-family: "Fraunces", serif; font-style: italic; font-size: .95rem; color: var(--ink); }
.menu-page .fruit-menu-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.menu-page .fruit-menu-column { min-width: 0; }
.menu-page .fruit-menu-spacer { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 30px 10px; }
.menu-page .fruit-menu-spacer img { display: block; width: min(130px, 100%); height: auto; mix-blend-mode: multiply; }
.menu-page .fruit-base { width: 100%; display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--green-deep); font: inherit; font-family: "Fraunces", serif; font-size: 1.05rem; font-weight: 600; text-align: left; cursor: pointer; }
.menu-page .fruit-base:hover, .menu-page .fruit-base:focus-visible { color: var(--gold-deep); }
.menu-page .fruit-base:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.menu-page .menu-item { width: 100%; border: 0; border-radius: 6px; background: transparent; padding: 6px 8px; align-items: baseline; gap: 8px; font: inherit; font-size: .98rem; text-align: left; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.menu-page .menu-item:hover, .menu-page .menu-item:focus-visible { background: rgba(213, 154, 44, .12); color: var(--green-deep); }
.menu-page .menu-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.menu-page .menu-item span:first-child { display: flex; align-items: baseline; flex: 1; }
.menu-page .menu-item span:first-child::after { content: ""; flex: 1; border-bottom: 2px dotted var(--line); margin: 0 8px 4px; }
.menu-page .menu-item span:nth-child(2) { font-size: 1rem; }
.menu-page .menu-note { text-align: center; margin-top: 24px; }
.menu-est { font-family: "Fraunces", serif; letter-spacing: .2em; color: var(--ink); opacity: .7; }
.menu-body footer { padding-top: 0; }

.menu {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin: 8px 0 26px;
  box-shadow: 0 10px 30px rgba(38, 91, 58, .06);
}
.menu-heading h2 { font-family: "Fraunces", serif; color: var(--green); font-size: 1.5rem; margin: 0 0 4px; }
.menu-heading .sub { margin: 0 0 18px; font-size: .95rem; opacity: .7; }
.menu-groups { display: grid; gap: 14px; }
.menu-group { border-top: 1px solid var(--line); padding-top: 14px; }
.menu-group h3 { font-family: "Fraunces", serif; color: var(--green-deep); font-size: 1.05rem; margin: 0 0 8px; }
.menu-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 18px; }
.menu-item { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.menu-item span:first-child { color: var(--ink); }
.menu-item span:last-child { color: var(--green-deep); font-family: "Fraunces", serif; font-weight: 700; white-space: nowrap; }
.menu-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .84rem; opacity: .72; }

.steps {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 22px auto 30px;
  max-width: 760px;
}
.steps .s {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: .82rem;
  color: var(--ink);
  opacity: .4;
  transition: .3s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.steps .s:hover:not(.active) { opacity: .7; }
.steps .s:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.steps .s .n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cream-2);
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-size: .8rem;
}
.steps .s.active { opacity: 1; color: var(--green); }
.steps .s.active .n { background: var(--green); color: var(--white); border-color: var(--green); }
.steps .s.done { opacity: .9; color: var(--gold-deep); }
.steps .s.done .n { background: var(--gold); color: var(--white); border-color: var(--gold); }
.steps .arw { color: var(--line); align-self: center; }
.sale-record-link { display: flex; justify-content: center; margin: 0 auto 8px; }

.panel {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px 28px;
  box-shadow: 0 10px 30px rgba(38, 91, 58, .06);
  display: none;
}
.panel.on { display: block; animation: rise .35s ease; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.panel h2 {
  font-family: "Fraunces", serif;
  font-weight: 700;
  color: var(--green);
  font-size: 1.5rem;
  margin: 0 0 4px;
}
.panel .sub { margin: 0 0 20px; font-size: .95rem; opacity: .7; }
.panel .step-tag {
  display: inline-block;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.auto { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.opt {
  border: 1.6px solid var(--line);
  background: var(--cream);
  border-radius: 14px;
  padding: 16px 14px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
  transition: .18s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.opt:hover { border-color: var(--gold); transform: translateY(-2px); }
.opt.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; background: var(--cream-2); border-style: dashed; }
.opt.disabled .d { color: var(--gold-deep); opacity: .9; }
.opt .t { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.05rem; color: var(--green-deep); }
.opt .d { font-size: .82rem; opacity: .68; }
.opt.sel { border-color: var(--green); background: #eef4ec; box-shadow: 0 0 0 3px rgba(38, 91, 58, .12); }
.opt.sel::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .8rem;
}
.opt.gold.sel { border-color: var(--gold-deep); background: #faf1dc; box-shadow: 0 0 0 3px rgba(213, 154, 44, .18); }
.opt.gold.sel::after { background: var(--gold-deep); }
.subhead {
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: var(--gold-deep);
  font-size: .95rem;
  margin: 22px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.subhead::before { content: ""; width: 16px; height: 2px; background: var(--gold); border-radius: 2px; }

.qty { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.qty button {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1.6px solid var(--line);
  background: var(--cream);
  font-size: 1.4rem;
  color: var(--green);
  cursor: pointer;
  font-family: "Fraunces", serif;
  transition: .15s;
}
.qty button:hover { border-color: var(--green); background: #eef4ec; }
.qty .num { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.6rem; min-width: 40px; text-align: center; color: var(--green-deep); }

.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.btn {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: .98rem;
  border-radius: 12px;
  padding: 13px 24px;
  cursor: pointer;
  border: 1.6px solid transparent;
  transition: .18s;
}
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--green); color: var(--green); }
.btn.primary { background: var(--green); color: var(--white); }
.btn.primary:hover { background: var(--green-deep); }
.btn.gold { background: var(--gold); color: #fff; }
.btn.gold:hover { background: var(--gold-deep); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.cart {
  position: sticky;
  top: 14px;
  margin-top: 26px;
  background: var(--green);
  color: var(--white);
  border-radius: 20px;
  padding: 22px 22px 24px;
}
.cart h3 { font-family: "Fraunces", serif; margin: 0; font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.cart-empty { opacity: .7; font-size: .9rem; }
.cart-item { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 10px; }
.review-order { display: flow-root; }
.order-number { font-family: "Fraunces", serif; font-weight: 700; color: var(--gold); margin: 0 0 10px; }
.cart-item .ci-name { font-family: "Fraunces", serif; font-weight: 600; }
.cart-item .ci-desc { font-size: .8rem; opacity: .82; margin-top: 3px; line-height: 1.4; }
.cart-item .ci-price { font-family: "Fraunces", serif; font-weight: 700; white-space: nowrap; }
.cart-item .rm { background: none; border: none; color: rgba(255, 255, 255, .65); cursor: pointer; font-size: .9rem; padding: 0; margin-top: 6px; }
.cart-item .rm:hover { color: #fff; text-decoration: underline; }
.review-qty { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--green-deep); font-size: .85rem; font-weight: 600; }
.review-qty button { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--green); cursor: pointer; font: inherit; line-height: 1; }
.review-qty button:hover:not(:disabled) { border-color: var(--green); background: #eef4ec; }
.review-qty button:disabled { opacity: .4; cursor: not-allowed; }
.cart-total { display: flex; justify-content: space-between; font-family: "Fraunces", serif; font-weight: 700; font-size: 1.25rem; margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); }
.cart .btn.gold { width: 100%; margin-top: 16px; }

.receipt { background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; padding: 20px; margin-top: 16px; }
.receipt h4 { font-family: "Fraunces", serif; color: var(--green); margin: 0 0 10px; }
.receipt-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.receipt-row:last-child { border: none; }
.thanks { text-align: center; padding: 14px; font-family: "Fraunces", serif; color: var(--gold-deep); font-style: italic; }
.receipt-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.co-block { margin-bottom: 22px; }
.co-hint { margin: 2px 0 12px; font-size: .85rem; opacity: .68; }
.fl { display: block; font-family: "Fraunces", serif; font-weight: 600; font-size: .85rem; color: var(--green-deep); margin-bottom: 12px; }
.field { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; color: var(--ink); background: var(--cream); border: 1.6px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: .15s; }
.field::placeholder { color: var(--ink); opacity: .4; }
.field:focus { outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 3px rgba(38, 91, 58, .12); }
.field.bad { border-color: #c0392b; background: #fbeae8; }
.co-error { color: #c0392b; font-weight: 600; font-size: .88rem; margin: 0 0 14px; }
.seg { display: inline-flex; background: var(--cream-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 3px; margin-bottom: 14px; gap: 3px; }
.seg-btn { font: inherit; font-weight: 600; font-family: "Fraunces", serif; font-size: .9rem; border: none; background: none; color: var(--ink); cursor: pointer; padding: 8px 22px; border-radius: 9px; transition: .15s; }
.seg-btn.on { background: var(--green); color: var(--white); }
.seg-btn:not(.on):hover { color: var(--green); }
.bookkeeping { display: block; margin-top: 26px; border-top: 1px dashed var(--line); padding-top: 24px; }
.bookkeeping-summary { background: var(--cream-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 16px 0 10px; color: var(--green-deep); }
.pin-field { max-width: 220px; margin: 12px 0; }
.sale-record { border-top: 1px dashed var(--line); padding: 12px 0; }
.sale-record-head { display: flex; justify-content: space-between; gap: 12px; color: var(--green-deep); }
.sale-record-head time { font-size: .78rem; opacity: .7; text-align: right; }
.sale-record-items { font-size: .85rem; opacity: .75; margin-top: 4px; }
.sale-record-finance { display: grid; gap: 4px; margin-top: 10px; padding: 10px 12px; background: var(--cream); border-radius: 8px; font-size: .82rem; }
.sale-record-finance > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--line); padding: 3px 0; }
.sale-record-finance > div:last-child { border-bottom: 0; }
.sale-record-finance strong { color: var(--green-deep); white-space: nowrap; }
.sale-record-finance .finance-total { border-top: 1px solid var(--line); padding-top: 7px; font-size: .9rem; }
.sales-date { margin-top: 18px; }
.sales-date h3 { font-family: "Fraunces", serif; color: var(--green); font-size: 1rem; margin: 0; padding-bottom: 4px; border-bottom: 2px solid var(--gold); }
.bookkeeping-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

@media print {
  body { background: #fff; }
  body > *:not(.wrap), .wrap > *:not([data-panel="5"]) { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  [data-panel="5"] { display: block !important; border: 0; box-shadow: none; margin: 0; padding: 0; }
  [data-panel="5"] > *:not(#bookkeepingPanel) { display: none !important; }
  #bookkeepingPanel { display: block !important; margin: 0; padding: 0; }
  #bookkeepingLock, #lockBookkeeping, #emailBookkeeping { display: none !important; }
  .bookkeeping-summary, .sale-record, .sales-date h3 { break-inside: avoid; }
}

footer { text-align: center; padding: 20px; font-size: .85rem; color: var(--green); opacity: .8; }
.sofar { background: var(--cream-2); border: 1.5px dashed var(--line); border-radius: 16px; padding: 14px 18px; margin: 0 0 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; animation: rise .3s ease; }
.sofar-label { font-family: "Fraunces", serif; font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.sofar-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--white); border: 1.4px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: .85rem; color: var(--green-deep); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--green); background: #eef4ec; }
.chip .k { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; opacity: .55; font-weight: 700; }

@media (max-width: 560px) {
  .grid.three { grid-template-columns: 1fr; }
  .steps .s { font-size: .72rem; }
  .menu-page .tea-menu-columns { grid-template-columns: 1fr; gap: 16px; }
  .menu-page .fruit-menu-columns { grid-template-columns: 1fr; gap: 16px; }
  .menu-page .fruit-menu-spacer { min-height: 150px; padding: 20px 10px; }
}

/* ==========================================================
   CUSTOMER MENU & POS EXTENSIONS (Search, Cart, Modals)
   ========================================================== */

.menu-search-bar-wrap {
  margin-bottom: 20px;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  font-size: 1.1rem;
  opacity: 0.6;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 44px 14px 44px;
  border-radius: 14px;
  border: 1.6px solid var(--line);
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: 0.2s;
  box-shadow: 0 4px 14px rgba(38, 91, 58, 0.04);
}

.search-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(38, 91, 58, 0.12);
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--ink);
  opacity: 0.5;
  cursor: pointer;
  padding: 4px 8px;
}

.clear-search-btn:hover {
  opacity: 1;
  color: #c0392b;
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.cat-pill {
  font-family: "Fraunces", serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.4px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: 0.15s;
}

.cat-pill:hover {
  border-color: var(--gold);
  background: #fcf8ee;
}

.cat-pill.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.loc-tax-banner {
  margin-top: 8px;
  padding: 6px 12px;
  background: #eef4ec;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--green-deep);
  display: inline-block;
}

.search-summary {
  background: var(--cream-2);
  border-left: 3px solid var(--gold);
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  border-radius: 4px;
}

/* Floating Customer Cart Bar */
.customer-cart-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 92vw);
  background: var(--green-deep);
  color: #fff;
  border-radius: 20px;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 1000;
  animation: floatUp 0.3s ease;
}

@keyframes floatUp {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.cart-bar-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-badge {
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-family: "Fraunces", serif;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.cart-bar-title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1rem;
}

.cart-bar-sub {
  font-size: 0.82rem;
  opacity: 0.85;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  background: var(--white);
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  padding: 26px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border: 1.5px solid var(--line);
}

.cart-modal-card {
  max-width: 580px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--ink);
  opacity: 0.6;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { opacity: 1; }

.modal-header h2 {
  font-family: "Fraunces", serif;
  color: var(--green);
  margin: 4px 0 6px;
  font-size: 1.5rem;
}

.modal-price {
  font-family: "Fraunces", serif;
  font-weight: 700;
  color: var(--gold-deep);
  font-size: 1.2rem;
}

.modal-field-group {
  margin-top: 18px;
}

.modal-label {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-deep);
  margin-bottom: 8px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-actions .btn {
  flex: 1;
  text-align: center;
}

/* Cart summary inside checkout drawer */
.cart-items-container {
  max-height: 240px;
  overflow-y: auto;
  margin: 16px 0;
  display: grid;
  gap: 10px;
}

.cart-summary-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  margin-top: 12px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.cart-row.total-row {
  border-top: 1.5px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--green-deep);
}

.tip-section {
  margin: 10px 0;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tip-btn {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 8px 4px;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.15s;
}

.tip-btn:hover {
  border-color: var(--gold);
}

.tip-btn.sel {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
