/* --- Cookie consent banner & preferences modal --- */
.cc-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2000;
    max-width: 920px;
    margin: 0 auto;
    background: #0f1b33;
    color: rgba(255, 255, 255, .9);
    border: 1px solid rgba(212, 175, 55, .35);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .4);
    padding: 1.25rem 1.4rem;
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
}
.cc-banner.cc-show { display: flex; }
.cc-banner .cc-icon {
    font-size: 1.9rem;
    color: #F6D97A;
    line-height: 1;
}
.cc-banner .cc-text { flex: 1 1 320px; font-size: .9rem; line-height: 1.55; }
.cc-banner .cc-text strong { color: #fff; display: block; margin-bottom: .2rem; font-size: 1rem; }
.cc-banner .cc-text a { color: #F6D97A; text-decoration: underline; }
.cc-banner .cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
}
.cc-btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: .5rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
}
.cc-btn-gold { background: #D4AF37; color: #14223d; }
.cc-btn-gold:hover { background: #e6c860; }
.cc-btn-outline { background: transparent; color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.35); }
.cc-btn-outline:hover { border-color: #F6D97A; color: #F6D97A; }
.cc-btn-link { background: transparent; color: rgba(255,255,255,.7); border: none; text-decoration: underline; }
.cc-btn-link:hover { color: #F6D97A; }

/* Modal */
.cc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(10, 16, 30, .6);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.cc-modal-overlay.cc-show { display: flex; }
.cc-modal {
    background: #fff;
    color: #20242e;
    width: 100%;
    max-width: 560px;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.cc-modal-head {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.cc-modal-head i { color: #b58a1b; font-size: 1.4rem; }
.cc-modal-head h3 { margin: 0; font-family: 'Playfair Display', Georgia, serif; color: #1a2b4c; font-size: 1.25rem; }
.cc-modal-body { padding: 1.25rem 1.5rem; overflow-y: auto; }
.cc-opt {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem 0;
    border-bottom: 1px solid #f0ece0;
}
.cc-opt:last-child { border-bottom: none; }
.cc-opt .cc-opt-text { flex: 1; }
.cc-opt h4 { margin: 0 0 .2rem; font-size: .98rem; color: #1a2b4c; }
.cc-opt p { margin: 0; font-size: .85rem; color: #5a606c; line-height: 1.5; }
.cc-switch { position: relative; width: 46px; height: 26px; flex: none; margin-top: .15rem; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider {
    position: absolute;
    inset: 0;
    background: #c8cdd6;
    border-radius: 999px;
    transition: .2s;
    cursor: pointer;
}
.cc-slider::before {
    content: "";
    position: absolute;
    height: 20px; width: 20px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .2s;
}
.cc-switch input:checked + .cc-slider { background: #D4AF37; }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-switch input:disabled + .cc-slider { background: #9aa6b8; cursor: not-allowed; }
.cc-modal-foot {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: flex-end;
}
.cc-modal-foot .cc-btn-gold { color: #14223d; }
.cc-modal-foot .cc-btn-outline { color: #1a2b4c; border-color: #cfd4dc; }
.cc-modal-foot .cc-btn-outline:hover { border-color: #b58a1b; color: #b58a1b; }

/* Floating re-open button */
.cc-reopen {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1900;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,.5);
    background: #0f1b33;
    color: #F6D97A;
    font-size: 1.3rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0,0,0,.3);
}
.cc-reopen.cc-show { display: flex; }

@media (max-width: 575.98px) {
    .cc-banner { padding: 1rem; }
    .cc-banner .cc-actions { width: 100%; }
    .cc-btn { flex: 1 1 auto; text-align: center; }
}
