/* =========================================================
 * TNC – Nhập eSIM Du Lịch
 * Namespace: .tnc-esim (frontend) / .tnc-esim-admin (admin)
 * ========================================================= */

/* ===================== FRONTEND ===================== */

.tnc-esim {
    --tnc-esim-xanh: #2563eb;
    --tnc-esim-xanh-nhat: #eff6ff;
    --tnc-esim-do: #dc3545;
    --tnc-esim-vien: #e5e7eb;
    --tnc-esim-vien-dam: #d1d5db;
    --tnc-esim-chu: #111827;
    --tnc-esim-chu-phu: #6b7280;
    --tnc-esim-chu-mo: #9ca3af;
    color: var(--tnc-esim-chu);
}

.tnc-esim *,
.tnc-esim *::before,
.tnc-esim *::after {
    box-sizing: border-box;
}

.tnc-esim .tnc-esim__tieu-de {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
}

/* ===== Đầu khối quốc gia: cờ + tên + số gói ===== */
.tnc-esim__qg-dau {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 60%, #f5f3ff 100%);
    border: 1px solid #dbeafe;
}

.tnc-esim .tnc-esim__qg-co {
    flex: 0 0 56px;
    width: 56px;
    height: 38px;
    margin: 0;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .15);
}

.tnc-esim__qg-chu {
    min-width: 0;
}

.tnc-esim .tnc-esim__qg-dau .tnc-esim__tieu-de {
    margin: 0 0 2px;
    font-size: 22px;
    line-height: 1.25;
}

.tnc-esim__qg-phu {
    font-size: 13px;
    color: var(--tnc-esim-chu-phu);
}

/* ===== Khối loại gói ===== */
.tnc-esim__loai {
    --mau: #7c3aed;
    --mau-nhat: #f5f3ff;
    margin-bottom: 32px;
}

.tnc-esim__loai[data-loai="co_dinh"] {
    --mau: #0891b2;
    --mau-nhat: #ecfeff;
}

/* Hiển thị tất cả: tách các quốc gia bằng đường kẻ */
.tnc-esim--tat-ca .tnc-esim__quoc-gia + .tnc-esim__quoc-gia {
    padding-top: 24px;
    border-top: 1px solid var(--tnc-esim-vien);
}

.tnc-esim__loai-dau {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid color-mix(in srgb, var(--mau) 22%, #fff);
    border-left: 4px solid var(--mau);
    border-radius: 12px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--mau) 14%, #fff) 0%, var(--mau-nhat) 55%, #fff 100%);
}

.tnc-esim__loai-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--mau);
    color: #fff;
    font-style: normal;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--mau) 30%, transparent);
}

.tnc-esim .tnc-esim__loai-ten {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 2px;
    color: color-mix(in srgb, var(--mau) 75%, #0f172a);
}

.tnc-esim .tnc-esim__loai-mo-ta {
    margin: 0;
    font-size: 13px;
    color: #475569;
}

/* ===== Nhóm mạng ===== */
.tnc-esim__mang {
    margin-bottom: 22px;
}

.tnc-esim .tnc-esim__mang-ten {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tnc-esim-chu-phu);
    text-transform: none;
    letter-spacing: 0;
}

.tnc-esim__mang-toc-do {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #059669;
    font-size: 12px;
    font-weight: 700;
}

.tnc-esim__mang-toc-do.is-5g {
    background: linear-gradient(135deg, #059669, #0d9488);
    color: #fff;
}

.tnc-esim__mang-nha-mang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
}

.tnc-esim__mang-nha-mang strong {
    font-weight: 700;
    color: #ea580c;
}

/* Nhảy tới quốc gia từ danh mục: chừa chỗ cho header dính */
.tnc-esim__quoc-gia {
    scroll-margin-top: 100px;
}

/* Mọi phần tử bị ẩn bằng thuộc tính hidden (lọc, ẩn gói) */
.tnc-esim [hidden] {
    display: none !important;
}

/* ===== Bố cục có bộ lọc bên trái ===== */
.tnc-esim__bo-cuc {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.tnc-esim__loc {
    position: sticky;
    top: 100px;
    font-size: 14px;
}

/* ---- Khung ---- */
.tnc-esim__loc-than {
    overflow: hidden;
    border: 1px solid var(--tnc-esim-vien);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 23, 42, .06);
}

.tnc-esim__loc-dau {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #fff;
}

.tnc-esim__loc-dau strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.tnc-esim .tnc-esim__loc-xoa {
    margin: 0;
    padding: 3px 10px;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.tnc-esim .tnc-esim__loc-xoa:hover {
    background: rgba(255, 255, 255, .25);
}

.tnc-esim__loc-ruot {
    padding: 4px 16px 16px;
}

.tnc-esim .tnc-esim__loc-cho {
    margin: 12px 0 0;
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 13px;
    color: var(--tnc-esim-chu-phu);
    text-align: center;
}

/* ---- Nhóm lọc: mỗi nhóm 1 màu nhấn ---- */
.tnc-esim__loc-nhom {
    --mau: #2563eb;
    --mau-nhat: #eff6ff;
    padding: 14px 0;
}

/* Kẻ phân cách giữa các nhóm đang hiện */
.tnc-esim__loc-nhom:not([hidden]) ~ .tnc-esim__loc-nhom {
    border-top: 1px dashed var(--tnc-esim-vien);
}

.tnc-esim__loc-nhom[data-loc="lg"] { --mau: #7c3aed; --mau-nhat: #f5f3ff; }
.tnc-esim__loc-nhom[data-loc="dl"] { --mau: #2563eb; --mau-nhat: #eff6ff; }
.tnc-esim__loc-nhom[data-loc="td"] { --mau: #059669; --mau-nhat: #ecfdf5; }
.tnc-esim__loc-nhom[data-loc="nm"] { --mau: #ea580c; --mau-nhat: #fff7ed; }

.tnc-esim__loc-ten {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tnc-esim-chu);
}

.tnc-esim__loc-ten i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--mau-nhat);
    color: var(--mau);
    font-style: normal;
}

.tnc-esim__loc-ds,
.tnc-esim__loc-ds-con {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ---- Chip chung ---- */
.tnc-esim .tnc-esim__loc-chip {
    position: relative;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.tnc-esim .tnc-esim__loc-chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.tnc-esim__loc-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid var(--tnc-esim-vien-dam);
    border-radius: 8px;
    background: #fff;
    color: var(--tnc-esim-chu);
    line-height: 1.3;
    white-space: nowrap;
    transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s;
}

.tnc-esim__loc-chip span small {
    font-size: 11px;
    font-weight: 600;
    color: var(--tnc-esim-chu-mo);
}

.tnc-esim__loc-chip:hover span {
    border-color: var(--mau);
    color: var(--mau);
}

.tnc-esim__loc-chip input:checked + span {
    border-color: var(--mau);
    background: var(--mau);
    color: #fff;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--mau) 35%, transparent);
}

.tnc-esim__loc-chip input:checked + span small {
    color: rgba(255, 255, 255, .85);
}

.tnc-esim__loc-chip input:focus-visible + span {
    outline: 2px solid var(--mau);
    outline-offset: 2px;
}

/* ---- Loại gói: 2 ô lớn cạnh nhau ---- */
.tnc-esim__loc-nhom[data-loc="lg"] .tnc-esim__loc-ds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tnc-esim__loc-nhom[data-loc="lg"] .tnc-esim__loc-chip span {
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 10px 6px;
    border-radius: 10px;
    font-weight: 600;
    white-space: normal;
    text-align: center;
}

.tnc-esim__loc-nhom[data-loc="lg"] .tnc-esim__loc-chip span small::after {
    content: " gói";
}

/* ---- Dung lượng: lưới 3 cột, số gói dạng bong bóng ---- */
.tnc-esim__loc-ds > .tnc-esim__loc-dl-nhom {
    flex: 0 0 100%;
}

.tnc-esim__loc-dl-nhom + .tnc-esim__loc-dl-nhom {
    margin-top: 12px;
}

.tnc-esim__loc-dl-ten {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--mau-nhat);
    color: var(--mau);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tnc-esim__loc-nhom[data-loc="dl"] .tnc-esim__loc-ds-con {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 6px;
}

.tnc-esim__loc-nhom[data-loc="dl"] .tnc-esim__loc-chip span,
.tnc-esim__loc-nhom[data-loc="td"] .tnc-esim__loc-chip span {
    position: relative;
    padding: 7px 4px;
    font-weight: 600;
}

.tnc-esim__loc-nhom[data-loc="dl"] .tnc-esim__loc-chip span small,
.tnc-esim__loc-nhom[data-loc="td"] .tnc-esim__loc-chip span small {
    position: absolute;
    top: -7px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 10px;
    line-height: 13px;
    text-align: center;
}

.tnc-esim__loc-nhom[data-loc="dl"] .tnc-esim__loc-chip input:checked + span small,
.tnc-esim__loc-nhom[data-loc="td"] .tnc-esim__loc-chip input:checked + span small {
    background: #fff;
    color: var(--mau);
    border-color: var(--mau);
}

/* ---- Tốc độ mạng: ô đều nhau ---- */
.tnc-esim__loc-nhom[data-loc="td"] .tnc-esim__loc-ds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 6px;
}

/* ---- Nhà mạng: dạng danh sách có ô tick ---- */
.tnc-esim__loc-nhom[data-loc="nm"] .tnc-esim__loc-ds {
    flex-direction: column;
    gap: 4px;
}

.tnc-esim__loc-nhom[data-loc="nm"] .tnc-esim__loc-chip span {
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-color: transparent;
    background: #f8fafc;
    font-weight: 500;
}

.tnc-esim__loc-nhom[data-loc="nm"] .tnc-esim__loc-chip span::before {
    content: "";
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background: #fff center / 10px no-repeat;
    transition: border-color .15s, background-color .15s;
}

.tnc-esim__loc-nhom[data-loc="nm"] .tnc-esim__loc-chip span small {
    margin-left: auto;
    padding: 1px 7px;
    border-radius: 999px;
    background: #fff;
}

.tnc-esim__loc-nhom[data-loc="nm"] .tnc-esim__loc-chip:hover span {
    border-color: transparent;
    background: var(--mau-nhat);
    color: var(--tnc-esim-chu);
}

.tnc-esim__loc-nhom[data-loc="nm"] .tnc-esim__loc-chip input:checked + span {
    border-color: var(--mau);
    background: var(--mau-nhat);
    color: var(--mau);
    font-weight: 600;
    box-shadow: none;
}

.tnc-esim__loc-nhom[data-loc="nm"] .tnc-esim__loc-chip input:checked + span::before {
    border-color: var(--mau);
    background-color: var(--mau);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5l3.5 3.5L11 1'/%3E%3C/svg%3E");
}

.tnc-esim__loc-nhom[data-loc="nm"] .tnc-esim__loc-chip input:checked + span small {
    color: var(--mau);
}

/* ---- Kết quả + nút xoá dưới ---- */
.tnc-esim__loc-ket-qua {
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f1f5f9;
    font-size: 13px;
    color: var(--tnc-esim-chu-phu);
    text-align: center;
}

.tnc-esim__loc-ket-qua strong {
    font-size: 15px;
    color: var(--tnc-esim-xanh);
}

.tnc-esim .tnc-esim__loc-xoa--duoi {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 5px 13px;
    min-height: 38px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
}

.tnc-esim .tnc-esim__loc-xoa--duoi:hover {
    border-color: #dc2626;
    background: #dc2626;
    color: #fff;
}

.tnc-esim .tnc-esim__loc-trong {
    margin: 0 0 16px;
    padding: 16px;
    text-align: center;
    color: var(--tnc-esim-chu-phu);
    border: 1px dashed var(--tnc-esim-vien-dam);
    border-radius: 8px;
}

/* ---- Nút mở bộ lọc (chỉ mobile) ---- */
.tnc-esim .tnc-esim__loc-mo {
    display: none;
}

/* Có bộ lọc: nội dung hẹp hơn → giảm số cột */
@media (min-width: 1201px) {
    .tnc-esim--co-loc .tnc-esim__luoi { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .tnc-esim--co-loc .tnc-esim__danh-muc-luoi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 993px) and (max-width: 1200px) {
    .tnc-esim--co-loc .tnc-esim__luoi,
    .tnc-esim--co-loc .tnc-esim__danh-muc-luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Tablet / mobile: bộ lọc lên trên, bấm nút mới mở */
@media (max-width: 992px) {
    .tnc-esim__bo-cuc {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .tnc-esim__loc {
        position: static;
    }

    .tnc-esim .tnc-esim__loc-mo {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 5px 13px;
        min-height: 40px;
        border: 0;
        border-radius: 10px;
        background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0;
        line-height: 1.2;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
    }

    .tnc-esim__loc-so {
        min-width: 20px;
        padding: 0 6px;
        border-radius: 10px;
        background: #fff;
        color: var(--tnc-esim-xanh);
        font-size: 12px;
        font-weight: 700;
        line-height: 20px;
        text-align: center;
    }

    .tnc-esim__loc-than {
        display: none;
        margin-top: 10px;
    }

    .tnc-esim__loc.is-mo .tnc-esim__loc-than {
        display: block;
    }

    /* Mobile rộng hơn → dung lượng 4 cột */
    .tnc-esim__loc-nhom[data-loc="dl"] .tnc-esim__loc-ds-con {
        grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    }
}

/* ===== Chế độ ẩn gói: chỉ hiện nước đang chọn ===== */
.tnc-esim--an-goi .tnc-esim__quoc-gia[hidden] {
    display: none !important;
}

.tnc-esim--an-goi .tnc-esim__quoc-gia,
.tnc-esim--an-goi .tnc-esim__quoc-gia + .tnc-esim__quoc-gia {
    padding-top: 0;
    border-top: 0;
    padding-bottom: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--tnc-esim-vien);
}

.tnc-esim--an-goi .tnc-esim__danh-muc {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.tnc-esim .tnc-esim__danh-muc-goi-y {
    margin: -12px 0 16px;
    font-size: 14px;
    color: var(--tnc-esim-chu-phu);
}

.tnc-esim .tnc-esim__danh-muc-muc.is-chon {
    border-color: var(--tnc-esim-xanh);
    background: var(--tnc-esim-xanh-nhat);
    color: var(--tnc-esim-xanh);
    font-weight: 600;
}

/* ===== Danh mục quốc gia & vùng lãnh thổ (cuối trang tất cả) ===== */

/* Ô tìm kiếm quốc gia */
.tnc-esim__tim {
    margin: 0 0 20px;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 60%, #f5f3ff 100%);
    border: 1px solid #dbeafe;
}

.tnc-esim .tnc-esim__tim-nhan {
    display: block;
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--tnc-esim-chu);
}

.tnc-esim__tim-khung {
    position: relative;
    max-width: 560px;
}

.tnc-esim__tim-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tnc-esim-xanh);
    pointer-events: none;
}

.tnc-esim .tnc-esim__tim-o {
    display: block;
    width: 100%;
    max-width: none;
    height: 48px;
    margin: 0;
    padding: 5px 44px 5px 46px;
    font-size: 15px;
    font-family: inherit;
    color: var(--tnc-esim-chu);
    background: #fff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .08);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s, box-shadow .15s;
}

.tnc-esim .tnc-esim__tim-o::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.tnc-esim .tnc-esim__tim-o:focus {
    outline: none;
    border-color: var(--tnc-esim-xanh);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}

.tnc-esim .tnc-esim__tim-xoa {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
}

.tnc-esim .tnc-esim__tim-xoa:hover {
    background: #cbd5e1;
}

.tnc-esim .tnc-esim__tim-trong {
    margin: 8px 0 0;
    padding: 16px;
    text-align: center;
    color: var(--tnc-esim-chu-phu);
    border: 1px dashed var(--tnc-esim-vien-dam);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .tnc-esim__tim { padding: 12px 14px; }
    .tnc-esim .tnc-esim__tim-o { height: 44px; font-size: 14px; }
}
.tnc-esim__danh-muc {
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--tnc-esim-vien);
}

.tnc-esim__danh-muc-nhom + .tnc-esim__danh-muc-nhom {
    margin-top: 20px;
}

.tnc-esim .tnc-esim__danh-muc-ten-nhom {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
}

.tnc-esim__danh-muc-luoi {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.tnc-esim .tnc-esim__danh-muc-muc {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--tnc-esim-vien);
    border-radius: 8px;
    background: #fff;
    color: var(--tnc-esim-chu);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
    transition: border-color .15s, background-color .15s;
}

.tnc-esim .tnc-esim__danh-muc-muc:hover,
.tnc-esim .tnc-esim__danh-muc-muc:focus-visible {
    border-color: var(--tnc-esim-xanh);
    background: var(--tnc-esim-xanh-nhat);
    color: var(--tnc-esim-xanh);
}

.tnc-esim .tnc-esim__danh-muc-co {
    flex: 0 0 36px;
    width: 36px;
    height: 24px;
    margin: 0;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.tnc-esim__danh-muc-co--trong {
    display: block;
    background: var(--tnc-esim-vien);
}

.tnc-esim__danh-muc-chu {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .tnc-esim__danh-muc-luoi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
    .tnc-esim__danh-muc-luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .tnc-esim__danh-muc-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .tnc-esim .tnc-esim__danh-muc-muc { padding: 7px 10px; font-size: 13px; }
}

/* Lưới: desktop 6 cột */
.tnc-esim__luoi {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1200px) {
    .tnc-esim__luoi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
    .tnc-esim__luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .tnc-esim__luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 340px) {
    .tnc-esim__luoi { grid-template-columns: minmax(0, 1fr); }
}

/* Card */
.tnc-esim__the {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--tnc-esim-vien);
    border-radius: 14px;
    padding: 0 14px 14px;
    overflow: hidden;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

/* Vạch màu trên đầu card theo loại gói */
.tnc-esim__the::before {
    content: "";
    display: block;
    height: 4px;
    margin: 0 -14px 14px;
    background: linear-gradient(90deg, var(--mau, #2563eb), color-mix(in srgb, var(--mau, #2563eb) 45%, #fff));
}

.tnc-esim__the:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--mau, #2563eb) 45%, #fff);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
}

.tnc-esim__dung-luong {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 4px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.tnc-esim__dung-luong span {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--mau, var(--tnc-esim-chu));
}

.tnc-esim__dung-luong small {
    font-size: 13px;
    font-weight: 500;
    color: var(--tnc-esim-chu-phu);
}

/* Dropdown */
.tnc-esim__chon {
    position: relative;
    margin-bottom: 14px;
}

.tnc-esim .tnc-esim__select {
    display: block;
    width: 100%;
    max-width: none;
    height: 40px;
    margin: 0;
    padding: 0 32px 0 12px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    line-height: 38px;
    color: var(--tnc-esim-chu);
    background: #f8fafc none;
    border: 1px solid var(--tnc-esim-vien);
    border-radius: 10px;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color .15s, background-color .15s;
}

.tnc-esim .tnc-esim__select:hover {
    background-color: #fff;
    border-color: var(--tnc-esim-vien-dam);
}

.tnc-esim .tnc-esim__select:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--mau, var(--tnc-esim-xanh));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mau, #2563eb) 18%, transparent);
}

.tnc-esim__mui-ten {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--tnc-esim-chu-phu);
}

/* Giá */
.tnc-esim__gia {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
    color: #dc2626;
}

.tnc-esim__gia-goc-dong {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 20px;
    margin-bottom: 14px;
}

.tnc-esim__gia-goc-dong.is-an {
    visibility: hidden; /* giữ chiều cao để các card thẳng hàng */
}

.tnc-esim__gia-goc {
    font-size: 13px;
    color: var(--tnc-esim-chu-mo);
    text-decoration: line-through;
}

.tnc-esim__giam {
    padding: 3px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

/* Nút */
.tnc-esim .tnc-esim__nut {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    min-height: 0;
    margin: auto 0 0;
    padding: 0 10px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
    cursor: pointer;
    transition: filter .15s, box-shadow .15s, transform .15s;
}

.tnc-esim .tnc-esim__nut:hover {
    color: #fff;
    filter: brightness(1.08);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}

.tnc-esim .tnc-esim__nut:active {
    transform: scale(.98);
}

.tnc-esim .tnc-esim__nut:focus-visible {
    outline: 2px solid var(--tnc-esim-xanh);
    outline-offset: 2px;
}

.tnc-esim__icon-gio {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    fill: currentColor;
}

.tnc-esim .tnc-esim__nut span {
    white-space: nowrap;
}

.tnc-esim__trong {
    padding: 10px 12px;
    background: #fff8e5;
    border-left: 3px solid #dba617;
    font-size: 14px;
}

/* ===================== ADMIN ===================== */

.tnc-esim-admin__hop {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 5px 20px 20px;
    margin: 16px 0;
}

.tnc-esim-admin__hop h2 {
    font-size: 16px;
    margin: 16px 0 12px;
}

.tnc-esim-admin__bat-buoc {
    color: #d63638;
}

/* Hướng dẫn shortcode */
.tnc-esim-admin__sc-dong {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tnc-esim-admin__sc-dong code {
    padding: 5px 13px;
    font-size: 13px;
}

.tnc-esim-admin__bang-sc {
    margin-top: 12px;
    max-width: 900px;
}

/* Khung form + xem trước */
.tnc-esim-admin__khung {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
    align-items: start;
}

.tnc-esim-admin__khung > .tnc-esim-admin__hop {
    margin: 0;
}

.tnc-esim-admin__xem-truoc {
    position: sticky;
    top: 46px;
}

.tnc-esim-admin__xem-truoc .tnc-esim__the {
    max-width: 220px;
}

@media (max-width: 1100px) {
    .tnc-esim-admin__khung { grid-template-columns: minmax(0, 1fr); }
    .tnc-esim-admin__xem-truoc { position: static; }
}

.tnc-esim-admin .form-table th {
    width: 180px;
    padding: 12px 10px 12px 0;
}

.tnc-esim-admin .form-table td {
    padding: 8px 10px;
}

.tnc-esim-admin__hien {
    margin-left: 16px;
}

/* Công cụ bảng tuỳ chọn */
.tnc-esim-admin__cong-cu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.tnc-esim-admin__tinh-goc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.tnc-esim-admin__tinh-goc .small-text {
    width: 60px;
}

.tnc-esim-admin__dan {
    background: #f6f7f7;
    border: 1px dashed #c3c4c7;
    border-radius: 4px;
    padding: 10px 12px 2px;
    margin-bottom: 10px;
}

.tnc-esim-admin__bang-tc {
    max-width: 640px;
}

.tnc-esim-admin__bang-tc th,
.tnc-esim-admin__bang-tc td {
    padding: 5px 8px;
    vertical-align: middle;
}

.tnc-esim-admin__bang-tc input[type="text"] {
    width: 100%;
}

.tnc-esim-admin__bang-tc th:nth-child(1) { width: 90px; }
.tnc-esim-admin__bang-tc th:nth-child(4) { width: 60px; }
.tnc-esim-admin__bang-tc th:nth-child(5) { width: 30px; }

.tnc-esim-admin__phan-tram {
    color: #d63638;
    font-weight: 600;
    white-space: nowrap;
}

.tnc-esim-admin__xoa-dong {
    color: #b32d2e;
    text-decoration: none;
    font-size: 14px;
}

.tnc-esim-admin__dong.is-loi input {
    border-color: #d63638;
}

/* Tab trang Gói cước */
.tnc-esim-admin__tabs {
    margin-bottom: 16px;
}

/* Phân trang danh sách gói */
.tnc-esim-admin__phan-trang {
    float: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
    margin: 8px 0;
}
.tnc-esim-admin__phan-trang .page-numbers {
    display: inline-block;
    min-width: 30px;
    padding: 5px 8px;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    background: #f6f7f7;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
}
.tnc-esim-admin__phan-trang .page-numbers.current {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}
.tnc-esim-admin__phan-trang .page-numbers.dots {
    border: 0;
    background: none;
}

/* Danh sách */
.tnc-esim-admin__tieu-de-ds {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tnc-esim-admin__phu {
    color: #787c82;
    font-size: 12px;
}

.tnc-esim-admin__nhan {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.tnc-esim-admin__nhan--hien { background: #edfaef; color: #008a20; }
.tnc-esim-admin__nhan--an   { background: #f0f0f1; color: #50575e; }

.tnc-esim-admin__dang-sua td {
    background: #fff8e5 !important;
}

.tnc-esim-admin__thao-tac {
    white-space: nowrap;
}

.tnc-esim-admin__xoa {
    color: #b32d2e;
}

/* ---------- Form gói: dropdown quốc gia / nhà mạng ---------- */
.tnc-esim-admin__chon {
    min-width: 320px;
    max-width: 100%;
}

.tnc-esim-admin__link-dm {
    margin-left: 10px;
    text-decoration: none;
}

.tnc-esim-admin__canh-bao {
    color: #b26200;
}

/* ===================== ADMIN – DANH MỤC ===================== */

.tnc-esim-dm__co {
    display: block;
    width: 36px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
    background: #f6f7f7;
}

.tnc-esim-dm__co--lon {
    width: 96px;
    height: 64px;
}

.tnc-esim-dm__co-khung {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tnc-esim-dm__co-khung .button-link {
    margin-left: 8px;
}

.tnc-esim-dm__cot-co {
    width: 44px;
}

.tnc-esim-dm__cot-mang div {
    font-size: 12px;
    line-height: 1.6;
}

.tnc-esim-dm__ds td {
    vertical-align: middle;
}

.tnc-esim-dm__bang-mang {
    max-width: 900px;
}

.tnc-esim-dm__bang-mang th,
.tnc-esim-dm__bang-mang td {
    padding: 5px 8px;
    vertical-align: middle;
}

.tnc-esim-dm__bang-mang th:nth-child(1) { width: 110px; }
.tnc-esim-dm__bang-mang th:nth-child(4) { width: 80px; }
.tnc-esim-dm__bang-mang th:nth-child(5) { width: 30px; }

.tnc-esim-dm__bang-mang input[type="text"] {
    width: 100%;
}

.tnc-esim-dm__ten-mang {
    color: #50575e;
    font-size: 12px;
}

.tnc-esim-dm__xoa-mang {
    color: #b32d2e;
    text-decoration: none;
    font-size: 14px;
}

.tnc-esim-dm__xoa-mang:disabled {
    color: #c3c4c7;
    cursor: not-allowed;
}

.tnc-esim-dm__import {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.tnc-esim-dm__import form:first-child {
    flex: 1 1 420px;
}

.tnc-esim-dm__import-phai {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 13px;
}

.tnc-esim-dm__import summary {
    cursor: pointer;
    color: #2271b1;
    margin-bottom: 8px;
}

/* ---------- Nhập JSON gói cước ---------- */
.tnc-esim-admin__che-do {
    margin: 10px 0 0;
}

.tnc-esim-admin__che-do label {
    display: block;
    margin-bottom: 6px;
}

/* Ô tìm nhanh quốc gia */
.tnc-esim-dm__tim-qg {
    position: relative;
    max-width: 25em;
}

.tnc-esim-dm__tim-qg input {
    width: 100%;
}

.tnc-esim-dm__goi-y {
    position: absolute;
    z-index: 50;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.tnc-esim-dm__goi-y-muc {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 6px 10px;
    cursor: pointer;
}

.tnc-esim-dm__goi-y-muc.is-chon {
    background: #f0f6fc;
}

.tnc-esim-dm__goi-y-muc img {
    flex: 0 0 30px;
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #e0e0e0;
}

.tnc-esim-dm__goi-y-ten {
    flex: 1;
    min-width: 0;
}

.tnc-esim-dm__goi-y-ten small {
    color: #646970;
    margin-left: 4px;
}

.tnc-esim-dm__goi-y-muc em {
    font-style: normal;
    font-size: 11px;
    color: #b26200;
}

.tnc-esim-dm__goi-y-muc.is-da-co {
    opacity: .55;
}

.tnc-esim-dm__goi-y-trong {
    margin: 0;
    padding: 8px 10px;
    color: #646970;
}

.tnc-esim-dm__ma-ten {
    margin-left: 8px;
    color: #2271b1;
    font-weight: 600;
}

/* ===== Kết quả gói cước – mobile ===== */
@media (max-width: 768px) {
    .tnc-esim__qg-dau { padding: 12px 14px; gap: 12px; }
    .tnc-esim .tnc-esim__qg-co { flex-basis: 44px; width: 44px; height: 30px; }
    .tnc-esim .tnc-esim__qg-dau .tnc-esim__tieu-de { font-size: 18px; }
    .tnc-esim__loai-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; }
    .tnc-esim__loai-dau { padding: 10px 12px; }
    .tnc-esim .tnc-esim__loai-ten { font-size: 17px; }
    .tnc-esim__the { padding: 0 10px 10px; border-radius: 12px; }
    .tnc-esim__the::before { margin: 0 -10px 10px; }
    .tnc-esim__dung-luong span { font-size: 18px; }
    .tnc-esim__gia { font-size: 17px; }
    .tnc-esim .tnc-esim__nut { height: 38px; font-size: 13px; }
}

/* =========================================================
 * GIỎ HÀNG + THANH TOÁN (v2.0.0)
 * ========================================================= */

.tnc-esim-gio,
.tnc-esim-gio-nut,
.tnc-esim-gio-tb,
.tnc-esim-tt {
    --tnc-esim-xanh: #2563eb;
    --tnc-esim-xanh-nhat: #eff6ff;
    --tnc-esim-vien: #e5e7eb;
    --tnc-esim-vien-dam: #d1d5db;
    --tnc-esim-chu: #111827;
    --tnc-esim-chu-phu: #6b7280;
    --tnc-esim-chu-mo: #9ca3af;
    --tnc-esim-grad: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
}

.tnc-esim-gio *,
.tnc-esim-gio *::before,
.tnc-esim-gio *::after,
.tnc-esim-tt *,
.tnc-esim-tt *::before,
.tnc-esim-tt *::after {
    box-sizing: border-box;
}

.tnc-esim-gio [hidden],
.tnc-esim-gio-nut[hidden],
.tnc-esim-tt [hidden] {
    display: none !important;
}

html.tnc-esim-khoa-cuon {
    overflow: hidden;
}

/* ---- Nút giỏ nổi ---- */
.tnc-esim-gio-nut {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--tnc-esim-grad);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .4);
    cursor: pointer;
    transition: transform .15s;
}

.tnc-esim-gio-nut:hover {
    transform: scale(1.06);
}

.tnc-esim-gio-nut__so {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* ---- Icon giỏ hàng [tnc_esim_gio_hang] ---- */
.tnc-esim-gio-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
}

.tnc-esim-gio-icon:hover {
    color: inherit;
    opacity: .85;
}

.tnc-esim-gio-icon__hinh {
    position: relative;
    display: inline-flex;
}

.tnc-esim-gio-icon__hinh svg {
    display: block;
}

.tnc-esim-gio-icon__so {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.tnc-esim-gio-icon__so[hidden] {
    display: none !important;
}

.tnc-esim-gio-icon__chu {
    font-size: 14px;
    font-weight: 600;
}

/* ---- Ngăn kéo ---- */
.tnc-esim-gio {
    position: fixed;
    inset: 0;
    z-index: 99995;
    visibility: hidden;
    pointer-events: none;
    color: var(--tnc-esim-chu);
    font-size: 14px;
}

.tnc-esim-gio.is-mo {
    visibility: visible;
    pointer-events: auto;
}

.tnc-esim-gio__nen {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    transition: opacity .25s;
}

.tnc-esim-gio.is-mo .tnc-esim-gio__nen {
    opacity: 1;
}

.tnc-esim-gio__khung {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: 400px;
    max-width: 92vw;
    background: #fff;
    box-shadow: -10px 0 30px rgba(15, 23, 42, .15);
    transform: translateX(100%);
    transition: transform .28s ease;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.tnc-esim-gio.is-mo .tnc-esim-gio__khung {
    transform: none;
}

.tnc-esim-gio__dau {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--tnc-esim-grad);
    color: #fff;
}

.tnc-esim-gio__dau strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
}

.tnc-esim-gio .tnc-esim-gio__dong {
    width: 34px;
    height: 34px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 22px;
    line-height: 34px;
    cursor: pointer;
}

.tnc-esim-gio__ds {
    flex: 1;
    overflow-y: auto;
    padding: 8px 18px;
}

.tnc-esim-gio__trong {
    padding: 48px 10px;
    text-align: center;
    font-size: 40px;
}

.tnc-esim-gio__trong p {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--tnc-esim-chu-phu);
}

.tnc-esim-gio__chan {
    padding: 14px 18px 18px;
    border-top: 1px solid var(--tnc-esim-vien);
    background: #f8fafc;
}

.tnc-esim-gio .tnc-esim-gio__tiep {
    display: block;
    width: 100%;
    margin: 8px 0 0;
    padding: 8px;
    min-height: 0;
    border: 0;
    background: none;
    color: var(--tnc-esim-chu-phu);
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

/* ---- Thông báo nhanh ---- */
.tnc-esim-gio-tb {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 99999;
    max-width: 92vw;
    padding: 10px 16px;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}

.tnc-esim-gio-tb.is-hien {
    opacity: 1;
    transform: translate(-50%, 0);
}

.tnc-esim .tnc-esim__nut.is-da-them {
    background: linear-gradient(135deg, #059669, #10b981);
}

/* ---- Dòng sản phẩm (giỏ + thanh toán) ---- */
.tnc-esim-tt__sp {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--tnc-esim-vien);
}

.tnc-esim-tt__sp:last-child {
    border-bottom: 0;
}

.tnc-esim-tt__sp-co {
    flex: 0 0 40px;
    width: 40px;
    height: 28px;
    margin: 2px 0 0;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.tnc-esim-tt__sp-chu {
    flex: 1;
    min-width: 0;
}

.tnc-esim-tt__sp-chu strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
}

.tnc-esim-tt__sp-chu small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--tnc-esim-chu-phu);
}

.tnc-esim-tt__sp-gia {
    text-align: right;
    white-space: nowrap;
}

.tnc-esim-tt__sp-gia strong {
    display: block;
    font-size: 14px;
    color: #dc2626;
}

.tnc-esim-tt__sp-gia small {
    font-size: 12px;
    color: var(--tnc-esim-chu-phu);
}

.tnc-esim-tt__sl {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.tnc-esim-gio .tnc-esim-tt__sl button,
.tnc-esim-tt .tnc-esim-tt__sl button {
    width: 28px;
    height: 28px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--tnc-esim-vien-dam);
    border-radius: 8px;
    background: #fff;
    color: var(--tnc-esim-chu);
    font-size: 16px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
}

.tnc-esim-tt__sl span {
    min-width: 22px;
    font-weight: 700;
    text-align: center;
}

.tnc-esim-gio .tnc-esim-tt__sl .tnc-esim-tt__xoa,
.tnc-esim-tt .tnc-esim-tt__sl .tnc-esim-tt__xoa {
    width: auto;
    margin-left: 6px;
    padding: 0 6px;
    border: 0;
    background: none;
    color: #dc2626;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
}

.tnc-esim-tt__tong {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 4px 0 12px;
    font-size: 14px;
}

.tnc-esim-tt__tong strong {
    font-size: 22px;
    font-weight: 800;
    color: #dc2626;
}

/* Nút chính */
.tnc-esim-gio .tnc-esim-tt__nut,
.tnc-esim-tt .tnc-esim-tt__nut {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    min-height: 0;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--tnc-esim-grad);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
    cursor: pointer;
    transition: filter .15s;
}

.tnc-esim-gio .tnc-esim-tt__nut:hover,
.tnc-esim-tt .tnc-esim-tt__nut:hover {
    color: #fff;
    filter: brightness(1.08);
}

.tnc-esim-tt .tnc-esim-tt__nut:disabled {
    opacity: .7;
    cursor: wait;
}

/* ---- Trang thanh toán ---- */
.tnc-esim-tt {
    color: var(--tnc-esim-chu);
    font-size: 14px;
}

.tnc-esim-tt__dang-tai {
    padding: 40px;
    text-align: center;
    color: var(--tnc-esim-chu-phu);
}

.tnc-esim-tt__trong {
    max-width: 420px;
    margin: 20px auto;
    padding: 36px 24px;
    border: 1px solid var(--tnc-esim-vien);
    border-radius: 16px;
    text-align: center;
}

.tnc-esim-tt__trong-icon {
    font-size: 44px;
}

.tnc-esim-tt__trong h3 {
    margin: 8px 0 6px;
    font-size: 20px;
}

.tnc-esim-tt__trong p {
    margin: 0 0 18px;
    color: var(--tnc-esim-chu-phu);
}

.tnc-esim-tt__khung {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
    margin: 0;
}

.tnc-esim-tt__hop {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid var(--tnc-esim-vien);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .05);
}

.tnc-esim-tt .tnc-esim-tt__tieu-de {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 700;
}

.tnc-esim-tt__tieu-de span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--tnc-esim-grad);
    color: #fff;
    font-size: 13px;
}

.tnc-esim-tt__hang {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.tnc-esim-tt__o {
    margin-bottom: 14px;
}

.tnc-esim-tt .tnc-esim-tt__o label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tnc-esim-chu);
}

.tnc-esim-tt__o label b {
    color: #dc2626;
}

.tnc-esim-tt .tnc-esim-tt__o input,
.tnc-esim-tt .tnc-esim-tt__o textarea {
    display: block;
    width: 100%;
    max-width: none;
    height: 44px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--tnc-esim-vien-dam);
    border-radius: 10px;
    background: #fff;
    color: var(--tnc-esim-chu);
    font-size: 15px;
    font-family: inherit;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}

.tnc-esim-tt .tnc-esim-tt__o textarea {
    height: auto;
    min-height: 64px;
    resize: vertical;
}

.tnc-esim-tt .tnc-esim-tt__o input:focus,
.tnc-esim-tt .tnc-esim-tt__o textarea:focus {
    outline: none;
    border-color: var(--tnc-esim-xanh);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.tnc-esim-tt .tnc-esim-tt__o .is-loi {
    border-color: #dc2626;
}

.tnc-esim-tt__loi {
    display: block;
    min-height: 0;
    margin-top: 4px;
    font-size: 12px;
    color: #dc2626;
}

.tnc-esim-tt__loi:empty {
    display: none;
}

.tnc-esim-tt__bay {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.tnc-esim-tt .tnc-esim-tt__dong-y {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

.tnc-esim-tt .tnc-esim-tt__dong-y input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--tnc-esim-xanh);
}

.tnc-esim-tt__dong-y a {
    color: var(--tnc-esim-xanh);
    font-weight: 600;
}

.tnc-esim-tt__pttt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--tnc-esim-xanh);
    border-radius: 12px;
    background: var(--tnc-esim-xanh-nhat);
}

.tnc-esim-tt__pttt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--tnc-esim-grad);
    color: #fff;
}

.tnc-esim-tt__pttt strong {
    display: block;
    font-size: 14px;
}

.tnc-esim-tt__pttt small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--tnc-esim-chu-phu);
}

.tnc-esim-tt__cot-phai {
    position: sticky;
    top: 100px;
}

.tnc-esim-tt__don .tnc-esim-tt__ds {
    max-height: 420px;
    overflow-y: auto;
    margin-bottom: 8px;
    padding-top: 4px;
    border-top: 1px solid var(--tnc-esim-vien);
    border-bottom: 1px solid var(--tnc-esim-vien);
}

.tnc-esim-tt .tnc-esim-tt__canh-bao,
.tnc-esim-tt .tnc-esim-tt__loi-chung {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.tnc-esim-tt .tnc-esim-tt__canh-bao {
    background: #fffbeb;
    color: #92400e;
}

.tnc-esim-tt .tnc-esim-tt__loi-chung {
    background: #fef2f2;
    color: #b91c1c;
}

.tnc-esim-tt .tnc-esim-tt__them {
    display: block;
    margin-top: 12px;
    color: var(--tnc-esim-xanh);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.tnc-esim-tt__bao {
    color: var(--tnc-esim-chu-phu);
    text-align: center;
}

/* ---- Trang trả tiền VietQR ---- */
.tnc-esim-qr__bang {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 20px;
    border-radius: 14px;
}

.tnc-esim-qr__bang > div:not(.tnc-esim-qr__dem):not(.tnc-esim-qr__tick) {
    flex: 1;
    min-width: 0;
}

.tnc-esim-qr__bang strong {
    display: block;
    font-size: 17px;
}

.tnc-esim-qr__bang span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    opacity: .9;
}

.tnc-esim-qr__bang--cho {
    background: var(--tnc-esim-grad);
    color: #fff;
}

.tnc-esim-qr__bang--xong {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
}

.tnc-esim-qr__bang--loi {
    background: #f1f5f9;
    color: var(--tnc-esim-chu);
}

.tnc-esim-qr__bang--loi .tnc-esim-tt__nut {
    width: auto;
}

.tnc-esim-qr__tick {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #059669;
    font-size: 24px;
    font-weight: 800;
}

.tnc-esim-qr__dem {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .18);
    text-align: center;
}

.tnc-esim-qr__dem small {
    display: block;
    font-size: 11px;
    opacity: .9;
}

.tnc-esim-qr__dem b {
    font-size: 22px;
    font-variant-numeric: tabular-nums;
}

.tnc-esim-qr__khung {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.tnc-esim-qr__khung > .tnc-esim-qr__don:only-child {
    grid-column: 1 / -1;
    max-width: 640px;
}

.tnc-esim-qr__the {
    text-align: center;
}

.tnc-esim-qr__the .tnc-esim-tt__tieu-de {
    justify-content: center;
}

.tnc-esim-qr__anh {
    display: inline-block;
    padding: 12px;
    border: 2px solid #c7d2fe;
    border-radius: 16px;
    background: #fff;
}

.tnc-esim-qr__anh img {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    margin: 0;
}

.tnc-esim-tt .tnc-esim-qr__tai {
    display: table;
    margin-left: auto !important;
    margin-right: auto !important;
    margin: 10px 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tnc-esim-xanh);
}

.tnc-esim-qr__tt {
    margin-top: 14px;
    border-radius: 12px;
    background: #f8fafc;
    text-align: left;
}

.tnc-esim-qr__dong {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #eef2f7;
}

.tnc-esim-qr__dong:last-child {
    border-bottom: 0;
}

.tnc-esim-qr__dong span {
    flex: 0 0 110px;
    font-size: 13px;
    color: var(--tnc-esim-chu-phu);
}

.tnc-esim-qr__dong strong {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    word-break: break-all;
}

.tnc-esim-qr__dong.is-so strong {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 16px;
    letter-spacing: .04em;
}

.tnc-esim-qr__dong.is-tien strong {
    font-size: 18px;
    color: #dc2626;
}

.tnc-esim-qr__dong.is-nd strong {
    color: var(--tnc-esim-xanh);
    font-size: 16px;
}

.tnc-esim-tt .tnc-esim-qr__copy {
    flex: 0 0 auto;
    min-height: 0;
    margin: 0;
    padding: 4px 10px;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    background: #fff;
    color: var(--tnc-esim-xanh);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.tnc-esim-tt .tnc-esim-qr__copy.is-xong {
    border-color: #059669;
    background: #059669;
    color: #fff;
}

.tnc-esim-tt .tnc-esim-qr__ghi-chu {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
    text-align: left;
}

.tnc-esim-tt .tnc-esim-qr__cho {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 0;
    color: var(--tnc-esim-chu-phu);
    font-size: 13px;
}

.tnc-esim-qr__cham {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f59e0b;
    animation: tnc-esim-nhap-nhay 1.2s infinite;
}

@keyframes tnc-esim-nhap-nhay {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.7); }
}

.tnc-esim-qr__don .tnc-esim-tt__ds {
    border-top: 1px solid var(--tnc-esim-vien);
    border-bottom: 1px solid var(--tnc-esim-vien);
    margin-bottom: 8px;
}

.tnc-esim-qr__khach {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 6px 10px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px dashed var(--tnc-esim-vien);
    font-size: 13px;
}

.tnc-esim-qr__khach dt {
    color: var(--tnc-esim-chu-phu);
}

.tnc-esim-qr__khach dd {
    margin: 0;
    font-weight: 600;
    word-break: break-word;
}

@media (max-width: 992px) {
    .tnc-esim-tt__khung,
    .tnc-esim-qr__khung {
        grid-template-columns: minmax(0, 1fr);
    }
    .tnc-esim-tt__cot-phai {
        position: static;
    }
}

@media (max-width: 600px) {
    .tnc-esim-tt__hang { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .tnc-esim-tt__hop { padding: 16px; }
    .tnc-esim-qr__bang { flex-wrap: wrap; padding: 14px 16px; }
    .tnc-esim-qr__dem { width: 100%; }
    .tnc-esim-qr__dong span { flex-basis: 90px; }
    .tnc-esim-qr__khach { grid-template-columns: 110px 1fr; }
    .tnc-esim-gio-nut { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}

/* =========================================================
 * ADMIN – ĐƠN HÀNG & CÀI ĐẶT THANH TOÁN
 * ========================================================= */

.tnc-esim-don__nhan {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mau) 14%, #fff);
    color: var(--mau);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    vertical-align: middle;
}

.tnc-esim-don__tim {
    float: right;
    margin: 6px 0 10px;
}

.tnc-esim-don__bang {
    clear: both;
}

.tnc-esim-don__bang td {
    vertical-align: middle;
}

.tnc-esim-don__tieu-de {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tnc-esim-don__khung {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.tnc-esim-don__hd {
    display: inline-block;
    margin: 0 6px 8px 0;
}

.tnc-esim-don__dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 6px 10px;
    margin: 0 0 12px;
}

.tnc-esim-don__dl dt {
    color: #646970;
}

.tnc-esim-don__dl dd {
    margin: 0;
    font-weight: 600;
    word-break: break-word;
}

.tnc-esim-don__lich-su {
    margin: 0;
}

.tnc-esim-don__lich-su li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f1;
}

.tnc-esim-don__lich-su time {
    display: inline-block;
    min-width: 120px;
    color: #646970;
}

.tnc-esim-cd__khung {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.tnc-esim-cd__phai {
    position: sticky;
    top: 40px;
}

.tnc-esim-cd__xem {
    text-align: center;
}

.tnc-esim-cd__xem img {
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 10px auto 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

.tnc-esim-cd__trong {
    padding: 40px 10px;
    color: #a7aaad;
}

@media (max-width: 1100px) {
    .tnc-esim-don__khung,
    .tnc-esim-cd__khung { grid-template-columns: minmax(0, 1fr); }
    .tnc-esim-cd__phai { position: static; }
}

/* ===== v2.1.0: thanh toán thiếu + webhook ===== */
.tnc-esim-qr__bang--thieu {
    background: linear-gradient(135deg, #ea580c, #f59e0b);
    color: #fff;
}

.tnc-esim-qr__bang--thieu b {
    font-weight: 800;
}

.tnc-esim-cd__wh {
    margin: 14px 0;
    padding: 4px 16px 8px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #f9fafb;
}

.tnc-esim-cd__wh-bat {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
}

.tnc-esim-cd__wh .form-table th {
    width: 130px;
}

.tnc-esim-cd__wh .tnc-esim-admin__sc-dong code {
    word-break: break-all;
}

.tnc-esim-gd__nd {
    display: inline-block;
    max-width: 380px;
    white-space: normal;
    word-break: break-word;
}

.tnc-esim-gd__ghep {
    display: flex;
    gap: 4px;
}

.tnc-esim-gd__ghep input {
    width: 110px;
}

.tnc-esim-don__tien {
    font-size: 14px;
}

/* ===== v2.2.0: eSIM giao khách, tra cứu ===== */
.tnc-esim-ge-khach {
    margin-bottom: 24px;
}

.tnc-esim-tt .tnc-esim-ge-khach__luu-y {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
}

.tnc-esim-ge-khach__luoi {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.tnc-esim-ge-khach__the {
    padding: 16px;
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    background: #f8faff;
    text-align: center;
}

.tnc-esim-ge-khach__ten {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.tnc-esim-ge-khach__ten img {
    width: 32px;
    height: 22px;
    margin: 0;
    object-fit: cover;
    border-radius: 3px;
}

.tnc-esim-tt .tnc-esim-ge-khach__qr {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    margin: 12px auto;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.tnc-esim-ge-khach__the .tnc-esim-qr__dong {
    background: #fff;
    border-radius: 8px;
    margin-top: 6px;
    text-align: left;
}

.tnc-esim-ge-khach__the .tnc-esim-qr__dong {
    flex-wrap: wrap;
    gap: 2px 8px;
    padding: 8px 10px;
}

.tnc-esim-ge-khach__the .tnc-esim-qr__dong span {
    flex: 0 0 100%;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.tnc-esim-ge-khach__the .tnc-esim-qr__dong strong {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 12px;
}

.tnc-esim-tt .tnc-esim-ge-khach__ghi-chu,
.tnc-esim-tt .tnc-esim-ge-khach__lh {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--tnc-esim-chu-phu);
}

.tnc-esim-ge-khach__hd {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
}

.tnc-esim-ge-khach__tab {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.tnc-esim-tt .tnc-esim-ge-khach__tab button {
    min-height: 0;
    margin: 0;
    padding: 6px 14px;
    border: 1px solid var(--tnc-esim-vien-dam);
    border-radius: 999px;
    background: #fff;
    color: var(--tnc-esim-chu);
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.tnc-esim-tt .tnc-esim-ge-khach__tab button.is-chon {
    border-color: transparent;
    background: var(--tnc-esim-grad);
    color: #fff;
}

.tnc-esim-ge-khach__hd ol {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.7;
}

.tnc-esim-tc__form {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.tnc-esim-tc__kq:not(:empty) {
    margin-top: 8px;
    scroll-margin-top: 100px;
}

.tnc-esim-tt .tnc-esim-tc__mo-ta {
    margin: -6px 0 16px;
    color: var(--tnc-esim-chu-phu);
    font-size: 13px;
}

/* Admin: nhập eSIM */
.tnc-esim-ge h2 small {
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
}

.tnc-esim-ge__luoi {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.tnc-esim-ge__o {
    padding: 12px;
    border: 2px dashed #dcdcde;
    border-radius: 10px;
    background: #fff;
    outline: none;
}

.tnc-esim-ge__o.is-du {
    border-style: solid;
    border-color: #86efac;
}

.tnc-esim-ge__o.is-chon {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.tnc-esim-ge__o.is-moi .tnc-esim-ge__anh {
    outline: 2px solid #f59e0b;
}

.tnc-esim-ge__dau {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.tnc-esim-ge__qr {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.tnc-esim-ge__anh {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f6f7f7;
    text-align: center;
    overflow: hidden;
}

.tnc-esim-ge__anh img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.tnc-esim-ge__trong {
    padding: 6px;
    font-size: 11px;
    color: #787c82;
    line-height: 1.4;
}

.tnc-esim-ge__nut-qr {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.tnc-esim-ge__o label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #50575e;
}

.tnc-esim-ge__o label input[type="text"] {
    display: block;
    width: 100%;
    margin-top: 2px;
}

.tnc-esim-ge__hang {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tnc-esim-ge__hd {
    margin: 14px 0 0;
}

.tnc-esim-don__sua label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #50575e;
}

.tnc-esim-don__sua label a {
    float: right;
    font-size: 11px;
}

.tnc-esim-don__sua input,
.tnc-esim-don__sua textarea {
    display: block;
    width: 100%;
    margin-top: 2px;
}

.tnc-esim-don__ghi-chu-khach {
    padding: 8px 10px;
    border-radius: 6px;
    background: #fffbeb;
    font-size: 13px;
}

.tnc-esim-don__tim label {
    margin-right: 4px;
}

/* ===================== THANH TOÁN BẰNG SỐ DƯ VÍ (thanh-toan-vi.php) ===================== */

.tnc-esim-tt__pttt-ds {
    display: grid;
    gap: 10px;
}

.tnc-esim-tt__pttt-ds .tnc-esim-tt__pttt {
    margin: 0;
    border-color: var(--tnc-esim-vien);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.tnc-esim-tt__pttt-ds .tnc-esim-tt__pttt:hover {
    border-color: var(--tnc-esim-vien-dam);
}

.tnc-esim-tt__pttt-ds .tnc-esim-tt__pttt.is-chon {
    border-color: var(--tnc-esim-xanh);
    background: var(--tnc-esim-xanh-nhat);
}

.tnc-esim-tt__pttt-ds input[type="radio"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--tnc-esim-xanh);
}

.tnc-esim-tt__pttt-icon--vi {
    background: linear-gradient(135deg, #15803d, #22c55e);
}

.tnc-esim-tt__vi-so-du {
    color: #15803d;
}

.tnc-esim-tt__vi-thieu {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
}

.tnc-esim-tt__vi-thieu[hidden],
.tnc-esim-tt__vi-nap[hidden] {
    display: none;
}

.tnc-esim-tt__vi-nap,
.tnc-esim-tt__vi-goi-y a,
.tnc-esim-tt__loi-chung a {
    color: var(--tnc-esim-xanh);
    font-weight: 700;
}

.tnc-esim-tt__vi-goi-y {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--tnc-esim-chu-phu);
}

.tnc-esim-qr__bang span.tnc-esim-qr__vi {
    display: block;
    margin-top: 4px;
    font-weight: 600;
}

/* Admin */
.tnc-esim-don__vi {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    font-size: 13px;
    line-height: 1.6;
}

.tnc-esim-don__the-vi {
    color: #15803d;
    font-weight: 600;
}
