:root { --nxn-cc-primary: #0d6efd; }

.nxn-cc-hidden { display: none !important; }

/* ── Banner ──────────────────────────────────────────────────────────── */
.nxn-cc-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 99999;
    background: #fff;
    box-shadow: 0 -2px 16px rgba(0,0,0,.12);
    border-top: 1px solid rgba(0,0,0,.08);
    padding: .9rem 1.5rem;
    animation: nxn-cc-slide-up .3s ease;
}

@keyframes nxn-cc-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.nxn-cc-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.nxn-cc-text {
    flex: 1;
    font-size: .875rem;
    color: #495057;
    line-height: 1.5;
    margin: 0;
}

.nxn-cc-privacy {
    color: var(--nxn-cc-primary);
    text-decoration: underline;
    white-space: nowrap;
}

.nxn-cc-actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.nxn-cc-btn-accept {
    background: var(--nxn-cc-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .5rem 1.25rem;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
}
.nxn-cc-btn-accept:hover { opacity: .85; }

.nxn-cc-btn-settings {
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: .5rem 1.25rem;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, color .15s;
    white-space: nowrap;
}
.nxn-cc-btn-settings:hover { border-color: #adb5bd; color: #343a40; }

/* ── Modal ───────────────────────────────────────────────────────────── */
.nxn-cc-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nxn-cc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}

.nxn-cc-modal-box {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.22);
    width: 90%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    animation: nxn-cc-fade-in .2s ease;
}

@keyframes nxn-cc-fade-in {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1);   }
}

.nxn-cc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.4rem;
    font-size: .95rem;
    font-weight: 700;
    color: #212529;
    border-bottom: 1px solid #e9ecef;
}

.nxn-cc-modal-close {
    background: none;
    border: none;
    font-size: .95rem;
    cursor: pointer;
    color: #6c757d;
    padding: .25rem .45rem;
    border-radius: 6px;
    line-height: 1;
    transition: background .15s;
}
.nxn-cc-modal-close:hover { background: #f1f3f5; }

.nxn-cc-modal-body {
    padding: 1.1rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.nxn-cc-modal-footer {
    padding: 1rem 1.4rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ── Toggle rows ─────────────────────────────────────────────────────── */
.nxn-cc-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .65rem .8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.nxn-cc-toggle-info { flex: 1; }

.nxn-cc-toggle-label {
    font-size: .875rem;
    font-weight: 600;
    color: #212529;
}

.nxn-cc-toggle-desc {
    font-size: .775rem;
    color: #6c757d;
    margin-top: .2rem;
    line-height: 1.4;
}

/* ── Toggle switch ───────────────────────────────────────────────────── */
.nxn-cc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.nxn-cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.nxn-cc-slider {
    position: absolute;
    inset: 0;
    background: #ced4da;
    border-radius: 24px;
    cursor: pointer;
    transition: background .2s;
}

.nxn-cc-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.nxn-cc-switch input:checked + .nxn-cc-slider {
    background: var(--nxn-cc-primary);
}

.nxn-cc-switch input:checked + .nxn-cc-slider::before {
    transform: translateX(20px);
}

.nxn-cc-disabled .nxn-cc-slider {
    cursor: not-allowed;
    opacity: .55;
}

/* ── Widget (floating icon) ──────────────────────────────────────────── */
.nxn-cc-widget {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 99998;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .55;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    padding: 0;
    line-height: 1;
}

.nxn-cc-widget:hover {
    opacity: 1;
    transform: scale(1.12);
    box-shadow: 0 4px 16px rgba(0,0,0,.16);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .nxn-cc-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .nxn-cc-actions {
        width: 100%;
    }
    .nxn-cc-btn-accept,
    .nxn-cc-btn-settings {
        flex: 1;
        text-align: center;
    }
}
