.auto-renew-switch label {
    color:#9d9d9d;
    font-weight: normal;
    font-size: 14px;
    margin-bottom: 5px;

}
.auto-renew-switch label.active{
    color:var(--color-main);
}
.auto-renew-switch {
    margin-top: 10px;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
}
.has-auto-renew{
    width: 120px;
    margin-bottom: auto;
}
.on-off-switch-thumb-color{
    background: #fff;
}
.on-off-switch-track-white{
    background: transparent;
}
.on-off-switch {
    margin: 0 auto;
}
.cart_service_item_serv.cart_service_item_fee {
    display:none;
}
.auto-renew-switch .btn-primary {
    background:var(--color-main);
    border-color: var(--color-main);
}
.auto-renew-switch .btn-sm, .auto-renew-switch .btn-group-sm>.btn {
    line-height: .85;
    min-height: 23px ;
    min-width: 38px ;
    
}

.auto-renew-switch .btn-primary:not(:disabled):not(.disabled):active, .auto-renew-switch .btn-primary:not(:disabled):not(.disabled).active, .auto-renew-switch .show>.btn-primary.dropdown-toggle{
    background:var(--color-main);
    border-color: var(--color-main);
}
.auto-renew-switch label.btn{
    margin-bottom:0;
}
.auto-renew-switch label.btn.btn-light.btn-sm.toggle-off {
    color: #afafaf;
    background: #afafaf;
}
.is-auto-renew {
    position: relative;
    margin-left: auto;
    text-align: center;
    height: 70px;
    display:flex;
    align-items:center;
}
.tips-auto-renew{
    
    position: absolute;
    top: 40%;
    right: -30%;
}
.toggle.ios, .toggle-on.ios, .toggle-off.ios { border-radius: 20px; }
.toggle.ios .toggle-handle { border-radius: 20px; }
@media (max-width: 991px){
    .is-auto-renew {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    .tips-auto-renew{
        position: unset;
    }
    .tips-auto-renew i {
        font-size: 18px;
    }
    
}
.is-use-voucher {
    padding: 8px;
    border: 1px solid var(--color-main);
    background: #E7F5F9;
    border-radius: 5px;
    color: var(--color-main);
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
}

.service-dm-icon.has-flag {
    background: #fff;box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    padding:0;
}

span.service-dm-icon.has-flag i {
    width: 100%;
    height: 100%;
}

.service_cart_whois_protect.service-free-buzz {
    margin-top: 10px;
    background-image: -webkit-linear-gradient(left, #058dc2, #4abab9);
    background-image: -o-linear-gradient(left,#058dc2,#4abab9);
    background-image: -moz-linear-gradient(left,#058dc2,#4abab9);
    
    display: block;
    color: red;
    background: #f6e3e3;
}

.service_cart_whois_protect.service-free-buzz a {
    color: red;
    font-weight: bold;
}
    div#pop_free_buzz a {
        text-decoration: underline;
        font-weight: bold;
}
select.change_boxcount_cycle {
    font-size: 15px;
    height: auto;
    margin: 0;
    border-color: #7b7b7b;
    border-radius: 5px;
}
.package-addon-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-quantity .quantity-input {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
}
/**addon list item**/
.root-item-quantity {
    font-size: 1rem;
    gap: 10px;
    margin-top: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}
.root-item-quantity .product-quantity .quantity-input{
    width: 60px;
    max-width: 60px;
    height: 30px;
}
.cart_service_cycle.domain_select_cycle.mt- {
    margin-bottom: auto;
}

.is-auto-renew {
    margin-bottom: auto;
    height: auto;
}

.auto-renew-switch {
    margin-top: 0;
}
.section-checkout-list .item-add-package .list-package .form-check-2 {
    display: flex;
    align-items: center;
    gap: 0;
    padding-left: 0;
    justify-content: space-between;
    background-color: #f9f9f9;
}
.section-checkout-list .item-add-package .list-package .form-check-2 .form-check-label .name-package>span{
    margin: 0;
}

.section-checkout-list .item-add-package .list-package .form-check-2 .form-check-input {
    float: none;
    margin: 4px 0 0;
    flex-shrink: 0;
    cursor: pointer;
}

.section-checkout-list .item-add-package .list-package .form-check-2 .item-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}

.section-checkout-list .item-add-package .list-package .form-check-2 .item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    padding: 5px 10px;
}

.section-checkout-list .item-add-package .list-package .form-check-2 .price-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-checkout-list .item-add-package .list-package .form-check-2 .price-line label,
.section-checkout-list .item-add-package .list-package .form-check-2 .addon_price_total {
    margin: 0;
    cursor: pointer;
    color: #206265;
    font-weight: bold;
}

.section-checkout-list .item-add-package .list-package .form-check-2 .quantity-input {
    width: 50px;
    height: 30px;
    padding: 0 4px;
    line-height: 26px;
}

/* Làm mờ ô số lượng khi chưa chọn addon */
.section-checkout-list .item-add-package .list-package .form-check-2 .form-check-input:not(:checked) ~ .item-right .product-quantity {
    opacity: .5;
}
span.payment-mt-txt {
    display: flex;
    flex-wrap: wrap;
}

span.payment-gw-title {
    font-size: .9rem;
    flex: 0 0 100%;
    font-weight: bold;
}

span.payment-gw-des {
    font-size: .8rem;
}
.payment_method_title{
    font-size: 1.1rem;

}
@media(max-width: 768px){
    span.payment-gw-title{
        font-size: 0.9rem;
    }
}
.cart_widget_policy {
    display: flex;
    align-items: flex-start; /* Giữ checkbox nằm trên cùng nếu text bị rớt dòng */
    gap: 10px; /* Khoảng cách giữa checkbox và chữ */
}

.custom-checkbox {
    width: 18px; /* Tăng chiều rộng */
    height: 18px; /* Tăng chiều cao */
    accent-color: #4ABAB9; /* Đổi màu nền của checkbox khi được tick */
    cursor: pointer; /* Hiển thị con trỏ tay khi di chuột vào ô */
    flex-shrink: 0; /* Ngăn checkbox bị bóp méo khi text quá dài */
    margin-top: 2px; /* Căn chỉnh nhẹ cho đều với dòng chữ đầu tiên */
}

.policy-label {
    cursor: pointer;
    margin: 0;
    line-height: 1.5;
}
/*payment item v2*/
/* 1. Grid Container: Equal row heights and spacing */
.payment_method_wrapper_2 ul.list-payment-methods {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 1fr !important; /* Ensures all items in the grid have the same height */
    gap: 12px !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 2. Grid Item: Force children to stretch to full height */
.payment_method_wrapper_2 ul.list-payment-methods li {
    display: flex !important;
}

.payment_method_wrapper_2 ul.list-payment-methods li .custom-control {
    display: flex !important;
    flex: 1 !important; /* Fills the height of the LI */
    width: 100% !important;
    margin: 0 !important;
}

/* 3. The Bordered Box (Label) */
.payment_method_wrapper_2 ul.list-payment-methods li .custom-control-label {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: flex-start !important; /* Aligns content to top for a cleaner look */
    padding: 10px !important;
    cursor: pointer;
}

/* 4. Typography & Icon Scaling */
.payment_method_wrapper_2 .payment-gw-title {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
}

.payment_method_wrapper_2 .payment-gw-des {
    display: block ;
    font-size: 13px ;
    line-height: 1.3 ;
    color: #666 ;
}

.payment_method_wrapper_2 .payment-mt-icon img {
    width: 30px ;
    height: 30px ;
    object-fit: contain ;

}
label.payment-gateway-heading.panel-header.bg1 {
    padding: 10px 15px;
    display: block;
}
.payment_method_wrapper.payment_method_wrapper_2{
    border-top-left-radius: 10px ;
    border-top-right-radius: 10px;
    background-color: #fff;
    float: left;
    margin-top: 20px;
}
.tong-tien-final .service-cart-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
}

.tong-tien-final .service-cart-content .service-cart-content-period {
    font-size: 18px;
    color: var(--color-main);
}

.tong-tien-final {
    display: flex;
    align-items: center;
}
.transaction_payment_method_bank.disabled .custom-control-label {
    opacity: .7;
    cursor: not-allowed !important;
}
.transaction_payment_method_bank.disabled .custom-control-label .payment-mt-icon {
    opacity: .7;
    cursor: not-allowed !important;
}
.payment_method_wrapper_2 li .custom-control-label::after{
    opacity: 0;
}
.payment_method_wrapper_2 .payment-gw-des b {
    font-size: 16px;
}
.order-declaration-section .alert_tooltip{
    margin-top: 0;
}
.btn-go-to-checkout  {
    margin-top: 15px;
}
.btn-go-to-checkout  span.btn_text {
    text-transform: capitalize;
    font-size: 16px;
}
.payment_method_wrapper_2 .box-shopcart-container .panel-header{
    font-size: 16px;
}

/* Tablet and Small Screens (Max 768px) */
@media (max-width: 768px) {
    .payment_method_wrapper_2 ul.list-payment-methods {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .payment_method_wrapper_2 .payment-mt-icon img {
        
    }
}

/* Small Mobile Phones (Max 480px) */
@media (max-width: 480px) {
    .payment_method_wrapper_2 ul.list-payment-methods {
        grid-template-columns: 1fr !important; /* Stack items vertically */
        grid-auto-rows: auto !important; /* Allow items to expand naturally */
    }
    
    .payment_method_wrapper_2 ul.list-payment-methods li .custom-control-label {
        padding: 12px !important; /* Slightly more padding for touch targets */
    }

    .payment_method_wrapper_2 .payment-gw-title {
        font-size: 15px !important; /* Slightly larger for easier reading on small screens */
    }
    
    .payment_method_wrapper_2 .payment-gw-des {
        white-space: normal !important; /* Allow text to wrap on mobile */
        font-size: 13px !important;
    }
}
/*end payment item v2*/


/* Mobile: cột giá xuống dòng */
@media (max-width: 575px) {
    .section-checkout-list .item-add-package .list-package .form-check-2 {
        flex-wrap: wrap;
    }
    .section-checkout-list .item-add-package .list-package .form-check-2 .item-right {
        width: 100%;
        align-items: flex-start;
        padding-left: 10px;
    }
    .section-checkout-list .item-add-package .list-package .form-check-2 .form-check-label{
        flex: 0 0 100%;
    }
    .section-checkout-list .item-add-package .list-package .form-check .form-check-label::before, .section-checkout-list .item-add-package .list-package .form-check .form-check-label::after{
        top: calc(50% - 18px);
    }
    .section-checkout-list .item-add-package .list-package .form-check-2 .form-check-label::before, .section-checkout-list .item-add-package .list-package .form-check-2 .form-check-label::after{
        top: 50%;
    }
    .root-item-quantity{
        margin-top: 0;
        font-size: 1rem;
    }
    .section-checkout-list .item-add-package .list-package .form-check-2 .form-check-input:checked ~ .form-check-label::after{
        left: 91%;
        top: 16%;
        width: 8px;
        height: 14px;
    }
    
    .root-item-quantity .product-quantity .quantity-input{
        margin: 0;
    }
    .section-checkout-list .item-add-package .list-package .form-check-2 .quantity-input {
        width: 60px;
        height: 35px;
        font-size: 1rem;
    }
    .is-auto-renew {
        margin-top: 15px;
    }

}