/* Monumental Studios — consent banner & preferences dialog */
.cc-root {
    --cc-bg: #1b1b36;
    --cc-panel: #15152a;
    --cc-text: #f5f2eb;
    --cc-muted: #a9a9c4;
    --cc-gold: #e8b660;
    --cc-rose: #f02d6e;
    --cc-border: rgba(201, 150, 58, 0.3);
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--cc-text);
}

.cc-root [hidden] {
    display: none !important;
}

.cc-banner {
    position: fixed;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 10000;
    max-width: 880px;
    margin: 0 auto;
    background: var(--cc-bg);
    border: 1px solid var(--cc-border);
    border-radius: 6px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: cc-in .35s cubic-bezier(.16, 1, .3, 1);
}

@keyframes cc-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.cc-title {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--cc-text);
    margin: 0 0 .5rem;
}

.cc-text {
    font-size: .88rem;
    line-height: 1.65;
    color: var(--cc-muted);
    margin: 0;
}

.cc-text a,
.cc-cat a {
    color: var(--cc-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

/* Accept and Reject share one style on purpose: equal prominence (EDPB Guidelines 03/2022). */
.cc-btn {
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .8rem 1.6rem;
    min-width: 150px;
    border-radius: 3px;
    cursor: pointer;
    background: var(--cc-text);
    color: #06060c;
    border: 1px solid var(--cc-text);
    transition: background .2s, color .2s, border-color .2s;
}

.cc-btn:hover {
    background: var(--cc-gold);
    border-color: var(--cc-gold);
}

.cc-btn-ghost {
    background: transparent;
    color: var(--cc-text);
    border-color: rgba(255, 255, 255, .35);
}

.cc-btn-ghost:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--cc-text);
    border-color: var(--cc-text);
}

.cc-btn:focus-visible,
.cc-x:focus-visible,
.cc-switch:focus-visible,
.cc-panel:focus-visible {
    outline: 2px solid var(--cc-gold);
    outline-offset: 2px;
}

.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(4, 4, 8, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cc-panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--cc-bg);
    border: 1px solid var(--cc-border);
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.cc-panel:focus {
    outline: none;
}

.cc-x {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .1);
    background: transparent;
    color: var(--cc-muted);
    cursor: pointer;
    font-size: .9rem;
}

.cc-x:hover {
    color: #fff;
    background: var(--cc-rose);
    border-color: var(--cc-rose);
}

.cc-cats {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.cc-cat {
    background: var(--cc-panel);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 4px;
    padding: 1rem 1.1rem;
}

.cc-cat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cc-cat-head label {
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
}

.cc-always {
    display: inline-block;
    margin-left: .4rem;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cc-gold);
}

.cc-cat p {
    font-size: .82rem;
    line-height: 1.6;
    color: var(--cc-muted);
    margin: .5rem 0 0;
}

.cc-switch {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .15);
    position: relative;
    cursor: pointer;
    transition: background .2s;
    margin: 0;
}

.cc-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s;
}

.cc-switch:checked {
    background: var(--cc-rose);
}

.cc-switch:checked::after {
    transform: translateX(20px);
}

.cc-switch:disabled {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .cc-banner {
        left: .75rem;
        right: .75rem;
        bottom: .75rem;
        padding: 1.25rem;
    }

    .cc-actions {
        flex-direction: column;
    }

    .cc-btn {
        width: 100%;
    }

    .cc-panel {
        padding: 1.5rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-banner {
        animation: none;
    }

    .cc-switch,
    .cc-switch::after {
        transition: none;
    }
}
