.cookie-preferences-footer {
    background-color: #003366;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.5rem 0;
}

.cookie-preferences-footer .btn-link {
    color: #fff;
    font-weight: 600;
    padding-left: 0;
    text-decoration: underline;
}

.cookie-preferences-footer .btn-link:hover,
.cookie-preferences-footer .btn-link:focus {
    color: #fff;
    text-decoration-thickness: 0.15em;
}

.cookie-consent-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1090;
    background: #fff;
    border-top: 4px solid #0667d0;
    box-shadow: 0 -0.5rem 1.5rem rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
}

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

.cookie-consent-banner p {
    max-width: 75rem;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-consent-actions .btn {
    min-width: 10.5rem;
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid #d9dadb;
    padding: 1rem 0;
}

.cookie-category:first-of-type {
    border-top: 0;
}

.cookie-category p {
    margin-bottom: 0;
}

.cookie-category .form-switch {
    flex: 0 0 13rem;
}

.cookie-gated-content {
    position: relative;
    min-height: 12rem;
}

.cookie-gated-placeholder {
    display: flex;
    min-height: 12rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: #f2f7fc;
    border: 1px solid #b1b1b3;
    text-align: center;
}

.cookie-gated-content iframe[hidden] {
    display: none;
}

.cookie-media-placeholder {
    display: flex;
    width: 20rem;
    min-height: 11.25rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #f2f7fc;
    border: 1px solid #b1b1b3;
    color: #17324d;
    text-align: center;
}

@media (max-width: 575.98px) {
    .cookie-consent-banner {
        max-height: 90vh;
        overflow-y: auto;
    }

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

    .cookie-category {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-category .form-switch {
        flex-basis: auto;
    }

    .cookie-media-placeholder {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    #cookie-preferences-modal {
        transition: none !important;
    }
}
