/* ─────────────────────────────────────────────
   Banner strip
   ───────────────────────────────────────────── */

#banner-container {
    width: 100%;
}

.banner-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    /* margin provides the outer spacing around the banner.
       Keeping it on the item (not the container) means spacing and content
       are the same element — they cannot appear at different times. */
    margin: 0.625rem 1.25rem;
    padding-block: 0.75rem;
    /* Uniform 1px border on all 4 sides; color set per severity */
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ── Severity variants ──
   Each severity drives: background, uniform 1px border (accent color),
   text, and icon color. No left-only accent stripe. */

.banner--info {
    background-color: #EFF6FF;
    border-color: #3B82F6;
    color: #1E40AF;
}

.banner--info .banner-icon {
    color: #3B82F6;
}

.banner--warning {
    background-color: #FFFBEB;
    border-color: #F59E0B;
    color: #92400E;
}

.banner--warning .banner-icon {
    color: #F59E0B;
}

.banner--critical {
    background-color: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

.banner--critical .banner-icon {
    color: #EF4444;
}

.banner--success {
    background-color: #F0FDF4;
    border-color: #22C55E;
    color: #14532D;
}

.banner--success .banner-icon {
    color: #22C55E;
}

/* ── Icon ── */

.banner-icon {
    flex-shrink: 0;
    font-size: 1.375rem;
    line-height: 1;
    display: flex;
    align-items: center;
    padding-inline-start: 1.25rem;
    padding-inline-end: 0.5rem;
}

/* ── Body ── */

.banner-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.banner-title {
    font-weight: 600;
}

.banner-message {
    font-weight: 400;
    word-break: break-word;
}

/* ── Controls (dismiss + pagination) ──
   Separated from the body by a vertical divider that floats away from the
   banner's top and bottom edges via a ::before pseudo-element, rather than
   a border-left which would stretch the full height of the flex row. */

.banner-controls {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding-inline-start: 0.875rem;
    padding-inline-end: 1.25rem;
    position: relative;
}

.banner-controls::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.375rem;
    bottom: 0.375rem;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.15);
}

/* Pagination: ▲ stacked above counter stacked above ▼ */
.banner-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── Counter ── */

.banner-counter {
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
    padding: 0.15rem 0;
    opacity: 0.85;
    text-align: center;
}

/* ── Buttons ── */

.banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    color: inherit;
    opacity: 0.65;
    font-size: 0.7rem;
    transition: opacity 0.15s, background-color 0.15s;
}

.banner-btn:hover:not(:disabled) {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.08);
}

.banner-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* Dismiss button: slightly larger icon than nav arrows, and the same
   inline margin as .banner-icon's padding-inline for visual symmetry */
.banner-dismiss {
    font-size: 0.875rem;
    width: 1.625rem;
    height: 1.625rem;
    margin-inline: 0.5rem;
}
