/* WNBS Front CSS v2.4.3 */

/* ── Floating widget ────────────────────────────────────────── */
/*
 * LAYOUT (v2.4.3):
 *
 * Widget is position:fixed, RIGHT:0 anchored.
 * HTML order: TAB (left) | PANEL (right)
 *
 * The tab sits on the LEFT edge of the banner.
 * The whole widget slides as ONE UNIT via translateX:
 *   Open   → translateX(0)           full widget visible
 *   Closed → translateX(panelWidth)  only tab peeks out at left of right edge
 *
 * This means the tab is ALWAYS locked to the banner's left edge.
 * No flex-reflow. No separate movement.
 */
#wnbs-widget {
    position: fixed;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    pointer-events: none;
    transition: transform .35s ease;
    will-change: transform;
}
#wnbs-widget * { pointer-events: auto; }

/* Closed: slide right so only the tab strip peeks out */
#wnbs-widget.wnbs-is-closed {
    transform: translateX(var(--wnbs-panel-w, 260px));
}

/* Open: fully visible */
#wnbs-widget.wnbs-is-open {
    transform: translateX(0);
}

/* ── Tab (vertical toggle button) ─────────────────────────── */
/* Tab is the FIRST/LEFT child — sits on banner's left edge    */
#wnbs-tab-wrap {
    position: relative;
    flex-shrink: 0;
    order: -1; /* always first in flex row = leftmost */
}

#wnbs-tab {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 700;
    padding: 12px 8px;
    cursor: pointer;
    line-height: 1.3;
    text-align: center;
    user-select: none;
    white-space: pre;
    flex-shrink: 0;
}

#wnbs-badge {
    position: absolute;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    top: -6px;
    right: -6px; /* badge on right side of tab */
	margin-right: 22px;
}

/* ── Panel ──────────────────────────────────────────────────── */
/* Panel is to the RIGHT of the tab                             */
#wnbs-panel {
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
}

#wnbs-widget.wnbs-is-closed #wnbs-panel {
    pointer-events: none;
}

#wnbs-panel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ── Slide track & slides ───────────────────────────────────── */
.wnbs-track {
    display: flex;
    height: 100%;
    transition: transform .4s ease;
    will-change: transform;
}

.wnbs-slide {
    flex-shrink: 0;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.wnbs-slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    display: block;
}

/* ── Label strip ─────────────────────────────────────────────── */
.wnbs-slide-label {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 0 0 6px 0;
    line-height: 1.4;
    pointer-events: none;
    white-space: nowrap;
    max-width: 75%;
    overflow: hidden;
    text-overflow: ellipsis;
}

#wnbs-widget.wnbs-is-open .wnbs-slide-label {
    display: none !important;
}
#wnbs-widget.wnbs-is-closed .wnbs-track:not(.wnbs-label-hidden) .wnbs-slide-label {
    display: block !important;
}
.wnbs-label-hidden .wnbs-slide-label {
    display: none !important;
}

.wnbs-slide a   { display: block; width: 100%; height: 100%; }
.wnbs-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Navigation dots ────────────────────────────────────────── */
#wnbs-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
    pointer-events: auto;
}
.wnbs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s;
    display: inline-block;
}

/* ── Arrow buttons ──────────────────────────────────────────── */
#wnbs-prev, #wnbs-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.4);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    z-index: 3;
    border-radius: 3px;
}
#wnbs-prev { left: 4px; }
#wnbs-next { right: 4px; }

/* ── Inline shortcode embed ─────────────────────────────────── */
.wnbs-inline-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.wnbs-inline-wrap .wnbs-track { display: flex; transition: transform .4s ease; }
.wnbs-inline-wrap .wnbs-slide { min-width: 100%; }
.wnbs-inline-wrap .wnbs-slide-inner { border-radius: 4px; }
.wnbs-inline-wrap .wnbs-slide img { width: 100%; display: block; }
.wnbs-inline-wrap .wnbs-dots-inline { text-align: center; padding: 8px 0; }
