/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.2
*/

@media only screen and (max-width: 767px) {
    .mfn-cart-holder {
        max-width: 350px !important;
	}
}

#bt-atc .button_label {display:none;}
#Header_wrapper {display:none;}
#Side_slide #menu ul li.submenu .menu-toggle {display:none;}

#Side_slide #menu ul li ul {display:block !important;}


.woocommerce-billing-fields h3,
#customer_details .col-1 h3{
    display:none !important;
}

/* Thu gọn bảng checkout */
.woocommerce-checkout-review-order-table {
    font-size: 14px;
}

.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
    padding: 10px 0 !important;
}

/* Tên sản phẩm */
.woocommerce-checkout-review-order-table .product-name {
    font-size:14px !important;
}

/* Badge số lượng */
.woocommerce-checkout-review-order-table .product-quantity {
    background: #f2f2f2;
    border-radius: 20px !important;
    padding: 2px 8px !important;
    font-size: 12px !important;
}

/* Giá */
.woocommerce-checkout-review-order-table .product-total {
    white-space: nowrap;
    font-weight: 600;
}

/* Giảm khoảng cách */
.woocommerce-checkout-review-order-table tr.cart_item td {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.woocommerce-checkout-review-order-table .cart-subtotal {display:none;}
.woocommerce-checkout-review-order .woocommerce-terms-and-conditions-wrapper {display:none;}
.mfn-checkout-steps {display:none;}

.woocommerce-checkout-review-order-table thead{
    display:none;
}
#order_review #order_review_heading {
    font-size: 25px;
    line-height: 30px;
}

.wc-block-cart__main table tr:first-child td {
	border-top: none;
	box-shadow: none;
}

.wc-block-cart__submit-button .wc-block-components-button__text{
    font-size:0;
}

.wc-block-cart__submit-button .wc-block-components-button__text:after{
    content:"Xác nhận đặt món";
    font-size:16px;
}

.woocommerce-thankyou-order-details {display:none !important;}
.woocommerce-customer-details {display:none !important;}


/* Thu gọn bảng checkout */
.woocommerce-table--order-details {
    font-size: 14px;
}

.woocommerce-table--order-details td,
.woocommerce-table--order-details th {
    padding: 10px 0 !important;
}

/* Tên sản phẩm */
.woocommerce-table--order-details .product-name {
    font-size:14px !important;
}

/* Badge số lượng */
.woocommerce-table--order-details .product-quantity {
    background: #f2f2f2;
    border-radius: 20px !important;
    padding: 2px 8px !important;
    font-size: 12px !important;
}

/* Giá */
.woocommerce-table--order-details .product-total {
    white-space: nowrap;
    font-weight: 600;
}

/* Giảm khoảng cách */
.woocommerce-table--order-details tr.cart_item td {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}


/* Xóa link sản phẩm trong cart slide */
.mfn-chp-name a , .mfn-chp-image a {
  pointer-events: none;
  cursor: default;
  color: inherit;
  text-decoration: none;
}

#tomchat-order-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    z-index:9999;
    justify-content:center;
    align-items:center;
}

.tomchat-modal-box{
    width:90%;
    max-width:400px;
    background:#fff;
    border-radius:12px;
    padding:20px;
    text-align:center;
}

.tomchat-modal-box h3{
    margin:0 0 15px;
}

.tomchat-modal-actions{
    display:flex;
    gap:10px;
    margin-top:20px;
}

.tomchat-modal-actions button{
    flex:1;
    border:none;
    border-radius:8px;
    padding:12px;
    cursor:pointer;
}

.tomchat-btn-primary{
    background:#2271b1;
    color:#fff;
}

.tomchat-btn-secondary{
    background:#f0f0f0;
}


.mfn-footer-stickymenu ul li a {display:block;}
.mfn-footer-stickymenu .title-stickymenu {
	line-height: 1;
    margin-top: 5px;
}


/* Chỉ chỉnh nút "Quét QR để đặt món" khi khách chưa quét QR */
body.tomchat-qr-required .mfn-queryloop-item-wrapper .add_to_cart_button,
body.tomchat-qr-required .mfn-queryloop-item-wrapper .mfn-dynamic-data-add-to-cart {
    opacity: 1 !important;
    border-radius: 0 !important;
    padding: 6px 8px !important;
    background: #f6c343 !important;
    color: #4b130f !important;
    border: 1px solid #f6c343 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    box-shadow: none !important;
    display: block !important;
}

/* Icon khóa rõ hơn */
body.tomchat-qr-required .mfn-queryloop-item-wrapper .add_to_cart_button img,
body.tomchat-qr-required .mfn-queryloop-item-wrapper .mfn-dynamic-data-add-to-cart img {
    opacity: 1 !important;
    filter: none !important;
}

/* Không cho hover đổi style */
body.tomchat-qr-required .mfn-queryloop-item-wrapper .add_to_cart_button:hover,
body.tomchat-qr-required .mfn-queryloop-item-wrapper .mfn-dynamic-data-add-to-cart:hover {
    background: #f6c343 !important;
    color: #4b130f !important;
    border-radius: 0 !important;
}


.mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-info .mfn-chp-name {font-size:14px !important;}