.bsc-notif {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    color: #152033;
}

.bsc-notif [hidden] {
    display: none !important;
}

.bsc-notif .bsc-notif__bell {
    position: relative;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: var(--bsc-bell-size, 44px);
    height: var(--bsc-bell-size, 44px);
    padding: 0;
    border: 1px solid var(--bsc-bell-border, #dbe1eb);
    border-radius: 0;
    background: var(--bsc-bell-background, #fff);
    color: var(--bsc-bell-icon, #152033);
    cursor: pointer;
}

.bsc-notif .bsc-notif__bell:hover,
.bsc-notif .bsc-notif__bell[aria-expanded="true"] {
    background: var(--bsc-bell-hover-background, var(--bsc-bell-background, #f1f5fc));
    color: var(--bsc-bell-icon, #152033);
}

.bsc-notif .bsc-notif__bell-icon {
    width: calc(var(--bsc-bell-size, 44px) * 0.523);
    height: calc(var(--bsc-bell-size, 44px) * 0.523);
}

.bsc-notif .bsc-notif__bell:focus-visible,
.bsc-notif__items a:focus-visible {
    outline: 2px solid #2358ad;
    outline-offset: -2px;
}

.bsc-notif__badge {
    position: absolute;
    top: -5px;
    right: -6px;
    box-sizing: border-box;
    min-width: 20px;
    padding: 1px 4px;
    border: 2px solid var(--bsc-bell-background, #fff);
    border-radius: 12px;
    background: var(--bsc-badge-background, #b5213a);
    color: var(--bsc-badge-text, #fff);
    font: 700 11px/1.35 system-ui, sans-serif;
    text-align: center;
}

.bsc-notif__panel {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 8px);
    left: var(--bsc-panel-left, 0);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: min(23rem, calc(100vw - 28px));
    max-height: min(27rem, var(--bsc-panel-height, 60vh));
    overflow: hidden;
    border: 1px solid #dbe1eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px #16213b26;
    text-align: start;
    font: 400 14px/1.45 system-ui, sans-serif;
}

.bsc-notif__panel--above {
    top: auto;
    bottom: calc(100% + 8px);
}

.bsc-notif__heading {
    padding: 13px 15px;
    border-bottom: 1px solid #e8ecf3;
    font-weight: 700;
}

.bsc-notif .bsc-notif__status {
    margin: 0;
    padding: 14px 15px;
}

.bsc-notif .bsc-notif__items {
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.bsc-notif__items li + li {
    border-top: 1px solid #edf0f5;
}

.bsc-notif .bsc-notif__items a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 50px;
    padding: 10px 15px;
    color: #152033;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.bsc-notif .bsc-notif__items a:hover {
    background: #f3f6fb;
}

.bsc-notif__items img {
    flex: none;
    width: 53px;
    height: 53px;
    border-radius: 7px;
    background: #eef2f8;
    object-fit: cover;
}

.bsc-notif__title,
.bsc-notif__source,
.bsc-notif__time {
    display: block;
}

.bsc-notif__title {
    font-weight: 600;
}

.bsc-notif__source,
.bsc-notif__time {
    color: #465574;
    font-size: 12px;
}

.bsc-notif__source {
    margin-top: 2px;
}

.bsc-notif .bsc-notif__reddit-link {
    flex: none;
    padding: 12px 15px;
    border-top: 1px solid #e8ecf3;
    color: #2358ad;
    font-weight: 600;
    text-decoration: underline;
}
