/* ============================================================================
   notif.css — 通知ベル + ドロップダウン (P1-2/9/10)
   ============================================================================
   js/notif.js が組み立てる markup 用。トップページ以外 (/mypage/ /history/
   /points/ /creators/ /manage/) でもベルを出すため curiomart.css から切り出した
   (manage は curiomart.css を読まず自前トークンで自己完結しているため、
   共通ファイルにしないと出品管理だけスタイルが当たらない)。
   色は各ページの :root トークン (--b-ink / --b-paper / --b-pinkD / --b-pinkE) を
   参照し、未定義でもフォールバックで成立させる。
   ============================================================================ */

.curiomart-notif { position: relative; display: inline-flex; }
.curiomart-notif-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--b-ink, #4a1f2e);
    cursor: pointer;
    padding: 6px;
    display: inline-flex;
    align-items: center;
}
.curiomart-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--b-pinkD, #d6075e);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 16px;
    text-align: center;
    border: 1.5px solid #fff;
}
.curiomart-notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-width: 86vw;
    max-height: 420px;
    overflow-y: auto;
    background: var(--b-paper, #fff);
    border: 2.5px solid var(--b-ink, #4a1f2e);
    border-radius: 14px;
    box-shadow: 4px 4px 0 var(--b-ink, #4a1f2e);
    z-index: 2000;
}
.curiomart-notif-sticky {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--b-paper, #fff);
}
.curiomart-notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    font-weight: 900;
    border-bottom: 2px solid var(--b-ink, #4a1f2e);
}
.curiomart-notif-readall {
    background: transparent;
    border: none;
    color: var(--b-pinkD, #d6075e);
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
}
.curiomart-notif-readall:disabled { color: var(--b-ink, #4a1f2e); opacity: 0.35; cursor: default; }
/* 未読 / すべて の絞り込みタブ */
.curiomart-notif-tabs {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(74, 31, 46, 0.18);
}
.curiomart-notif-tab {
    flex: 1;
    padding: 6px 8px;
    border: 2px solid var(--b-ink, #4a1f2e);
    border-radius: 999px;
    background: transparent;
    color: var(--b-ink, #4a1f2e);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.curiomart-notif-tab.is-active {
    background: var(--b-ink, #4a1f2e);
    color: var(--b-paper, #fff);
}
.curiomart-notif-empty { padding: 24px 14px; text-align: center; color: #999; font-size: 13px; }
.curiomart-notif-empty-link {
    margin-top: 10px;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--b-pinkD, #d6075e);
    font-weight: 800;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}
.curiomart-notif-more { padding: 10px 14px 14px; text-align: center; }
.curiomart-notif-more-btn {
    width: 100%;
    padding: 8px;
    border: 2px solid var(--b-ink, #4a1f2e);
    border-radius: 999px;
    background: transparent;
    color: var(--b-ink, #4a1f2e);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.curiomart-notif-more-btn:disabled { opacity: 0.5; cursor: default; }
.curiomart-notif-item {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(74, 31, 46, 0.12);
    text-decoration: none;
    color: var(--b-ink, #4a1f2e);
    cursor: pointer;
}
.curiomart-notif-item.is-unread { background: var(--b-pinkE, #fdeef4); }
.curiomart-notif-item-title { font-weight: 800; font-size: 13px; overflow-wrap: anywhere; word-break: break-word; }
.curiomart-notif-item-body { font-size: 12px; margin-top: 3px; line-height: 1.5; color: #5a4048; overflow-wrap: anywhere; word-break: break-word; }
.curiomart-notif-item-time { font-size: 11px; margin-top: 4px; color: #a08; opacity: 0.7; }
