/**
 * Cookie consent dialog — Guardian-style bottom sheet over a dimmed page.
 * Uses the T-VINE palette from support.css (ink #292929, red #e93314,
 * lime #bcd532). Scoped under .tv-consent.
 */

.tv-consent[hidden] { display: none; }

.tv-consent {
    position: fixed;
    inset: 0;
    /* Above the support banner (9500) and the header. */
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.tv-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.tv-consent__panel {
    position: relative;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: #292929;
    color: #fff;
    border-top: 4px solid #e93314;
    box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .6);
    animation: tv-consent-rise 420ms cubic-bezier(.16, 1, .3, 1);
}

.tv-consent__inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 24px 32px;
    text-align: left;
}

.tv-consent__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 14px;
}

.tv-consent__body p {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #ddd6cf;
    margin: 0 0 10px;
    max-width: 70ch;
}

.tv-consent__body a {
    color: #bcd532;
    text-decoration: underline;
}

.tv-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.tv-consent__btn {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    min-height: 44px;
    padding: 0 26px;
    border-radius: 22px;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.tv-consent__btn--primary {
    background: #bcd532;
    color: #292929;
    border: 2px solid #bcd532;
}

.tv-consent__btn--primary:hover { background: #cbe24a; border-color: #cbe24a; }

.tv-consent__btn--secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.tv-consent__btn--secondary:hover { background: #fff; color: #292929; }

.tv-consent__btn:focus-visible {
    outline: 3px solid #e93314;
    outline-offset: 2px;
}

/* Stop the page scrolling behind the dialog. */
html.tv-consent-open,
html.tv-consent-open body { overflow: hidden; }

@media (max-width: 575px) {
    .tv-consent__inner { padding: 22px 18px 24px; }
    .tv-consent__btn { flex: 1 1 100%; }
}

@keyframes tv-consent-rise {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .tv-consent__panel { animation: none; }
}
