.block__notification-drawer {
    position: fixed;
    z-index: 2500;
    inset: 0;
}

.block__notification-drawer[hidden] {
    display: none;
}

.b_notification-drawer--overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: rgba(19, 19, 19, 0.48);
    cursor: default;
}

.b_notification-drawer--window {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(640px, 46vw);
    min-width: 380px;
    height: 100%;
    flex-direction: column;
    color: #202020;
    background: #f7f6f2;
    box-shadow: -18px 0 54px rgba(0, 0, 0, 0.18);
    animation: notification-drawer-enter 180ms ease-out;
}

.b_notification-drawer--head {
    display: grid;
    min-height: 88px;
    padding: 18px 24px;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    border-bottom: 1px solid rgba(32, 32, 32, 0.13);
}

.b_notification-drawer--title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
}

.b_notification-drawer--head-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #202020;
    background: transparent;
    font-size: 23px;
    cursor: pointer;
}

.b_notification-drawer--head-button:hover {
    background: rgba(32, 32, 32, 0.08);
}

.b_notification-drawer--head-button.__refresh[aria-busy="true"] i {
    animation: notification-drawer-spin 700ms linear infinite;
}

.b_notification-drawer--body {
    display: flex;
    min-height: 0;
    padding: 22px 24px 32px;
    flex: 1;
    flex-direction: column;
    overflow-y: auto;
}

.b_notification-drawer--status {
    margin: auto;
    padding: 32px 12px;
    color: #4d4d4d;
    font-size: 16px;
    line-height: 1.45;
    text-align: center;
}

.b_notification-drawer--status:empty {
    display: none;
}

.b_notification-drawer--retry {
    display: block;
    margin: 16px auto 0;
    padding: 9px 18px;
    border: 1px solid #202020;
    border-radius: 999px;
    color: #202020;
    background: transparent;
    cursor: pointer;
}

.b_notification-drawer--list {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 12px;
    list-style: none;
}

.b_notification-drawer--card {
    position: relative;
    display: grid;
    width: 100%;
    padding: 18px 20px 17px 28px;
    gap: 7px;
    border: 1px solid rgba(32, 32, 32, 0.12);
    border-radius: 14px;
    color: #202020;
    background: rgba(255, 255, 255, 0.72);
    text-align: left;
    cursor: pointer;
}

.b_notification-drawer--card:hover {
    border-color: rgba(32, 32, 32, 0.3);
    background: #fff;
}

.b_notification-drawer--card.__unread::before {
    position: absolute;
    top: 24px;
    left: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a62626;
    content: "";
}

.b_notification-drawer--card-title {
    font-size: 17px;
    font-weight: 650;
    line-height: 1.3;
}

.b_notification-drawer--card-text {
    color: #4f4f4f;
    font-size: 15px;
    line-height: 1.45;
}

.b_notification-drawer--card-time {
    color: #777;
    font-size: 13px;
}

.b_notification-drawer--more {
    min-height: 44px;
    margin: 18px auto 0;
    padding: 10px 22px;
    border: 1px solid #202020;
    border-radius: 999px;
    color: #202020;
    background: transparent;
    cursor: pointer;
}

.b_notification-drawer--more[hidden] {
    display: none;
}

.b_top-menu--link,
.b_header--mobile-action {
    position: relative;
}

.b_notification-drawer--badge {
    position: absolute;
    top: -5px;
    right: -7px;
    display: inline-flex;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #a62626;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.b_notification-drawer--badge[hidden] {
    display: none;
}

body.__notification-drawer-open {
    overflow: hidden;
}

@keyframes notification-drawer-enter {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes notification-drawer-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    .b_notification-drawer--window {
        width: 100%;
        min-width: 0;
    }

    .b_notification-drawer--head {
        min-height: 72px;
        padding: 12px 14px;
    }

    .b_notification-drawer--body {
        padding: 16px 14px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .b_notification-drawer--window {
        animation: none;
    }
}
