/* The registration app's additions to MudBlazor, OptimistTheme and _content/OYF.DRAFT.UI/css/ui.css. Logo colors: orange #FF4D05, red-orange #C2280C, blue #204EAC. */

/* Navigation (CSS only at 960px, so nothing flashes):
   desktop: logo left, links centered in the app bar, account actions right;
   phones: no top bar; a bottom icon bar with the logo raised in its center (it goes Home). */
.top-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; }
.top-nav a, .top-nav button { padding: 8px 14px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-decoration: none; font-weight: 600; cursor: pointer; }
.top-nav a:hover, .top-nav button:hover { background: rgba(32, 78, 172, .08); }
.top-nav a.active { color: var(--mud-palette-primary); background: rgba(32, 78, 172, .10); }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; display: flex; align-items: stretch; background: var(--mud-palette-surface);
    border-top: 1px solid var(--mud-palette-lines-default); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav .side { flex: 1; display: flex; }
.bottom-nav .side a, .bottom-nav .side button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 60px; font: 600 .75rem/1.2 Barlow, Roboto, sans-serif; color: var(--mud-palette-text-secondary); text-decoration: none;
    background: none; border: 0; cursor: pointer; }
.bottom-nav .side a.active { color: var(--mud-palette-primary); }
.bottom-nav .center-logo { flex: none; width: 76px; height: 76px; margin: -22px 8px 0; border-radius: 50%; background: #FFFFFF;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(15, 20, 32, .18); border: 3px solid #FF4D05; }
.bottom-nav .center-logo img { width: 58px; height: auto; }
.dev-theme-fab { position: fixed; top: 8px; right: 8px; z-index: 1100; display: flex; align-items: center; gap: 4px; padding: 0 4px; background: var(--mud-palette-surface); border-radius: 24px; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
@media (max-width: 959.98px) {
    .mud-appbar { display: none; }
    .mud-main-content.with-bottom-nav { padding-top: 0; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (min-width: 960px) {
    .bottom-nav, .dev-theme-fab { display: none; }
}

/* Welcome page */
.hero-mark { width: 100%; max-width: 200px; height: auto; display: block; margin: 0 auto; }
.step-number { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: #204EAC; color: #FFFFFF; flex: none; }

@media (min-width: 960px) { .hero-mark { max-width: 320px; } }

/* Lists of people inside section cards */
.person-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.person-row + .person-row { border-top: 1px solid var(--mud-palette-lines-default); }
.person-row .person-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* Scroll to top: above the bottom bar on phones */
@media (max-width: 959.98px) { .mud-scroll-to-top { bottom: calc(88px + env(safe-area-inset-bottom)) !important; } }

.site-footer { padding: 24px 16px 32px; text-align: center; }

/* Register: Program cards (ChoiceGroup look with more detail), review */
.program-choice { align-items: flex-start; }
.program-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.program-meta { font-size: .8125rem; font-weight: 400; color: var(--mud-palette-text-secondary); }
.program-price { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.program-choice .check { margin-left: 4px; }
.review { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.review dt { color: var(--mud-palette-text-secondary); }
.review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table td { padding: 6px 0; border-bottom: 1px solid var(--mud-palette-lines-default); }
.price-table td:last-child { text-align: right; white-space: nowrap; }
.price-table .total td { font-weight: 700; border-bottom: 0; }
.step-actions { display: flex; align-items: center; gap: 8px; margin-top: 24px; }

/* Statement */
.amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.club-balance { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--mud-palette-lines-default); }
.pay-in-person { color: var(--mud-palette-text-secondary); }
.statement-row { padding: 12px 0; }
.statement-row + .statement-row { border-top: 1px solid var(--mud-palette-lines-default); }
.statement-lines { margin-top: 6px; }
.statement-lines summary { cursor: pointer; color: var(--mud-palette-primary); font-weight: 600; font-size: .875rem; min-height: 32px; display: flex; align-items: center; }
.price-table tr.reversed td { color: var(--mud-palette-text-secondary); text-decoration: line-through; }

/* Cart, nav badge, phone-only bits */
.checkout-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 2px solid var(--mud-palette-lines-default); }
.nav-icon { position: relative; display: inline-flex; }
.nav-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #C2280C; color: #FFFFFF; font-size: .6875rem; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.nav-icon .nav-badge { position: absolute; top: -6px; right: -10px; }
.top-nav .nav-badge { display: inline-block; margin-left: 6px; }
.text-button { border: 0; background: none; padding: 10px 16px; min-height: 44px; font: inherit; font-weight: 600; color: var(--mud-palette-error); cursor: pointer; border-radius: 8px; }
.text-button:hover { background: rgba(194, 40, 12, .08); }
@media (min-width: 960px) { .phone-only { display: none !important; } }

/* Cart: checkout summary and the optional donation */
.checkout-summary { margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--mud-palette-lines-default); }
.donation { margin-top: 8px; }

/* History filters */
.history-filters { margin-bottom: 16px; }
.status-chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: none; }
.status-chips::-webkit-scrollbar { display: none; }
.status-chips .mud-chip { flex: none; min-height: 40px; }
.chip-count { margin-left: 6px; padding: 0 7px; border-radius: 10px; background: var(--mud-palette-action-default-hover); font-size: .75rem; font-variant-numeric: tabular-nums; }
.filter-selects { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
@media (min-width: 600px) { .filter-selects { grid-template-columns: 1fr 1fr; } }
.filter-summary { display: flex; align-items: center; justify-content: space-between; min-height: 36px; margin-top: 4px; }

/* Register: the club's refund notice, confirmed before submitting */
.refund-notice { padding: 12px 16px; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 8px; background: rgba(32, 78, 172, .04); }

/* Announcements at the top of My family (posted by staff) */
.announcement { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; padding: 14px 16px; border-radius: 12px;
    background: rgba(32, 78, 172, .06); border: 1px solid rgba(32, 78, 172, .2); }
.announcement-icon { color: var(--mud-palette-primary); flex: none; margin-top: 2px; }
.announcement-body { min-width: 0; }
.announcement-from { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mud-palette-primary); }
.announcement-title { font-weight: 700; }
.announcement-message { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }

.pre-line { white-space: pre-line; }

/* Stripe's embedded Checkout in the cart's dialog. */
.checkout-dialog .form-dialog-content { min-height: 420px; }
.checkout-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 48px 0; color: var(--mud-palette-text-secondary); }
.stripe-checkout { min-height: 360px; }
