/* Hoạt động gần đây: thanh trang chủ (.sk-act-bar) + thẻ nhỏ trang xem hàng (.sk-act-toast). 3 theme khách.
   Chỉ animate transform / opacity. Tài liệu: docs/tinhnang/17-hoat-dong-gan-day/01-tong-quan.md */

/* ---------- Dòng hoạt động (dùng chung thanh + thẻ) ---------- */
.sk-act-item { display: flex; align-items: center; gap: .5rem; min-width: 0; width: 100%;
    transition: transform .26s ease, opacity .26s ease; }
.sk-act-item.is-out { opacity: 0; transform: translateY(-55%); }
.sk-act-item.is-in { opacity: 0; transform: translateY(55%); transition: none; }
.sk-act-ico { flex: 0 0 auto; width: 1.25em; text-align: center; opacity: .9; }
.sk-act-text { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* Tên hàng đậm; mã + danh mục nhạt; giá đậm màu nhấn của theme. Ở thanh, chỉ phần chữ (.sk-act-text) bị cắt …, giá và thời gian luôn còn. */
.sk-act-u { font-weight: 600; }
.sk-act-n { font-weight: 700; }
.sk-act-meta { opacity: .65; font-size: .92em; }
.sk-act-p { flex: 0 0 auto; font-weight: 700; white-space: nowrap; }
.sk-act-time { flex: 0 0 auto; font-size: .82em; opacity: .62; white-space: nowrap; }
.sk-act-time::before { content: "·"; margin-right: .4rem; }

/* ---------- Thanh trang chủ: giữ khung / chiều cao thanh cũ của từng theme ---------- */
.sk-act-bar .sk-act-track { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.sk-act-bar .sk-act-p::before { content: "·"; margin-right: .4rem; font-weight: 400; opacity: .6; color: var(--sk-act-dot, currentColor); }
/* default: khung .home-ticker (icon 34px + padding) có sẵn ở home_assets, chỉ thêm màu chữ */
.sk-act--default .sk-act-item { color: var(--dg-text, inherit); }
.sk-act--default .sk-act-p { color: var(--dg-btn, #0a7f9c); }
.sk-act--default .sk-act-ico { color: var(--dg-btn, #0a7f9c); }
/* classic: thanh cũ cao 36.7px (một dòng marquee), không viền, chữ theo màu theme */
.sk-act-bar.sk-act--classic { display: flex; align-items: center; gap: .6rem; height: 36.7px; overflow: hidden; }
.sk-act--classic .sk-act-lead { flex: 0 0 auto; }
.sk-act--classic .sk-act-p { color: #ffc107; }
/* master: chưa có thanh cũ (bị comment) → khung nhẹ theo .header-notice, cao 40px */
.sk-act-bar.sk-act--master { display: flex; align-items: center; gap: .6rem; height: 40px; margin: 8px 0 10px; padding: 0 12px 0 6px;
    overflow: hidden; background: var(--bg-color, #fff); color: var(--text-color, #434657);
    border: 1px solid var(--border-default-color, #e4e5f0); border-radius: 10px; box-shadow: var(--box-shadow-default, 0 2px 4px rgba(0, 0, 0, .05)); }
.sk-act--master .sk-act-lead { flex: 0 0 28px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 7px; color: #fff; background: var(--primary-color, #d63031); font-size: .85rem; }
.sk-act--master .sk-act-p { color: var(--primary-color, #d63031); }
.sk-act--master .sk-act-ico { color: var(--primary-color, #d63031); }

/* ---------- Thẻ nhỏ góc dưới trái (phải là nút Zalo / FB / Messenger / nút Mua) ---------- */
.sk-act-toast { position: fixed; left: 16px; bottom: 16px; z-index: 990; max-width: 320px; pointer-events: none;
    opacity: 0; transform: translateY(16px); transition: transform .35s ease, opacity .35s ease; }
.sk-act-toast[hidden] { display: none; }
.sk-act-toast.is-show { opacity: 1; transform: none; }
.sk-act-card { position: relative; display: flex; align-items: flex-start; gap: .6rem; padding: .55rem 1.9rem .55rem .65rem;
    border-radius: 12px; font-size: .86rem; line-height: 1.35; box-shadow: 0 6px 22px rgba(0, 0, 0, .18); }
.sk-act-card .sk-act-badge { flex: 0 0 32px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: .9rem; }
.sk-act-card .sk-act-body { min-width: 0; }
/* Thẻ cho 2 dòng: nội dung (tối đa 2 dòng, cắt …) + thời gian */
.sk-act-card .sk-act-line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.sk-act-card .sk-act-foot { display: block; margin-top: 2px; white-space: nowrap; }
.sk-act-card .sk-act-time { margin-left: .4rem; }
.sk-act-x { position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: inherit; opacity: .55; font-size: 18px; line-height: 26px; text-align: center; cursor: pointer; pointer-events: auto; }
.sk-act-x:hover, .sk-act-x:focus-visible { opacity: 1; }

.sk-act-toast.sk-act--default .sk-act-card { background: var(--dg-surface, #141820); color: var(--dg-text, #e9ebf1);
    border: 1px solid var(--dg-border, rgba(255, 255, 255, .08)); }
.sk-act-toast.sk-act--default .sk-act-badge { background: var(--dg-btn-bg, rgba(10, 127, 156, .28)); color: var(--dg-btn-fg, #fff); }
.sk-act-toast.sk-act--default .sk-act-p { color: var(--dg-btn, #2fb4d4); }
.sk-act-toast.sk-act--classic .sk-act-card { background: rgba(16, 16, 16, .94); color: #f1f1f1; border: 1px solid rgba(255, 193, 7, .35); }
.sk-act-toast.sk-act--classic .sk-act-badge { background: rgba(255, 193, 7, .16); color: #ffc107; }
.sk-act-toast.sk-act--classic .sk-act-p { color: #ffc107; }
.sk-act-toast.sk-act--master .sk-act-card { background: #fff; color: var(--text-color, #434657); border: 1px solid var(--border-default-color, #e4e5f0); }
.sk-act-toast.sk-act--master .sk-act-badge { background: rgba(214, 48, 49, .1); color: var(--primary-color, #d63031); }
.sk-act-toast.sk-act--master .sk-act-p { color: var(--primary-color, #d63031); }

/* Điện thoại: không hiện thẻ. 600–767px: đứng trên thanh dock dưới đáy (JS tính thêm chiều cao dock / thanh mua key). */
@media (max-width: 599.98px) { .sk-act-toast { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
    .sk-act-item, .sk-act-item.is-out, .sk-act-item.is-in { transition: none; transform: none; }
    .sk-act-toast { transition: opacity .2s linear; transform: none; }
}
