/* ===== COOKIE BANNER ===== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #fff;
    border-top: 3px solid #00539C;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    padding: 18px 24px;
    display: none;
    font-family: 'Montserrat', sans-serif;
}
#cookie-banner.show { display: block; }

.cookie-banner-inner {
    max-width: 1366px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner-text {
    flex: 1;
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}
.cookie-banner-text a {
    color: #00539C;
    text-decoration: underline;
}
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* ===== COOKIE BUTTONS — equal prominence ===== */
.cookie-btn {
    padding: 9px 18px;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid #00539C;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.cookie-btn-primary {
    background: #00539C;
    color: #fff;
}
.cookie-btn-primary:hover { background: #003d75; border-color: #003d75; }
.cookie-btn-secondary {
    background: #fff;
    color: #00539C;
}
.cookie-btn-secondary:hover { background: #f0f6fc; }

/* ===== COOKIE MODAL ===== */
.cookie-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
}
.cookie-overlay.show { display: block; }

#cookie-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    font-family: 'Montserrat', sans-serif;
}
#cookie-modal.show { display: block; }

.cookie-modal-inner { padding: 32px; }
.cookie-modal-inner h2 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}
.cookie-modal-inner > p {
    font-size: 13px;
    color: #666;
    margin-bottom: 24px;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #eee;
}
.cookie-option-info strong {
    display: block;
    font-size: 14px;
    color: #222;
    margin-bottom: 4px;
}
.cookie-option-info p {
    font-size: 12px;
    color: #888;
    margin: 0;
}
.cookie-always-on {
    font-size: 12px;
    color: #00539C;
    font-weight: 600;
    white-space: nowrap;
    margin-top: 2px;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
    margin-top: 2px;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    cursor: pointer;
    transition: background .2s;
}
.cookie-toggle-slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: #00539C; }
.cookie-toggle input:checked + .cookie-toggle-slider:before { transform: translateX(20px); }

.cookie-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ===== FOOTER COOKIE PREFERENCES LINK ===== */
.cookie-preferences-link {
    cursor: pointer;
    color: #999;
    font-size: 12px;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}
.cookie-preferences-link:hover { color: #00539C; }

@media (max-width: 600px) {
    .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
    .cookie-banner-actions { width: 100%; }
    .cookie-btn { flex: 1; text-align: center; }
}
