/**
 * Template: ms-lms-starter-theme
 * Theme Name: MasterStudy Templates Child
 * Theme URI: https://starter.stylemixthemes.com/
 * Author: StylemixThemes
 * Author URI: https://stylemixthemes.com/
 * Description: MasterStudy Templates Child Theme is the child theme for the MasterStudy Templates. With this child theme, you can customize your eLearning website appearance without changing the original templates.
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Tags: classes, courses, Education, education center, e-commerce, learning center, tutoring, teaching, study, studying, learning, lessons, instructor, teacher, mentor
 * Text Domain: starter-text-domain
 * Version: 1.0.0
 */
/* Chỉ áp dụng ở trang checkout */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .wc-block-checkout__billing-fields h2 {
  display: none !important;
}

/* Ẩn các field không cần nếu theme hoặc block vẫn render ra */
.woocommerce-checkout #billing_last_name_field,
.woocommerce-checkout #billing_company_field,
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_address_1_field,
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #billing_city_field,
.woocommerce-checkout #billing_state_field,
.woocommerce-checkout #billing_postcode_field,
.woocommerce-checkout #order_comments_field {
  display: none !important;
}

/* 3 field còn lại full width */
.woocommerce-checkout #billing_first_name_field,
.woocommerce-checkout #billing_email_field,
.woocommerce-checkout #billing_phone_field {
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

/* Ẩn tiêu đề billing address nếu theme render */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  margin-top: 0;
}
.woocommerce-checkout .col2-set {
    display: block;
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
    width: 100%;
}

.woocommerce form .form-row {
    margin-bottom: 12px;
}

.woocommerce input.input-text {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #ddd;
}

#place_order {
    background: linear-gradient(135deg, #4CAF50, #00c853);
    border: none;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
}
.woocommerce-additional-fields,
.woocommerce-billing-fields h3 {
    display: none;
}
/* Layout 2 cột checkout */
.woocommerce-checkout .col2-set {
    display: flex;
    gap: 30px;
}

/* Cột trái (form) */
.woocommerce-checkout .col-1 {
    width: 60%;
}

/* Cột phải (order) */
.woocommerce-checkout .col-2 {
    width: 40%;
}

/* Order box đẹp hơn */
#order_review {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    position: sticky;
    top: 20px;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .woocommerce-checkout .col2-set {
        flex-direction: column;
    }
    .woocommerce-checkout .col-1,
    .woocommerce-checkout .col-2 {
        width: 100%;
    }
}
.woocommerce-additional-fields {
    display: none;
}
.woocommerce-checkout h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.woocommerce form .form-row {
    margin-bottom: 12px;
}

#place_order {
    width: 100%;
    font-size: 16px;
    padding: 14px;
    border-radius: 10px;
}
.woocommerce-checkout .col2-set {
    display: flex !important;
}
/* FORCE 2 COLUMN CHECKOUT */
.woocommerce-checkout form.checkout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Left: billing */
.woocommerce-checkout .col2-set {
    width: 60%;
}

/* Right: order */
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
    width: 40%;
}

/* Order box */
#order_review {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    position: sticky;
    top: 20px;
}

/* Fix MasterStudy stack */
.woocommerce-checkout .col2-set,
.woocommerce-checkout #order_review {
    display: block !important;
}

/* Mobile */
@media (max-width: 768px) {
    .woocommerce-checkout form.checkout {
        flex-direction: column;
    }
    .woocommerce-checkout .col2-set,
    .woocommerce-checkout #order_review {
        width: 100%;
    }
}
/* FORCE CHECKOUT 2 COLUMN (override MasterStudy) */
.woocommerce-checkout form.checkout {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 30px;
}

/* LEFT SIDE */
.woocommerce-checkout form.checkout .col2-set {
    flex: 0 0 60% !important;
    max-width: 60% !important;
}

/* RIGHT SIDE */
.woocommerce-checkout form.checkout #order_review_heading,
.woocommerce-checkout form.checkout #order_review {
    flex: 0 0 40% !important;
    max-width: 40% !important;
}

/* Đảm bảo không bị full width */
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
    width: 100% !important;
}

/* Order box đẹp */
#order_review {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    position: sticky;
    top: 20px;
}

/* FIX các style phá layout từ theme */
.woocommerce-checkout .col2-set,
.woocommerce-checkout #order_review {
    float: none !important;
    display: block !important;
}

/* MOBILE */
@media (max-width: 768px) {
    .woocommerce-checkout form.checkout {
        flex-direction: column !important;
    }

    .woocommerce-checkout form.checkout .col2-set,
    .woocommerce-checkout form.checkout #order_review {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
.elementor .woocommerce-checkout form.checkout {
    display: flex !important;
}
#order_review_heading {
    display: none;
}
.notice.notice-warning.stm-loader-warning{
            display:none !important;
        }