/* inbox.css — 유저 알림함(CS 창구 내 메시지함) 겉모습. 발주 2026-08-07.
   상담창(cs.css) 위에 얹히는 판이다 — 창구 크기·색은 창구 변수(--line 등)를 그대로 쓴다. */

/* 창구 머리의 아이콘 + 안읽음 뱃지 */
.nb-btn { position: relative; appearance: none; border: 0; background: none; color: inherit; cursor: pointer;
          width: 30px; height: 30px; display: grid; place-items: center; margin-left: auto; }
.nb-btn svg { width: 17px; height: 17px; }
.nb-btn[hidden] { display: none; }
.nb-badge { position: absolute; top: -2px; right: -4px; min-width: 15px; height: 15px; padding: 0 4px;
            border-radius: 99px; background: var(--gold, #c9a227); color: #14100a;
            font-size: 9.5px; font-weight: 700; display: grid; place-items: center;
            font-variant-numeric: tabular-nums; }
.nb-badge[hidden] { display: none; }

/* 알림함 판 — 창구 안에 겹쳐 뜬다(팝업 아님, 손님이 연다) */
.nb-panel { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
            background: var(--panel, #14181d); border-radius: inherit; }
.nb-panel[hidden] { display: none; }
.nb-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px;
           border-bottom: 1px solid var(--line); }
.nb-head b { font-size: 14px; }
.nb-all { appearance: none; border: 1px solid var(--line); background: none; color: var(--muted, #8a929c);
          border-radius: 7px; font: inherit; font-size: 11.5px; padding: 4px 9px; cursor: pointer; margin-left: auto; }
.nb-back { appearance: none; border: 0; background: none; color: inherit; cursor: pointer;
           width: 26px; height: 26px; display: grid; place-items: center; }
.nb-back svg { width: 14px; height: 14px; }

/* 탭 3종 — 프로모션/거래/시스템. 탭에도 안읽음 수가 붙는다 */
.nb-tabs { display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.nb-tab { appearance: none; border: 0; background: none; color: var(--muted, #8a929c); font: inherit;
          font-size: 12.5px; padding: 6px 10px; border-radius: 7px; cursor: pointer;
          display: inline-flex; align-items: center; gap: 5px; }
.nb-tab.on { color: var(--fg, #f2efe8); background: rgba(127, 138, 150, .14); }
.nb-tbadge { min-width: 14px; height: 14px; padding: 0 4px; border-radius: 99px; font-style: normal;
             background: var(--gold, #c9a227); color: #14100a; font-size: 9px; font-weight: 700;
             display: grid; place-items: center; }
.nb-tbadge[hidden] { display: none; }

/* 알림 줄 — 안읽음 점 / 본문 / 시각 / 개별 삭제 */
.nb-list { flex: 1; overflow-y: auto; padding: 6px 0; }
.nb-row { display: flex; align-items: flex-start; gap: 9px; padding: 11px 14px; cursor: pointer; }
.nb-row + .nb-row { border-top: 1px solid var(--line); }
.nb-dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; background: transparent; }
.nb-row.un .nb-dot { background: var(--gold, #c9a227); }
.nb-bd { flex: 1; min-width: 0; }
.nb-tx { font-size: 12.5px; line-height: 1.55; word-break: keep-all; }
.nb-row:not(.un) .nb-tx { color: var(--muted, #8a929c); }
.nb-tm { margin-top: 3px; font-size: 10.5px; color: var(--muted, #79828c); font-variant-numeric: tabular-nums; }
.nb-x { appearance: none; border: 0; background: none; color: var(--muted, #79828c); cursor: pointer;
        width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; opacity: .6; }
.nb-x:hover { opacity: 1; }
.nb-x svg { width: 11px; height: 11px; }
.nb-empty { padding: 34px 16px; text-align: center; color: var(--muted, #79828c); font-size: 12.5px; }
