.wpmc-user-notifications,
.wpmc-user-notifications-shortcut {
    --wpmc-notification-surface: var(--drl-account-panel, var(--drl-surface, #fff));
    --wpmc-notification-surface-hover: var(--drl-account-panel-soft, var(--drl-surface-soft, #f4f7f8));
    --wpmc-notification-line: var(--drl-account-border, var(--drl-line, #dce3e7));
    --wpmc-notification-text: var(--drl-account-text, var(--drl-text, #14212b));
    --wpmc-notification-muted: var(--drl-account-muted, var(--drl-text-muted, #65717a));
    --wpmc-notification-accent: var(--drl-workspace-nav, var(--dialogue-accent, #168dcc));
    --wpmc-notification-event: var(--wpmc-notification-accent);
    --wpmc-notification-reply: #168653;
    --wpmc-notification-invitation: #a96816;
    --wpmc-notification-candidate: #176fa5;
    --wpmc-notification-collaboration: #7257b7;
}

html[data-theme="dark"] :is(.wpmc-user-notifications, .wpmc-user-notifications-shortcut) {
    --wpmc-notification-reply: #65d69b;
    --wpmc-notification-invitation: #efb45e;
    --wpmc-notification-candidate: #68b9e8;
    --wpmc-notification-collaboration: #b5a0ee;
}

.wpmc-user-notifications form,
.wpmc-user-notifications-shortcut form {
    margin: 0;
}

.wpmc-user-notifications button,
.wpmc-user-notifications a,
.wpmc-user-notifications-shortcut a {
    -webkit-tap-highlight-color: transparent;
}

.wpmc-user-notifications {
    overflow: hidden;
    border: 1px solid var(--wpmc-notification-line);
    border-radius: 18px;
    background: var(--wpmc-notification-surface);
    color: var(--wpmc-notification-text);
    box-shadow: 0 14px 38px color-mix(in srgb, var(--wpmc-notification-text) 6%, transparent);
}

.wpmc-user-notifications__views {
    display: flex;
    min-width: 0;
    gap: 4px;
    overflow-x: auto;
    border-bottom: 1px solid var(--wpmc-notification-line);
    padding: 10px 12px 0;
    scrollbar-width: thin;
}

.wpmc-user-notifications__views a {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    border-bottom: 2px solid transparent;
    padding: 7px 9px 9px;
    color: var(--wpmc-notification-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.wpmc-user-notifications__views a:hover,
.wpmc-user-notifications__views a:focus-visible,
.wpmc-user-notifications__views a.is-active {
    border-bottom-color: var(--wpmc-notification-accent);
    color: var(--wpmc-notification-accent);
    outline: 0;
}

.wpmc-user-notifications__views a > strong {
    display: inline-flex;
    min-width: 20px;
    min-height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--wpmc-notification-accent) 13%, transparent);
    padding-inline: 5px;
    font-size: 10px;
    font-weight: 760;
}

.wpmc-user-notifications__toolbar {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--wpmc-notification-line);
    padding: 13px 18px;
}

.wpmc-user-notifications__summary {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--wpmc-notification-muted);
    font-size: 12px;
    line-height: 1.4;
}

.wpmc-user-notifications__summary-count {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
}

.wpmc-user-notifications__summary-count strong {
    color: var(--wpmc-notification-text);
    font-size: 14px;
    font-weight: 760;
}

.wpmc-user-notifications__summary-count.has-unread strong {
    color: var(--wpmc-notification-accent);
}

.wpmc-user-notifications__toolbar form button {
    min-height: 38px;
    border: 1px solid color-mix(in srgb, var(--wpmc-notification-accent) 32%, var(--wpmc-notification-line));
    border-radius: 10px;
    background: transparent;
    padding: 8px 12px;
    color: var(--wpmc-notification-accent);
    cursor: pointer;
    font-size: 11px;
    font-weight: 720;
    line-height: 1.3;
}

.wpmc-user-notifications__toolbar form button:hover,
.wpmc-user-notifications__toolbar form button:focus-visible {
    border-color: var(--wpmc-notification-accent);
    background: color-mix(in srgb, var(--wpmc-notification-accent) 8%, transparent);
    outline: 0;
}

.wpmc-user-notifications__complete {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--wpmc-notification-muted);
    font-size: 11px;
    font-weight: 680;
    white-space: nowrap;
}

.wpmc-user-notifications__complete > span {
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wpmc-user-notifications__feed {
    display: grid;
}

.wpmc-user-notifications__group + .wpmc-user-notifications__group {
    border-top: 1px solid var(--wpmc-notification-line);
}

.drldial-app-surface--account .wpmc-user-notifications__group > h2 {
    margin: 0;
    background: color-mix(in srgb, var(--wpmc-notification-surface-hover) 64%, transparent);
    padding: 10px 18px 8px;
    color: var(--wpmc-notification-muted);
    font-family: var(--drl-font-sans, inherit);
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .09em;
    line-height: 1.3;
    text-transform: uppercase;
}

.wpmc-user-notifications__list {
    display: grid;
}

.wpmc-user-notifications__item {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 54px;
    align-items: stretch;
    background: var(--wpmc-notification-surface);
    transition: background-color 140ms ease;
}

.wpmc-user-notifications__item + .wpmc-user-notifications__item {
    border-top: 1px solid color-mix(in srgb, var(--wpmc-notification-line) 78%, transparent);
}

.wpmc-user-notifications__item:hover,
.wpmc-user-notifications__item:focus-within {
    background: var(--wpmc-notification-surface-hover);
}

.wpmc-user-notifications__item.is-unread {
    background: color-mix(in srgb, var(--wpmc-notification-accent) 5%, var(--wpmc-notification-surface));
}

.wpmc-user-notifications__item.is-unread:hover,
.wpmc-user-notifications__item.is-unread:focus-within {
    background: color-mix(in srgb, var(--wpmc-notification-accent) 9%, var(--wpmc-notification-surface));
}

.wpmc-user-notifications__item-main {
    display: grid;
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 15px 10px 15px 18px;
    color: inherit;
    text-decoration: none;
}

a.wpmc-user-notifications__item-main:focus-visible {
    border-radius: 10px;
    outline: 2px solid color-mix(in srgb, var(--wpmc-notification-accent) 68%, transparent);
    outline-offset: -4px;
}

.wpmc-user-notifications__avatar {
    display: grid;
    position: relative;
    width: 48px;
    height: 48px;
    place-items: center;
}

.wpmc-user-notifications__avatar > img {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    object-fit: cover;
}

.wpmc-user-notifications__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: color-mix(in srgb, var(--wpmc-notification-accent) 10%, var(--wpmc-notification-surface));
    color: var(--wpmc-notification-accent);
}

.wpmc-user-notifications__icon svg {
    width: 20px;
    height: 20px;
}

.wpmc-user-notifications__unread-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 11px;
    height: 11px;
    border: 3px solid var(--wpmc-notification-surface);
    border-radius: 50%;
    background: var(--wpmc-notification-accent);
    box-sizing: content-box;
}

.wpmc-user-notifications__content {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.wpmc-user-notifications__topline {
    display: flex;
    min-width: 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.wpmc-user-notifications__topline strong {
    overflow: hidden;
    color: var(--wpmc-notification-text);
    font-size: 13px;
    font-weight: 690;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wpmc-user-notifications__item.is-unread .wpmc-user-notifications__topline strong {
    font-weight: 780;
}

.wpmc-user-notifications__topline time {
    flex: 0 0 auto;
    color: var(--wpmc-notification-muted);
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
}

.wpmc-user-notifications__message,
.wpmc-user-notifications__context {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wpmc-user-notifications__message {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--wpmc-notification-text);
    font-size: 13px;
    line-height: 1.42;
    white-space: normal;
}

.wpmc-user-notifications__context {
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    background: color-mix(in srgb, var(--wpmc-notification-event) 12%, transparent);
    padding: 4px 9px;
    color: var(--wpmc-notification-event);
    font-size: 13px;
    font-weight: 780;
    letter-spacing: .01em;
    line-height: 1.25;
    white-space: nowrap;
}

.wpmc-user-notifications__item--replies {
    --wpmc-notification-event: var(--wpmc-notification-reply);
}

.wpmc-user-notifications__item--invitations {
    --wpmc-notification-event: var(--wpmc-notification-invitation);
}

.wpmc-user-notifications__item--candidates {
    --wpmc-notification-event: var(--wpmc-notification-candidate);
}

.wpmc-user-notifications__item--collaboration {
    --wpmc-notification-event: var(--wpmc-notification-collaboration);
}

.wpmc-user-notifications__item.is-unread .wpmc-user-notifications__context {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wpmc-notification-event) 26%, transparent);
}

.wpmc-user-notifications__item-control {
    display: grid;
    place-items: center;
    padding: 10px 12px 10px 0;
}

.wpmc-user-notifications__item-control form button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: transparent;
    padding: 0;
    color: var(--wpmc-notification-muted);
    cursor: pointer;
    font-size: 0;
}

.wpmc-user-notifications__item-control form button::before {
    width: 18px;
    height: 18px;
    background: currentColor;
    content: "";
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 2.5 2.5L16 9'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 2.5 2.5L16 9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wpmc-user-notifications__item-control form button:hover,
.wpmc-user-notifications__item-control form button:focus-visible {
    background: color-mix(in srgb, var(--wpmc-notification-accent) 10%, transparent);
    color: var(--wpmc-notification-accent);
    outline: 0;
}

.wpmc-user-notifications__read-state {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--wpmc-notification-muted) 28%, transparent);
}

.wpmc-user-notifications__empty {
    display: grid;
    min-height: 150px;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    padding: 28px;
}

.wpmc-user-notifications__empty > div {
    min-width: 0;
}

.wpmc-user-notifications__empty strong,
.wpmc-user-notifications__empty p {
    display: block;
}

.wpmc-user-notifications__empty strong {
    color: var(--wpmc-notification-text);
    font-family: var(--drl-font-display, inherit);
    font-size: 19px;
    font-weight: 540;
    line-height: 1.3;
}

.wpmc-user-notifications__empty p {
    max-width: 580px;
    margin: 5px 0 0;
    color: var(--wpmc-notification-muted);
    font-size: 12px;
    line-height: 1.5;
}

.wpmc-user-notifications-shortcut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    border: 1px solid var(--wpmc-notification-line);
    border-radius: 14px;
    background: var(--wpmc-notification-surface);
    padding: 16px 18px;
}

.wpmc-user-notifications-shortcut > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.wpmc-user-notifications-shortcut > div > span,
.wpmc-user-notifications-shortcut > div > small {
    color: var(--wpmc-notification-muted);
    font-size: 10px;
    line-height: 1.35;
}

.wpmc-user-notifications-shortcut > div > span {
    font-weight: 740;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wpmc-user-notifications-shortcut > div > strong {
    color: var(--wpmc-notification-text);
    font-size: 15px;
    font-weight: 700;
}

.wpmc-user-notifications-shortcut > a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--wpmc-notification-accent) 10%, transparent);
    padding: 8px 11px;
    color: var(--wpmc-notification-accent);
    font-size: 11px;
    font-weight: 720;
    text-decoration: none;
}

.wpmc-user-notifications-shortcut > a:hover,
.wpmc-user-notifications-shortcut > a:focus-visible {
    background: color-mix(in srgb, var(--wpmc-notification-accent) 16%, transparent);
    outline: 0;
}

.wpmc-user-notifications-shortcut > a > span {
    min-width: 2.3ch;
    border-radius: 999px;
    background: var(--wpmc-notification-accent);
    padding: 3px 6px;
    color: var(--wpmc-notification-surface);
    font-size: 10px;
    line-height: 1;
    text-align: center;
}

@media (max-width: 680px) {
    .wpmc-user-notifications {
        border-radius: 14px;
    }

    .wpmc-user-notifications__toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 14px;
    }

    .wpmc-user-notifications__toolbar form,
    .wpmc-user-notifications__toolbar form button {
        width: 100%;
    }

    .wpmc-user-notifications__item {
        grid-template-columns: minmax(0, 1fr) 44px;
    }

    .wpmc-user-notifications__item-main {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 11px;
        padding: 13px 6px 13px 13px;
    }

    .wpmc-user-notifications__avatar,
    .wpmc-user-notifications__avatar > img {
        width: 42px;
        height: 42px;
    }

    .wpmc-user-notifications__avatar > img {
        border-radius: 13px;
    }

    .wpmc-user-notifications__topline {
        gap: 8px;
    }

    .wpmc-user-notifications__message {
        font-size: 12px;
    }

    .wpmc-user-notifications__item-control {
        padding-right: 7px;
    }

    .wpmc-user-notifications__empty {
        min-height: 132px;
        padding: 22px 18px;
    }

    .wpmc-user-notifications-shortcut {
        align-items: stretch;
        flex-direction: column;
    }

    .wpmc-user-notifications-shortcut > a {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wpmc-user-notifications__item,
    .wpmc-user-notifications button,
    .wpmc-user-notifications a {
        transition: none !important;
    }
}
