/* Slip page layout: the original centred card (style.css) with a tighter header so the slip,
   the CTA and the states line fit one phone screen (stakeholder option B, 2026-11-14).
   The wrappers in slip-preview.html (.slip-head, .slip-media-wrap, .slip-media, .slip-cta-bar)
   are plain blocks here, so the page flows like the original markup. Loaded after style.css. */

/* The card's top is placed as if the card were 46rem tall and centred, instead of centring the real
   card: the eligibility text under the CTA differs per integration, and centring would move the CTA
   with it. Same title and slip, same CTA height, whichever integration the link uses. */
body {
    align-items: flex-start;
    padding-top: max(0.75rem, env(safe-area-inset-top), calc((100dvh - 46rem) / 2));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

.card { padding: 1.1rem 1.1rem 1rem; }
.card[hidden],
.slip-unavailable[hidden] { display: none !important; }

.slip-badge { margin-bottom: 0.5rem; padding: 0.3rem 0.7rem; font-size: 0.66rem; }
/* Every integration banner has the sportsbook banner's box (fixed height, same padding and gap), so with
   the same title and slip the CTA sits at the same height whichever integration the link uses. */
.card .fanduel-banner,
.card .kalshi-banner,
.card .integration-banner {
    box-sizing: border-box; height: 2.75rem; padding: 0.5rem 1rem; margin-bottom: 0.7rem; border-radius: 12px;
}
.card :is(.fanduel-banner, .kalshi-banner, .integration-banner) > img { max-height: 100%; }
/* Banners show the integration's name or logo only. The tag spans stay in the template (route parity
   with the reviewed slip page) and are never shown. */
.kalshi-banner-tag,
.integration-banner-tag { display: none !important; }
.fanduel-logo-img { width: 52%; max-width: 52%; }

#slip-title { font-size: 1.3rem; }

/* The slip keeps the original contain-scaling: a tall slip shrinks to the height cap
   instead of pushing the CTA off screen, so there is no inner scrolling. */
.card .hero-image,
.card .hero-image-loading {
    width: 100%;
    max-height: 48dvh;
    margin: 0.7rem auto 0;
}
.slip-scroll-hint { display: none !important; }

.card .button {
    margin-top: 0.9rem;
    padding: 14px 16px;
    font-size: 1.05rem;
    white-space: nowrap;
}
/* The CTA symbol (1.25em) is taller than the label line, so every CTA keeps that height with or without one. */
.card .button-content { min-height: 1.25em; }
.card .footer { margin-top: 0.9rem; padding-top: 0.7rem; font-size: 0.7rem; }
.footer-states { margin-bottom: 0.3rem; }
.footer-title:empty,
.footer-states:empty,
.footer-disclaimer:empty { display: none; }
.footer-terms-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* In-page "link unavailable" state (mirrors src/slip-unavailable.html) */
.slip-unavailable {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
    max-width: 380px;
    padding: 16px;
    border: 1px solid #36312c;
    border-radius: 10px;
    background: #1f1c19;
    color: #e7e2dc;
    font-size: 14px;
    line-height: 1.4;
}
.slip-unavailable-ico {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #36312c;
    display: grid;
    place-items: center;
    color: #a39b92;
}
.slip-unavailable-ico svg { width: 17px; height: 17px; }
.slip-unavailable-title { margin: 0 0 3px; font-size: 16px; font-weight: 700; }
.slip-unavailable-text { margin: 0; color: #a39b92; font-size: 13px; }

/* Operator-uploaded integration logo (Admin > Integrations) in place of the banner's text name; the
   CTA symbol uses .button-symbol (style.css). */
.integration-logo-img { display: block; width: 52%; max-width: 52%; height: auto; object-fit: contain; }
