/* The Day Pass pop-up on the board (partials/day-pass/inline-modal, public/js/day-pass-inline.js,
   CR req_1nyXMPGgP3m3). Self-contained: it sits on the scoreboards (layouts.app) and on the standalone
   Season Pass wall alike. Brand palette only (public/css/core/variables.css): accent #2ba8ff,
   hover #1a97f0, ink #0a0a0a, cream #fdfbf7. */
.dpi[hidden] { display: none !important; }
.dpi {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #0a0a0a;
}
html.dpi-open, html.dpi-open body { overflow: hidden; }
.dpi-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, .6); }
.dpi-card {
    position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto;
    /* Phones (CR req_Wlfq9pdypA0m): 100vh is the screen with the browser's bars hidden, so with them
       showing a long pop-up ran past the visible area (its close button and its foot off screen, out of
       reach of its own scrolling). dvh is the visible area; browsers without it keep the line above.
       Scrolling inside the pop-up stays in it instead of moving the board behind. */
    max-height: calc(100dvh - 32px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    background: #fdfbf7; border-radius: 16px; padding: 22px 20px 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35); outline: none;
    text-align: left; line-height: 1.4;
}
.dpi-x {
    position: absolute; top: 8px; right: 10px; width: 36px; height: 36px;
    border: 0; background: transparent; color: #6b7280; font-size: 28px; line-height: 1; cursor: pointer;
}
.dpi-x:hover { color: #0a0a0a; }
.dpi-head { margin-bottom: 14px; padding-right: 28px; }
.dpi-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0066cc; }
.dpi-title { margin: 2px 0 4px; font-size: 22px; font-weight: 800; color: #0a0a0a; }
.dpi-price { font-size: 26px; font-weight: 800; color: #0a0a0a; }
.dpi-price small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: #4b5563; }
.dpi-sub { margin: 6px 0 0; font-size: 14px; color: #1f2937; }
.dpi-back { margin: 4px 0 0; font-size: 13px; color: #4b5563; }

.dpi-tabs { display: flex; gap: 8px; margin: 0 0 12px; min-height: 52px; }
.dpi-tabs[hidden] { display: none; }
.dpi-tab-placeholder { display: none; flex: 1; border-radius: 10px; background: #ece7df; }
.dpi-tabs.is-loading .dpi-tab-placeholder { display: block; }
.dpi-tab {
    flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 8px 10px; border: 1px solid #d6d0c6; border-radius: 10px; background: #fff;
    font-size: 13px; font-weight: 600; color: #1f2937; cursor: pointer;
}
.dpi-tab[hidden] { display: none; }
.dpi-tab[aria-selected="true"] { border-color: #2ba8ff; box-shadow: 0 0 0 1px #2ba8ff; color: #0066cc; }

.dpi-wallet-note { margin: 0 0 12px; font-size: 14px; color: #1f2937; }
.dpi-field { margin-bottom: 12px; }
.dpi-field label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: #1f2937; }
.dpi-input, .dpi-card-slot {
    width: 100%; box-sizing: border-box; padding: 12px; font-size: 16px;
    border: 1px solid #d6d0c6; border-radius: 10px; background: #fff; color: #0a0a0a;
}
.dpi-input:focus { outline: none; border-color: #2ba8ff; box-shadow: 0 0 0 2px rgba(43, 168, 255, .25); }
.dpi-card-slot { min-height: 46px; }
.dpi-loading { font-size: 14px; color: #6b7280; }
.dpi-note { margin: 4px 0 0; font-size: 12px; color: #4b5563; }
.dpi-err { margin: 6px 0 0; font-size: 13px; color: #b91c1c; }
.dpi-err[hidden], .dpi-msg[hidden] { display: none; }
.dpi-msg { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #eef7ff; font-size: 14px; color: #0a0a0a; }

.dpi-check { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; font-size: 13px; color: #4b5563; }
.dpi-consent { margin: 0 0 10px; font-size: 12px; color: #4b5563; }
.dpi-consent a, .dpi-signin a { color: #0066cc; }

.dpi-pay-action #dpi-express[hidden] { display: none; }
.dpi-pay {
    width: 100%; min-height: 52px; border: 0; border-radius: 12px;
    background: #2ba8ff; color: #fff; font-size: 17px; font-weight: 800; cursor: pointer;
}
.dpi-pay:hover:not(:disabled) { background: #1a97f0; }
.dpi-pay:disabled { opacity: .6; cursor: default; }
.dpi-pay[hidden] { display: none; }
.dpi-signin { margin: 12px 0 0; text-align: center; font-size: 13px; }
.dpi-fine { margin: 6px 0 0; text-align: center; font-size: 12px; color: #6b7280; }
