/* Trang trả góp — giao diện chuyên nghiệp, không đụng logic JS */
section#payment.tragop-page {
    padding: 28px 0 48px;
    background: transparent;
    font-family: 'SVN ProductSans', sans-serif !important;
}

section#payment.tragop-page input,
section#payment.tragop-page select,
section#payment.tragop-page button,
section#payment.tragop-page .select2-container .select2-choice,
section#payment.tragop-page .select2-container .select2-choice > span:first-child,
section#payment.tragop-page .select2-results .select2-result-label {
    font-family: 'SVN ProductSans', sans-serif !important;
}

.tragop-page__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.tragop-page__hero {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.tragop-page__hero-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #21C1E4, #3e68b2);
    color: #fff;
    font-size: 20px;
}

.tragop-page__title {
    margin: 0 0 6px;
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    color: #0f172a;
    text-align: left;
    line-height: 1.3;
}

.tragop-page__subtitle {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.tragop-page__grid {
    margin-left: -10px;
    margin-right: -10px;
}

.tragop-page__grid > .columns {
    padding-left: 10px;
    padding-right: 10px;
}

/* Panels */
section#payment.tragop-page .pricing-table {
    float: none;
    width: 100%;
    margin: 0 0 20px;
    border: 1px solid #e8edf2 !important;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

section#payment.tragop-page .pricing-table .bullet-item {
    padding: 18px 20px !important;
    margin: 0 !important;
    border: none !important;
}

/* Gói trả góp — header */
.tragop-plans__head {
    text-align: left;
    margin-bottom: 16px;
}

.tragop-plans__head b {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.tragop-plans__head p {
    margin: 0 !important;
    font-size: 13px;
    color: #64748b;
}

.tragop-plans__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.tragop-plans__filters select {
    flex: 1 1 200px;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    font-size: 14px !important;
    color: #0f172a;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.tragop-plans__filters select:focus {
    outline: none;
    border-color: var(--color1, #21C1E4) !important;
    box-shadow: 0 0 0 3px rgba(33, 193, 228, 0.12) !important;
    background: #fff !important;
}

/* Bảng so sánh ngân hàng */
.tragop-page .list_nganhang {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #eef2f6;
}

.tragop-page .price-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.tragop-page table > tr {
    vertical-align: middle;
}

.tragop-page .price-table td {
    padding: 12px 10px;
    min-width: 100px;
    position: relative;
    border: none;
    border-bottom: 1px solid #eef2f6;
    border-right: 1px solid #eef2f6;
    width: 100%;
    font-size: 13px;
    color: #334155;
    text-align: center;
    background: #fff;
    line-height: 1.45;
}

.tragop-page .price-table tr:last-child td {
    border-bottom: none;
}

.tragop-page .price-table td:last-child {
    border-right: none;
}

.tragop-page .price-table tr td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    text-align: left;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    min-width: 140px;
    box-shadow: 4px 0 8px -4px rgba(15, 23, 42, 0.06);
}

.tragop-page .price-table tr:first-child td {
    background: #f1f5f9;
    font-weight: 600;
    padding-top: 14px;
    padding-bottom: 14px;
}

.tragop-page .price-table tr:first-child td:first-child {
    background: #e8eef4;
}

.tragop-page .price-table td img {
    max-height: 36px !important;
    width: auto;
    object-fit: contain;
}

.tragop-page .price-table td.is-button {
    padding: 10px 6px;
    vertical-align: middle;
}

.tragop-page .price-table .choose-package {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 8px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #3e68b2, #21C1E4);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(33, 193, 228, 0.25);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.tragop-page .price-table .choose-package:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(33, 193, 228, 0.35);
}

.tragop-page .price-table .choose-package.active {
    background: linear-gradient(135deg, #d82a29, #e74c3c);
    box-shadow: 0 4px 14px rgba(216, 42, 41, 0.35);
}

.tragop-page .price-table .choose-package .text-order {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

/* Panel checkout — tiêu đề section */
section#payment.tragop-page .title-payment {
    margin: 0;
    padding: 14px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f172a !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #eef2f6;
    text-align: left !important;
}

section#payment.tragop-page .title-payment.backgroundcl-Hong {
    background: #f8fafc !important;
    color: #0f172a !important;
}

/* Sản phẩm */
.tragop-product .item-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 4px 0 !important;
}

.tragop-product .item-cart .columns {
    float: none;
    width: auto;
    padding: 0 !important;
}

.tragop-product .item-cart .small-12.medium-4.large-6 {
    flex: 1 1 220px;
    min-width: 0;
}

.tragop-product .item-content-payment-table {
    margin: 0;
    text-align: left !important;
}

.tragop-product .item-content-payment-table a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
}

.tragop-product .item-content-payment-table a:hover {
    color: var(--color1, #21C1E4);
}

.tragop-product .img-cart {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #eef2f6;
    background: #fff;
    padding: 4px;
}

.tragop-product .input-count {
    width: 64px !important;
    height: 40px !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600;
    text-align: center;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
}

.tragop-product .columns-table-payment-2 {
    margin: 0;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #d82a29 !important;
    text-align: right !important;
}

/* Form người mua */
.tragop-form .form-group {
    margin: 0 0 10px !important;
}

.tragop-form .form-group:last-child {
    margin-bottom: 0 !important;
}

.tragop-form__row-2 {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.tragop-form__row-2 > .form-group {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    margin: 0 !important;
}

.tragop-form__row-2 .select2-container {
    width: 100% !important;
    display: block;
}

.tragop-form__submit {
    margin-top: 4px !important;
}

section#payment.tragop-page .tragop-form input[type="text"],
section#payment.tragop-page .tragop-form input[type="tel"],
section#payment.tragop-page .tragop-form input[type="email"],
section#payment.tragop-page .tragop-form select {
    width: 100%;
    height: 42px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    font-family: 'SVN ProductSans', sans-serif !important;
    color: #0f172a;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

section#payment.tragop-page .tragop-form input:focus,
section#payment.tragop-page .tragop-form select:focus {
    outline: none;
    border-color: var(--color1, #21C1E4) !important;
    box-shadow: 0 0 0 3px rgba(33, 193, 228, 0.12) !important;
}

/* Nút gửi yêu cầu */
section#payment.tragop-page #payging_btn_tragop {
    display: none;
    width: 100%;
    max-width: 250px;
    height: 46px;
    margin: 12px 0 0 !important;
    padding: 0 16px;
    border: none !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #2cc067, #22a858) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-family: 'SVN ProductSans', sans-serif !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(44, 192, 103, 0.35);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

section#payment.tragop-page #payging_btn_tragop:hover {
    background: linear-gradient(135deg, #22a858, #1d9449) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(44, 192, 103, 0.4);
}

section#payment.tragop-page #payging_btn_tragop.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Select2 trong trang trả góp */
.tragop-page .select2-container {
    font-family: 'SVN ProductSans', sans-serif !important;
}

.tragop-page .select2-container .select2-choice {
    height: 42px !important;
    line-height: 40px !important;
    padding: 0 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-family: 'SVN ProductSans', sans-serif !important;
    font-size: 14px !important;
    color: #0f172a !important;
}

.tragop-page .select2-container .select2-choice > span:first-child {
    line-height: 40px !important;
}

.tragop-page .select2-container .select2-choice .select2-arrow {
    border-left: none;
    background: transparent;
}

.tragop-page .select2-dropdown-open .select2-choice {
    border-color: var(--color1, #21C1E4) !important;
}

/* Responsive */
@media only screen and (max-width: 64em) {
    .tragop-page__hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .tragop-page .price-table td {
        font-size: 12px;
        padding: 10px 6px;
    }

    .tragop-page .price-table tr td:first-child {
        min-width: 120px;
    }
}

@media only screen and (max-width: 40em) {
    section#payment.tragop-page {
        padding: 16px 0 70px;
    }

    .tragop-plans__filters {
        flex-direction: column;
    }

    .tragop-plans__filters select {
        width: 100%;
    }

    .tragop-form__row-2 {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .tragop-form__row-2 > .form-group {
        flex: 1 1 100%;
        margin-bottom: 10px !important;
    }

    section#payment.tragop-page #payging_btn_tragop {
        max-width: 100%;
    }

    .tragop-product .item-cart {
        flex-direction: column;
        align-items: flex-start;
    }

    .tragop-product .columns-table-payment-2 {
        text-align: left !important;
    }
}
