/* =========================================================
   Cookie Consent
   ========================================================= */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    padding: 18px 24px;
    background-color: #ffffff;
    border-top: 1px solid #dcdcdc;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    white-space: normal;
    line-height: normal;
}


.cookie-consent-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    white-space: normal;
    overflow-wrap: break-word;
}


    .cookie-consent-content h5 {
        margin-bottom: 8px;
        font-size: 1.1rem;
        font-weight: 600;
    }


    .cookie-consent-content p {
        margin-bottom: 6px;
        color: #555;
        font-size: 0.95rem;
        line-height: 1.5;
    }


    .cookie-consent-content a {
        text-decoration: underline;
    }


.cookie-consent-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 10px;
}


    .cookie-consent-buttons .btn {
        white-space: nowrap;
    }


/* =========================================================
   Cookie Preferences Modal
   ========================================================= */

#cookiePreferencesModal .modal-content {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}


#cookiePreferencesModal .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}


#cookiePreferencesModal .modal-body {
    padding: 20px 24px;
}


#cookiePreferencesModal .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
}


#cookiePreferencesModal .modal-title {
    font-weight: 600;
}


/* =========================================================
   Cookie Categories
   ========================================================= */

.cookie-category {
    padding: 4px 0;
}


    .cookie-category .form-check {
        margin-bottom: 6px;
    }


    .cookie-category .form-check-label {
        cursor: pointer;
    }


    .cookie-category .form-check-input:disabled + .form-check-label {
        cursor: default;
    }


    .cookie-category small {
        display: block;
        padding-left: 0;
        line-height: 1.45;
    }


    .cookie-category hr,
    #cookiePreferencesModal hr {
        margin: 18px 0;
        border-color: #e5e5e5;
        opacity: 1;
    }


/* =========================================================
   Accessibility
   ========================================================= */

.cookie-consent-banner button:focus-visible,
.cookie-consent-banner a:focus-visible,
#cookiePreferencesModal button:focus-visible,
#cookiePreferencesModal input:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.35);
    outline-offset: 2px;
}


/* =========================================================
   Mobile / Tablet
   ========================================================= */

@media (max-width: 991.98px) {

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }


    .cookie-consent-buttons {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}


@media (max-width: 575.98px) {

    .cookie-consent-banner {
        padding: 16px;
    }


    .cookie-consent-content h5 {
        font-size: 1rem;
    }


    .cookie-consent-content p {
        font-size: 0.9rem;
    }


    .cookie-consent-buttons {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }


        .cookie-consent-buttons .btn {
            width: 100%;
        }


    #cookiePreferencesModal .modal-dialog {
        margin: 10px;
    }


    #cookiePreferencesModal .modal-header,
    #cookiePreferencesModal .modal-body,
    #cookiePreferencesModal .modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }


    #cookiePreferencesModal .modal-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }


        #cookiePreferencesModal .modal-footer .btn {
            width: 100%;
            margin: 0;
        }
}


/* =========================================================
   Optional Dark Mode Support
   ========================================================= */

@media (prefers-color-scheme: dark) {

    .cookie-consent-banner {
        background-color: #212529;
        border-top-color: #444;
        color: #f8f9fa;
    }


    .cookie-consent-content p {
        color: #ced4da;
    }


    .cookie-consent-content a {
        color: #8bb9fe;
    }
}

