/* ══════════════════════════════════════════
   COOKIE CONSENT — scoped styles
══════════════════════════════════════════ */

/* ---------- Banner ---------- */
.nxk-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    max-width: 550px;
    width: calc(100% - 48px);
}
.nxk-consent[hidden] {
    display: none;
}
.nxk-consent-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(155deg, #ffffff 0%, #f6f6f8 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    padding: 28px 30px 26px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 30px 60px -28px rgba(15, 23, 42, 0.3);
    animation: nxk-rise 0.35s ease both;
}
@keyframes nxk-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.nxk-consent-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 8px 16px -8px #2563eb;
    color: #fff;
    flex-shrink: 0;
}
.nxk-consent-icon svg {
    width: 20px;
    height: 20px;
}
.nxk-consent-body h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    color: var(--text, #111);
}
.nxk-consent-body p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-muted, #667085);
    margin: 0;
}
.nxk-consent-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.nxk-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nxk-consent-actions .nxk-btn:first-child {
    flex: 1 1 100%;
    text-align: left;
    padding-left: 2px;
}
.nxk-consent-actions .nxk-btn:not(:first-child) {
    flex: 1 1 auto;
}

/* ---------- Shared buttons ---------- */
.nxk-btn {
    flex: 1 1 auto;
    min-width: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
.nxk-consent-actions .nxk-btn {
    max-width: 215px;
}
.nxk-btn:hover {
    transform: translateY(-1px);
}
.nxk-btn-ghost {
    background: transparent;
    color: var(--text-muted, #667085);
    border-color: transparent;
}
.nxk-btn-ghost:hover {
    color: #2563eb;
}
.nxk-btn-light {
    background: #f0f0f2;
    color: var(--text, #111);
}
.nxk-btn-light:hover {
    background: #e6e6ea;
}
.nxk-btn-dark {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #fff;
    box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.55);
}
.nxk-btn-dark:hover {
    box-shadow: 0 14px 26px -10px rgba(37, 99, 235, 0.6);
}

/* ---------- Modal ---------- */
.nxk-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.nxk-modal[hidden] {
    display: none;
}
.nxk-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}
.nxk-modal-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    padding: 32px 32px 26px;
    box-shadow: 0 40px 80px -30px rgba(15, 23, 42, 0.45);
    animation: nxk-pop 0.25s ease both;
}
@keyframes nxk-pop {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.nxk-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #f0f0f2;
    color: var(--text-muted, #667085);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.nxk-modal-close:hover {
    background: #e6e6ea;
    color: var(--text, #111);
}
.nxk-modal-close svg {
    width: 16px;
    height: 16px;
}
.nxk-modal-card h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    padding-right: 28px;
}
.nxk-modal-sub {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted, #667085);
    margin: 0 0 22px;
}
.nxk-modal-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}
.nxk-modal-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.nxk-modal-row:last-child {
    border-bottom: none;
}
.nxk-modal-row-title {
    font-size: 14.5px;
    font-weight: 700;
    margin: 0 0 3px;
}
.nxk-modal-row-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #667085);
    margin: 0;
}

/* ---------- Toggle switch ---------- */
.nxk-toggle {
    flex-shrink: 0;
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #d8dbe2;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 2px;
}
.nxk-toggle-dot {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease;
}
.nxk-toggle.is-on,
.nxk-toggle[aria-checked="true"] {
    background: #2563eb;
}
.nxk-toggle.is-on .nxk-toggle-dot,
.nxk-toggle[aria-checked="true"] .nxk-toggle-dot {
    transform: translateX(18px);
}
.nxk-toggle-locked {
    cursor: default;
    opacity: 0.6;
}

/* ---------- Modal actions ---------- */
.nxk-modal-actions {
    display: flex;
    gap: 10px;
}
.nxk-modal-actions .nxk-btn {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
    .nxk-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
    }
    .nxk-consent-actions {
        flex-direction: column;
    }
    .nxk-consent-actions .nxk-btn {
        width: 100%;
        text-align: center;
    }
    .nxk-modal-card {
        padding: 26px 22px 22px;
        border-radius: 20px;
    }
}