/* ============================================================
   CONSENT BANNER — Google Consent Mode v2
   Fixed bottom bar with expandable category panel.
   ============================================================ */
.cb-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 600;
    background: #251f25;
    color: rgba(255,255,255,0.85);
    font-family: 'Montserrat', sans-serif;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
}
.cb-banner.is-visible {
    transform: translateY(0);
}

/* ── Main row ─────────────────────────────────────────────── */
.cb-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cb-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.6;
    min-width: 200px;
}
.cb-icon {
    color: #A97708;
    margin-right: 8px;
    font-size: 15px;
}
.cb-text a {
    color: #d4a520;
    text-decoration: underline;
}
.cb-text a:hover {
    color: #e8c845;
}

/* ── Buttons ──────────────────────────────────────────────── */
.cb-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cb-btn {
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.cb-btn-accept {
    background: #A97708;
    color: #fff;
}
.cb-btn-accept:hover {
    background: #936807;
}
.cb-btn-customize {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
}
.cb-btn-customize:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.cb-btn-deny {
    background: transparent;
    color: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.12);
}
.cb-btn-deny:hover {
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.25);
}

/* ── Expandable details panel ─────────────────────────────── */
.cb-details {
    background: #1e1a1e;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.cb-details.is-open {
    max-height: 400px;
    padding: 20px 24px;
}
.cb-details-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.cb-category {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cb-category label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
}
.cb-category span {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
    padding-left: 42px;
}

/* ── Toggle switch ────────────────────────────────────────── */
.cb-toggle {
    position: relative;
    width: 32px;
    height: 18px;
    flex-shrink: 0;
}
.cb-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.cb-toggle-track {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 9px;
    transition: background 0.2s;
    cursor: pointer;
}
.cb-toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.cb-toggle input:checked + .cb-toggle-track {
    background: #A97708;
}
.cb-toggle input:checked + .cb-toggle-track::after {
    transform: translateX(14px);
}
.cb-toggle input:disabled + .cb-toggle-track {
    opacity: 0.5;
    cursor: not-allowed;
}
.cb-toggle input:disabled:checked + .cb-toggle-track {
    background: #6a5a30;
}

/* ── Save preferences button (inside details) ────────────── */
.cb-details-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
}
.cb-btn-save {
    background: #A97708;
    color: #fff;
}
.cb-btn-save:hover {
    background: #936807;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .cb-inner {
        flex-direction: column;
        text-align: center;
        padding: 14px 16px;
        gap: 14px;
    }
    .cb-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .cb-btn {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
        font-size: 12px;
    }
    .cb-details-inner {
        grid-template-columns: 1fr;
    }
    .cb-category span {
        padding-left: 42px;
    }
    .cb-details-actions {
        justify-content: center;
    }
}
