*{box-sizing:border-box}
[hidden]{display:none!important}
:root{
  color-scheme:light;
  --ink:#1a2b3d;--muted:#526071;--navy:#132637;--ivory:#fffcf6;--gold:#dfbd80;--line:#dad7cd;
  font-family:"DM Sans","Segoe UI",system-ui,sans-serif;color:var(--ink);
}
body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 50% 14%,#304458 0%,#192937 43%,#101b27 86%);background-attachment:fixed}
main{width:min(100%,32rem);margin:auto;padding:clamp(16px,6svh,56px) 14px max(28px,env(safe-area-inset-bottom))}
article{position:relative;border-radius:20px 20px 8px 8px;background:var(--ivory);box-shadow:0 22px 58px #050e184d}
header{position:relative;isolation:isolate;overflow:hidden;overflow:clip;padding:26px 27px 25px;border:1px solid #5f6f76;border-bottom:2px solid #c2a269;border-radius:20px 20px 0 0;color:#fff7e6;background:linear-gradient(112deg,#1a3245,#122536 75%)}
.brand{display:flex;align-items:center;gap:10px;min-height:22px;margin-bottom:20px}
.brand img{width:auto;height:auto;max-width:96px;max-height:42px;object-fit:contain;padding:4px 7px;background:var(--ivory);border-radius:5px}
.brand p{margin:0;min-width:0;overflow-wrap:anywhere;font-weight:700;font-size:.86rem;letter-spacing:.035em}
.brand p:not(:empty)::before{content:"";display:inline-block;width:18px;height:2px;vertical-align:middle;background:var(--gold);margin-right:9px}
.brand img:not([hidden])+p::before{display:none}
#previewTag{margin-left:auto;align-self:flex-start;border:1px solid #6c7d85;border-radius:20px;padding:3px 9px;color:#e3ebee;background:#1b3041;font-size:.75rem;line-height:1.2}
h1,.total strong{font-family:"Baskervville",Georgia,serif;font-weight:400}
h1{font-size:clamp(2.65rem,9.5vw,3.65rem);line-height:1.02;letter-spacing:-.05em;margin:0;text-wrap:balance}
#welcome{position:relative;max-width:32ch;margin:10px 0 0;color:#e0e5e4;font-size:.98rem;line-height:1.45}
.arch{position:absolute;z-index:-1;pointer-events:none;right:-48px;bottom:-73px;width:164px;height:194px;border:1px solid #c9aa6a55;border-radius:100px 100px 0 0;transform:rotate(26deg);box-shadow:0 0 0 8px #152a3b,0 0 0 9px #c9aa6a38,0 0 0 17px #152a3b,0 0 0 18px #c9aa6a30,0 0 0 26px #152a3b,0 0 0 27px #c9aa6a22}
.paper{padding:0 26px 23px}
article::after{content:"";pointer-events:none;position:absolute;top:calc(100% - 2px);left:5px;right:5px;height:6px;background:linear-gradient(135deg,var(--ivory) 25%,transparent 26%) -5px 0/10px 10px repeat-x,linear-gradient(225deg,var(--ivory) 25%,transparent 26%) -5px 0/10px 10px repeat-x}
.total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 0 17px;flex-wrap:wrap}
.total p{margin:0 0 4px;color:var(--muted);font-size:.88rem;font-weight:650}
.total strong{display:block;font-size:clamp(2.8rem,10vw,3.65rem);letter-spacing:-.055em;line-height:1.05;font-variant-numeric:lining-nums tabular-nums}
.tableInfo{min-width:0;max-width:100%;display:grid;gap:4px;text-align:right;margin-left:auto;overflow-wrap:anywhere}
.tableInfo b{font-size:1rem}.tableInfo span,#server{font-size:.875rem;color:var(--muted)}
details{border-block:1px dashed #c5c4b9}
summary{display:flex;align-items:center;justify-content:space-between;min-height:46px;list-style:none;cursor:pointer;font-size:.92rem;font-weight:650}
summary::-webkit-details-marker{display:none}
summary::after{content:"";width:7px;height:7px;border:solid var(--muted);border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 4px 4px 10px}
details[open] summary::after{transform:rotate(225deg);margin-bottom:-4px}
#server{margin:0 0 6px}ul,dl{margin:0;padding:0}
li,dl div{display:flex;justify-content:space-between;gap:15px;align-items:baseline;padding:5px 0;font-size:.9rem;line-height:1.4}
li span:first-child{overflow-wrap:anywhere}li span:last-child,dd{white-space:nowrap;font-variant-numeric:tabular-nums}
dd{margin:0}dl{border-top:1px solid var(--line);margin-top:8px;padding:7px 0 12px;color:var(--muted)}
#gratuity{padding-top:21px}h2{font-size:1rem;line-height:1.3;margin:0 0 10px}
#tips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
button,input{font:inherit;color:inherit}
button{cursor:pointer;touch-action:manipulation}
#tips button{min-height:55px;display:grid;align-content:center;justify-items:center;gap:3px;padding:4px 1px;background:#faf8f1;border:1px solid #c7c8c1;border-radius:8px;font-size:.88rem;font-weight:650;line-height:1.2}
#tips small{color:var(--muted);font-size:.75rem;font-weight:450;font-variant-numeric:tabular-nums}
#tips button[aria-pressed=true]{background:#253d50;color:white;border-color:#253d50}
#tips button[aria-pressed=true] small{color:#e6edf0}
label{display:block;margin-top:14px;font-size:.9rem;font-weight:650}input{display:block;width:100%;margin-top:5px;min-height:46px;padding:10px 12px;font-size:1rem;border:1px solid #8f9ba3;border-radius:8px;background:white}
footer{padding-top:18px}
#pay,.quiet{width:100%;border-radius:9px;min-height:52px}
#pay{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 17px;background:var(--navy);color:#fffcf7;border:1px solid var(--navy);font-weight:650}
#pay:has(#payAmount:not([hidden])){justify-content:space-between}
#payAmount{font-variant-numeric:tabular-nums;color:#f4dcae}
.quiet{margin-top:5px;border:0;text-decoration:underline;text-underline-offset:3px;background:transparent;color:var(--muted)}
#notice{margin:0 0 12px;font-size:.93rem;line-height:1.5}#notice:empty{display:none}
footer:has(#pay[hidden]) #notice{margin-bottom:0}
#check[data-state=paid] #balLabel{color:#366454}
#check[data-state=paid] #balLabel::before{content:"✓";display:inline-grid;place-items:center;width:19px;height:19px;background:#e0ece4;border:1px solid #a8c7b5;border-radius:50%;margin-right:6px;font-size:.72rem}
button:disabled{opacity:.6;cursor:default}:focus-visible{outline:3px solid #977025;outline-offset:2px}
@media(hover:hover){#tips button:hover{border-color:#526c80}#pay:enabled:hover{background:#263e50}}
@media(max-width:380px){main{padding:12px 8px 25px}header{padding:21px 18px}.paper{padding-inline:17px}.brand{margin-bottom:15px}#tips{gap:4px}}

#rewardCard{margin-top:18px;padding:18px 20px;border:1px solid #b6c5bc;border-radius:12px;background:#eef3ec;color:#203e35}
#rewardCard h2{font-size:.9rem;margin:0}.points{display:flex;align-items:baseline;gap:7px;margin-top:5px}
.points strong{font:400 3rem/1.12 Baskervville,Georgia,serif;letter-spacing:-.04em}.points span{font-size:1rem}
#rewardCard p{font-size:.9rem;line-height:1.4;margin:6px 0 0}#earned{color:#425e50}
progress{display:block;appearance:none;border:0;background:#d6dfd4;border-radius:4px;width:100%;height:6px;margin:15px 0 8px;overflow:hidden}
progress::-webkit-progress-bar{background:#d6dfd4}progress::-webkit-progress-value{background:#467057}progress::-moz-progress-bar{background:#467057}
#lookup{padding-top:6px}#lookup small{display:block;color:var(--muted);margin-top:12px;line-height:1.45}
.rewardAction,.rewardLink{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:8px;width:100%;margin-top:14px;font-weight:650}
.rewardAction{color:var(--ivory);background:var(--navy);border:0}.rewardLink{color:var(--ink);border:1px solid #a8b4ac;text-decoration:none;gap:8px}

/* Public customer preview: the check and tip layout follows the POS. */
.previewNote{color:#e7ecee;margin:0 2px 15px;font-size:.875rem;line-height:1.45}
.previewNote strong{color:#f0d9ad;font-size:.875rem}
.previewNote p{margin:3px 0 0}
.brand{flex-wrap:wrap}
.brand img{max-width:64px;max-height:62px;padding:4px 6px}
.brand p{flex:1;min-width:100px;font-size:.9rem}
#previewTag{font-size:.8rem;flex:0 0 auto}
#tips small{font-size:.875rem}
.samplePrices{font-size:.875rem;color:var(--muted);margin:0 0 12px}
.processorPreview{margin-top:20px;padding:18px;border:1px solid #bbc9d0;border-radius:10px;background:#f1f5f5}
.processorPreview p{font-size:1rem;line-height:1.55;margin:9px 0 0}
.processorPreview .previewHint{font-size:.9rem;color:var(--muted)}
.merchantInfo{color:#e1e8eb;text-align:center;font-size:.875rem;line-height:1.65;padding:24px 8px 0}
.merchantInfo p{margin:0 0 13px}
.merchantInfo a,.noScript a{color:#f0d9ad;text-underline-offset:3px}
.merchantInfo nav{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 18px}
.merchantInfo .poweredBy{font-size:.8rem;color:#c0ccd2;margin-top:14px}
.noScript{color:#e1e8eb;line-height:1.6}
@media(max-width:380px){#tips button{font-size:.875rem}#tips small{font-size:.875rem}.processorPreview{padding:15px}.brand img{max-width:58px}.brand{gap:8px}}
