/*
 * Notifications (SS-305): the bell, the notifications page and the live
 * pop-ups, in Shoprite red and slate. Built on the theme's variables, so it
 * follows light and dark mode; nothing here depends on a page's own CSS.
 */

:root {
    --sr-red: #d50019;
    --sr-red-strong: #a30013;
    --sr-red-soft: rgba(213, 0, 25, 0.08);
    --sr-red-ring: rgba(213, 0, 25, 0.28);
    --sr-slate: #333b46;
    --sr-slate-deep: #262c34;
    --sr-ink: var(--vz-emphasis-color, #1f2328);
    --sr-text: var(--vz-body-color, #495057);
    --sr-muted: var(--vz-secondary-color, #6b7280);
    --sr-surface: var(--vz-secondary-bg, #ffffff);
    --sr-surface-sunk: var(--vz-tertiary-bg, #f3f6f9);
    --sr-line: var(--vz-border-color, #e3e8ee);
    --sr-unread: rgba(213, 0, 25, 0.045);
    --sr-hover: rgba(51, 59, 70, 0.045);
    --sr-shadow: 0 18px 48px rgba(25, 30, 37, 0.18), 0 2px 6px rgba(25, 30, 37, 0.08);
    --sr-radius: 12px;

    --sr-tone-brand: #d50019;
    --sr-tone-brand-bg: rgba(213, 0, 25, 0.1);
    --sr-tone-info: #2563c9;
    --sr-tone-info-bg: rgba(37, 99, 201, 0.1);
    --sr-tone-success: #1e9e5a;
    --sr-tone-success-bg: rgba(30, 158, 90, 0.12);
    --sr-tone-warning: #e0a800;
    --sr-tone-warning-bg: rgba(255, 193, 7, 0.17);
    --sr-tone-danger: #d50019;
    --sr-tone-danger-bg: rgba(213, 0, 25, 0.1);
    --sr-tone-slate: #4b5563;
    --sr-tone-slate-bg: rgba(75, 85, 99, 0.1);
}

[data-bs-theme="dark"] {
    --sr-red: #ff4d63;
    --sr-red-strong: #ff7586;
    --sr-red-soft: rgba(255, 77, 99, 0.12);
    --sr-red-ring: rgba(255, 77, 99, 0.35);
    --sr-unread: rgba(255, 77, 99, 0.07);
    --sr-hover: rgba(255, 255, 255, 0.04);
    --sr-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);

    --sr-tone-brand: #ff6b7e;
    --sr-tone-brand-bg: rgba(255, 107, 126, 0.14);
    --sr-tone-info: #7aa7ff;
    --sr-tone-info-bg: rgba(122, 167, 255, 0.14);
    --sr-tone-success: #4cd39b;
    --sr-tone-success-bg: rgba(76, 211, 155, 0.13);
    --sr-tone-warning: #ffd24d;
    --sr-tone-warning-bg: rgba(255, 210, 77, 0.14);
    --sr-tone-danger: #ff4d63;
    --sr-tone-danger-bg: rgba(255, 77, 99, 0.14);
    --sr-tone-slate: #aab2bf;
    --sr-tone-slate-bg: rgba(170, 178, 191, 0.12);
}

/* ------------------------------------------------------------------ */
/* Shared pieces                                                       */
/* ------------------------------------------------------------------ */

.sr-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 19px;
    color: var(--sr-tone, var(--sr-tone-slate));
    background: var(--sr-tone-bg, var(--sr-tone-slate-bg));
}

.sr-icon--lg {
    width: 52px;
    height: 52px;
    font-size: 25px;
}

[data-tone="brand"] { --sr-tone: var(--sr-tone-brand); --sr-tone-bg: var(--sr-tone-brand-bg); }
[data-tone="info"] { --sr-tone: var(--sr-tone-info); --sr-tone-bg: var(--sr-tone-info-bg); }
[data-tone="success"] { --sr-tone: var(--sr-tone-success); --sr-tone-bg: var(--sr-tone-success-bg); }
[data-tone="warning"] { --sr-tone: var(--sr-tone-warning); --sr-tone-bg: var(--sr-tone-warning-bg); }
[data-tone="danger"] { --sr-tone: var(--sr-tone-danger); --sr-tone-bg: var(--sr-tone-danger-bg); }
[data-tone="slate"] { --sr-tone: var(--sr-tone-slate); --sr-tone-bg: var(--sr-tone-slate-bg); }

.sr-segment {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border-radius: 999px;
    background: var(--sr-surface-sunk);
    border: 1px solid var(--sr-line);
}

.sr-segment__option {
    border: 0;
    background: transparent;
    color: var(--sr-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sr-segment__option:hover {
    color: var(--sr-ink);
}

.sr-segment__option[aria-selected="true"] {
    background: var(--sr-surface);
    color: var(--sr-ink);
    box-shadow: 0 1px 2px rgba(25, 30, 37, 0.12), 0 0 0 1px var(--sr-line);
}

.sr-segment__option:focus-visible,
.sr-chip:focus-visible,
.sr-btn:focus-visible,
.sr-item:focus-visible,
.sr-item__action:focus-visible,
.sr-bell__mark-all:focus-visible,
.sr-bell__footer:focus-visible,
.sr-toast__close:focus-visible,
.sr-toast__open:focus-visible,
.sr-pill-button:focus-visible,
.sr-detail__link:focus-visible,
.sr-alerts__close:focus-visible,
.sr-alert__action:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--sr-red-ring);
}

.sr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    padding: 9px 14px;
    cursor: pointer;
    background: var(--sr-red);
    color: #fff;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.sr-btn:hover {
    background: var(--sr-red-strong);
}

.sr-btn[disabled] {
    opacity: 0.5;
    cursor: default;
}

.sr-btn--ghost {
    background: transparent;
    color: var(--sr-text);
    border-color: var(--sr-line);
}

.sr-btn--ghost:hover {
    background: var(--sr-hover);
    color: var(--sr-ink);
}

.sr-btn--danger {
    color: var(--sr-tone-danger);
}

.sr-btn--on-dark {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
}

.sr-btn--on-dark:hover {
    background: rgba(255, 255, 255, 0.18);
}

.sr-btn--on-dark[disabled]:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sr-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.sr-live__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4cd39b;
    box-shadow: 0 0 0 0 rgba(76, 211, 155, 0.6);
    animation: sr-pulse 2.4s ease-out infinite;
}

@keyframes sr-pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 211, 155, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(76, 211, 155, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 211, 155, 0); }
}

/* ------------------------------------------------------------------ */
/* One notification in a list                                          */
/* ------------------------------------------------------------------ */

.sr-group {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 18px 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sr-muted);
    background: var(--sr-surface);
}

.sr-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.sr-item + .sr-item {
    border-top: 1px solid var(--sr-line);
}

.sr-item:hover {
    background: var(--sr-hover);
    color: inherit;
}

.sr-item.is-unread {
    background: var(--sr-unread);
}

.sr-item.is-unread:hover {
    background: rgba(213, 0, 25, 0.07);
}

.sr-item.is-new {
    animation: sr-arrive 1.6s ease-out;
}

@keyframes sr-arrive {
    0% { background: rgba(213, 0, 25, 0.16); }
    100% { background: var(--sr-unread); }
}

.sr-item__main {
    min-width: 0;
    flex: 1 1 auto;
}

.sr-item__title {
    display: block;
    margin: 0 0 2px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--sr-ink);
}

/* The title is the link (or, on the page, the button that opens the
   detail), stretched over the whole row; the check box and the mark read
   button sit above it */
.sr-item__link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13.5px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.sr-item__link:hover {
    color: var(--sr-ink);
}

.sr-item__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.sr-item__link:focus {
    outline: none;
}

.sr-item:has(.sr-item__link:focus-visible) {
    box-shadow: inset 0 0 0 2px var(--sr-red-ring);
}

.sr-item__select,
.sr-item__action {
    position: relative;
    z-index: 1;
}

.sr-item.is-unread .sr-item__title {
    font-weight: 600;
}

.sr-item__body {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--sr-text);
    overflow-wrap: anywhere;
}

.sr-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-top: 5px;
    font-size: 11.5px;
    color: var(--sr-muted);
}

.sr-item__meta > * + *::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

.sr-item__side {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-top: 3px;
}

.sr-item__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--sr-red);
    box-shadow: 0 0 0 3px var(--sr-red-soft);
}

.sr-item:not(.is-unread) .sr-item__dot {
    visibility: hidden;
}

.sr-item__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--sr-muted);
    font-size: 16px;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.sr-item:hover .sr-item__action,
.sr-item:focus-within .sr-item__action,
.sr-item__action:focus-visible {
    opacity: 1;
}

.sr-item__action:hover {
    background: var(--sr-surface-sunk);
    color: var(--sr-ink);
}

@media (hover: none) {
    .sr-item__action {
        opacity: 1;
    }
}

/* Loading, empty and failed states */

.sr-skeleton {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
}

.sr-skeleton__circle,
.sr-skeleton__line {
    background: linear-gradient(90deg, var(--sr-surface-sunk) 0%, var(--sr-line) 50%, var(--sr-surface-sunk) 100%);
    background-size: 200% 100%;
    animation: sr-shimmer 1.3s ease-in-out infinite;
}

.sr-skeleton__circle {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 50%;
}

.sr-skeleton__lines {
    flex: 1 1 auto;
    display: grid;
    gap: 8px;
    padding-top: 4px;
}

.sr-skeleton__line {
    height: 10px;
    border-radius: 5px;
}

.sr-skeleton__line:nth-child(1) { width: 55%; }
.sr-skeleton__line:nth-child(2) { width: 90%; }
.sr-skeleton__line:nth-child(3) { width: 30%; }

@keyframes sr-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.sr-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px 40px;
    color: var(--sr-muted);
}

.sr-empty__art {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 50%;
    font-size: 28px;
    color: var(--sr-red);
    background: radial-gradient(circle at 30% 30%, rgba(213, 0, 25, 0.16), rgba(213, 0, 25, 0.05));
}

.sr-empty__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sr-ink);
}

.sr-empty__text {
    margin: 0;
    max-width: 30ch;
    font-size: 13px;
    line-height: 1.5;
}

.sr-empty .sr-btn {
    margin-top: 14px;
}

/* ------------------------------------------------------------------ */
/* The bell                                                            */
/* ------------------------------------------------------------------ */

.sr-bell__badge {
    background: var(--sr-red);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    padding: 3px 5px;
    box-shadow: 0 0 0 2px var(--vz-topbar-bg, #fff);
}

.sr-bell__badge.is-bumped {
    animation: sr-bump 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sr-bump {
    0% { transform: translate(-50%, -50%) scale(1); }
    40% { transform: translate(-50%, -50%) scale(1.35); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.sr-bell__button.is-ringing .bx-bell {
    animation: sr-ring 0.9s ease-in-out;
    transform-origin: 50% 2px;
}

@keyframes sr-ring {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-12deg); }
    45% { transform: rotate(9deg); }
    60% { transform: rotate(-6deg); }
    75% { transform: rotate(3deg); }
}

.sr-bell__menu {
    width: 420px;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    border: 1px solid var(--sr-line);
    border-radius: var(--sr-radius);
    background: var(--sr-surface);
    box-shadow: var(--sr-shadow);
}

.sr-bell__menu.show {
    animation: sr-drop 0.16s ease-out;
}

@keyframes sr-drop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Under the top bar, right aligned (the template's top bar menus assume
   Popper's placement and pull the menu up by 13px) */
.topbar-head-dropdown .dropdown-menu.sr-bell__menu.show {
    top: calc(100% - 6px) !important;
    right: 0;
    left: auto;
    margin: 0;
}

.sr-bell__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 14px;
    color: #fff;
    border-bottom: 3px solid #d50019;
    background:
        radial-gradient(420px 160px at 100% -40%, rgba(213, 0, 25, 0.45), transparent 65%),
        linear-gradient(135deg, var(--sr-slate-deep) 0%, var(--sr-slate) 70%, #3f4855 100%);
}

.sr-bell__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-width: 0;
}

.sr-bell__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.sr-bell__new {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    background: #d50019;
    color: #fff;
}

.sr-bell__mark-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.sr-bell__mark-all:hover {
    background: rgba(255, 255, 255, 0.16);
}

.sr-bell__mark-all[disabled] {
    opacity: 0.45;
    cursor: default;
}

.sr-bell__mark-all[disabled]:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sr-bell__menu .sr-segment {
    margin: 12px 18px 4px;
}

.sr-bell__list {
    max-height: min(440px, calc(100vh - 260px));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sr-bell__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    border-top: 1px solid var(--sr-line);
    font-size: 13px;
    font-weight: 500;
    color: var(--sr-red);
    text-decoration: none;
    background: var(--sr-surface);
    transition: background-color 0.15s ease;
}

.sr-bell__footer:hover {
    background: var(--sr-red-soft);
    color: var(--sr-red-strong);
}

.sr-menu-count {
    background: var(--sr-red);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
}

/* On a phone the bell opens as a sheet under the top bar */
@media (max-width: 575.98px) {
    .sr-bell {
        position: static !important;
    }

    .topbar-head-dropdown .dropdown-menu.sr-bell__menu,
    .topbar-head-dropdown .dropdown-menu.sr-bell__menu.show {
        position: fixed !important;
        top: calc(var(--vz-header-height, 70px) + 4px) !important;
        left: 8px !important;
        right: 8px !important;
        width: auto;
        max-width: none;
        margin: 0;
        transform: none !important;
    }

    .sr-bell__list {
        max-height: calc(100vh - var(--vz-header-height, 70px) - 190px);
    }

    .sr-bell__mark-all span {
        display: none;
    }
}

/* ------------------------------------------------------------------ */
/* Live pop-ups                                                        */
/* ------------------------------------------------------------------ */

/* Top right, under the bell */
.sr-toasts {
    position: fixed;
    top: calc(var(--vz-header-height, 70px) + 12px);
    right: 20px;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 380px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - var(--vz-header-height, 70px) - 24px);
    pointer-events: none;
}

.sr-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    border: 1px solid var(--sr-line);
    border-radius: var(--sr-radius);
    background: var(--sr-surface);
    box-shadow: var(--sr-shadow);
    pointer-events: auto;
    animation: sr-toast-in 0.28s cubic-bezier(0.21, 1.02, 0.73, 1);
}

.sr-toast.is-leaving {
    animation: sr-toast-out 0.2s ease-in forwards;
}

@keyframes sr-toast-in {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes sr-toast-out {
    to { opacity: 0; transform: translateX(16px); }
}

.sr-toast__main {
    flex: 1 1 auto;
    min-width: 0;
}

.sr-toast__eyebrow {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sr-red);
}

.sr-toast__title {
    margin: 0 0 2px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sr-ink);
}

.sr-toast__body {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--sr-text);
    overflow-wrap: anywhere;
}

.sr-toast__open {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--sr-red);
    text-decoration: none;
    cursor: pointer;
}

.sr-toast__open:hover {
    color: var(--sr-red-strong);
}

.sr-toast__close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--sr-muted);
    font-size: 16px;
    cursor: pointer;
}

.sr-toast__close:hover {
    background: var(--sr-surface-sunk);
    color: var(--sr-ink);
}

@media (max-width: 575.98px) {
    .sr-toasts {
        top: calc(var(--vz-header-height, 70px) + 8px);
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
    }
}

/* ------------------------------------------------------------------ */
/* The dashboard's "Action needed" pop-up (a centred modal)            */
/* ------------------------------------------------------------------ */

.sr-alerts-modal .modal-dialog {
    max-width: 480px;
}

.sr-alerts.modal-content {
    overflow: hidden;
    border: 0;
    border-radius: var(--sr-radius);
    background: var(--sr-surface);
    box-shadow: var(--sr-shadow);
}

.sr-alerts__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 12px 16px;
    color: #fff;
    border-bottom: 3px solid #d50019;
    background:
        radial-gradient(360px 140px at 100% -40%, rgba(213, 0, 25, 0.5), transparent 65%),
        linear-gradient(135deg, var(--sr-slate-deep) 0%, var(--sr-slate) 70%, #3f4855 100%);
}

.sr-alerts__badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 19px;
    color: #fff;
    background: #d50019;
    box-shadow: 0 0 0 4px rgba(213, 0, 25, 0.25);
}

.sr-alerts__heading {
    flex: 1 1 auto;
    min-width: 0;
}

.sr-alerts__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.sr-alerts__lead {
    margin: 1px 0 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
}

.sr-alerts__close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    cursor: pointer;
}

.sr-alerts__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sr-alerts__list {
    margin: 0;
    padding: 0;
    list-style: none;
    overscroll-behavior: contain;
}

.sr-alerts__list.modal-body {
    padding: 4px 0;
}

.sr-alert {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
}

.sr-alert + .sr-alert {
    border-top: 1px solid var(--sr-line);
}

.sr-alert__main {
    flex: 1 1 auto;
    min-width: 0;
}

.sr-alert__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.sr-alert__title {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--sr-ink);
    overflow-wrap: anywhere;
}

.sr-alert__pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--sr-tone);
    background: var(--sr-tone-bg);
}

.sr-alert__meta {
    margin: 1px 0 0;
    font-size: 12px;
    color: var(--sr-muted);
}

.sr-alert__text {
    margin: 6px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--sr-text);
}

.sr-alert__action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--sr-red);
    text-decoration: none;
}

.sr-alert__action:hover {
    color: var(--sr-red-strong);
}

.sr-alerts__foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--sr-line);
    background: var(--sr-surface-sunk);
}

.sr-alerts__foot .sr-btn {
    padding: 8px 12px;
}

/* ------------------------------------------------------------------ */
/* The notifications page                                              */
/* ------------------------------------------------------------------ */

.sr-inbox__hero {
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: var(--sr-radius);
}

.sr-inbox__hero-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 26px 28px 24px;
}

.sr-inbox__title {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.sr-inbox__lead {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.sr-inbox__hero-side {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sr-inbox__stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

.sr-inbox__stat-value {
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.sr-inbox__body {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 20px;
    align-items: start;
}

.sr-inbox__list-pane,
.sr-inbox__detail {
    border: 1px solid var(--sr-line);
    border-radius: var(--sr-radius);
    background: var(--sr-surface);
    box-shadow: 0 1px 2px rgba(25, 30, 37, 0.04);
}

.sr-inbox__list-pane {
    overflow: hidden;
}

.sr-inbox__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--sr-line);
}

.sr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sr-chip {
    border: 1px solid var(--sr-line);
    border-radius: 999px;
    padding: 6px 12px;
    background: var(--sr-surface);
    color: var(--sr-text);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sr-chip:hover {
    border-color: var(--sr-red-ring);
    color: var(--sr-ink);
}

.sr-chip[aria-pressed="true"] {
    border-color: var(--sr-red);
    background: var(--sr-red-soft);
    color: var(--sr-red);
}

.sr-inbox__bulk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--sr-line);
    background: var(--sr-surface-sunk);
    font-size: 13px;
    color: var(--sr-ink);
}

.sr-inbox__bulk[hidden] {
    display: none;
}

.sr-inbox__bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sr-inbox__bulk-actions .sr-btn {
    padding: 7px 10px;
    background: var(--sr-surface);
}

.sr-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.sr-check__input {
    position: absolute;
    opacity: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.sr-check__box {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--sr-muted);
    border-radius: 5px;
    background: var(--sr-surface);
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.sr-check__input:checked + .sr-check__box {
    border-color: var(--sr-red);
    background: var(--sr-red);
}

.sr-check__input:checked + .sr-check__box::after {
    content: "";
    width: 9px;
    height: 5px;
    margin-top: -2px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.sr-check__input:indeterminate + .sr-check__box {
    border-color: var(--sr-red);
    background: var(--sr-red);
}

.sr-check__input:indeterminate + .sr-check__box::after {
    content: "";
    width: 8px;
    height: 2px;
    background: #fff;
}

.sr-check__input:focus-visible + .sr-check__box {
    box-shadow: 0 0 0 3px var(--sr-red-ring);
}

.sr-inbox__items .sr-item {
    padding: 14px 16px 14px 12px;
}

.sr-inbox__items .sr-item .sr-check {
    align-self: center;
}

.sr-inbox__items .sr-item.is-active {
    background: var(--sr-red-soft);
    box-shadow: inset 3px 0 0 var(--sr-red);
}

.sr-inbox__items .sr-item.is-selected {
    background: var(--sr-red-soft);
}

.sr-inbox__items .sr-group {
    padding: 12px 16px 6px;
}

.sr-inbox__new {
    display: flex;
    justify-content: center;
    padding: 10px 16px 0;
}

.sr-inbox__new[hidden] {
    display: none;
}

.sr-pill-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--sr-red);
    color: #fff;
    font-size: 12.5px;
    font-weight: 500;
    box-shadow: 0 6px 16px rgba(213, 0, 25, 0.25);
    cursor: pointer;
}

.sr-inbox__more {
    display: flex;
    justify-content: center;
    padding: 14px;
    border-top: 1px solid var(--sr-line);
}

.sr-inbox__more[hidden] {
    display: none;
}

.sr-inbox__sentinel {
    height: 1px;
}

/* The detail pane */

.sr-inbox__detail {
    position: sticky;
    top: calc(var(--vz-header-height, 70px) + 20px);
    min-height: 360px;
    max-height: calc(100vh - var(--vz-header-height, 70px) - 40px);
    overflow-y: auto;
}

.sr-inbox__detail:focus {
    outline: none;
}

.sr-detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 32px;
    text-align: center;
    color: var(--sr-muted);
}

.sr-detail-placeholder__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sr-ink);
}

.sr-detail-placeholder__text {
    max-width: 38ch;
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.sr-detail {
    padding: 24px 26px 28px;
}

.sr-detail__back {
    display: none;
}

.sr-detail__head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.sr-detail__kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--sr-muted);
}

.sr-detail__category {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sr-tone);
    background: var(--sr-tone-bg);
}

.sr-detail__title {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--sr-ink);
    text-wrap: balance;
}

.sr-detail__body {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--sr-text);
    overflow-wrap: anywhere;
}

.sr-detail__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.sr-detail__section {
    margin-top: 26px;
}

.sr-detail__section-title {
    margin: 0 0 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sr-muted);
}

.sr-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--sr-line);
    border-radius: 10px;
    background: var(--sr-line);
}

.sr-facts__item {
    padding: 11px 14px;
    background: var(--sr-surface);
}

.sr-facts__item dt {
    margin: 0 0 2px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--sr-muted);
}

.sr-facts__item dd {
    margin: 0;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--sr-ink);
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.sr-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--sr-tone);
    background: var(--sr-tone-bg);
}

.sr-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.sr-detail__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sr-detail__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1px solid var(--sr-line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sr-ink);
    text-decoration: none;
    background: var(--sr-surface);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sr-detail__link:hover {
    border-color: var(--sr-red-ring);
    background: var(--sr-red-soft);
    color: var(--sr-ink);
}

.sr-detail__link.is-primary {
    border-color: var(--sr-red);
    background: var(--sr-red);
    color: #fff;
}

.sr-detail__link.is-primary:hover {
    background: var(--sr-red-strong);
    color: #fff;
}

.sr-timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 22px;
    list-style: none;
}

.sr-timeline::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: 2px;
    border-radius: 1px;
    background: var(--sr-line);
}

.sr-timeline__item {
    position: relative;
    padding: 0 0 14px;
}

.sr-timeline__item::before {
    content: "";
    position: absolute;
    top: 5px;
    left: -20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--sr-surface);
    background: var(--sr-tone, var(--sr-muted));
    box-shadow: 0 0 0 1px var(--sr-line);
}

.sr-timeline__title {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--sr-ink);
}

.sr-timeline__time {
    font-size: 12px;
    color: var(--sr-muted);
}

@media (max-width: 1199.98px) {
    .sr-inbox__body {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* On a phone and a small tablet the detail opens over the list */
@media (max-width: 991.98px) {
    .sr-inbox__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .sr-inbox__detail {
        position: fixed;
        inset: 0;
        z-index: 1060;
        max-height: none;
        min-height: 0;
        border: 0;
        border-radius: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
    }

    .sr-inbox__detail.is-open {
        visibility: visible;
        transform: translateX(0);
        transition: transform 0.25s ease;
    }

    .sr-inbox__detail .sr-detail-placeholder {
        display: none;
    }

    .sr-detail__back {
        display: inline-flex;
        margin-bottom: 16px;
    }

    .sr-inbox__hero-body {
        padding: 22px 20px 20px;
    }

    .sr-facts {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sr-live__dot,
    .sr-item.is-new,
    .sr-bell__badge.is-bumped,
    .sr-bell__button.is-ringing .bx-bell,
    .sr-bell__menu.show,
    .sr-toast,
    .sr-toast.is-leaving,
    .sr-skeleton__circle,
    .sr-skeleton__line {
        animation: none;
    }

    .sr-inbox__detail {
        transition: none;
    }
}
