/* radio chon phuong thuc thanh toan */

/* THAY ĐỔI HOÀN TOÀN: Viết lại CSS cho radio button trên iPhone */
#payment_methods_mhn_wat input[type="radio"] {
    /* Reset toàn bộ style */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0;
    margin: 0;
    
    /* Thiết lập kích thước và kiểu dáng cơ bản */
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    
    /* Tạo viền tròn */
    border: 2px solid #ccc;
    border-radius: 50%;
    
    /* QUAN TRỌNG: Thêm background cho iPhone */
    background-color: transparent;
    box-shadow: inset 0 0 0 2px #fff;
}

/* THAY ĐỔI: Style khi radio được check */
#payment_methods_mhn_wat input[type="radio"]:checked {
    /* Đổi màu viền */
    border-color: #fb6e2e;
    /* QUAN TRỌNG: Thêm background màu cam khi check */
    background-color: #fb6e2e;
    /* Tạo viền trắng bên trong */
    box-shadow: inset 0 0 0 3px #fff;
}


/* THÊM MỚI: Style cho trạng thái focus */
#payment_methods_mhn_wat input[type="radio"]:focus {
    outline: none;
   
}


/* THÊM MỚI: Đảm bảo radio button luôn hiển thị đúng vị trí */
div#payment_methods_mhn_wat input[type="radio"] {
    cursor: pointer;
    margin-right: 5px;
    position: relative;
    top: 0;
}

/* THÊM MỚI: Đảm bảo label và radio button căn chỉnh đúng */
#payment_methods_mhn_wat label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
/* radio chon phuong thuc thanh toan end */

.qbn-popup-mhn-wat {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}



#qbn-close-mhn-wat:hover{
    transform: rotatez(90deg) !important;
}

.qbn-popup-mhn-wat-content {
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    
    display: flex;
    flex-direction: column;
    padding: 0; /* Xóa padding ở đây */
     -webkit-text-size-adjust: 100%; /* Ngăn chặn iOS zoom */
}

.ten-prd-mhn-wat-container {
    text-align: center;
    padding: 12px 30px;
   
}

.popup-header-mhn-wat {
    background-color: #0b52a4;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.ten-prd-mhn-wat-container {
    font-weight: bold;
    margin: 0;
    font-size: 1.0em;
    color: white;
    text-transform: uppercase;
}

.popup-main-content-mhn-wat {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 10px;
    overflow-y: auto;
    background-color: white;
     -webkit-overflow-scrolling: touch; /* Smooth scrolling trên iOS */
}



.quick-buy-container-mhn-wat {
    display: flex;
    justify-content: space-between;
}

.product-info-mhn-wat, .customer-info-mhn-wat {
    width: 48%;
}

.mhn-wat-input promo-input-mhn-wat{
    
}

.mhn-wat-input {
    vertical-align: middle !important;
    box-shadow: none !important;
    margin: 4px 0 !important;
    height: 35px !important;
    font-size: 14px !important;
    padding: 5px 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    transition: border-color 0.3s ease-in-out !important;
     touch-action: manipulation; /* Ngăn chặn double-tap zoom */
      -webkit-tap-highlight-color: transparent; /* Loại bỏ highlight khi tap */
    
}

/* Sửa cho textarea */

.mhn-wat-input:focus {
    outline: none !important;
    border-color: rgb(27, 42, 75) !important; 
   
}

.error-field-mhn-wat {
    border: 1.8px solid red !important;
}

#payment_methods_mhn_wat {
        margin: 0 auto;
        font-size: 14px !important;
}

#payment_methods_mhn_wat label {
    
    margin: 0 auto;
    cursor: pointer;
    font-weight: 400 !important;
    font-size: 13px !important;
}

div#payment_methods_mhn_wat input[type="radio"] {
    cursor: pointer;
}

#payment_methods_mhn_wat input[type="radio"] {
    margin-right: 5px;
    position: relative;
    font-size: 16px !important;
    margin-top: 0;
    margin-bottom: 0;
}

.mhn-buy-now-wat {
    border: none;
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
    clear: both;
    padding: 10px 0px;
    border-radius: 4px;
    font-size: 17px;
    line-height: normal;
    text-align: center;
   
    text-decoration: none;
    width: 100%;
    color: white !important;
    border-bottom: 0px !important;
    max-width: 100% !important;
    background-color: #fb6e2e;
    margin: 0 0 10px 0;
    transition: transform .3s, border .3s, background .3s, box-shadow .3s, opacity .3s, color .3s;
}

.mhn-buy-now-wat:hover {
background: #ffb600;
    color: white ;

}
span.mhn-confirmation-wat {
    font-size: 15px;
    font-weight: 300;
}

.promo-code-mnh-wat-container {
    display: flex;
    align-items: center;
}

.img-nameprd-mhn-wat-container {
    display: flex;
    align-items: center; 
}

.sđt-code-ht-container {
   display: flex;
   align-items: center;  
}

.promo-input-mhn-wat {
    flex: 1;
    margin-right: 10px !important;
}

.promo-button {
    flex-shrink: 0;
}

.mut-mhn-wat-button {
    border: 0;
    border-radius: .25em;
    background: initial;
    background-color: #0b52a4;
    color: #fff;
    font-size: 16px;
    padding: 8px;
    cursor: pointer;
    transition: transform .3s, border .3s, background .3s, box-shadow .3s, opacity .3s, color .3s;
}

div#payment_methods_mhn_wat h4 {
    margin: 0 auto;
    font-size: 15px;
    font-weight: bold;
}

.variation-option-mhn-wat {
    margin-right: 5px;
    padding: 8px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 5px;
    cursor: pointer;
    position: relative;
    display: inline-block;
}



.variation-option-mhn-wat.selected {
   border: 1px solid #ff7a00;
   
}

/*so lương san pham*/
/* THÊM MỚI: Style cho wrapper mới */
.quantity-wrapper-mhn-wat {
    display: flex;
    align-items: center;
    margin-top: 10px;
   
}

/* THÊM MỚI: Điều chỉnh style cho label */
.quantity-wrapper-mhn-wat label {
    
    display: flex;
    white-space: nowrap;
    margin-right: 10px;
}
/*so luong san pham end*/


.img-nameprd-mhn-wat-container img {
    border-radius: 5px;
}

.img-nameprd-mhn-wat-container span#product_price {
    color: red;
    font-weight: bold;
}

.product-variations-mhn-wat h4 {
    margin: 0 auto;
    font-size: 15px;
    font-weight: bold;
}

#loading-overlay-mhn-wat {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999 !important; /* Tăng z-index bằng popup */
}

#loading-spinner-mhn-wat {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*di dong */
@media only screen and (max-width: 768px) {
    
  .quick-buy-container-mhn-wat {
    display: block !important;
} 
.product-info-mhn-wat, .customer-info-mhn-wat{
        width: 100% !important;
}

.qbn-popup-mhn-wat-content {
         transform: translateZ(0); /* Kích hoạt GPU acceleration */
        -webkit-font-smoothing: antialiased;
    width: 95% !important;
   
}

.mhn-wat-input{
    font-size: 16px !important;
}

}

/*di dong end*/

/*may tinh*/

@media(min-width: 1024px) {
   
}

/*may tinh end*/


#mnh-confirm-wat {
       padding: 10px;
    text-transform: uppercase;
    display: block;
    text-align: center;
    line-height: 1.31;
    font-weight: 700;
}


#mnh-confirm-wat:hover {
    background: red;
}

.error-text-bienthe-wat{
    line-height: 1.3em;
}

#apply_promo_code:hover{
  background: red;    
}

.error-message-container-mhn-wat {
    font-size: 14px !important;
    display: block !important;
    font-weight: 400;
    text-align: left;
    line-height: 3px;
}

.thong-tin-khach-hang-mhn-wat {
    margin: 0 auto;
    font-size: 17px;
    font-weight: bold;
}

.product-variations-mhn-wat span.variation-name-mhn-wat {
    font-size: 16px;
}


.quantity-control-wat {
    border: 1px solid #ccc;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    height: 35px;
    margin-top: 0; /* Đã thay đổi từ 10px */
}


input#product_quantity_mhn_wat {
    height: 100% !important;
    vertical-align: middle !important;
    padding: 0 !important;
    width: 37px !important;
    text-align: center;
    border: none !important;
    background: none !important;
    font-size: 16px !important;
}




input#product_quantity_mhn_wat {
    color: #646161 !important;
}

strong#decrease_quantity_mhn_wat,
strong#increase_quantity_mhn_wat {
    padding: 0 5px;
    font-size: 20px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}


#increase_quantity_mhn_wat:active {
    color: green;
}

#increase_quantity_mhn_wat:hover {
    color: orange;
}

#decrease_quantity_mhn_wat:active {
    color: green;
}

#decrease_quantity_mhn_wat:hover {
    color: orange;
}

/*an mui ten len xuong them so luong san pham*/

/* Ẩn mũi tên cho trình duyệt WebKit */
#product_quantity_mhn_wat::-webkit-inner-spin-button, 
#product_quantity_mhn_wat::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0; 
}

/* Ẩn mũi tên cho Firefox */
#product_quantity_mhn_wat {
    -moz-appearance: textfield;
}
/*an mui ten len xuong them so luong san pham end*/

strong#apply_promo_code {
    cursor: pointer !important;
    padding: 4px 7px !important;
}

.note-mhn_wat{
    font-weight:400 !important;
    font-size: 15px !important;
    display: inline-block ;

}

/*ten san pham*/

.ten-sp-mhn-wat {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em; /* Adjust based on your line-height */
    line-height: 1.4em; /* Adjust as needed */
}
.ten-sp-mhn-wat {
    width: 95%;
   
}

/*select bien the sp*/
.variation-option-mhn-wat.selected:after {
    background: linear-gradient(270.5deg, #f79922 -.62%, #ff7a00 99.14%);
    border-radius: 0 0 0 20px;
    color: #fff;
    content: "✓";
    font-size: 10px;
    height: 16px;
    padding-bottom: 14px;
    padding-left: 6px;
    position: absolute;
    right: 0;
    top: 0;
    width: 15px;
}
/*price total*/
.total-mhn-wat {
    margin: 0 auto;
    font-size: 15px;
    font-weight: 700;
}

/*bien the da disable*/
/*total*/
span#total_product_price_mhn_wat{
    
    margin-left: 3px;
    position: relative;
    display: inline-block;
    color: #f60f0f;
}
/*bien the*/


.variation-options-mhn-wat {
    display: flex;
    flex-wrap: wrap;
}


/*bien the end*/


.variation-option-mhn-wat.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

/*thong tin khach hang*/

/* Tạo container cho hai ô input đầu tiên */


/* Tạo khoảng cách giữa hai ô input đầu tiên */

.customer-info-mhn-wat .billing-phone-input {
  
max-width: 49%;
    float: right;
    padding-left: 8px !important;
}

.customer-info-mhn-wat .billing-name-input {
      width: 100% !important;
   padding-right: 1px !important;
    max-width: 49%;
    float: left;
   
}

/*thong tin khach hang end*/

.error-variation-mhn-wat {
   color: red;
}

/*nut close*/
.qbn-close-mhn-wat{
position: absolute !important; 
top: 7px; 
right: 10px; 

border: none;
 font-size: 25px; 
 cursor: pointer; 
 color: #fff; 
 display: flex;
 align-items: center;
border-radius: 50%;
height: 1.975rem;
width: 1.975rem;
justify-content: center;
transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}              
/*nut close end*/
/*ten sp full*/
.ten-sp-full-mhn-wat {
    font-size: 16px;
    color: #000;
    font-weight: 800;
    padding-bottom: 10px;
    display: block;
}

.name-and-price-mhn-wat-container {
    display: table-cell;
    float: none;
    overflow: inherit;
    vertical-align: middle;
    padding-left: 10px;
}
/*ten sp full end*/

.customer-info-mhn-wat {
    line-height: 1.57em;
}

