.sale-alert-region { position:fixed; z-index:220; bottom:26px; right:102px; width:min(410px,calc(100vw - 36px)); pointer-events:none; font-size:14px; }
.sale-alert-card { pointer-events:auto; overflow:hidden; color:var(--ink); background:var(--surface); border:1px solid var(--line-strong); border-top:3px solid #16b88b; border-radius:20px; box-shadow:0 22px 70px #0004; animation:sale-alert-enter .25s ease-out; }
.sale-alert-card header { display:flex; align-items:center; gap:12px; padding:18px 18px 12px; background:linear-gradient(135deg,#10b98112,transparent); }
.sale-alert-card header>div { display:grid; gap:3px; flex:1; }
.sale-alert-card header strong { font-size:16px; }
.sale-alert-eyebrow { display:block; color:#0e9473; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.1em; }
.sale-alert-check { display:grid; place-items:center; flex:0 0 36px; height:36px; background:#12ac83; color:white; font-size:22px; border-radius:50%; }
.sale-alert-close { width:30px; height:30px; background:transparent; border:0; color:var(--muted); font-size:24px; cursor:pointer; }
.sale-alert-products { padding:6px 18px 12px; display:grid; gap:12px; max-height:230px; overflow:auto; }
.sale-alert-product, .sale-detail-product { display:flex; align-items:center; gap:12px; }
.sale-alert-photo { width:62px; height:62px; flex:0 0 62px; object-fit:contain; padding:4px; background:#fff; border:1px solid var(--line); border-radius:12px; }
.sale-alert-placeholder { display:grid; place-items:center; color:#f7682b; font-size:19px; font-weight:900; background:var(--surface-soft); }
.sale-alert-product>div { display:grid; gap:4px; min-width:0; flex:1; }
.sale-alert-product strong { font-size:14px; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.sale-alert-product small, .sale-alert-card footer small { font-size:11px; color:var(--muted); }
.sale-alert-product span { display:flex; align-items:center; justify-content:space-between; font-size:12px; color:var(--muted); }
.sale-alert-product b { font-size:18px; color:var(--ink); }
.sale-alert-financial { padding:12px 18px; display:flex; gap:14px; flex-wrap:wrap; background:var(--surface-soft); border-top:1px solid var(--line); font-size:12px; }
.sale-alert-financial b { color:var(--ink); margin-left:4px; }
.sale-history-financial { display:flex; flex-wrap:wrap; gap:7px 10px; align-items:center; font-size:11px; color:var(--muted); }
.sale-history-financial b { color:var(--ink); margin-left:3px; }
.sale-tax-badge { display:inline-flex; align-items:center; width:max-content; padding:3px 7px; border:1px solid; border-radius:999px; font-size:10px; font-weight:800; line-height:1.2; }
.sale-tax-badge.new { color:#a5340e; background:#fff0e7; border-color:#ffb38d; }
.sale-tax-badge.old { color:#16644d; background:#e7faf2; border-color:#9bddc5; }
.sale-tax-badge.mixed { color:#6c4c00; background:#fff8d7; border-color:#f0d36f; }
.sale-alert-pending { color:var(--muted); line-height:1.5; }
.sale-alert-card footer { padding:12px 18px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.sale-alert-card footer .button { min-height:36px; padding:9px 14px; font-size:12px; }
.sale-alert-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:16px; }
.sale-alert-toolbar p { margin:0; color:var(--muted); font-size:12px; }
.sale-history-item { display:flex; gap:12px; align-items:flex-start; padding:14px 12px; border:1px solid var(--line); border-radius:12px; background:var(--surface-soft); }
.sale-history-item.unread { border-left:3px solid #16b88b; }
.sale-history-item>div { flex:1; min-width:0; display:grid; gap:5px; }
.sale-history-item strong { font-size:13px; line-height:1.4; }
.sale-history-item small, .sale-history-item time { color:var(--muted); font-size:11px; }
.sale-history-item .text-button { text-align:left; justify-self:start; }
.sale-detail { display:grid; gap:16px; }
.sale-detail-heading { display:grid; gap:6px; padding:18px; background:var(--surface-soft); border:1px solid var(--line); border-radius:12px; }
.sale-detail-heading strong { font-size:30px; }
.sale-detail-heading span, .sale-detail-heading small { color:var(--muted); font-size:12px; }
.sale-detail-product>div { display:grid; gap:7px; }
.sale-detail-product strong { font-size:14px; }
.sale-detail-product small { font-size:12px; color:var(--muted); }
.sale-detail .muted, .sale-alert-settings p { font-size:12px; line-height:1.7; }
.sale-detail-actions { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; }
.sale-alert-benefit { background:#10b98115; color:#0e9473; padding:12px; border-radius:10px; margin:0; font-size:12px; }
.sale-alert-settings { display:grid; gap:16px; }
.sale-alert-settings p { margin:0; }
.sale-alert-settings label { display:flex; align-items:center; gap:12px; border:1px solid var(--line); padding:16px; border-radius:12px; cursor:pointer; }
.sale-alert-settings input { width:20px; height:20px; accent-color:var(--orange); flex-shrink:0; }
.sale-alert-settings label span { display:grid; gap:6px; }
.sale-alert-settings label strong { font-size:14px; }
.sale-alert-settings label small { font-size:12px; color:var(--muted); line-height:1.5; }
#sale-alert-settings-feedback { color:#0e9473; }
@keyframes sale-alert-enter { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:reduce) { .sale-alert-card { animation:none; } }
@media (max-width:600px) { .sale-alert-region { right:12px; bottom:110px; width:calc(100vw - 24px); } .sale-alert-products { max-height:180px; } .sale-alert-toolbar { align-items:flex-start; } }
