/* El "?" de las tarifas (_PeakShotFees.cshtml). Lo carga _Layout para todo el
   sitio: el partial vive en el carrito, los dos checkouts y la carpeta, y una
   regla que quede en la hoja de una sola página deja el modal sin estilo en
   las otras, sin ningún error. */

.psf { display: inline; }

.psf__trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    margin: -12px 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.psf__trigger .bi {
    font-size: .95em;
    color: var(--ice-bright);
}
.psf__trigger:hover [data-psf-label] { text-decoration: underline; text-underline-offset: 3px; }
.psf__trigger:focus-visible { outline: 2px solid var(--ice-bright); outline-offset: 2px; border-radius: 4px; }

/* A media frase la fila no da 44 px de alto: el área táctil crece sin mover el texto. */
.psf--inline .psf__trigger { min-height: 0; margin: -10px 0; padding: 10px 0; }

html.psf-open { overflow: hidden; }

.psf-dialog {
    width: calc(100% - 32px);
    max-width: 420px;
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: var(--panel);
    color: var(--white);
    font-family: var(--font-body);
    overflow: auto;
}
.psf-dialog[open] { animation: psf-fade .18s ease-out; }
.psf-dialog::backdrop { background: rgba(5, 5, 10, .72); }

.psf-d {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 22px 20px;
}

.psf-d__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.psf-d__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
}
.psf-d__x {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    margin: -10px -12px 0 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
}
.psf-d__x:hover { color: var(--white); background: var(--border); }

.psf-d__lead { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--text-secondary); }

.psf-d__perks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.psf-d__perks li { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; line-height: 1.4; }
.psf-d__perks .bi {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ice-glow);
    color: var(--ice-bright);
    font-size: 1rem;
}
.psf-d__perks span { padding-top: 6px; }

.psf-d__box {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--charcoal);
}
.psf-d__line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: .9rem;
    color: var(--text-secondary);
}
.psf-d__amount { color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }
.psf-d__line--sum {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-weight: 600;
    color: var(--white);
}

.psf-d__legal { margin: 0; font-size: .8rem; color: var(--muted); }
.psf-d__legal a { color: var(--text-secondary); }

.psf-d__ok { width: 100%; justify-content: center; }

/* En el teléfono es una hoja desde abajo: "Entendido" queda bajo el pulgar. */
@media (max-width: 575.98px) {
    .psf-dialog {
        width: 100%;
        max-width: none;
        max-height: 90dvh;
        margin: auto 0 0;
        border-width: 1px 0 0;
        border-radius: 18px 18px 0 0;
    }
    .psf-dialog[open] { animation: psf-up .24s cubic-bezier(.2, .8, .2, 1); }
    .psf-d { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

@keyframes psf-fade { from { opacity: 0; transform: scale(.97); } }
@keyframes psf-up { from { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
    .psf-dialog[open] { animation: none; }
}
