/* ── Cookie Consent Banner ──────────────────────────────────────────────── */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background-color: rgba(0, 0, 0, 0.92);
    color: #e0e0e0;
    padding: 16px 0;
    display: none;
}

#cookie-consent-banner.visible {
    display: block;
}

#cookie-consent-banner .container {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 24px;
}

.cookie-consent-text {
    -webkit-flex: 1;
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0 !important;
}

.cookie-consent-text a {
    color: #fff !important;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #ccc !important;
}

.cookie-consent-actions {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    gap: 8px;
    -webkit-align-items: center;
    align-items: center;
}

.cookie-consent-actions .btn {
    font-size: 13px;
    padding: 6px 14px;
    white-space: nowrap;
    color: #fff !important;
    letter-spacing: 0.03em;
}

.cookie-consent-actions .btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #e0e0e0 !important;
}

.cookie-consent-actions .btn-outline-light:hover,
.cookie-consent-actions .btn-outline-light:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff !important;
}

/* ── Cookie Settings Modal (Bootstrap 3 native) ─────────────────────────── */

/* Sit above the banner */
#cookieSettingsModal { z-index: 999999; }
.modal-backdrop     { z-index: 999998; }

#cookieSettingsModal .modal-title {
    font-size: 20px;
    font-weight: 600;
}

#cookieSettingsModal .modal-footer .btn {
    font-size: 13px;
    letter-spacing: 0.03em;
}

#cookieSettingsModal .btn-outline-primary {
    background: transparent;
    border: 1px solid #337ab7;
    color: #337ab7;
}

#cookieSettingsModal .btn-outline-primary:hover,
#cookieSettingsModal .btn-outline-primary:focus {
    background: #337ab7;
    border-color: #337ab7;
    color: #fff;
}

/* ── Modal HR separator ──────────────────────────────────────────────────── */
#cookieSettingsModal .modal-body hr {
    border-top: 1px solid #bbb;
    margin: 0;
}

/* ── Modal muted text ────────────────────────────────────────────────────── */
#cookieSettingsModal .modal-body .text-muted {
    color: #555;
}

/* ── Category rows ───────────────────────────────────────────────────────── */
.cookie-category-row {
    padding: 12px 0;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    gap: 12px;
    border-top: 1px solid #e5e5e5;
}

.cookie-category-row:last-of-type {
    border-bottom: 1px solid #e5e5e5;
}

.cookie-category-info {
    -webkit-flex: 1;
    flex: 1;
}

.cookie-category-info h5 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
}

.cookie-category-info h5 label {
    margin: 0;
    font-weight: 600;
    cursor: pointer;
}

.cookie-always-on {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    margin-top: 2px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    background: #555;
    color: #fff;
    border-radius: 12px;
    white-space: nowrap;
}

.cookie-analytics-check {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #337ab7;
}

.cookie-modal-links {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 13px;
}

.cookie-modal-links a {
    color: #337ab7;
    text-decoration: underline;
}

.cookie-modal-links a:hover {
    color: #23527c;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    #cookie-consent-banner .container {
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: stretch;
        align-items: stretch;
    }

    .cookie-consent-text {
        margin-bottom: 12px;
    }

    .cookie-consent-actions {
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: stretch;
        align-items: stretch;
    }

    .cookie-consent-actions .btn {
        width: 100%;
        text-align: center;
    }

    #cookieSettingsModal .modal-footer .btn {
        display: block;
        width: 100%;
        margin: 3px 0;
    }
}
