/* Cookie consent banner and preferences modal */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1080;
    background-color: #1a1d24;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    padding: 1rem 0;
}

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

.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 320px;
    color: #e9ecef;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent-banner__text a {
    color: #8ec5ff;
    text-decoration: underline;
}

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

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

.cookie-consent-banner__actions .btn {
    white-space: nowrap;
}

.cookie-consent-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-consent-category:last-of-type {
    border-bottom: none;
}

.cookie-consent-category__info {
    flex: 1;
}

.cookie-consent-category__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cookie-consent-category__description {
    color: #adb5bd;
    font-size: 0.9rem;
    margin: 0;
}

.cookie-consent-category__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.cookie-consent-category__toggle {
    flex-shrink: 0;
    padding-top: 0.15rem;
}

#cookieConsentModal .modal-content {
    background-color: #1a1d24;
    color: #e9ecef;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

#cookieConsentModal .modal-header,
#cookieConsentModal .modal-footer {
    border-color: rgba(255, 255, 255, 0.12);
}

#cookieConsentModal .btn-close {
    filter: invert(1) grayscale(100%);
}

.cookie-preferences-link {
    cursor: pointer;
}

.cookie-preferences-trigger {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 1070;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(26, 29, 36, 0.95);
    color: #e9ecef;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    line-height: 1.2;
}

.cookie-preferences-trigger:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

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

@media (max-width: 767.98px) {
    .cookie-consent-banner__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-banner__actions {
        flex-direction: column;
    }

    .cookie-consent-banner__actions .btn {
        width: 100%;
    }
}
