/* Unified notifications are a single UI over RG Inbox and RG Personal.
   No global Bricks or UsersWP selectors are modified. */
.rg-personal-notify {
    display: grid;
    gap: 18px;
    min-width: 0;
    padding: clamp(16px, 2.5vw, 28px);
    border: 1px solid #eddfef;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff, #fefaff);
    color: #2b2231;
}
.rg-personal-notify__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.rg-personal-notify__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #241b2a;
    font-size: clamp(23px, 2.4vw, 29px);
    line-height: 1.23;
    font-weight: 800;
}
.rg-personal-notify__total {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f1e2f7;
    color: #853b98;
    font-size: 14px;
    font-weight: 700;
}
.rg-personal-notify__total[hidden] { display: none; }
.rg-personal-notify__subtitle {
    margin: 6px 0 0;
    color: #817589;
    font-size: 13px;
    line-height: 1.5;
}
.rg-personal-notify__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.rg-personal-notify__filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #6e6174;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}
.rg-personal-notify__filter.is-active {
    border-color: #ead4ef;
    background: #f7e9fa;
    color: #8e3ca3;
}
.rg-personal-notify__filter:hover { background: #f9effa; }
.rg-personal-notify__filter-count {
    padding: 2px 7px;
    border-radius: 99px;
    background: #ead9ef;
    font-size: 12px;
}
.rg-personal-notify__filter-count[hidden] { display: none; }
.rg-personal-notify__mark-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 7px;
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid #ebd8f1;
    border-radius: 10px;
    background: #fff;
    color: #8e3ba3;
    font: inherit;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    cursor: pointer;
}
.rg-personal-notify__mark-all::before {
    content: "✓";
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
}
.rg-personal-notify__mark-all:hover { background: #f9effa; }
.rg-personal-notify__mark-all[hidden],
.rg-personal-notify__checkpoint-data[hidden] { display: none; }
.rg-personal-notify__mark-all:disabled,
.rg-personal-notify__mark-item:disabled { opacity: .55; cursor: wait; }
.rg-personal-notify__unread-only {
    margin-left: auto;
}
.rg-personal-notify__status {
    min-height: 0;
    margin: 0;
    color: #635b6a;
    font-size: 13px;
}
.rg-personal-notify__status:empty { display: none; }
.rg-personal-notify__status.is-error { color: #ab3838; }
.rg-personal-notify__list {
    display: grid;
    gap: 10px;
}
.rg-personal-notify__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-width: 0;
    padding: 16px;
    border: 1px solid #ece4ef;
    border-radius: 14px;
    background: #fff;
}
.rg-personal-notify__item.is-unread {
    border-color: #e4c9ef;
    background: #fef9ff;
}
.rg-personal-notify__item[hidden] { display: none; }
.rg-personal-notify__item-icon {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f3e4f8;
    color: #933da4;
}
.rg-personal-notify__item-icon::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url("../icons/notify-bell.svg") center / contain no-repeat;
    mask: url("../icons/notify-bell.svg") center / contain no-repeat;
}
.rg-personal-notify__item-icon--achievement { background: #f4e8fb; color: #9651b4; }
.rg-personal-notify__item-icon--achievement::before {
    -webkit-mask-image: url("../icons/notify-trophy.svg");
    mask-image: url("../icons/notify-trophy.svg");
}
.rg-personal-notify__item-icon--comment { background: #e9eeff; color: #6277b8; }
.rg-personal-notify__item-icon--comment::before {
    -webkit-mask-image: url("../icons/notify-message.svg");
    mask-image: url("../icons/notify-message.svg");
}
.rg-personal-notify__item-icon--rank { background: #fff1dc; color: #b77e32; }
.rg-personal-notify__item-icon--rank::before {
    -webkit-mask-image: url("../icons/notify-crown.svg");
    mask-image: url("../icons/notify-crown.svg");
}
.rg-personal-notify__item-icon--promocode { background: #fff1dc; color: #b77e32; }
.rg-personal-notify__item-icon--promocode::before {
    -webkit-mask-image: url("../icons/notify-gift.svg");
    mask-image: url("../icons/notify-gift.svg");
}
.rg-personal-notify__item-icon--event { background: #e8f5ed; color: #4d9477; }
.rg-personal-notify__item-icon--event::before {
    -webkit-mask-image: url("../icons/notify-calendar.svg");
    mask-image: url("../icons/notify-calendar.svg");
}
.rg-personal-notify__item-icon--schedule { background: #f1eafb; color: #8b68b2; }
.rg-personal-notify__item-icon--schedule::before {
    -webkit-mask-image: url("../icons/notify-scroll.svg");
    mask-image: url("../icons/notify-scroll.svg");
}
.rg-personal-notify__item-icon--update { background: #e9f5f7; color: #448d9c; }
.rg-personal-notify__item-icon--update::before {
    -webkit-mask-image: url("../icons/notify-bell.svg");
    mask-image: url("../icons/notify-bell.svg");
}
.rg-personal-notify__item-icon--personal { background: #ece5fa; color: #7654ac; }
.rg-personal-notify__item-main { flex: 1 1 auto; min-width: 0; }
.rg-personal-notify__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
    color: #897f8d;
    font-size: 12px;
    line-height: 1.45;
}
.rg-personal-notify__new {
    padding: 2px 8px;
    border-radius: 99px;
    background: #f3e4f8;
    color: #8d3ba1;
    font-weight: 750;
}
.rg-personal-notify__item-title {
    display: inline-block;
    margin-top: 4px;
    color: #2d2332;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 750;
    text-decoration: none;
    overflow-wrap: anywhere;
}
a.rg-personal-notify__item-title:hover { color: #983da9; text-decoration: underline; }
.rg-personal-notify__message {
    margin: 5px 0 0;
    color: #6f6476;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.rg-personal-notify__period {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-weight: 600;
    color: #56816b;
}
.rg-personal-notify__period::before {
    content: "";
    display: inline-block;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin-top: 2px;
    background: currentColor;
    -webkit-mask: url("../icons/notify-calendar.svg") center / contain no-repeat;
    mask: url("../icons/notify-calendar.svg") center / contain no-repeat;
}
.rg-personal-notify__show-more {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid #ead6ef;
    border-radius: 11px;
    background: #fcf7fe;
    color: #8d3ca1;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.rg-personal-notify__show-more[hidden] { display: none; }
.rg-personal-notify__show-more:hover { background: #f5e9f9; }
.rg-personal-notify__mark-item {
    display: inline-flex;
    margin-top: 9px;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #8b439e;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.rg-personal-notify__mark-item:hover { text-decoration: underline; }
.rg-personal-notify__mark-item--icon {
    position: relative;
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    margin: -2px -4px 0 0;
    border: 1px solid #ead7ef;
    border-radius: 10px;
    background: #fff;
    color: #9962a9;
}
.rg-personal-notify__mark-item--icon::before {
    content: "✓";
    display: block;
    font-size: 18px;
    font-weight: 750;
    line-height: 1;
}
.rg-personal-notify__mark-item--icon:hover {
    text-decoration: none;
    background: #f5e8fa;
    color: #7d378e;
}

.rg-personal-notify__empty {
    margin: 0;
    padding: 25px 15px;
    border: 1px dashed #e9dce9;
    border-radius: 14px;
    color: #897f8d;
    font-size: 14px;
    text-align: center;
}
.rg-personal-notify__empty[hidden] { display: none; }
.rg-personal-notify__footnote {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #8e8391;
}
.rg-personal-notify :is(button, a):focus-visible {
    outline: 2px solid #a44db4;
    outline-offset: 3px;
}
@media (max-width: 600px) {
    .rg-personal-notify { gap: 14px; padding: 15px 13px; border-radius: 15px; }
    .rg-personal-notify__filter { flex: 1 1 auto; min-height: 44px; padding: 9px 11px; }
    .rg-personal-notify__item { gap: 10px; padding: 12px; }
    .rg-personal-notify__item-icon { flex-basis: 32px; width: 32px; height: 32px; border-radius: 9px; }
    .rg-personal-notify__item-title { font-size: 14px; }
    .rg-personal-notify__header { flex-wrap: wrap; gap: 8px; }
    .rg-personal-notify__mark-all { min-height: 40px; margin-left: auto; }
    .rg-personal-notify__mark-item--icon { min-width: 44px; min-height: 44px; flex-basis: 44px; margin: -3px -5px 0 0; }
    .rg-personal-notify__unread-only { margin-left: 0; }
    .rg-personal-notify__show-more { min-height: 44px; }
}
