/* =========================================================
   NJSB TRADE COMPLIANCE – PREMIUM SYSTEM UI (v1 – FIXED)
   - Removes collapsed body spacing
   - Forces Apply button text to white
   ========================================================= */

/* ================= ROOT SHELL ================= */

.njsb-trade-notice {
    box-sizing: border-box;

    background: radial-gradient(circle at top left, #04232c 0%, #020910 70%);
    color: #e8f1f4;

    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;

    border-left: 9.6px solid rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255,255,255,0.09);
    border-right: 1px solid rgba(255,255,255,0.09);
    border-bottom: 1px solid rgba(255,255,255,0.09);

    box-shadow:
        inset 0 0 8px rgba(0,0,0,0.55),
        0 10px 26px rgba(0,0,0,0.45);

    margin: 2rem 0;
    overflow: hidden;
}

/* ================= HEADER ================= */

.njsb-notice-header {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 18px;
    cursor: pointer;
    user-select: none;

    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.njsb-notice-header h3 {
    margin: 0;
    flex: 1;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

/* ================= ICONS ================= */

.njsb-warning-icon {
    color: #e0c7a0;
    font-size: 1.1rem;
}

.njsb-toggle-icon i {
    font-size: 20px;
    opacity: 0.85;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.njsb-trade-notice:not(.is-open)
.njsb-notice-header:hover
.njsb-toggle-icon i {
    transform: rotate(180deg);
}

.njsb-trade-notice.is-open .njsb-toggle-icon i {
    transform: rotate(180deg);
    opacity: 1;
}

/* ================= BODY ================= */

.njsb-notice-body {
    background: rgba(0,0,0,0.18);
    overflow: hidden;

    transition:
        max-height 0.35s ease,
        opacity 0.25s ease,
        padding 0.25s ease;
}

/* 🔥 FIX: NO SPACE WHEN COLLAPSED */
.njsb-trade-notice:not(.is-open) .njsb-notice-body {
    max-height: 0 !important;
    padding: 0 !important;
    opacity: 0;
}

/* OPEN STATE */
.njsb-trade-notice.is-open .njsb-notice-body {
    padding: 18px;
    opacity: 1;
}

/* ================= GRID ================= */

.njsb-notice-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 24px;
}

/* ================= TEXT ================= */

.njsb-notice-text p {
    margin-top: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.njsb-notice-text ol {
    margin: 10px 0 14px 22px;
}

.njsb-notice-text li {
    margin-bottom: 6px;
}

/* links */
.njsb-notice-text a,
.njsb-notice-body a {
    color: rgb(156,207,227) !important;
    text-decoration: none;
}

.njsb-notice-text a:hover,
.njsb-notice-body a:hover {
    text-decoration: underline;
}

/* ================= RESTRICTED ITEMS ================= */

.restricted-items-list h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.restricted-items-list li {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
}

/* ================= ACTION BAR ================= */

.restricted-product-options {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.restricted-product-options .remove-link {
    color: rgb(156,207,227);
    text-decoration: none;
}

/* 🔥 FIX: BUTTON TEXT MUST STAY WHITE */
.restricted-product-options .apply-button {
    background: #d9be7a;
    color: #ffffff !important;

    padding: 10px 22px;
    font-weight: 700;
    font-size: 0.95rem;

    border-radius: 0;
    text-decoration: none;

    box-shadow: 0 8px 18px rgba(0,0,0,0.55);
}

.restricted-product-options .apply-button:hover {
    box-shadow: 0 12px 26px rgba(0,0,0,0.7);
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
    .njsb-notice-grid {
        grid-template-columns: 1fr;
    }

    .restricted-product-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================= ACCESSIBILITY ================= */

.njsb-notice-header:focus {
    outline: 2px solid rgba(156,207,227,.55);
    outline-offset: 2px;
}
