.tlcn {
    --tlcn-radius: 14px;
    position: fixed;
    z-index: 99995;
    bottom: 22px;
    width: min(400px, calc(100vw - 28px));
    display: none;
    border-radius: var(--tlcn-radius);
    overflow: hidden;
    font-family: inherit;
    box-shadow: 0 22px 55px rgba(15, 37, 64, .32);
    animation: tlcnIn .45s cubic-bezier(.2, .8, .2, 1);
}

.tlcn.is-open { display: block; }
.tlcn.is-hiding {
    animation: tlcnOut .3s ease forwards;
}

.tlcn-pos-right { right: 18px; }
.tlcn-pos-left  { left: 18px; }

@keyframes tlcnIn {
    from { opacity: 0; transform: translateY(28px) scale(.96); }
    to   { opacity: 1; transform: none; }
}
@keyframes tlcnOut {
    to { opacity: 0; transform: translateY(18px) scale(.97); }
}

/* Nút đóng: cột tối bên phải như mẫu */
.tlcn__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 100%;
    min-height: 92px;
    display: grid;
    place-items: center;
    border: 0;
    background: rgba(0, 0, 0, .32);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .25s ease;
}
.tlcn__close:hover { background: rgba(0, 0, 0, .5); }

/* Thân chính: nền gradient cam */
.tlcn__body {
    position: relative;
    padding: 15px 58px 15px 18px;
    background: linear-gradient(125deg, var(--tlcn-c1, #f7941d), var(--tlcn-c2, #ff6b35));
    color: #fff;
}

.tlcn__msg {
    margin: 0 0 8px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.55;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

/* Dòng sản phẩm vừa thêm */
.tlcn__item {
    display: none;
    align-items: center;
    gap: 11px;
    margin: 0 0 11px;
    padding: 9px 11px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .16);
}

.tlcn__item.has-item { display: flex; }

.tlcn__item img {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 3px;
}

.tlcn__item-name {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tlcn__item-meta {
    font-size: 11.5px;
    font-weight: 500;
    opacity: .92;
}

/* Link truy cập giỏ hàng */
.tlcn__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.tlcn__link:hover {
    transform: translateX(3px);
    opacity: .92;
    color: #fff;
}

.tlcn__link svg { flex: 0 0 auto; }

/* Thanh khuyến mãi dưới đáy */
.tlcn__promo {
    display: none;
    padding: 9px 14px;
    background: var(--tlcn-c3, #8a3b00);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    letter-spacing: .01em;
}
.tlcn__promo.has-text { display: block; }

/* Mobile */
@media (max-width: 549px) {
    .tlcn { bottom: 12px; }
    .tlcn-pos-right { right: 14px; }
    .tlcn-pos-left  { left: 14px; }
    .tlcn__close { width: 38px; min-height: 84px; }
    .tlcn__body { padding: 13px 50px 13px 14px; }
    .tlcn__msg { font-size: 12.5px; }
    .tlcn__link { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .tlcn { animation: none; }
}