/* A self-contained notification control for the social marketplace. */
.jp-notify-toolbar {
    box-sizing: border-box;
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 980px;
    margin: 0 auto 10px;
    padding: 0 10px;
    color: #292622;
    font: inherit;
}
.jp-notify-toolbar [hidden] { display: none !important; }
.jp-notify-bell {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    padding: 0;
    border: 1px solid #e1c9c0;
    border-radius: 50%;
    background: #fff;
    color: #8e3327;
    box-shadow: 0 2px 9px rgba(40, 30, 26, .08);
    cursor: pointer;
}
.jp-notify-bell:hover,
.jp-notify-bell[aria-expanded="true"] { background: #fff0e9; }
.jp-notify-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    display: grid;
    min-width: 19px;
    height: 19px;
    place-items: center;
    padding: 1px 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #bc3e2e;
    color: #fff;
    font: 700 11px/1.2 system-ui, sans-serif;
}
.jp-notify-panel {
    box-sizing: border-box;
    position: absolute;
    top: calc(100% + 5px);
    right: 10px;
    width: min(420px, calc(100vw - 24px));
    max-height: min(75vh, 680px);
    overflow-y: auto;
    border: 1px solid #e9d8d1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(43, 27, 21, .2);
}
.jp-notify-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 15px 7px;
}
.jp-notify-header h2 {
    margin: 0;
    color: #292622;
    font-size: 1.15rem;
    line-height: 1.3;
}
.jp-notify-close {
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f6f0ec;
    color: #342a26;
    font: 27px/1 system-ui, sans-serif;
    cursor: pointer;
}
.jp-notify-close:hover { background: #e9dad2; }
.jp-notify-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 15px; padding: 0 15px 7px; }
.jp-notify-actions button {
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #873025;
    font: inherit;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
}
.jp-notify-actions button:disabled { color: #89817d; cursor: default; }
.jp-notify-actions .jp-notify-clear { color: #8a3f35; }
.jp-notify-actions .jp-notify-clear.is-confirming { color: #b4271a; text-decoration: underline; }
.jp-notify-status {
    margin: 0 15px 10px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #eff7ee;
    color: #24572b;
    font-size: .88rem;
}
.jp-notify-status.is-error { background: #fff0ed; color: #8f2d20; }
.jp-notify-list { max-height: 370px; overflow-y: auto; border-top: 1px solid #f0e6e1; }
.jp-notify-empty { margin: 0; padding: 20px 16px; color: #625a55; font-size: .94rem; }
.jp-notify-item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 62px;
    padding: 11px 15px;
    border-bottom: 1px solid #f1eae6;
    color: #2b2826 !important;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}
.jp-notify-item:last-child { border-bottom: 0; }
.jp-notify-item:hover, .jp-notify-item:focus-visible { background: #fff2eb; }
.jp-notify-item.is-unread { background: #fef4ef; }
.jp-notify-item-content { display: grid; min-width: 0; flex: 1; gap: 4px; }
.jp-notify-item-text { font-size: .92rem; line-height: 1.4; }
.jp-notify-item-time { color: #766e69; font-size: .78rem; }
.jp-notify-unread-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ba3f2f;
}
.jp-notify-push { padding: 13px 15px 15px; border-top: 1px solid #eee3de; }
.jp-notify-push-button,
.jp-notify-test-button,
.jp-notify-login {
    display: inline-block;
    min-height: 38px;
    margin-right: 8px;
    padding: 7px 12px;
    border: 1px solid #b94433;
    border-radius: 8px;
    background: #b94433;
    color: #fff !important;
    font: inherit;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none !important;
    cursor: pointer;
}
.jp-notify-test-button { background: #fff; color: #8c3025 !important; }
.jp-notify-push-button:disabled,
.jp-notify-test-button:disabled { opacity: .6; cursor: default; }
.jp-notify-push-help { margin: 9px 0 0; color: #605852; font-size: .82rem; line-height: 1.45; }
.jp-notify-login { margin: 0 16px 18px; }
.jp-notify-bell:focus-visible,
.jp-notify-panel button:focus-visible,
.jp-notify-panel a:focus-visible {
    outline: 3px solid #e89a40;
    outline-offset: 2px;
}
.jas-comment.jp-notify-comment-target {
    border-radius: 9px;
    outline: 3px solid #e89a40;
    outline-offset: 3px;
}
@media (max-width: 600px) {
    .jp-notify-toolbar { padding: 0 12px; }
    .jp-notify-panel {
        position: fixed;
        top: max(66px, env(safe-area-inset-top, 0px));
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100dvh - 82px);
    }
    .jp-notify-list { max-height: min(48dvh, 370px); }
}
