/* ============================================================
   griddle order screens (confirmation + tracking) — ported from
   griddle-refactor: lib/pages/checkout_success/** and
   design/order-confirm/order-confirmation-demo.html.
   Mapped to tokens.css (griddle teal #2CBAB9, warm stone neutrals).
   Reused by SS-9167 / 9169 / 9170 / 9168 / 9197.
   ============================================================ */

/* success hero (order placed) */
.success-hero{text-align:center;padding:var(--space-8) 0 var(--space-6)}
.success-icon{display:inline-flex;align-items:center;justify-content:center;width:68px;height:68px;border-radius:999px;
  background:var(--success-tint);margin-bottom:var(--space-5);position:relative}
.success-icon svg{width:30px;height:30px;stroke:var(--success);stroke-width:2.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.success-icon::after{content:"";position:absolute;inset:-8px;border-radius:999px;border:2px solid var(--success-tint);opacity:.6}
.success-title{font-family:var(--font-display);font-size:var(--text-xl);font-weight:800;letter-spacing:-.01em;line-height:1.25;margin-bottom:6px}
.success-sub{font-size:var(--text-sm);color:var(--text-secondary);line-height:1.5;max-width:34ch;margin:0 auto}

/* order number + dining badge */
.order-number-block{text-align:center;padding:0 0 var(--space-5);margin-bottom:var(--space-5)}
.order-number{font-family:var(--font-display);font-size:44px;font-weight:800;color:var(--brand);letter-spacing:-.02em;line-height:1.1;margin-bottom:12px}
.order-type-badge{display:inline-flex;align-items:center;gap:6px;background:var(--brand-tint);color:var(--brand-pressed);
  font-size:13px;font-weight:700;padding:5px 13px;border-radius:var(--radius-pill)}
.order-type-badge svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}

/* order notice (merchant / delivery note) */
.order-notice{display:flex;align-items:flex-start;gap:12px;background:var(--brand-tint);border-left:3px solid var(--brand);
  border-radius:0 var(--radius-md) var(--radius-md) 0;padding:14px 16px;margin-bottom:var(--space-5)}
.order-notice .ni{flex-shrink:0;width:28px;height:28px;border-radius:var(--radius-sm);background:var(--brand);
  display:flex;align-items:center;justify-content:center;margin-top:1px}
.order-notice .ni svg{width:14px;height:14px;stroke:var(--on-brand);fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.order-notice .nt{flex:1;min-width:0;font-size:13px;line-height:1.55;color:var(--text-secondary)}
.order-notice .nt strong{font-weight:700;color:var(--text-primary);display:block;margin-bottom:2px}

/* info card (ETA / address rows) */
.info-card{background:var(--surface-raised);border-radius:var(--radius-md);padding:4px 0;margin-bottom:var(--space-5);box-shadow:var(--shadow-sm)}
.info-row{display:flex;align-items:flex-start;gap:14px;padding:15px 18px;position:relative}
.info-row+.info-row::before{content:'';position:absolute;top:0;left:18px;right:18px;height:1px;background:var(--surface-sunken)}
.info-icon{width:36px;height:36px;flex-shrink:0;border-radius:var(--radius-sm);background:var(--brand-tint);display:flex;align-items:center;justify-content:center;margin-top:1px}
.info-icon svg{width:16px;height:16px;stroke:var(--brand-pressed);fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.info-icon.live{background:var(--brand)}
.info-icon.live svg{stroke:var(--on-brand)}
.info-text{flex:1;min-width:0}
.info-row-label{font-size:13px;color:var(--text-secondary);margin-bottom:3px}
.info-row-value{font-size:15px;font-weight:600;color:var(--text-primary);line-height:1.4}
.copy-btn{flex-shrink:0;align-self:center;width:30px;height:30px;border-radius:var(--radius-sm);background:none;border:none;
  cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-tertiary)}
.copy-btn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}

/* collapsible order summary */
.summary-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;background:var(--surface-raised);
  border:none;cursor:pointer;padding:15px 18px;border-radius:var(--radius-md);margin-bottom:8px;box-shadow:var(--shadow-sm);font-family:var(--font-body)}
.stog-left{display:flex;align-items:center;gap:10px}
.stog-label{font-size:14px;font-weight:600;color:var(--text-primary)}
.stog-count{font-size:12px;font-weight:600;background:var(--brand-tint);color:var(--brand-pressed);padding:2px 8px;border-radius:999px}
.stog-right{display:flex;align-items:center;gap:8px}
.stog-total{font-size:15px;font-weight:700;color:var(--text-primary);font-family:var(--font-display)}
.stog-right .chev{width:16px;height:16px;stroke:var(--text-tertiary);fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;transform:rotate(180deg)}
.summary-panel{background:var(--surface-raised);border-radius:var(--radius-md);overflow:hidden;margin-bottom:var(--space-5);box-shadow:var(--shadow-sm)}
.s-item{display:flex;justify-content:space-between;align-items:flex-start;padding:13px 18px;gap:12px;position:relative}
.s-item+.s-item::before{content:'';position:absolute;top:0;left:18px;right:18px;height:1px;background:var(--surface-sunken)}
.s-item-name{font-size:14px;color:var(--text-primary)}
.s-item-mod{font-size:12px;color:var(--text-tertiary);margin-top:2px}
.s-item-r{display:flex;gap:8px;align-items:center;flex-shrink:0}
.s-qty{font-size:12px;font-weight:600;color:var(--text-secondary);background:var(--surface-sunken);padding:2px 7px;border-radius:4px}
.s-price{font-size:14px;font-weight:600;color:var(--text-primary);font-family:var(--font-display)}
.s-totals{padding:2px 18px 6px}
.s-row{display:flex;justify-content:space-between;padding:9px 0;font-size:13px;color:var(--text-secondary);position:relative}
.s-row+.s-row::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:var(--surface-sunken)}
.s-row.grand{font-size:15px;font-weight:700;color:var(--text-primary)}
.s-row span:last-child{font-weight:600;font-family:var(--font-display)}
.s-row .feepill{background:var(--brand-tint);color:var(--brand-pressed);font-size:10px;font-weight:700;padding:1px 6px;border-radius:999px;margin-left:6px;font-family:var(--font-body)}

/* actions */
.o-actions{display:flex;flex-direction:column;gap:2px;padding-top:4px}
.o-btn{display:flex;align-items:center;justify-content:center;gap:8px;height:52px;background:var(--brand);color:var(--on-brand);
  border:none;cursor:pointer;border-radius:var(--radius-pill);font-family:var(--font-body);font-size:16px;font-weight:700;letter-spacing:-.01em}
.o-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.o-btn.ghost{background:none;color:var(--text-secondary);font-size:14px;font-weight:500;height:44px;text-decoration:underline;text-underline-offset:3px}

/* mobile chrome: status bar handled by mooo.css; bottom nav */
.o-app{display:flex;flex-direction:column;height:100%;background:var(--surface-bg)}
.o-scroll{flex:1;overflow:auto;padding:0 var(--space-5) var(--space-5)}
.o-bottomnav{display:flex;background:var(--surface-raised);padding:9px 0 22px;border-top:1px solid var(--border-subtle);flex:none}
.o-navitem{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;font-weight:600;color:var(--text-tertiary)}
.o-navitem svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.o-navitem.on{color:var(--brand)}

/* desktop: centered column inside .web-body */
.order-col{max-width:520px;margin:0 auto;padding:var(--space-6) 0 var(--space-10)}

/* ---- delivery TRACKING (SS-9169/9170/9168) ---- */
/* hero map with courier + route */
.track-map{position:relative;height:230px;border-radius:var(--radius-lg);overflow:hidden;margin-bottom:var(--space-5);
  background:#dfe6e4;background-image:
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,255,255,.85) 46px 52px),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255,255,255,.85) 58px 64px)}
.track-map .route{position:absolute;left:18%;top:70%;width:60%;height:2px;background:repeating-linear-gradient(90deg,var(--brand) 0 8px,transparent 8px 14px);transform:rotate(-18deg);transform-origin:left}
.track-map .tp{position:absolute;transform:translate(-50%,-100%);z-index:2}
.track-map .tp .drop{width:26px;height:26px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--brand);border:2px solid #fff;box-shadow:var(--shadow-md);display:grid;place-items:center}
.track-map .tp .drop b{transform:rotate(45deg);width:7px;height:7px;border-radius:50%;background:#fff;display:block}
.track-map .courier{position:absolute;transform:translate(-50%,-50%);z-index:3;width:40px;height:40px;border-radius:999px;background:#fff;box-shadow:var(--shadow-md);display:grid;place-items:center;font-size:19px}
.track-map .courier::before{content:"";position:absolute;inset:-6px;border-radius:999px;border:2px solid var(--brand);opacity:.4}
.track-eta{position:absolute;left:14px;bottom:14px;background:rgba(255,255,255,.95);border-radius:var(--radius-md);padding:8px 14px;box-shadow:var(--shadow-sm)}
.track-eta .k{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-tertiary)}
.track-eta .v{font-family:var(--font-display);font-weight:800;font-size:18px;color:var(--text-primary)}

/* status timeline (steps) */
.tl{background:var(--surface-raised);border-radius:var(--radius-md);padding:6px 18px;margin-bottom:var(--space-5);box-shadow:var(--shadow-sm)}
.tl .st{display:flex;gap:14px;position:relative;padding:12px 0}
.tl .st::before{content:"";position:absolute;left:13px;top:30px;bottom:-6px;width:2px;background:var(--surface-sunken)}
.tl .st:last-child::before{display:none}
.tl .st.done::before,.tl .st.now::before{background:var(--brand)}
.tl .st .nd{width:28px;height:28px;border-radius:999px;flex:none;display:grid;place-items:center;background:var(--surface-sunken);color:var(--text-tertiary);z-index:1}
.tl .st .nd svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tl .st.done .nd{background:var(--brand);color:var(--on-brand)}
.tl .st.now .nd{background:var(--brand);color:var(--on-brand);box-shadow:0 0 0 4px var(--brand-tint)}
.tl .st .lb .h{font-size:14px;font-weight:700;color:var(--text-primary)}
.tl .st.wait .lb .h{color:var(--text-tertiary);font-weight:600}
.tl .st .lb .m{font-size:12.5px;color:var(--text-secondary);margin-top:2px}

/* courier card */
.courier-card{display:flex;align-items:center;gap:12px;background:var(--surface-raised);border-radius:var(--radius-md);padding:14px 16px;margin-bottom:var(--space-5);box-shadow:var(--shadow-sm)}
.courier-card .av{width:46px;height:46px;border-radius:999px;background:var(--surface-sunken);display:grid;place-items:center;font-size:20px;flex:none}
.courier-card .cb{flex:1;min-width:0}
.courier-card .cn{font-weight:700;font-size:var(--text-sm)}
.courier-card .cm{font-size:12px;color:var(--text-secondary);margin-top:1px}
.courier-card .act{width:40px;height:40px;border-radius:999px;background:var(--brand-tint);color:var(--brand-pressed);display:grid;place-items:center;flex:none}
.courier-card .act svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* status banner (late / lost / cancelled / recovery) */
.st-banner{display:flex;gap:12px;border-radius:var(--radius-md);padding:14px 16px;margin-bottom:var(--space-5);line-height:1.5;font-size:13.5px}
.st-banner .bi{flex:none;width:30px;height:30px;border-radius:var(--radius-sm);display:grid;place-items:center}
.st-banner .bi svg{width:16px;height:16px;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.st-banner strong{display:block;margin-bottom:2px}
.st-banner.warn{background:var(--warning-tint);color:#7a4f00}.st-banner.warn .bi{background:var(--warning);color:#fff}.st-banner.warn .bi svg{stroke:#fff}
.st-banner.danger{background:var(--danger-tint);color:#8a2b2b}.st-banner.danger .bi{background:var(--danger);color:#fff}.st-banner.danger .bi svg{stroke:#fff}
.st-banner.ok{background:var(--success-tint);color:#245c27}.st-banner.ok .bi{background:var(--success);color:#fff}.st-banner.ok .bi svg{stroke:#fff}
