/* TNC Counter Animation */
.tnc-counter-wrap { padding: 20px 12px; }

.tnc-counter-number {
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-variant-numeric: tabular-nums;
}

.tnc-counter-prefix,
.tnc-counter-suffix { font-size: 0.6em; font-weight: 700; }

.tnc-counter-label {
    font-size: 15px;
    margin-top: 10px;
    font-weight: 500;
}

/* ── Price Compare ── */
.tnc-pc-wrap { padding: 10px 0; }
.tnc-pc-title {
    font-size: 18px;
    font-weight: 700;
    color: #0d3d3a;
    margin-bottom: 24px;
}
.tnc-pc-row {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    background: #f0f0f0;
    border-radius: 0 30px 30px 0;
    overflow: hidden;
}
.tnc-pc-fill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 50px;
    border-radius: 0 30px 30px 0;
    color: #fff;
    /* animation width khi scroll tới */
    transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.tnc-pc-fill.tnc-pc-hidden { width: 0 !important; }
.tnc-pc-label { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tnc-pc-price { font-size: 14px; font-weight: 700; white-space: nowrap; margin-left: 12px; }
.tnc-pc-saving {
    color: #999;
    font-size: 13px;
    font-weight: 700;
    padding: 0 20px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.tnc-pc-note {
    font-size: 12px;
    color: #999;
    font-style: italic;
    line-height: 1.6;
    margin-top: 16px;
}

/* ── Anchor Nav ── */
.tnc-anav {
    position: sticky;
    z-index: 999;
    border-radius: 10px;
    margin: 18px 0 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    transition: border-radius .3s;
}
.tnc-anav.stuck {
    border-radius: 0;
}
.tnc-anav-inner {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tnc-anav-inner::-webkit-scrollbar { display: none; }

.tnc-anav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 14px 12px;
    color: var(--tnc-nav-text, rgba(255,255,255,.65));
    text-decoration: none !important;
    font-size: .83em;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s, background .2s;
}
.tnc-anav-link:hover,
.tnc-anav-link.active {
    color: var(--tnc-nav-active-color, #fff) !important;
    background: var(--tnc-nav-active-bg, rgba(200,16,46,.35));
    border-bottom-color: var(--tnc-nav-active-bg, #c8102e);
}

@media (max-width: 600px) {
    .tnc-anav-inner { flex-wrap: wrap; overflow-x: unset; }
    .tnc-anav-link {
        flex: 0 0 25%;
        padding: 10px 4px;
        font-size: .72em;
        border-bottom: 2px solid transparent;
        border-right: 1px solid rgba(255,255,255,.07);
        box-sizing: border-box;
    }
    .tnc-anav-link:nth-child(4n)   { border-right: none; }
    .tnc-anav-link:nth-child(n+5)  { border-top: 1px solid rgba(255,255,255,.07); }
}
