/* ================================================================
   Makali Safaris — Cookie Consent Styles
   ================================================================ */

/* ─── Banner ───────────────────────────────────────────────────── */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 1rem 1.5rem;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 -4px 20px rgba(0,0,0,.35);
}
.cc-banner.cc-visible { transform: translateY(0); }

.cc-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cc-banner-text { flex: 1 1 240px; font-size: .88rem; line-height: 1.5; }
.cc-banner-text p { margin: 0; }
.cc-link { color: #f0a540; text-underline-offset: 3px; }
.cc-link:hover { color: #f5c07a; }

.cc-banner-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ─── Buttons ──────────────────────────────────────────────────── */
.cc-btn {
    border: none;
    border-radius: 6px;
    padding: .45rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.cc-btn-primary {
    background: var(--primary-color, #c8873a);
    color: #fff;
}
.cc-btn-primary:hover { background: #b0732d; }
.cc-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,.35);
    color: #ccc;
}
.cc-btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ─── Preferences overlay ──────────────────────────────────────── */
.cc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.55);
    align-items: center;
    justify-content: center;
}
.cc-overlay.cc-visible { display: flex; }

.cc-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: calc(100% - 2rem);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.cc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem .75rem;
    border-bottom: 1px solid #eee;
}
.cc-modal-title { margin: 0; font-size: 1rem; font-weight: 700; color: #1a1a1a; }
.cc-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0 .25rem;
}
.cc-close:hover { color: #333; }

.cc-modal-body { padding: 1rem 1.5rem; }

.cc-category {
    padding: .9rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.cc-category:last-child { border-bottom: none; }
.cc-category-header {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.cc-category-desc { font-size: .82rem; color: #666; margin: .5rem 0 0; line-height: 1.5; }
.cc-toggle-label { font-size: .8rem; color: #888; }

.cc-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: .4rem;
}
.cc-badge-on { background: #d4edda; color: #155724; }

/* ─── Toggle switch ────────────────────────────────────────────── */
.cc-toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
}
.cc-toggle-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 22px;
    transition: background .25s;
}
.cc-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    left: 3px;
    top: 3px;
    transition: transform .25s;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.cc-toggle-switch input:checked + .cc-slider { background: var(--primary-color, #c8873a); }
.cc-toggle-switch input:checked + .cc-slider::before { transform: translateX(18px); }

.cc-modal-footer {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    padding: .75rem 1.5rem 1.25rem;
    border-top: 1px solid #eee;
}
.cc-modal-footer .cc-btn-outline {
    border-color: #ccc;
    color: #555;
    background: transparent;
}
.cc-modal-footer .cc-btn-outline:hover { background: #f5f5f5; }
