/* =============================================
   Notification Bar – notification-bar.css
   ============================================= */

#nb-bar {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nb-h, 38px);
    background: var(--nb-bg, #1a1a1a);
    color: var(--nb-fc, #ffffff);
    font-size: var(--nb-fs, 14px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    overflow: hidden;
    box-sizing: border-box;
}

/* Clickable overlay link */
.nb-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ── Viewport & slides ─────────────────────── */
.nb-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nb-slide {
    position: absolute;
    width: 100%;
    padding: 0 48px;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.3;
    /* JS sets transform and transition directly */
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    z-index: 2;
}

/* Static (single message) – no animation */
.nb-slide.nb-static {
    position: relative;
    transform: none !important;
    transition: none !important;
}

/* ── Close button ──────────────────────────── */
.nb-close {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 36px;
    background: transparent;
    border: none;
    color: currentColor;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nb-close:hover { opacity: 1; }

/* ── Coupon button shortcode ───────────────── */
.nb-coupon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid currentColor;
    color: inherit;
    font-size: 0.85em;
    font-family: inherit;
    padding: 2px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.2s, color 0.2s;
    vertical-align: middle;
    position: relative;
    z-index: 3;
}

.nb-coupon-btn:hover  { background: rgba(255,255,255,0.15); }
.nb-coupon-btn.nb-copied { background: rgba(255,255,255,0.2); }

/* ── Responsive ────────────────────────────── */
@media (max-width: 600px) {
    #nb-bar {
        height: auto !important;
        min-height: var(--nb-h, 38px);
        padding: 6px 0;
        font-size: var(--nb-fs-mob, 11px);
    }

    .nb-viewport {
        height: auto;
        min-height: var(--nb-h, 38px);
    }

    .nb-slide {
        padding: 0 40px;
    }
}
