/* Баннер согласия на cookies (см. templates/includes/cookie_consent_banner.html) */

.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100050;
    padding: 1rem 0;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

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

.cookie-consent-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-banner__text {
    flex: 1 1 18rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #212529;
    margin: 0;
}

.cookie-consent-banner__text a {
    color: #004c3f;
    text-decoration: underline;
}

.cookie-consent-banner__text a:hover {
    color: #00332a;
}

.cookie-consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-consent-banner__btn {
    min-width: 6.5rem;
}

body.cookie-consent-banner-open {
    padding-bottom: 7rem;
}

@media (max-width: 576px) {
    body.cookie-consent-banner-open {
        padding-bottom: 10rem;
    }

    .cookie-consent-banner__actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-consent-banner__btn {
        flex: 1 1 auto;
    }
}
