/* Uber One tickets page. No inline scripts are allowed here, so this file holds all of its styles. */

/* ── Copied from templates/store.html: page base, scrollbar, nav, mobile menu ── */
:root {
    --bg-apple-light: var(--t-surface);
    --card-bg: var(--t-surface-raised);
    --text-main: var(--t-ink);
    --text-muted: var(--t-ink-3);
    --accent-orange: var(--t-accent);
    --border-subtle: var(--t-line);
    --shadow-diffused: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.04);
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-house: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-apple-light);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    min-height: 100vh;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--t-scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--t-scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #86868B; }

/* ══════════════════════════════════════════════════════════
   NAV — Floating pill that morphs
   ══════════════════════════════════════════════════════════ */
#navbar {
    transition: transform 0.6s var(--ease-house), opacity 0.5s ease;
    will-change: transform, opacity;
}
#nav-content {
    transition: max-width 0.7s var(--ease-house),
                background-color 0.6s var(--ease-house),
                box-shadow 0.6s var(--ease-house),
                backdrop-filter 0.6s var(--ease-house),
                padding 0.7s var(--ease-house),
                border-radius 0.7s var(--ease-house),
                border-color 0.5s ease;
    margin: 0 auto;
    will-change: max-width, background-color, box-shadow, padding, border-radius;
}

/* Top State — Flat, Wide, Transparent */
.nav-state-top { padding-top: 1.5rem; }
.nav-state-top #nav-content {
    max-width: 72rem;
    background-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 1.5rem;
    border-radius: 0;
    border: 1px solid transparent;
}

/* Pill State — Frosted glass when scrolling up */
.nav-state-pill { padding-top: 1.5rem; }
.nav-state-pill #nav-content {
    max-width: 48rem;
    background: var(--t-nav-pill-bg);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    box-shadow: var(--t-nav-pill-shadow);
    padding: 0.375rem 0.375rem 0.375rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--t-nav-pill-border);
}

/* Hidden State — Scrolling down */
.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Nav Link Active Pill */
.nav-link-active {
    background: var(--t-surface-raised);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    color: var(--t-ink);
}

@keyframes fadeBlurIn {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

#navbar {
    top: var(--banner-h, 0px);
    transition: transform 0.6s var(--ease-house), opacity 0.5s ease, top 0.55s var(--ease-house);
}

@media (prefers-reduced-motion: reduce) {
    body, #navbar { transition-duration: 0.01ms !important; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE MENU
   ══════════════════════════════════════════════════════════ */
.mobile-menu-btn {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-menu-btn span {
    display: block; width: 22px; height: 2px;
    background: var(--text-main); border-radius: 2px;
    transition: transform 0.4s var(--ease-spring), opacity 0.25s ease, width 0.3s var(--ease-spring);
    transform-origin: center center;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; width: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: flex; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--t-nav-pill-bg);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    z-index: 100;
    flex-direction: column; align-items: center; justify-content: center; gap: 24px;
    opacity: 0; visibility: hidden;
    transform: scale(0.96);
    transition: opacity 0.4s var(--ease-spring), visibility 0.4s, transform 0.5s var(--ease-spring);
}
.mobile-menu.active { opacity: 1; visibility: visible; transform: scale(1); }
.mobile-menu a {
    font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 600;
    letter-spacing: -0.025em; color: var(--text-main); text-decoration: none;
    padding: 14px 24px; border-radius: 12px;
    transform: translateY(20px); opacity: 0; filter: blur(4px);
    transition: transform 0.5s var(--ease-spring), opacity 0.4s ease, filter 0.4s ease, background 0.2s ease, color 0.2s ease;
}
.mobile-menu a:hover { background: var(--t-hover-wash); }
.mobile-menu.active a { transform: translateY(0); opacity: 1; filter: blur(0); }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.06s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.18s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.24s; }
.mobile-menu a:active { color: var(--t-ink-3); }

.mobile-menu-close {
    position: absolute; top: 24px; right: 24px;
    background: rgba(0,0,0,0.05); border: none; cursor: pointer;
    font-size: 20px; font-weight: 300;
    color: var(--text-main); width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    opacity: 0; animation: fadeBlurIn 0.4s var(--ease-spring) 0.2s forwards;
    transition: background 0.2s ease;
}
.mobile-menu-close:hover, .mobile-menu-close:active { background: var(--t-hover-wash-strong); opacity: 1; }

body.mobile-menu-open { overflow: hidden !important; position: fixed; width: 100%; }
body.mobile-menu-open .my-orders-fab { opacity: 0 !important; pointer-events: none !important; }

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        position: relative;
        width: 38px; height: 38px;
        align-items: center; justify-content: center;
        background: none;
        border-radius: 50%;
        z-index: 60;
    }
    .nav-cart-label { display: none; }
    #nav-cart { padding: 10px 12px; }
    /* Tighter mobile nav pill */
    .nav-state-top #nav-content { padding: 0 1rem; }
    .nav-state-pill { padding-top: 0.75rem; }
    .nav-state-pill #nav-content {
        max-width: calc(100% - 2rem);
        margin: 0 1rem;
        padding: 0.25rem 0.25rem 0.25rem 0.375rem;
    }
    .nav-state-top { padding-top: 0.75rem; }
}

/* ── Page ── */
[hidden] { display: none !important; }

.uo-shell { min-height: 100vh; display: flex; flex-direction: column; }
.uo-main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 112px 16px 48px;
}

.uo-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--t-ink-3);
    text-decoration: none;
    transition: color 0.2s ease;
}
.uo-back:hover { color: var(--t-ink); }

.uo-title {
    margin: 16px 0 8px;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--t-ink);
}
.uo-lede { margin: 0; font-size: 15px; line-height: 1.5; color: var(--t-ink-2); }
.uo-who { margin: 10px 0 0; font-size: 13px; color: var(--t-ink-3); overflow-wrap: anywhere; }

.uo-panel {
    margin-top: 20px;
    padding: 24px;
    background: var(--t-surface-raised);
    border: 1px solid var(--t-line);
    border-radius: 20px;
    box-shadow: var(--t-shadow-card);
}
.uo-panel h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--t-ink);
}
.uo-panel p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--t-ink-2); }
.uo-panel a { color: var(--t-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Terms: the amber underline is the store hero's stroke, the marker follows My Orders' Total Spent band */
.uo-terms { --uo-marker: rgba(251, 191, 36, 0.40); }
[data-theme="dark"] .uo-terms { --uo-marker: rgba(251, 191, 36, 0.28); }

.uo-panel .uo-terms-title { margin-bottom: 10px; font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; }

.uo-underline {
    padding-bottom: 4px;
    color: var(--t-ink);
    font-weight: 500;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 10' preserveAspectRatio='none'%3E%3Cpath d='M3,6 C40,3 100,3 137,5' stroke='%23fbbf24' stroke-width='2.4' stroke-linecap='round' fill='none' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") left bottom / 100% 7px no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    animation: uoUnderlineDraw 700ms var(--ease-house) both;
}
.uo-terms-title .uo-underline { padding-bottom: 5px; font-weight: inherit; white-space: nowrap; background-size: 100% 9px; animation-name: uoUnderlineDrawLarge; }

.uo-terms mark {
    padding: 1px 3px;
    margin: 0 -2px; /* the band runs past the words, but a comma after it still sits close */
    color: var(--t-ink);
    font-weight: 500;
    background: linear-gradient(var(--uo-marker), var(--uo-marker)) left center / 100% 100% no-repeat;
    border-radius: 4px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    animation: uoMarkerWipe 600ms var(--ease-house) both;
}

/* One beat: the marks wipe in down the list, in reading order */
.uo-term:nth-child(1) .uo-underline { animation-delay: 150ms; }
.uo-term:nth-child(2) mark { animation-delay: 250ms; }
.uo-term:nth-child(2) .uo-underline { animation-delay: 350ms; }
.uo-term:nth-child(3) mark { animation-delay: 450ms; }
.uo-term:nth-child(4) .uo-underline { animation-delay: 550ms; }
.uo-term:nth-child(5) mark { animation-delay: 650ms; }

@keyframes uoMarkerWipe { from { background-size: 0% 100%; } }
@keyframes uoUnderlineDraw { from { background-size: 0% 7px; } }
@keyframes uoUnderlineDrawLarge { from { background-size: 0% 9px; } }

@media (prefers-reduced-motion: reduce) {
    .uo-underline, .uo-terms mark { animation: none; }
    .uo-error, .uo-wallet-chevron, .uo-wallet-panel, .uo-wallet.is-open .uo-wallet-panel, .uo-date-pop,
    .uo-date-anchor.is-open .uo-date-pop, .uo-date-arrow { transition: none; }
    .uo-steps, .uo-panel, .uo-sent, .uo-masked, .uo-card-input, .uo-card-remove, .uo-add, .uo-note-count, .uo-panel .uo-error,
    .uo-send-tick path, .uo-send[data-state] .uo-send-spinner, .uo-send[data-state] .uo-send-label { animation: none; }
    .uo-send-arc { animation: uoSpin 2400ms linear infinite; }
    .uo-send[data-state="busy"] .uo-send-fill { transition: none; }
    .uo-note, .uo-btn, #uo-cards, #uo-note, #uo-add { transition: none; }
}

.uo-term-list {
    margin: 18px 0 16px;
    background: var(--t-surface-sunken);
    border-radius: 14px;
}
.uo-term {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
}
.uo-term + .uo-term { border-top: 1px solid var(--t-line); }
.uo-term dt { font-weight: 600; line-height: 1.4; padding-top: 2px; color: var(--t-ink); }
.uo-term dd { margin: 0; color: var(--t-ink-2); }

.uo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Buttons */
.uo-btn {
    min-height: 44px;
    padding: 0 20px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 200ms var(--ease-house);
}
.uo-btn:active:not(:disabled) { transform: scale(0.97); }
.uo-btn:disabled { opacity: 0.55; cursor: default; }
.uo-btn-primary { background: var(--t-on-dark-bg); color: var(--t-on-dark-ink); }
.uo-btn-primary:hover:not(:disabled) { background: var(--t-on-dark-bg-hover); }
.uo-btn-quiet { background: var(--t-surface-raised); color: var(--t-ink-2); border: 1px solid var(--t-line-strong); }
.uo-btn-quiet:hover:not(:disabled) { color: var(--t-ink); border-color: var(--t-ink); }
.uo-btn:focus-visible, .uo-link:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; }
.uo-link {
    min-height: 32px;
    padding: 4px 0;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--t-ink-3);
    background: none;
    border: none;
    cursor: pointer;
}
.uo-link:hover { color: var(--t-ink); }
.uo-link-button {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    text-decoration: none;
}
.uo-panel a.uo-link-button { color: var(--t-on-dark-ink); text-decoration: none; }

/* Cards */
.uo-card-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--t-line); }
.uo-card-head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin-bottom: 6px; }
.uo-card-title { font-size: 13px; font-weight: 600; color: var(--t-ink); }

.uo-input, .uo-note {
    display: block;
    width: 100%;
    font: inherit;
    font-size: 16px; /* under 16px makes iPhone Safari zoom the page */
    color: var(--t-ink);
    background: var(--t-surface-sunken);
    border: 1px solid var(--t-line-solid);
    border-radius: 12px;
    transition: border-color 0.2s ease;
}
.uo-input { height: 46px; padding: 0 14px; }
.uo-note { padding: 12px 14px; resize: none; overflow: hidden; line-height: 1.4; transition: border-color 0.2s ease, height 220ms var(--ease-house); }
.uo-note-count { margin-top: 6px !important; font-size: 12px !important; text-align: right; color: var(--t-ink-3) !important; font-variant-numeric: tabular-nums; }
.uo-input:focus, .uo-note:focus { outline: none; border-color: var(--t-line-strong); }
.uo-input::placeholder, .uo-note::placeholder { color: var(--t-ink-3); opacity: 1; }

.uo-masked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    background: var(--t-surface-sunken);
    border-radius: 12px;
}
.uo-masked-digits { font-size: 15px; font-weight: 500; letter-spacing: 0.02em; color: var(--t-ink); font-variant-numeric: tabular-nums; }

.uo-panel .uo-error {
    max-height: 6em;
    margin-top: 8px;
    overflow: hidden;
    font-size: 13px;
    color: var(--t-danger);
    animation: uoErrorIn 280ms var(--ease-house);
    transition: opacity 250ms ease, max-height 250ms ease, margin-top 250ms ease;
}
.uo-panel .uo-error-leaving { max-height: 0; margin-top: 0; opacity: 0; }

.uo-date { margin-top: 14px; }
.uo-date-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; margin-bottom: 6px; }
.uo-date-unknown { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; color: var(--t-ink-2); cursor: pointer; }
.uo-date-unknown input { width: 16px; height: 16px; margin: 0; accent-color: var(--t-ink); cursor: pointer; }
.uo-date-anchor { position: relative; }
.uo-date-field {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 8px 14px;
    font: inherit;
    font-size: 15px;
    line-height: 1.3;
    text-align: left;
    color: var(--t-ink-3);
    background: var(--t-surface-sunken);
    border: 1px solid var(--t-line-solid);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.uo-date-field svg { flex-shrink: 0; }
.uo-date-text { flex: 1; min-width: 0; }
.uo-date-arrow { transition: transform 240ms var(--ease-house); }
.uo-date-field:hover:not(:disabled), .uo-date-anchor.is-open .uo-date-field { border-color: var(--t-line-strong); }
.uo-date-anchor.is-open .uo-date-arrow { transform: rotate(180deg); }
.uo-date-field:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; }
.uo-date-field.is-set { color: var(--t-ink); font-weight: 500; }
.uo-date-field:disabled { color: var(--t-ink-3); opacity: 0.7; cursor: default; }
.uo-date-field { transition: border-color 0.2s ease, opacity 240ms ease, color 240ms ease; }

/* The calendar is Cally (static/vendor), styled from outside through the parts it exposes. */
.uo-date-pop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    width: min(328px, 100%);
    padding: 14px;
    background: var(--t-surface-raised);
    border: 1px solid var(--t-line);
    border-radius: 20px;
    box-shadow: var(--t-shadow-lift);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top left;
    transition: opacity 160ms ease, transform 240ms var(--ease-house), visibility 0s linear 240ms;
}
.uo-date-anchor.is-open .uo-date-pop {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 160ms ease, transform 240ms var(--ease-house), visibility 0s;
}
.uo-calendar {
    --color-accent: var(--t-on-dark-bg);
    --color-text-on-accent: var(--t-on-dark-ink);
    display: block;
    width: 100%;
    color: var(--t-ink);
}
.uo-calendar::part(header) { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.uo-calendar-heading { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--t-ink); }
.uo-calendar::part(button) {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--t-ink-2);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}
.uo-calendar::part(button):hover { color: var(--t-ink); background: var(--t-hover-wash-strong); }
.uo-calendar::part(button):focus-visible { color: var(--t-ink); background: transparent; outline: 2px solid var(--t-accent); outline-offset: 1px; }
.uo-calendar::part(disabled), .uo-calendar::part(disabled):hover { color: var(--t-ink-4); background: transparent; cursor: default; opacity: 0.6; }
.uo-calendar calendar-month { display: block; width: 100%; }
.uo-calendar calendar-month::part(heading) { display: none; }
.uo-calendar calendar-month::part(table) { width: 100%; table-layout: fixed; }
.uo-calendar calendar-month::part(th) { width: auto; height: 30px; font-size: 12px; font-weight: 500; color: var(--t-ink-3); }
.uo-calendar calendar-month::part(button) {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    font-size: 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 150ms ease;
}
.uo-calendar calendar-month::part(button):hover { background: var(--t-hover-wash-strong); }
.uo-calendar calendar-month::part(today) { font-weight: 700; color: var(--t-accent); }
.uo-calendar calendar-month::part(selected), .uo-calendar calendar-month::part(selected):hover { font-weight: 600; color: var(--t-on-dark-ink); background: var(--t-on-dark-bg); }
.uo-calendar calendar-month::part(disallowed), .uo-calendar calendar-month::part(disallowed):hover { font-weight: 400; color: var(--t-ink-4); background: transparent; cursor: default; }
.uo-calendar calendar-month::part(button):disabled, .uo-calendar calendar-month::part(button):disabled:hover { font-weight: 400; color: var(--t-ink-4); background: transparent; cursor: default; opacity: 1; }
.uo-calendar calendar-month::part(button):focus-visible { color: var(--t-on-dark-ink); background: var(--t-on-dark-bg); outline: 2px solid var(--t-accent); outline-offset: 1px; }

/* Wallet help */
.uo-wallet { margin-top: 12px; }
.uo-wallet-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 4px 0;
    font: inherit;
    font-size: 13px;
    text-align: left;
    color: var(--t-ink-2);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}
.uo-wallet-toggle:hover { color: var(--t-ink); }
.uo-wallet-toggle:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; border-radius: 4px; }
.uo-wallet-chevron { flex-shrink: 0; transition: transform 360ms var(--ease-house); }
.uo-wallet.is-open .uo-wallet-chevron { transform: rotate(90deg); }
.uo-wallet-panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    opacity: 0;
    transition: grid-template-rows 360ms var(--ease-house), opacity 220ms ease, visibility 0s linear 360ms;
}
.uo-wallet.is-open .uo-wallet-panel {
    grid-template-rows: 1fr;
    visibility: visible;
    opacity: 1;
    transition: grid-template-rows 360ms var(--ease-house), opacity 220ms ease, visibility 0s;
}
.uo-wallet-clip { min-height: 0; overflow: hidden; }
.uo-wallet-body { margin-top: 10px; padding: 16px; background: var(--t-surface-sunken); border-radius: 14px; }
.uo-panel .uo-wallet-body p { font-size: 13px; }
.uo-segmented { display: inline-flex; gap: 2px; margin-top: 12px; padding: 3px; background: var(--t-line); border-radius: 11px; }
.uo-segment {
    padding: 6px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--t-ink-2);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}
.uo-segment:hover { color: var(--t-ink); }
.uo-segment[aria-pressed="true"] { color: var(--t-ink); background: var(--t-surface-raised); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.uo-segment:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 1px; }
.uo-steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: uo-step; animation: uoStepsIn 180ms var(--ease-house); }
.uo-steps li { position: relative; padding: 0 0 12px 34px; font-size: 14px; line-height: 24px; color: var(--t-ink-2); counter-increment: uo-step; }
.uo-steps li:last-child { padding-bottom: 0; }
.uo-steps li::before {
    content: counter(uo-step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: var(--t-ink);
    background: var(--t-surface-raised);
    border: 1px solid var(--t-line-solid);
    border-radius: 50%;
    font-variant-numeric: tabular-nums;
}
.uo-steps li:not(:last-child)::after { content: ""; position: absolute; top: 24px; bottom: 0; left: 11.5px; width: 1px; background: var(--t-line-solid); }
.uo-steps strong { font-weight: 600; color: var(--t-ink); }
.uo-step-hint { display: block; font-size: 13px; line-height: 22px; color: var(--t-ink-3); }
.uo-key {
    position: relative;
    top: -1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    min-width: 30px;
    margin: 0 2px;
    padding: 0 8px;
    color: var(--t-on-dark-ink);
    background: var(--t-on-dark-bg);
    border-radius: 999px;
    vertical-align: middle;
}
.uo-key svg { display: block; }
.uo-step-hint .uo-key { height: 18px; min-width: 26px; padding: 0 6px; }
.uo-wallet-field { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; font-size: 13px; font-weight: 600; color: var(--t-ink); border-top: 1px solid var(--t-line); }
.uo-wallet-field .uo-input { width: 92px; height: 40px; padding: 0 12px; font-weight: 400; text-align: center; letter-spacing: 0.08em; background: var(--t-surface-raised); font-variant-numeric: tabular-nums; }

@keyframes uoStepsIn { from { opacity: 0; transform: translateY(4px); } }

/* Send button: spinner and a fill across the wait, then a tick that draws itself. The width never changes. */
.uo-panel .uo-send {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 214px;
    overflow: hidden;
}
.uo-panel .uo-send:disabled { opacity: 1; }
.uo-send-fill {
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
}
.uo-send[data-state="busy"] .uo-send-fill { opacity: 0.16; transform: scaleX(1); transition: transform 3000ms linear, opacity 200ms ease; }
.uo-send[data-state="done"] .uo-send-fill { opacity: 0.16; transform: scaleX(1); }
.uo-send-spinner, .uo-send-tick { position: relative; display: none; flex-shrink: 0; }
.uo-send-label { position: relative; }
.uo-send[data-state="busy"] .uo-send-spinner { display: block; animation: uoFadeIn 200ms ease; }
.uo-send-arc { stroke-dasharray: 12 30; transform-origin: center; animation: uoSpin 800ms linear infinite; }
.uo-send[data-state="busy"] .uo-send-label, .uo-send[data-state="done"] .uo-send-label { animation: uoFadeIn 240ms ease; }
.uo-send[data-state="done"] .uo-send-tick { display: block; }
.uo-send-tick path { stroke-dasharray: 1; animation: uoDrawTick 380ms var(--ease-house) both; }

/* Anything that appears eases in, rather than jumping onto the page. These play each time something is unhidden. */
.uo-panel { animation: uoRiseIn 420ms var(--ease-house); }
.uo-masked, .uo-card-input { animation: uoFadeIn 260ms ease; }
.uo-card-remove, .uo-add, .uo-note-count { animation: uoFadeIn 220ms ease; }
#uo-cards, #uo-note, #uo-add { transition: opacity 240ms ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, height 220ms var(--ease-house); }
#uo-cards[inert], #uo-note[inert], #uo-add[inert] { opacity: 0.55; }

/* Ticket progress */
.uo-ticket-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 10px; }
.uo-ticket-stages span { height: 4px; background: var(--t-line-solid); border-radius: 999px; }
.uo-ticket-stages .is-done { background: var(--t-ink); }
.uo-ticket-stages.is-complete .is-done { background: var(--t-success); }
.uo-panel .uo-ticket-next { margin-top: 8px; font-size: 13px; }

@keyframes uoRiseIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes uoFadeIn { from { opacity: 0; } }
@keyframes uoErrorIn { from { max-height: 0; margin-top: 0; opacity: 0; } }
@keyframes uoSpin { to { transform: rotate(360deg); } }
@keyframes uoDrawTick { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.uo-add { margin-top: 12px; }
.uo-field-hint { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--t-ink-2); }
.uo-field-label { display: block; margin: 20px 0 6px; font-size: 13px; font-weight: 600; color: var(--t-ink); }
.uo-submit-row { margin-top: 20px; }

/* Tickets */
.uo-sent {
    margin-top: 20px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--t-ink);
    background: var(--t-success-soft);
    border-radius: 12px;
}
.uo-ticket { padding: 14px 0; border-top: 1px solid var(--t-line); }
.uo-ticket:first-of-type { margin-top: 12px; }
.uo-ticket:last-child { padding-bottom: 0; }
.uo-ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.uo-ticket-ref { font-size: 14px; font-weight: 600; color: var(--t-ink); font-variant-numeric: tabular-nums; }
.uo-status { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 13px; font-weight: 500; color: var(--t-ink); }
.uo-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--t-ink-4); }
.uo-status-processing::before { background: var(--t-accent); }
.uo-status-completed::before { background: var(--t-success); }
.uo-ticket-meta { margin-top: 2px !important; font-size: 13px !important; color: var(--t-ink-3) !important; }
.uo-ticket-result { margin-top: 8px !important; overflow-wrap: anywhere; }
.uo-ticket-result strong { font-weight: 600; color: var(--t-ink); }

/* ── Desktop: Your tickets on the left, the form on the right, once they've agreed (owner, 2026-11-09) ──
   The store's two-pane pattern: a fixed list column that stays in view, and a fluid main column. The terms
   page stays one centred column. uber_one.js sets .uo-columns on agreeing; someone who has agreed before
   gets it before the first paint (uber_one_boot.js), so their page doesn't shift as the tickets load.
   Phones and narrow windows keep one column, form first. */

@media (min-width: 1024px) {
    .uo-columns .uo-main { max-width: 1088px; }
    .uo-columns .uo-work {
        display: grid;
        grid-template-columns: 360px minmax(0, 1fr);
        column-gap: 20px;                  /* the same 20px that separates panels everywhere on this page */
        align-items: start;
    }
    .uo-columns .uo-work > .uo-panel { grid-column: 2; }
    .uo-columns .uo-work > #uo-tickets {
        grid-column: 1;
        grid-row: 1;
        position: sticky;
        top: 96px;                         /* clears the floating nav pill */
        max-height: calc(100vh - 116px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: var(--t-line-strong) transparent;
    }
}

@media (max-width: 560px) {
    .uo-term { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (max-width: 480px) {
    .uo-date-field { font-size: 14px; }
    .uo-main { padding-top: 88px; }
    .uo-title { font-size: 26px; }
    .uo-panel { padding: 20px 16px; }
    .uo-actions .uo-btn { flex: 1 1 100%; }
}

/* ══════════════════════════════════════════════════════════
   COLOUR. Black and white does the work, like the rest of the store.
   Green only appears when something is done, and orange only on the
   box you're in.
   ══════════════════════════════════════════════════════════ */
:root {
    --uo-done: #1F7A36;
    --uo-done-soft: rgba(52, 199, 89, 0.13);
    --uo-done-ink: #1B6E30;
    --uo-focus-glow: rgba(234, 88, 12, 0.22);
}
[data-theme="dark"] {
    --uo-focus-glow: rgba(255, 122, 51, 0.3);
    --uo-done-soft: rgba(48, 209, 88, 0.15);
    --uo-done-ink: #63E08C;
}

.uo-title .uo-underline { padding-bottom: 6px; font-weight: inherit; white-space: nowrap; background-size: 100% 10px; animation-name: uoUnderlineDrawTitle; }
@keyframes uoUnderlineDrawTitle { from { background-size: 0% 10px; } }

/* Progress line, in place of the plain divider. It only turns green at the end. */
.uo-progress { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.uo-progress-track { flex: 1; height: 5px; overflow: hidden; background: var(--t-line-solid); border-radius: 999px; }
.uo-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--t-ink);
    border-radius: 999px;
    transition: width 560ms var(--ease-house), background 300ms ease;
}
.uo-progress.is-ready .uo-progress-fill { background: var(--t-success); }
.uo-progress-text { flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--t-ink-2); font-variant-numeric: tabular-nums; transition: color 300ms ease; }
.uo-progress.is-ready .uo-progress-text { color: var(--uo-done-ink); }
.uo-card-row:first-child { padding-top: 0; border-top: 0; }

/* Fields: orange while you're in one, a small green mark once it's done */
.uo-input, .uo-note { caret-color: var(--t-accent); transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, height 220ms var(--ease-house); }
.uo-input:focus, .uo-note:focus, .uo-date-anchor.is-open .uo-date-field {
    background: var(--t-surface-raised);
    border-color: var(--t-accent);
    box-shadow: 0 0 0 3px var(--uo-focus-glow);
}
.uo-input:hover:not(:focus), .uo-note:hover:not(:focus) { border-color: var(--t-line-strong); }
.uo-input::placeholder, .uo-note::placeholder { color: var(--t-ink-2); }
.uo-date-field { color: var(--t-ink-2); transition: border-color 0.2s ease, box-shadow 0.2s ease, background 300ms ease, opacity 240ms ease, color 240ms ease; }
.uo-masked { justify-content: flex-start; gap: 10px; border: 1px solid var(--t-line-solid); }
.uo-masked-digits { flex: 1; min-width: 0; }
.uo-masked .uo-link { color: var(--t-ink-2); }
.uo-tick { flex-shrink: 0; color: var(--uo-done-ink); }
.uo-tick path { stroke-dasharray: 1; animation: uoDrawTick 440ms var(--ease-house) both; }
.uo-date-field.is-set svg:first-child { color: var(--uo-done-ink); }

/* Add another card */
.uo-add { display: inline-flex; align-items: center; gap: 7px; border-style: dashed; }

.uo-step-hint { color: var(--t-ink-2); }

/* Send button: plain until it's sent, then green */
.uo-panel .uo-send { transition: background 300ms ease, color 300ms ease, transform 200ms var(--ease-house); }
.uo-send[data-state="done"] .uo-send-fill { opacity: 0; transition: opacity 200ms ease; }
.uo-panel .uo-send[data-state="done"], .uo-panel .uo-send[data-state="done"]:disabled { color: #FFFFFF; background: var(--uo-done); }

/* Tickets */
.uo-status-processing::before { background: var(--t-accent); }
.uo-status-completed::before { background: var(--t-success); }
.uo-ticket-stages .is-done { background: var(--t-ink); }
.uo-ticket-stages.is-completed .is-done { background: var(--t-success); }
/* The bar fills in from the left, then a soft shine runs along the stage the ticket is on. */
.uo-ticket-stages span { position: relative; overflow: hidden; }
.uo-ticket-stages .is-done { transform-origin: left center; animation: uoStageFill 700ms var(--ease-house) backwards; }
.uo-ticket-stages .is-done:nth-child(2) { animation-delay: 140ms; }
.uo-ticket-stages .is-done:nth-child(3) { animation-delay: 280ms; }
.uo-ticket-stages .is-current::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: translateX(-100%);
    animation: uoStageShine 2400ms ease-in-out 800ms infinite;
}
[data-theme="dark"] .uo-ticket-stages .is-current::after { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.45), transparent); }
@keyframes uoStageFill { from { transform: scaleX(0); } }
@keyframes uoStageShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Sent message */
.uo-sent { display: flex; align-items: flex-start; gap: 10px; background: var(--uo-done-soft); }
.uo-sent::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 20px;
    background: var(--uo-done-ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5l3.5 3.5L13 4.5' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5l3.5 3.5L13 4.5' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (prefers-reduced-motion: reduce) {
    .uo-progress-fill, .uo-progress-text, .uo-input, .uo-note, .uo-date-field, .uo-panel .uo-send,
    #uo-cards, #uo-note, #uo-add { transition: none; }
    .uo-tick path { animation: none; stroke-dashoffset: 0; }
    .uo-title .uo-underline { animation: none; }
    .uo-ticket-stages .is-done, .uo-ticket-stages .is-current::after { animation: none; }
}
