/* SpiceRack Frisco — Breakfast Buffet pay-by-phone page.
   Poster design (Nov 29, 2026, owner's mockup): deep black
   top with a warm glow flowing into cream (owner: burgundy
   changed to black on the TOP only), burgundy elements in
   the lower half as in the poster, gold frame with ornate
   corners, grand green veg-kitchen banner with the idly and
   vada plates inside it, and one cream two-line box per
   buffet (name + price on line 1, stepper on line 2).
   Compacted Nov 29, 2026 toward fitting one phone screen.
   Typography pass (later Nov 29, 2026, owner: "letters are
   light — bold them, kind of 3-D, including the pay button"):
   box titles/prices/stepper numbers at weight 900 with
   layered text-shadow depth, totals bold with an extra-bold
   3D Total row, Pay button extra-bold with a raised
   physical-button edge; same pass made the top background
   a TRUE dark black (owner: "Dark black") — warm orange
   side glows removed, gold top glow cut to a whisper,
   neutral black gradient stops, logo halo toned down.
   Playfair Display for the elegant serif headings; clean
   sans for the rest. Phone-first.
   Scale-up pass (later Nov 29, 2026, owner: "make this app
   a little big"): an even ~12% bump across the design —
   logo, banner lettering, plates, box titles/prices,
   steppers, totals, Apple Pay container, counter line and
   footer all up one step; colors, proportions, structure
   and behavior unchanged. Stylesheet 20261129m.
   Stepper trim (later Nov 29, 2026, owner: "decrease the
   size of the plus buttons, so the Apple Pay comes up"):
   stepper buttons 54px → 42px with pill/qty tightened to
   match, box padding and the gaps above totals/Apple Pay
   trimmed slightly, so the totals and the Apple Pay button
   rise back toward the first screen; everything else from
   the scale-up kept. Stylesheet 20261129n.
   One-line boxes (later Nov 29, 2026, owner: "each buffet
   one line — name, price, and then quantity"): each buffet
   box is now a SINGLE row — name left, price next, stepper
   pill right — so the boxes are roughly half as tall and
   the totals + Apple Pay rise. Name/price dropped one step
   and the stepper pill/qty tightened so the row fits
   360–430px without wrapping; the 42px round buttons, all
   colors and all behavior unchanged. Stylesheet 20261129o. */
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #191919;
  background-color: #F8EED6;
  background-image:
    radial-gradient(120% 30% at 50% -2%, rgba(255, 176, 66, .10), rgba(255, 176, 66, 0) 55%),
    linear-gradient(180deg, #000000 0%, #050505 23%, #0A0A0A 35%, #161616 44%, #E9C9A0 54%, #F7ECD2 63%, #F8EED6 100%);
  background-repeat: no-repeat;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 10px 12px 8px; position: relative; z-index: 1; }

/* Thin gold frame + ornate corner flourishes (cropped from
   the owner's poster mockup, keyed to transparency; the same
   corner is mirrored for the other three). */
.framefx { position: fixed; inset: 7px; border: 2px solid rgba(233, 182, 76, .9); border-radius: 8px; pointer-events: none; z-index: 60; }
.framefx .cnr { position: absolute; width: 98px; height: 87px; background: url('corner.png') center / contain no-repeat; }
.framefx .tl { top: -7px; left: -7px; }
.framefx .tr { top: -7px; right: -7px; transform: scaleX(-1); }
.framefx .bl { bottom: -7px; left: -7px; transform: scaleY(-1); }
.framefx .br { bottom: -7px; right: -7px; transform: scale(-1, -1); }

/* Gold-oval logo (transparent cut-out of the owner's logo)
   spot-lit on the black. */
.masthead { text-align: center; padding: 4px 0 0; }
.masthead img {
  display: block; width: min(245px, 64%); height: auto; margin: 0 auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(255, 180, 60, .18));
}

/* "Veg Items Prepared in a Separate Veg Kitchen" — the grand
   green 3D ribbon: green gradient, gold trim, raised off the
   page with glow; all-gold 3D lettering on both lines,
   a pair of leaves on top center, and the idly + vada
   plates in a strip along the bottom inside the banner. */
.vegbanner {
  position: relative; max-width: 520px; margin: 14px auto 0; text-align: center;
  padding: 12px 14px 9px; border-radius: 26px;
  background: linear-gradient(180deg, #3FAE5F 0%, #1E7B34 42%, #14532D 78%, #0B3A1D 100%);
  border: 3px solid #E9B64C;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .5),
    inset 0 -10px 18px rgba(0, 0, 0, .35),
    0 4px 0 #6D4A0C,
    0 16px 32px rgba(0, 0, 0, .5),
    0 0 38px rgba(90, 210, 120, .28);
}
.vegleaves { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); width: 66px; height: 34px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .4)); }
.veg1 {
  font-weight: 900; letter-spacing: .2px; line-height: 1.15;
  font-size: clamp(19px, 5.5vw, 26px);
  background: linear-gradient(180deg, #FFF3B0 0%, #FFD94D 32%, #F5A623 56%, #C77400 80%, #FFCE54 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(84, 42, 0, .85)) drop-shadow(0 5px 8px rgba(0, 0, 0, .45));
}
.veg2 {
  margin-top: 2px; font-weight: 900; line-height: 1.1; letter-spacing: .2px;
  font-size: clamp(25px, 7.4vw, 34px);
  background: linear-gradient(180deg, #FFF3B0 0%, #FFD94D 32%, #F5A623 56%, #C77400 80%, #FFCE54 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(84, 42, 0, .85)) drop-shadow(0 6px 9px rgba(0, 0, 0, .45));
}
.vegplates { display: flex; justify-content: center; gap: 8px; margin-top: 7px; }
.vegplates .plate {
  width: min(107px, 30%); aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px;
  border: 2px solid #E9B64C;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .2);
}

/* One cream box per buffet, ONE line (owner, Nov 29, 2026):
   name (burgundy serif) left, price next, stepper pill right —
   all on a single row that must never wrap. */
.itembox {
  background: linear-gradient(180deg, #FFFBEE, #FAF0D8);
  border: 2.5px solid #D99A26; border-radius: 16px; margin-top: 10px;
  padding: 8px 12px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, .32), inset 0 1px 0 #fff;
}
.itemline {
  display: flex; align-items: center; gap: 8px;
}
.itemname {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-style: italic; font-weight: 900; color: #B21428; line-height: 1.1;
  font-size: clamp(20px, 6vw, 26px);
  white-space: nowrap; flex: 0 1 auto; min-width: 0;
  text-shadow: 0 -1px 0 rgba(255, 255, 255, .55), 0 1px 0 rgba(92, 7, 17, .45), 0 3px 4px rgba(92, 7, 17, .22);
}
.itemprice {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 900;
  color: #191919; line-height: 1; white-space: nowrap;
  font-size: clamp(21px, 6.2vw, 27px);
  flex: 0 0 auto; margin-right: auto;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85), 0 2px 3px rgba(0, 0, 0, .22);
}

/* Quantity steppers: cream pill, gold border, burgundy buttons. */
.stepper {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; margin: 0; padding: 3px 5px; border-radius: 999px;
  background: linear-gradient(180deg, #FFFBEE, #F8ECD0);
  border: 2.5px solid #D99A26;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .25), inset 0 1px 0 #fff;
}
.stepper button {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer; line-height: 1;
  border: 2px solid #E9B64C; color: #fff; font-size: 26px; font-weight: 800;
  background: radial-gradient(circle at 35% 30%, #C92A44, #8E1220 72%);
  box-shadow: 0 2px 0 #5C0711, 0 5px 9px rgba(0, 0, 0, .35), inset 0 2px 3px rgba(255, 255, 255, .4);
}
.stepper button:disabled { opacity: .32; box-shadow: none; cursor: default; }
.stepper .qty {
  font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 900;
  min-width: 34px; text-align: center; color: #191919;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85), 0 2px 3px rgba(0, 0, 0, .18);
}

/* Totals: cream card, gold border, Total on a black band
   with white letters (owner, Nov 29, 2026). */
.totalscard {
  background: linear-gradient(180deg, #FFFBEE, #FAF0D8);
  border: 2.5px solid #D99A26; border-radius: 16px; margin-top: 10px;
  padding: 4px 0 7px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, .35), inset 0 1px 0 #fff;
}
table.totals { width: 100%; border-collapse: collapse; font-size: 17.5px; font-weight: 700; color: #33140A; }
.card table.totals { margin-top: 16px; }
.card table.totals td { padding-left: 4px; padding-right: 4px; }
table.totals td { padding: 6px 15px; border-top: 1px solid #E3CFA3; }
table.totals tr:first-child td { border-top: none; }
table.totals td.amt { text-align: right; font-weight: 800; white-space: nowrap; }
table.totals tr.totalrow td {
  background: linear-gradient(180deg, #232323 0%, #0A0A0A 55%, #000000 100%);
  border-top: 2.5px solid #D99A26;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 23px; font-weight: 900; color: #FFFFFF;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .22), 0 2px 0 rgba(110, 110, 110, .55), 0 4px 6px rgba(0, 0, 0, .55);
}

/* Gold Pay pill with the burgundy arrow circle. */
.paybtn {
  position: relative; display: block; width: 100%; margin-top: 12px;
  font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 900;
  padding: 12px 58px 13px 16px; border-radius: 999px; cursor: pointer;
  border: 2.5px solid #8A5A12; color: #B21428; text-align: center; text-decoration: none;
  background: linear-gradient(180deg, #FFECB0 0%, #F8C95A 35%, #EE9E22 72%, #CE7A00 100%);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 2px 0 rgba(92, 7, 17, .32), 0 4px 6px rgba(92, 42, 0, .30);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .8),
    inset 0 -6px 10px rgba(122, 66, 0, .5),
    0 6px 0 #5E3404,
    0 18px 30px rgba(0, 0, 0, .5);
}
.paybtn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .8), inset 0 -4px 8px rgba(122, 66, 0, .5), 0 4px 0 #5E3404, 0 12px 22px rgba(0, 0, 0, .45); }
.paybtn.linkbtn { padding-right: 18px; }
.payarrow {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #C92A44, #8E1220 72%);
  color: #fff; font-family: -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 20px; font-weight: 800; line-height: 40px; text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .4), 0 2px 0 #5C0711, 0 5px 8px rgba(0, 0, 0, .4);
}

.secure { text-align: center; font-size: 13.5px; font-weight: 700; color: #191919; margin-top: 10px; text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.secure svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; }
.notready {
  margin-top: 12px; border: 3px solid #1C1C1C; border-radius: 14px;
  background: #FDF3E7; color: #1C1C1C;
  font-size: 19px; font-weight: 800; text-align: center; padding: 18px 14px; line-height: 1.4;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .3);
}

/* Shared cream card for success / cancel / setup / pay-error. */
.card {
  background: linear-gradient(180deg, #FFFBEE, #FAF0D8);
  border: 2.5px solid #D99A26; border-radius: 16px;
  padding: 22px 18px; margin-top: 18px; color: #33140A;
  box-shadow: 0 14px 26px rgba(0, 0, 0, .35), inset 0 1px 0 #fff;
}
.card.center { text-align: center; }
.bigicon {
  width: 92px; height: 92px; border-radius: 50%; margin: 6px auto 14px;
  font-size: 54px; font-weight: 800; line-height: 88px; text-align: center; color: #fff;
  border: 2.5px solid #E9B64C;
  box-shadow: inset 0 3px 5px rgba(255, 255, 255, .4), inset 0 -6px 10px rgba(0, 0, 0, .3), 0 10px 20px rgba(0, 0, 0, .35);
}
.okicon { background: radial-gradient(circle at 35% 30%, #3FAE5F, #14532D 76%); }
.erricon { background: radial-gradient(circle at 35% 30%, #C92A44, #8E1220 76%); }
.bigmsg { font-family: 'Playfair Display', Georgia, serif; font-size: 27px; font-weight: 800; color: #111111; }
.submsg { font-size: 16px; color: #5A4632; line-height: 1.5; margin-top: 8px; }
.center { text-align: center; }

.refbox { margin-top: 20px; border: 2px dashed #B98A2F; border-radius: 12px; padding: 14px; background: rgba(255, 255, 255, .45); }
.reflabel { font-size: 12.5px; font-weight: 800; letter-spacing: 2px; color: #8A5A12; text-transform: uppercase; }
.refvalue { font-size: 17px; font-weight: 800; color: #111111; word-break: break-all; margin-top: 4px; }
.reftime { font-size: 14.5px; color: #5A4632; margin-top: 6px; }

.flabel { display: block; font-weight: 800; font-size: 14px; color: #111111; margin: 16px 0 5px; }
.finput { width: 100%; font: inherit; font-size: 16px; padding: 12px; border: 2px solid #B98A2F; border-radius: 9px; background: #FFFDF6; }
.errbox { background: #FDECEA; border: 2px solid #B21428; color: #B21428; font-weight: 700; font-size: 14.5px; border-radius: 9px; padding: 10px 12px; margin-top: 14px; }

.foot { text-align: center; color: #111111; font-size: 13.5px; font-weight: 600; margin: 12px 0 5px; }

/* Apple Pay payment section (Clover iframe SDK). Shown when
   Apple Pay is live, or on the pay-apple.php test page. The
   button itself is rendered by Clover's SDK inside
   #payment-request-button — it is Apple's own black button
   and is NOT restyled (Apple/Clover rules); the container
   only sets its size (Clover doc: button size follows the
   container, default 300x40, min 200x32, max height 64). */
.applepaybox { margin-top: 10px; text-align: center; }
#payment-request-button { width: 100%; max-width: 420px; height: 58px; margin: 0 auto; }
#payment-request-button iframe { width: 100%; height: 100%; border: 0; display: block; }
.applepaybox .errbox { text-align: left; }
.counterline {
  margin-top: 12px; font-size: 17.5px; font-weight: 800; color: #191919;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}
