/* Redesign phase 4: the buyer's side (checkout on the event page, the ticket page, home, /events, recitals, account).
   Loaded last (App.razor), so these win over app.css. Flat, quiet, one pink action per view. Host pages are untouched. */

/* Parts that JavaScript hides stay hidden whatever else styles them. */
.checkout-form [hidden], .manage [hidden], .extra-row [hidden] { display: none !important; }

/* ── Before buying: the event's own terms ─────────────────────────────── */
.trust-row { display: block; margin: 0 0 1.1rem; font-size: var(--fs-small); color: var(--lp-muted); line-height: 1.45; }
.trust-row p { margin: 0; }
.trust-row p + p { margin-top: .2rem; }
.trust-row a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ── Tickets ──────────────────────────────────────────────────────────── */
.was-price { margin-left: .45rem; color: var(--lp-muted); font-weight: 400; }
.founding-note { margin: .5rem 0 0; font-size: var(--fs-small); color: var(--lp-muted); }
.checkout-details { margin-top: .2rem; }

/* "Promo code": a small link above the button; it opens the field. */
.promo-link { margin-top: 1.1rem; font-size: var(--fs-small); }
.promo-link summary { display: inline; list-style: none; cursor: pointer; color: var(--lp-brand-text); font-weight: 500; }
.promo-link summary::-webkit-details-marker { display: none; }
.promo-link[open] summary { color: var(--lp-muted); }
.promo-link .search-form { margin-top: .5rem; }
.promo-link input { flex: 1; min-width: 0; text-transform: uppercase; font: inherit; padding: .5rem .7rem; border: 1px solid var(--lp-line);
    border-radius: var(--radius-sm); background: var(--lp-bg); color: var(--lp-ink); }
.promo-link + .btn-block { margin-top: .8rem; }

/* "Not ready? Watch this show": under the tickets, out of the way. */
.watch-link { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--lp-line); font-size: var(--fs-small); }
.watch-link summary { display: inline; list-style: none; cursor: pointer; color: var(--lp-muted); }
.watch-link summary::-webkit-details-marker { display: none; }
.watch-link summary:hover { color: var(--lp-ink); }
.watch-link .search-form { margin-top: .6rem; }
.watch-link input { flex: 1; min-width: 0; }

/* ── The ticket page ──────────────────────────────────────────────────── */
/* Before check-in opens: when it opens and how long to go, one plain line (no box inside the pass). */
.checkin-waiting { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin: .4rem 0 0; }
.checkin-opens { margin: 0; font-weight: 600; }
.checkin-waiting .countdown { display: inline-flex; gap: .35rem; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.checkin-waiting .countdown-value { font-weight: 600; color: var(--lp-muted); }
.checkin-waiting > .fine-print { flex-basis: 100%; margin-top: .4rem; }
/* The offline note sits on the pass itself, at the pass's own padding. */
.offline-banner { padding: 0 0 1rem; margin: 0 0 1rem; border-radius: 0; background: none; border-bottom: 1px solid var(--lp-line); }
.offline-banner p { margin: 0 0 .6rem; }

/* Manage: three equal buttons under the receipt; the chosen one's form opens below them. */
.manage { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--lp-line); }
.manage-buttons { display: grid; gap: .5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.manage-buttons.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.manage-buttons.count-1 { grid-template-columns: minmax(0, 1fr); }
.manage-buttons .btn { padding-inline: .5rem; text-align: center; white-space: normal; }
.manage-buttons .btn.is-on { background: var(--lp-bg); border-color: var(--lp-ink); }
.manage-heading { margin: 1.3rem 0 .5rem; font-size: var(--fs-subhead); font-weight: var(--fw-strong); }
.manage-buttons + .manage-panel .manage-heading { margin-top: 0; }
.manage.is-enhanced .manage-heading { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.manage.is-enhanced .manage-panel { margin-top: 1rem; }
.manage-panel p { margin: 0 0 .6rem; }
.manage-panel .btn-block { margin-top: .8rem; }

/* "Add to home screen": a quiet second thing, under the receipt. */
.install-prompt { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--lp-line); font-size: var(--fs-small); color: var(--lp-muted); }
.install-prompt p { margin: 0 0 .5rem; }

/* ── Cards: a poster-less tile in a small frame ───────────────────────── */
.wallet-row-art .event-art-tile { padding: .4rem; }
.wallet-row-art .event-art-title { font-size: var(--fs-micro); -webkit-line-clamp: 3; }

/* ── Home ─────────────────────────────────────────────────────────────── */
.intro-city { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .45rem; margin: 0; font-size: var(--fs-body); color: var(--lp-muted); }
.intro-city [data-location-status] { flex-basis: 100%; margin: 0; }
.intro-actions:has(.intro-city) { gap: .9rem 1.5rem; }

/* Phones: the date chips right after the hero; the ones by the listings' heading step aside. */
.when-top { display: none; }
@media (max-width: 600px) {
    .when-top { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 0 1.25rem; margin-top: .2rem; margin-bottom: .6rem; scrollbar-width: none; }
    .when-top::-webkit-scrollbar { display: none; }
    .when-top a { white-space: nowrap; }
    .home-head .when-filters { display: none; }
}

/* The one host strip, last. */
.home-host-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--lp-line); }
.home-host-strip h2 { margin: 0; font-size: var(--fs-heading); font-weight: var(--fw-strong); letter-spacing: -.02em; }
.home-host-link { font-weight: 600; color: var(--lp-brand-text); text-decoration: none; }
.home-host-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-host-strip .btn { margin-left: auto; }
@media (max-width: 520px) { .home-host-strip .btn { margin-left: 0; } }

/* ── /events ──────────────────────────────────────────────────────────── */
.browse-chips { margin: -.6rem 0 1.2rem; }
.when-filters a[aria-current="page"] { color: var(--lp-ink); font-weight: 600; }
.browse-group + .browse-group { margin-top: 2.4rem; }
.browse-heading { margin: 0 0 1rem; font-size: var(--fs-heading); font-weight: var(--fw-strong); letter-spacing: -.02em; }

/* ── Recital page ─────────────────────────────────────────────────────── */
.show-family { margin: .35rem 0 0; font-size: var(--fs-small); }
.show-family a { color: var(--lp-brand-text); }
.class-finder-link { margin: 0 0 1.2rem; font-size: var(--fs-small); }
.class-finder-link summary { display: inline; list-style: none; cursor: pointer; color: var(--lp-brand-text); font-weight: 500; }
.class-finder-link summary::-webkit-details-marker { display: none; }
.class-finder-link .finder-form { margin-top: .6rem; }
.class-finder-link select { min-width: 220px; padding: .55rem .7rem; border: 1px solid var(--lp-line); border-radius: var(--radius-sm); background: var(--lp-surface); color: var(--lp-ink); font: inherit; }

/* ── Account ──────────────────────────────────────────────────────────── */
.account-head { display: block; margin-bottom: 1.6rem; }
.account-head h1 { margin: 0; font-size: var(--fs-title); letter-spacing: -.025em; overflow-wrap: anywhere; }
.account-email { margin: .25rem 0 0; color: var(--lp-muted); overflow-wrap: anywhere; }
/* Add or change the name: one quiet link that opens a small field (AccountPage). */
.account-name { margin: .5rem 0 0; }
.account-name > summary { list-style: none; display: inline; cursor: pointer; color: var(--lp-muted); font-size: var(--fs-small); }
.account-name > summary::-webkit-details-marker { display: none; }
.account-name[open] > summary { display: none; }
.account-name-form { display: flex; gap: .5rem; max-width: 26rem; }
.account-name-form input { flex: 1; min-width: 0; }
.account-rows { display: grid; border-top: 1px solid var(--lp-line); }
.account-row { display: flex; align-items: center; gap: 1rem; padding: 1rem .1rem; border-bottom: 1px solid var(--lp-line);
    color: var(--lp-ink); text-decoration: none; font-weight: 600; }
.account-row .muted { margin-left: auto; font-weight: 400; font-size: var(--fs-small); }
.account-row::after { content: "\203A"; color: var(--lp-muted); font-weight: 400; }
.account-row > span:only-child { margin-right: auto; }
.account-row:hover > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.account-page .account-grid { margin-top: 1.8rem; }
.city-form { margin: .6rem 0 0; }
.city-field { display: flex; gap: .5rem; }
.city-field input { flex: 1; min-width: 0; font: inherit; padding: .65rem .8rem; border: 1px solid var(--lp-line); border-radius: var(--radius-sm);
    background: var(--lp-bg); color: var(--lp-ink); }
.city-form.is-live [data-city-save] { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.city-actions { margin-top: .6rem; }
.account-signout { margin-top: 2.2rem; }
.account-signout .link-button { color: var(--lp-muted); }
.account-signout .link-button:hover { color: var(--lp-ink); }
