/* CoffeeGo shop: cart, checkout, order status. Loaded after the page's own #cg styles. */
#cg [hidden]{display:none!important}
#cg .qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:980px;background:#fff;height:44px}
#cg .qty button{width:42px;height:42px;border:none;background:none;font-size:20px;line-height:1;color:var(--ink);cursor:pointer;border-radius:50%;font-family:inherit}
#cg .qty button:hover{color:var(--acc)}
#cg .qty button:disabled{color:var(--line);cursor:default}
#cg .qty output{min-width:26px;text-align:center;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
#cg .qty.sm{height:36px}
#cg .qty.sm button{width:34px;height:34px;font-size:18px}
#cg .prod .buy{display:flex;gap:10px;align-items:center;min-height:48px}
#cg .prod .buy .btn{white-space:nowrap;padding-left:14px;padding-right:14px}
#cg .prod .buy .btn{flex:1}
#cg .prod .btn.added{background:#fff;color:var(--acc);box-shadow:inset 0 0 0 1.5px var(--acc)}
#cg .prod .alt{font-size:13px;color:var(--sub);text-align:center}
#cg .prod .alt a{color:var(--sub);text-decoration:underline;text-underline-offset:2px}

/* cart bar */
#cg .cartbar{position:fixed;left:0;right:0;bottom:0;z-index:60;background:rgba(255,255,255,.92);backdrop-filter:saturate(180%) blur(20px);border-top:1px solid var(--hair);transform:translateY(110%);transition:transform .25s ease}
#cg .cartbar.on{transform:none}
#cg .cartbar .in{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:12px;padding-bottom:calc(12px + env(safe-area-inset-bottom))}
#cg .cartbar .sum b{font-size:18px;font-weight:700;letter-spacing:-.01em}
#cg .cartbar .sum span{display:block;font-size:13px;color:var(--sub)}
#cg .cartbar .btn{white-space:nowrap}
#cg .has-cart{padding-bottom:84px}

/* checkout layout */
#cg .co{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr);gap:28px;align-items:start}
@media(max-width:900px){#cg .co{grid-template-columns:1fr}}
#cg .hd.slim{padding:44px 0 34px;text-align:left}
#cg .hd.slim h1{font-size:clamp(32px,5vw,48px)}
#cg .card{border:1px solid var(--line);border-radius:20px;background:#fff;padding:24px 26px 26px;margin-bottom:16px}
@media(max-width:560px){#cg .card{padding:20px 18px 22px;border-radius:18px}}
#cg .card h2{font-size:21px;letter-spacing:-.015em;display:flex;align-items:center;gap:10px;margin-bottom:16px}
#cg .card h2 .n{display:inline-flex;width:26px;height:26px;border-radius:50%;background:var(--acc);color:#fff;font-size:14px;font-weight:600;align-items:center;justify-content:center;flex:none}
#cg .card h2 .ok{margin-left:auto;font-size:13px;font-weight:600;color:#1a7f4b}
#cg .f2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:560px){#cg .f2{grid-template-columns:1fr}}
#cg .fld{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;position:relative}
#cg .fld label{font-size:13px;font-weight:600;color:var(--ink)}
#cg .fld label i{font-style:normal;font-weight:400;color:var(--sub)}
#cg .fld input,#cg .fld select,#cg .fld textarea{font:inherit;font-size:16px;color:var(--ink);padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;width:100%;appearance:none;-webkit-appearance:none}
#cg .fld select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:36px}
#cg .fld input:focus,#cg .fld select:focus,#cg .fld textarea:focus{outline:2px solid var(--acc);outline-offset:-1px;border-color:var(--acc)}
#cg .fld.bad input,#cg .fld.bad select{border-color:#c62828}
#cg .fld .err{font-size:13px;color:#c62828;display:none}
#cg .fld.bad .err{display:block}
#cg .hint{font-size:13px;color:var(--sub)}
#cg .btn2{display:inline-flex;align-items:center;gap:8px;background:#fff;color:var(--acc);font-weight:500;font-size:16px;padding:11px 20px;border-radius:980px;border:none;box-shadow:inset 0 0 0 1.5px var(--acc);cursor:pointer;font-family:inherit}
#cg .btn2:hover{background:#f7f2fa}
#cg .btn2 svg{width:18px;height:18px}
#cg .btn.wide{display:block;width:100%;text-align:center;font-size:18px;padding:15px 26px}
#cg .btn:disabled{opacity:.4;cursor:default}
#cg .btn.wa{background:#1fa855}

/* phone confirmation */
#cg .phone-row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
#cg .phone-row .fld{flex:1;min-width:210px;margin-bottom:0}
#cg .wabox{margin-top:14px;border-radius:14px;background:var(--bg2);border:1px solid var(--hair);padding:16px 18px;display:flex;gap:18px;align-items:center}
#cg .wabox .t{flex:1}
#cg .wabox b{display:block;font-size:15px;margin-bottom:4px}
#cg .wabox p{font-size:14px;color:var(--sub)}
#cg .wabox code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:1px 6px;color:var(--ink)}
#cg .wabox img{width:112px;height:112px;border-radius:8px;background:#fff;flex:none}
@media(max-width:560px){#cg .wabox img{display:none}}
#cg .wait{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--sub);margin-top:10px}
#cg .wait::before{content:"";width:14px;height:14px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--acc);animation:cgspin 1s linear infinite}
@keyframes cgspin{to{transform:rotate(360deg)}}
#cg .done{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:600}
#cg .done .tick,#cg .tick{display:inline-flex;width:24px;height:24px;border-radius:50%;background:#1a7f4b;color:#fff;align-items:center;justify-content:center;font-size:14px;flex:none}
#cg .done a{font-size:14px;font-weight:400;margin-left:auto}

/* address suggestions */
#cg .sug{position:absolute;left:0;right:0;top:100%;z-index:20;margin-top:4px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px rgba(0,0,0,.12);overflow:hidden}
#cg .sug button{display:block;width:100%;text-align:left;border:none;background:none;padding:11px 14px;font:inherit;cursor:pointer;border-bottom:1px solid var(--hair)}
#cg .sug button:hover,#cg .sug button.on{background:var(--bg2)}
#cg .sug button b{display:block;font-size:15px;font-weight:600}
#cg .sug button span{font-size:13px;color:var(--sub)}
#cg .sug .g{font-size:11px;color:var(--sub);padding:7px 14px;text-align:right}
#cg .loc{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:4px 0 14px;padding:14px 16px;border-radius:14px;background:var(--bg2);border:1px solid var(--hair)}
#cg .loc .t{flex:1;min-width:200px}
#cg .loc b{font-size:15px;display:block}
#cg .loc span{font-size:13px;color:var(--sub)}

/* delivery day */
#cg .days{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
#cg .chip{border:1px solid var(--line);background:#fff;border-radius:14px;padding:9px 14px;font:inherit;font-size:15px;cursor:pointer;text-align:center;line-height:1.25;color:var(--ink)}
#cg .chip small{display:block;font-size:12px;color:var(--sub)}
#cg .chip.on{border-color:var(--acc);box-shadow:inset 0 0 0 1px var(--acc);color:var(--acc);font-weight:600}
#cg .chip.on small{color:var(--acc)}

/* summary */
#cg .sumcard{position:sticky;top:96px}
@media(max-width:900px){#cg .sumcard{position:static}}
#cg .line{display:grid;grid-template-columns:56px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--hair)}
#cg .line img{width:56px;height:70px;object-fit:cover;border-radius:10px;background:#e5e5e6;display:block}
#cg .line .nm{font-size:15px;font-weight:600}
#cg .line .pr{font-size:13px;color:var(--sub);margin-bottom:6px}
#cg .line .am{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
#cg .tot{margin-top:14px;display:flex;flex-direction:column;gap:8px;font-size:15px}
#cg .tot div{display:flex;justify-content:space-between;gap:12px}
#cg .tot div span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap}
#cg .tot .free{color:#1a7f4b;font-weight:600}
#cg .tot .grand{border-top:1px solid var(--line);padding-top:12px;margin-top:4px;font-size:20px;font-weight:700;letter-spacing:-.01em}
#cg .nudge{font-size:13px;color:var(--acc);background:#f7f2fa;border-radius:10px;padding:9px 12px;margin-top:12px}
#cg .agree{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--sub);margin:16px 0 14px;cursor:pointer}
#cg .agree input{width:20px;height:20px;accent-color:var(--acc);flex:none;margin-top:1px}
#cg .payways{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:12px}
#cg .payways span{font-size:12px;font-weight:600;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:3px 8px;background:#fff}
#cg .secure{font-size:13px;color:var(--sub);text-align:center;margin-top:10px}
#cg .alert{border-radius:12px;background:#fdecea;color:#8c1d18;font-size:14px;padding:11px 14px;margin-bottom:12px}

/* pay step and order page */
#cg .paybox{max-width:760px;margin:0 auto}
#cg .paygrid{display:grid;grid-template-columns:1fr auto;gap:28px;align-items:center}
@media(max-width:700px){#cg .paygrid{grid-template-columns:1fr}#cg .paygrid .qr{display:none}}
#cg .paygrid .qr{text-align:center;border-left:1px solid var(--hair);padding-left:28px}
#cg .paygrid .qr img{width:172px;height:172px;display:block;margin:0 auto 8px}
#cg .paygrid .qr span{font-size:13px;color:var(--sub);display:block;max-width:180px}
#cg .big{font-size:clamp(26px,4vw,34px);font-weight:700;letter-spacing:-.025em;line-height:1.15}
#cg .status{display:flex;gap:14px;align-items:center;margin-bottom:18px}
#cg .status .tick{width:44px;height:44px;font-size:24px}
#cg .status .tick.warn{background:#b26a00}
#cg .kv{display:grid;grid-template-columns:auto 1fr;gap:8px 18px;font-size:15px;margin-top:6px}
#cg .kv dt{color:var(--sub)}
#cg .kv dd{margin:0}
#cg .legal h2{font-size:24px;margin:34px 0 10px}
#cg .legal p,#cg .legal li{font-size:16px;color:var(--ink);margin-bottom:10px}
#cg .legal ul{padding-left:22px}
