/* Cookie banner (templates/base.html, static/sl/js/consent.js) */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    padding: 18px max(20px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    background: #fff;
    border-top: 3px solid #cc3300;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    font-family: "Open Sans", sans-serif;
    color: #444;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.cookie-banner-text {
    flex: 1 1 420px;
    min-width: 0;
}

.cookie-banner-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.cookie-banner-text a,
.video-consent a {
    color: #cc3300;
}

.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Both choices look the same: refusing is as easy as accepting */
.cookie-banner button,
.video-consent button {
    min-width: 150px;
    padding: 9px 18px;
    border: 1px solid #cc3300;
    background: #fff;
    color: #cc3300;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.cookie-banner button:hover,
.cookie-banner button:focus-visible,
.video-consent button:hover,
.video-consent button:focus-visible {
    background: #cc3300;
    color: #fff;
    outline: none;
}

@media (max-width: 600px) {
    .cookie-banner-buttons {
        width: 100%;
    }
    .cookie-banner button {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* Question shown before a YouTube video is loaded without consent */
.video-consent {
    position: relative;
    max-width: 520px;
    margin: 20px auto;
    padding: 28px 30px;
    background: #fff;
    font-family: "Open Sans", sans-serif;
    color: #444;
    text-align: center;
}

.video-consent p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.5;
}

.video-consent .video-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner button,
    .video-consent button {
        transition: none;
    }
}
