/* ──────────────────────────────────────────
   Cookie Consent Banner  — nx-cookie
   Colors follow the site CSS variables set
   by color.php / style.css root block.
   ────────────────────────────────────────── */

.nx-cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 0 16px 16px;
    pointer-events: none;

    /* slide-in animation */
    transform: translateY(110%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}

.nx-cookie.nx-cookie--show {
    transform: translateY(0);
    pointer-events: auto;
}

.nx-cookie.nx-cookie--hide {
    transform: translateY(110%);
    pointer-events: none;
}

/* ── inner card ── */
.nx-cookie__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 56px 20px 22px; /* right padding for close btn */
    background: var(--c-card, #0d1322);
    border: 1px solid var(--c-border, rgba(255,255,255,.09));
    border-radius: 16px;
    box-shadow: 0 -4px 40px rgba(0,0,0,.55), 0 2px 0 var(--theme-color, #63B3ED) inset;
}

/* ── icon ── */
.nx-cookie__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--theme-color, #63B3ED);
    background: rgba(99,179,237,.1);
    border: 1px solid rgba(99,179,237,.25);
}

/* ── text ── */
.nx-cookie__body {
    flex: 1;
    min-width: 0;
}

.nx-cookie__title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--c-text, #E2E8F0);
    margin: 0 0 4px;
    letter-spacing: .01em;
}

.nx-cookie__text {
    font-size: .83rem;
    color: var(--c-text2, #94A3B8);
    line-height: 1.55;
    margin: 0;
}

/* ── action buttons ── */
.nx-cookie__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nx-cookie__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 18px;
    border-radius: 9px;
    border: 1px solid var(--c-border, rgba(255,255,255,.09));
    background: transparent;
    color: var(--c-text2, #94A3B8);
    font-size: .83rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .18s, border-color .18s, background .18s;
    white-space: nowrap;
}
.nx-cookie__link:hover {
    color: var(--theme-color, #63B3ED);
    border-color: var(--theme-color, #63B3ED);
    background: rgba(99,179,237,.06);
    text-decoration: none;
}

.nx-cookie__agree {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border-radius: 9px;
    border: none;
    background: var(--theme-color, #63B3ED);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .18s, transform .15s;
    white-space: nowrap;
}
.nx-cookie__agree:hover {
    opacity: .88;
    transform: translateY(-1px);
}

/* ── close (×) button ── */
.nx-cookie__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--c-text2, #94A3B8);
    font-size: .8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
    line-height: 1;
}
.nx-cookie__close:hover {
    color: var(--c-text, #E2E8F0);
    background: rgba(255,255,255,.06);
}

/* ── responsive ── */
@media (max-width: 768px) {
    .nx-cookie__inner {
        flex-wrap: wrap;
        padding: 18px 46px 16px 18px;
        gap: 14px;
    }
    .nx-cookie__icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    .nx-cookie__actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .nx-cookie {
        padding: 0 10px 10px;
    }
    .nx-cookie__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 40px 16px 16px;
    }
    .nx-cookie__icon {
        display: none;
    }
    .nx-cookie__actions {
        width: 100%;
        gap: 8px;
    }
    .nx-cookie__link,
    .nx-cookie__agree {
        flex: 1;
        justify-content: center;
        padding: 9px 12px;
    }
}

/* ── legacy selectors kept for backward compat ── */
.cookie-modal { display: none !important; } /* replaced by .nx-cookie */
.image-circle { width:50px;height:50px;border-radius:50%;object-fit:cover; }
.line-clamp { display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; }
.line { line-height:1rem; }
