.cc-root {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 70;
    pointer-events: none;
    font-family: "Outfit", sans-serif;
}

.cc-banner {
    max-width: 54rem;
    margin: 0 auto;
    background: rgba(18, 26, 41, 0.96);
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 1rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.35);
    padding: 1rem;
    pointer-events: auto;
    display: none;
}

.cc-banner.is-visible {
    display: block;
}

.cc-top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.cc-icon {
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 1.8rem;
    color: #65c5c7;
}

.cc-copy h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.cc-copy p {
    margin: 0.5rem 0 0;
    font-size: 0.89rem;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.95);
}

.cc-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cc-btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.18s ease;
}

.cc-btn-primary {
    background: #65c5c7;
    color: #ffffff;
}

.cc-btn-primary:hover {
    background: #50b4b6;
}

.cc-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.26);
    color: #f8fafc;
}

.cc-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cc-btn-ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.4);
    color: #e2e8f0;
}

.cc-btn-ghost:hover {
    border-color: #65c5c7;
    color: #65c5c7;
}

.cc-settings-toggle {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 68;
    pointer-events: auto;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    border-radius: 999px;
    width: 3rem;
    height: 3rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.22);
    cursor: pointer;
    transition: all 0.18s ease;
}

.cc-settings-toggle.is-hidden {
    display: none;
}

.cc-settings-toggle:hover {
    border-color: #65c5c7;
    color: #65c5c7;
}

.cc-settings-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
}

.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 72;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: auto;
}

.cc-modal.is-open {
    display: flex;
}

.cc-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
}

.cc-panel {
    position: relative;
    width: min(38rem, 100%);
    border-radius: 1rem;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.cc-panel-header {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e2e8f0;
}

.cc-panel-header h3 {
    margin: 0;
    font-size: 1.02rem;
    color: #1e293b;
}

.cc-panel-header p {
    margin: 0.5rem 0 0;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.5;
}

.cc-panel-list {
    padding: 0.9rem 1.15rem;
    display: grid;
    gap: 0.85rem;
}

.cc-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    padding: 0.85rem;
}

.cc-option-copy strong {
    display: block;
    color: #0f172a;
    font-size: 0.9rem;
}

.cc-option-copy span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.cc-switch {
    position: relative;
    width: 2.65rem;
    height: 1.45rem;
    display: inline-block;
}

.cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.18s ease;
}

.cc-switch-slider::before {
    content: "";
    position: absolute;
    width: 1.05rem;
    height: 1.05rem;
    left: 0.2rem;
    top: 0.2rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
    transition: transform 0.18s ease;
}

.cc-switch input:checked + .cc-switch-slider {
    background: #65c5c7;
}

.cc-switch input:checked + .cc-switch-slider::before {
    transform: translateX(1.2rem);
}

.cc-switch input:disabled + .cc-switch-slider {
    background: #2d373b;
}

.cc-panel-actions {
    padding: 0.9rem 1.15rem 1.1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.cc-panel .cc-btn-secondary {
    background: #2d373b;
    color: #ffffff;
    border-color: #2d373b;
}

.cc-panel .cc-btn-secondary:hover {
    background: #65c5c7;
    border-color: #65c5c7;
}

.cc-panel .cc-btn-ghost {
    color: #334155;
    border-color: #cbd5e1;
}

.cc-panel .cc-btn-ghost:hover {
    color: #2d373b;
    border-color: #94a3b8;
}

@media (min-width: 1024px) {
    .cc-root {
        left: 1.5rem;
        right: auto;
        bottom: 1.5rem;
        width: min(34rem, calc(100vw - 3rem));
    }

    .cc-banner {
        max-width: none;
        margin: 0;
    }

    .cc-settings-toggle {
        left: 1.5rem;
        bottom: 1.5rem;
    }
}

@media (max-width: 1023px) {
    .cc-settings-toggle {
        left: 0.75rem;
        bottom: 0.75rem;
    }

    .cc-root {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .cc-banner {
        max-width: none;
    }

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

    .cc-actions .cc-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-btn,
    .cc-switch-slider,
    .cc-switch-slider::before,
    .cc-settings-toggle {
        transition: none !important;
    }
}
