/* Marketplace private messages. This is scoped to the marketplace controls. */
.jp-notify-toolbar { gap: 9px; }
.jp-inbox-toolbar { box-sizing: border-box; position: relative; z-index: 100; display: flex; justify-content: flex-end; max-width: 980px; margin: 0 auto 10px; padding: 0 10px; }
.jp-inbox-toolbar [hidden], .jp-inbox-panel [hidden] { display: none !important; }
.jp-inbox-button {
    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-inbox-button:hover, .jp-inbox-button[aria-expanded="true"] { background: #fff0e9; }
.jp-inbox-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-inbox-panel {
    box-sizing: border-box;
    position: absolute;
    top: calc(100% + 5px);
    right: 10px;
    width: min(440px, calc(100vw - 24px));
    max-height: min(78vh, 740px);
    overflow-y: auto;
    border: 1px solid #e9d8d1;
    border-radius: 14px;
    background: #fff;
    color: #2b2826;
    box-shadow: 0 15px 40px rgba(43, 27, 21, .2);
}
.jp-inbox-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px 9px; }
.jp-inbox-header h2 { margin: 0; color: #292622; font-size: 1.15rem; line-height: 1.3; }
.jp-inbox-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-inbox-close:hover { background: #e9dad2; }
.jp-inbox-status { margin: 0 15px 10px; padding: 9px 11px; border-radius: 8px; background: #eff7ee; color: #24572b; font-size: .88rem; }
.jp-inbox-status.is-error { background: #fff0ed; color: #8f2d20; }
.jp-inbox-list { max-height: min(62vh, 590px); overflow-y: auto; border-top: 1px solid #f0e6e1; }
.jp-inbox-empty { margin: 0; padding: 20px 16px; color: #625a55; font-size: .94rem; line-height: 1.5; }
.jp-inbox-thread-row {
    box-sizing: border-box;
    display: grid;
    gap: 3px;
    width: 100%;
    min-height: 72px;
    padding: 12px 15px;
    border: 0;
    border-bottom: 1px solid #f1eae6;
    background: #fff;
    color: #302b28;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.jp-inbox-thread-row:hover, .jp-inbox-thread-row:focus-visible { background: #fff2eb; }
.jp-inbox-thread-row.is-unread { background: #fef4ef; }
.jp-inbox-more { display: block; width: 100%; padding: 13px; border: 0; background: #fff9f5; color: #873025; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.jp-inbox-more:hover { background: #fff0e9; }
.jp-inbox-other { font-size: .95rem; }
.jp-inbox-post-title, .jp-inbox-preview { overflow: hidden; color: #645a55; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.jp-inbox-row-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #776e68; font-size: .77rem; }
.jp-inbox-row-count { display: inline-grid; min-width: 18px; height: 18px; place-items: center; border-radius: 10px; background: #b93f2d; color: #fff; font: 700 11px/1 system-ui, sans-serif; }
.jp-inbox-conversation { padding: 0 15px 15px; }
.jp-inbox-back, .jp-inbox-older, .jp-inbox-copy, .jp-inbox-report-toggle, .jp-inbox-block {
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: #873025;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.jp-inbox-back { margin-bottom: 7px; }
.jp-inbox-context { margin: 0 0 11px; color: #514945; font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; }
.jp-inbox-context a { color: #873025; }
.jp-inbox-safety { margin: 0 0 10px; padding: 9px; border-radius: 8px; background: #fff7ee; color: #594536; font-size: .8rem; line-height: 1.45; }
.jp-inbox-history { display: grid; gap: 9px; max-height: min(42vh, 400px); overflow-y: auto; margin: 0 -5px 13px; padding: 7px 5px; }
.jp-inbox-older { justify-self: center; }
.jp-inbox-message { justify-self: start; max-width: 88%; padding: 8px 10px; border-radius: 10px 10px 10px 2px; background: #f4efec; overflow-wrap: anywhere; }
.jp-inbox-message.is-mine { justify-self: end; border-radius: 10px 10px 2px 10px; background: #fce8df; }
.jp-inbox-message strong { display: block; font-size: .8rem; }
.jp-inbox-message p { margin: 4px 0; color: #2d2927; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; }
.jp-inbox-message time { color: #706660; font-size: .72rem; }
.jp-inbox-form { display: grid; gap: 9px; margin-top: 10px; }
.jp-inbox-label { display: grid; gap: 5px; color: #39322f; font-size: .87rem; font-weight: 700; }
.jp-inbox-name, .jp-inbox-textarea, .jp-inbox-report-form select, .jp-inbox-report-form textarea, .jp-inbox-copy-field {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid #d5beb5;
    border-radius: 8px;
    background: #fff;
    color: #2d2927;
    font: inherit;
    font-weight: 400;
}
.jp-inbox-textarea, .jp-inbox-report-form textarea { resize: vertical; }
.jp-inbox-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.jp-inbox-limit { color: #766e69; font-size: .75rem; }
.jp-inbox-send {
    min-height: 40px;
    padding: 8px 13px;
    border: 0;
    border-radius: 8px;
    background: #b93f2d;
    color: #fff;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
}
.jp-inbox-send:hover { background: #922e20; }
.jp-inbox-send:disabled { opacity: .6; cursor: default; }
.jp-inbox-closed { padding: 9px; border-radius: 8px; background: #f7f1ed; color: #655850; font-size: .87rem; }
.jp-inbox-guest-link { margin-top: 12px; padding: 9px; border-radius: 8px; background: #f7f2ef; }
.jp-inbox-guest-link p { margin: 0 0 6px; color: #534a45; font-size: .8rem; line-height: 1.45; }
.jp-inbox-safety-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; border-top: 1px solid #eee2dc; padding-top: 7px; }
.jp-inbox-report-form { display: grid; gap: 10px; margin-top: 10px; padding: 10px; border: 1px solid #e6d5ce; border-radius: 9px; }
.jp-inbox-report-form .jp-inbox-send { justify-self: start; }
.jp-inbox-trap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.jas-post-actions.jp-inbox-has-message { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jas-post-actions .jp-inbox-message-post svg { fill: none; }
.jp-inbox-message-profile {
    min-height: 39px;
    padding: 7px 12px;
    border: 1px solid #b93f2d;
    border-radius: 8px;
    background: #fff;
    color: #9e3728;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}
.jp-inbox-message-profile:hover { background: #fff1ed; }
.jp-inbox-button:focus-visible, .jp-inbox-panel button:focus-visible, .jp-inbox-panel a:focus-visible,
.jp-inbox-panel input:focus-visible, .jp-inbox-panel textarea:focus-visible, .jp-inbox-panel select:focus-visible,
.jp-inbox-message-post:focus-visible, .jp-inbox-message-profile:focus-visible { outline: 3px solid #e89a40; outline-offset: 2px; }
@media (max-width: 600px) {
    .jp-inbox-panel { position: fixed; top: max(66px, env(safe-area-inset-top, 0px)); right: 12px; left: 12px; width: auto; max-height: calc(100dvh - 82px); }
    .jas-post-actions.jp-inbox-has-message { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jp-inbox-message { max-width: 92%; }
}
