/*
Theme Name: Onllang Child Theme
Template: generatepress
Version: 1.0.0
*/

/* ==========================================
   CSS ĐỊNH DẠNG AVATAR & ICON GUEST TRÊN HEADER
   ========================================== */
.onllang-avatar {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.onllang-guest-icon {
    width: 20px; /* Chỉnh độ lớn của icon */
    height: 20px;
    color: #36BF7C; /* Mã màu giả định dựa trên màu xanh đậm của chữ Đăng nhập */
    display: flex;
    align-items: center;
}

/* ==========================================
   CSS ẨN ICON MẶC ĐỊNH BÊN TRONG NÚT LEARNDASH LOGIN
   ========================================== */
.learndash-wrapper .ld-login-button .ld-icon,
.learndash-wrapper .ld-login-button .ld-icon-login,
.learndash-wrapper .ld-login-button .ld-icon-logout,
.learndash-wrapper .ld-login-button svg {
    display: none !important;
}

/* ==========================================
   CSS ĐỊNH DẠNG FONT CHỮ VÀ KÍCH THƯỚC NÚT LEARNDASH LOGIN
   ========================================== */
.learndash-wrapper .ld-login-button {
    font-family: inherit !important; /* Kế thừa chính xác cấu hình system font của GeneratePress */
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 8px 10px !important;
    line-height: 1.5 !important;
}

/* ==========================================
   CSS BỘ LỌC ĐỀ THI TOCFL
   ========================================== */
.onl-filter-wrap { margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.onl-select-filter { padding: 8px 16px; border: 1px solid #ccc; border-radius: 10px; font-family: inherit; font-size: 15px; outline: none; cursor: pointer; }
.onl-select-filter:focus { border-color: #27ae60; box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2); }

/* Ẩn tiêu đề "Course Content" và nút "Expand All" của LearnDash */
.ld-item-list .ld-item-list-actions,
.ld-item-list .ld-section-heading {
    display: none !important;
}

/* 1.1 Ẩn form bình luận mặc định ở footer (bên ngoài Content Template) */
.site-footer ~ #comments, /* Tùy cấu trúc theme, có thể là .site-main > #comments */
.comments-area:not(.inside-gb-container) {
    display: none !important;
}

/* 1.2. Xóa sổ các dòng text rác và tiêu đề mặc định thừa thãi */
#reply-title,
.logged-in-as, 
.comment-notes,
.comment-form-cookies-consent {
    display: none !important;
}

/* 1.3. Tút lại ô gõ nội dung (Textarea): Trắng trẻo, bo góc, có hiệu ứng */
#commentform textarea {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important; /* Viền xám siêu nhạt */
    border-radius: 15px !important;
    padding: 15px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
    transition: all 0.3s ease;
    font-size: 16px;
}
#commentform textarea:focus {
    border-color: #36BF7C !important; /* Đổi màu viền xanh khi click vào gõ */
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1) !important;
}

/* 1.4. Tút lại nút bấm Gửi bình luận */
#commentform .submit {
    border-radius: 10px !important;
    font-weight: bold !important;
    padding: 10px 20px !important;
    text-transform: uppercase;
}

/* 1.5. Tăng cỡ chữ cho nội dung bình luận đã đăng (Gutenberg Block) */
.wp-block-comment-content p,
.wp-block-comment-content {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
}

/* 1.6. Tăng cỡ chữ cho Tên người bình luận (Author Name) */
.wp-block-comment-author-name {
    font-size: 15px !important;
    font-weight: bold !important;
}

/* 1.7. Ép cỡ chữ cho ô nhập Textarea (Phòng hờ Gutenberg) */
.comment-respond .comment-form textarea,
form.comment-form textarea {
    font-size: 16px !important;
}

/* 1.8. Reset lề thụt vào của bình luận Gutenberg & Ép sát trái */
.wp-block-comments,
.wp-block-post-comments {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* 1.9. Kiểm soát lề của các bình luận con (Reply lồng nhau) */
.wp-block-comment-template .children,
.comment-list .children {
    padding-left: 20px !important; /* Chỉ thụt vào 1 chút để phân biệt reply, không để thụt quá sâu */
    margin-left: 0 !important;
    border-left: 2px solid #e2e8f0; /* Thêm đường viền mỏng bên trái để dễ nhìn luồng thảo luận */
}

/* 1.10. Ép khung bao ngoài cùng của bình luận thẳng lề */
.wp-block-comment-template {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* 2.1. Tùy chỉnh tổng thể hộp đếm ngược FOMO (Xanh lá) */
.onl-cd-wrapper {
    background-color: #f0fdf4 !important; 
    border: 1px solid #bbf7d0 !important;
    border-radius: 8px !important;
    padding: 8px 5px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
}

/* 2.2. Tiêu đề "ƯU ĐÃI KẾT THÚC SAU:" */
.onl-cd-wrapper .onl-cd-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #166534 !important;
    margin-bottom: 5px !important;
    text-transform: uppercase !important;
}

/* 2.3. ÉP Dàn ngang các ô số - Chống vỡ Layout tuyệt đối */
.onl-cd-wrapper .onl-cd-timer {
    display: flex !important;
    flex-direction: row !important; 
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important; 
    flex-wrap: nowrap !important;
    width: 100% !important; /* Ngăn khối timer bị ép hẹp */
}

/* 2.4. Định dạng từng hộp chứa số (Giờ/Phút/Giây) */
.onl-cd-timer .timer-box {
    background-color: #16a34a !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 4px 6px !important;
    min-width: unset !important;
    width: auto !important; /* Ghi đè thuộc tính width: 100% của GP nếu có */
    display: flex !important;
    flex-direction: row !important; /* Ép số và chữ ngang nhau */
    align-items: baseline !important;
    gap: 4px !important;
    box-sizing: border-box !important;
}

/* 2.5. Định dạng con số bên trong */
.onl-cd-timer .timer-box span {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: inline-block !important;
    margin: 0 !important;
}

/* 2.6. Định dạng chữ Giờ/Phút/Giây */
.onl-cd-timer .timer-box small {
    font-size: 11px !important;
    text-transform: uppercase !important;
    opacity: 0.9 !important;
    display: inline-block !important;
    margin: 0 !important;
}

/* 2.7. Dấu hai chấm (:) ngăn cách */
.onl-cd-timer .timer-colon {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #16a34a !important;
    margin: 0 !important;
    display: inline-block !important; /* Ngăn dấu hai chấm bị nhảy xuống dòng */
}

/* Ép màu chữ trắng cho nút Course Resume (VÀO HỌC) của LearnDash */
.learndash-wrapper .ld-course-resume.ld-button,
a.ld-course-resume.ld-button,
.ld-course-resume.ld-button {
    color: #ffffff !important;
}

/* ==========================================
   ONLLANG: QUẢN LÝ HIỂN THỊ DỰA TRÊN TRẠNG THÁI MUA
   ========================================== */

/* 1. Ẩn toàn bộ khối chốt sale (Giá, Đồng hồ, Tính năng) nếu ĐÃ MUA */
body.onl-da-mua .onl-sales-box {
    display: none !important;
}

/* ==========================================================================
   ONLLANG: THIẾT KẾ LẠI GIAO DIỆN TRANG TÀI KHOẢN (WOOCOMMERCE + LEARNDASH)
   ========================================================================== */

/* 1. Ép bẹp menu dọc thành hàng ngang */
nav.woocommerce-MyAccount-navigation {
    width: 100% !important;
    float: none !important;
    margin-bottom: 30px !important;
}

nav.woocommerce-MyAccount-navigation ul {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

/* 2. Tiêu diệt dấu chấm bi của Theme */
nav.woocommerce-MyAccount-navigation ul li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

nav.woocommerce-MyAccount-navigation ul li::before {
    content: none !important;
    display: none !important;
}

/* 3. Tạo hình cái Nút (Tab) cơ bản */
nav.woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 10px 24px !important;
    background-color: #f8f9fa !important;
    color: #555 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border: 1px solid #eaeaea !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

nav.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #e9ecef !important;
}

/* 4. Màu xanh lá ONLLANG cho Tab đang được chọn (Active) */
nav.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #16a34a !important; 
    color: #fff !important;
    border-color: #16a34a !important;
}

/* 5. Căn full chiều ngang cho phần Nội dung bên dưới */
div.woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
}

/* 6. Xóa sổ các đoạn text "Hello datvt" và Shipping rườm rà mặc định của WooCommerce */
body.woocommerce-account:not(.woocommerce-orders):not(.woocommerce-edit-account):not(.woocommerce-edit-address) .woocommerce-MyAccount-content > p:first-of-type,
body.woocommerce-account:not(.woocommerce-orders):not(.woocommerce-edit-account):not(.woocommerce-edit-address) .woocommerce-MyAccount-content > p:nth-of-type(2),
.woocommerce-MyAccount-content .woocommerce-MyAccount-dashboard > p:first-child {
    display: none !important;
}

/* ==========================================================================
   KHỐI NỘI DUNG HIỂN THỊ ĐỘNG (DASHBOARD ONLY HACK)
   ========================================================================== */

/* Mặc định: Luôn giấu các Container/Block chứa nội dung phụ đi */
.onl-dashboard-only {
    display: none !important;
}

/* Hack: Chỉ hiện Container đó ra khi Tab "Tổng quan" đang ở trạng thái Kích hoạt (is-active) */
nav.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard.is-active ~ * .onl-dashboard-only,
.woocommerce-MyAccount-content:has(> .woocommerce-MyAccount-dashboard) + .onl-dashboard-only,
body:not(.woocommerce-orders):not(.woocommerce-edit-address):not(.woocommerce-edit-account) .onl-dashboard-only {
    display: block !important;
}

/* --- KHU VỰC CROSS-SELLS: BO VIỀN & LÀM ĐẸP THẺ MẶC ĐỊNH --- */

/* 1. Khung tổng của Cross-sells */
.woocommerce-cart .cross-sells {
    width: 100%;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed #cbd5e1;
}

.woocommerce-cart .cross-sells > h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    text-align: left;
}

/* 2. Thẻ sản phẩm: Tạo viền, bo góc và xếp dọc */
.woocommerce-cart .cross-sells ul.products li.product {
    background-color: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    padding: 5px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.woocommerce-cart .cross-sells ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* 3. Khối chứa Ảnh + Tên + Giá */
.woocommerce-cart .cross-sells ul.products li.product .woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    margin-bottom: 12px !important;
}

/* 4. Ảnh khóa học */
.woocommerce-cart .cross-sells ul.products li.product .wc-product-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 12px !important;
    display: block;
}

/* 5. Tiêu đề khóa học */
.woocommerce-cart .cross-sells ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
}

/* 6. Khung giá tiền (Giá gốc + Giá sale) */
.woocommerce-cart .cross-sells ul.products li.product .price {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #ef4444 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
}

.woocommerce-cart .cross-sells ul.products li.product .price del {
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    font-weight: 400;
}

.woocommerce-cart .cross-sells ul.products li.product .price ins {
    text-decoration: none;
}

/* 7. Nút Add to Cart */
.woocommerce-cart .cross-sells ul.products li.product a.add_to_cart_button {
    background-color: #22c55e !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 8px 18px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-align: center;
    border: none !important;
    margin: 0 auto !important;
    display: inline-block !important;
    width: auto !important;
    transition: background-color 0.2s ease;
}

.woocommerce-cart .cross-sells ul.products li.product a.add_to_cart_button:hover {
    background-color: #16a34a !important;
}

/* 8. Ẩn dòng chữ You may be interested in... của WooCommerce Cross-sells */
.woocommerce-cart .cross-sells > h2:first-of-type {
    display: none !important;
}

/* --- TỐI ƯU BẢNG GIỎ HÀNG WOOCOMMERCE --- */

/* 1. Ẩn cột Hình ảnh, Số lượng và Tổng phụ (ở cả tiêu đề bảng và thân bảng) */
.woocommerce-cart-form__contents thead .product-thumbnail,
.woocommerce-cart-form__contents tbody .product-thumbnail,
.woocommerce-cart-form__contents thead .product-quantity,
.woocommerce-cart-form__contents tbody .product-quantity,
.woocommerce-cart-form__contents thead .product-subtotal,
.woocommerce-cart-form__contents tbody .product-subtotal {
    display: none !important;
}

/* 2. Ẩn nút "Update cart" (Cập nhật giỏ hàng) */
button[name="update_cart"] {
    display: none !important;
}

/* 3. Mở rộng cột Tiêu đề khóa học chiếm phần lớn không gian */
.woocommerce-cart-form__contents thead .product-name,
.woocommerce-cart-form__contents tbody .product-name {
    width: 75% !important; /* Dành 75% diện tích cho tên khóa học */
}

/* --- LÀM GỌN VÀ BO GÓC KHU VỰC COUPON --- */

/* Căn chỉnh lại khu vực chứa Coupon để gọn gàng hơn */
.woocommerce-cart .actions {
    padding: 15px 0 !important;
}
.woocommerce-cart .actions .coupon {
    display: flex !important;
    align-items: center; /* Căn giữa theo chiều dọc */
    gap: 10px; /* Tạo khoảng cách 10px giữa ô nhập và nút bấm */
    width: 100%;
    max-width: 400px; /* Giới hạn độ rộng tối đa để trông nhỏ gọn */
}

/* Tinh chỉnh Ô nhập mã */
.woocommerce-cart .actions .coupon input.input-text {
    width: 65% !important;
    padding: 10px 15px !important;
    border: 1px solid #e2e8f0 !important; /* Viền xám nhạt */
    border-radius: 6px !important; /* Bo góc mượt mà */
    font-size: 0.95rem;
    box-sizing: border-box;
}
.woocommerce-cart .actions .coupon input.input-text:focus {
    outline: none;
    border-color: #3b82f6 !important; /* Đổi màu viền khi click vào */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Tinh chỉnh Nút Áp dụng (Apply Coupon) */
.woocommerce-cart .actions .coupon button.button {
    width: 35% !important;
    padding: 10px 15px !important;
    background-color: #22c55e !important; /* Màu xanh lá như nút Add to cart */
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important; /* Bo góc đồng bộ */
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}
.woocommerce-cart .actions .coupon button.button:hover {
    background-color: #16a34a !important; /* Màu xanh đậm hơn khi di chuột */
}

/* Ẩn các thông báo thành công (màu xanh) của WooCommerce trên trang Giỏ hàng */
.woocommerce-cart .woocommerce-message {
    display: none !important;
}

/* --- LÀM ĐẸP KHU VỰC CART TOTALS --- */

/* 1. Căn lề và giới hạn độ rộng của khối Cart Totals */
.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    max-width: 400px;
    float: right; /* Đẩy khối này sang phải cho cân đối */
    margin-top: 30px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    box-sizing: border-box;
}

/* 2. Làm gọn Tiêu đề "Cart totals" */
.woocommerce-cart .cart-collaterals .cart_totals h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

/* 3. Khử nền xám và căn chỉnh lại bảng tính tiền */
.woocommerce-cart .cart-collaterals .cart_totals table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.woocommerce-cart .cart-collaterals .cart_totals table th,
.woocommerce-cart .cart-collaterals .cart_totals table td {
    background: transparent !important; /* Bỏ nền xám mặc định */
    border-top: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 0;
}

.woocommerce-cart .cart-collaterals .cart_totals table th {
    font-weight: 500;
    color: #64748b;
    width: 40%;
}

.woocommerce-cart .cart-collaterals .cart_totals table td {
    text-align: right;
    font-weight: 600;
    color: #1e293b;
}

/* Làm nổi bật dòng Tổng cộng (Total) cuối cùng */
.woocommerce-cart .cart-collaterals .cart_totals table tr.order-total th,
.woocommerce-cart .cart-collaterals .cart_totals table tr.order-total td {
    border-bottom: none;
    padding-top: 15px;
}
.woocommerce-cart .cart-collaterals .cart_totals table tr.order-total td strong {
    font-size: 1.2rem;
    color: #ef4444; /* Bôi đỏ tổng tiền */
}

/* 4. Làm đẹp nút HOÀN TẤT ĐĂNG KÝ (Checkout) */
.woocommerce-cart .cart-collaterals .cart_totals .checkout-button {
    display: block;
    width: 100%;
    background-color: #22c55e !important; /* Đổi sang màu xanh lá đồng bộ */
    color: #fff !important;
    text-align: center;
    padding: 14px 20px !important;
    border-radius: 8px !important;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    border: none !important;
    transition: all 0.2s ease;
}
.woocommerce-cart .cart-collaterals .cart_totals .checkout-button:hover {
    background-color: #16a34a !important; /* Xanh đậm khi hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

/* Ẩn nút "Return to shop" trên trang Giỏ hàng trống */
p.return-to-shop a.button.wc-backward {
    display: none !important;
}

/* ========================================================
   TỐI ƯU TRANG THANH TOÁN (CHECKOUT) ONLLANG.COM 
======================================================== */

/* --- 1. LÀM GỌN: ẨN CÁC TRƯỜNG ĐỊA CHỈ KHÔNG CẦN THIẾT --- */
/* (Vì bán khóa học Online nên không cần địa chỉ nhà hay mã Zip) */
#billing_company_field,
#billing_country_field,
#billing_address_1_field,
#billing_address_2_field,
#billing_postcode_field,
#billing_city_field,
#billing_state_field {
    display: none !important;
}

/* Kéo giãn độ rộng của Họ tên, SĐT, Email chiếm trọn 1 hàng ngang */
#billing_first_name_field,
#billing_phone_field,
#billing_email_field {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

/* --- 2. TÚT LẠI Ô NHẬP LIỆU (INPUT) --- */
.woocommerce-checkout .input-text {
    border-radius: 8px; /* Bo góc nhẹ nhàng */
    border: 1px solid #cbd5e1;
    padding: 12px 15px;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}
.woocommerce-checkout .input-text:focus {
    border-color: #22c55e; /* Xanh lá Onllang */
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
    outline: none;
    background-color: #ffffff;
}

/* --- 3. ĐỔ BÓNG PHẦN TỔNG ĐƠN HÀNG (CỘT PHẢI) --- */
#order_review {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); 
    border: 1px solid #e2e8f0;
}

#order_review table.shop_table {
    border: none; 
    border-collapse: collapse;
}
#order_review table.shop_table th,
#order_review table.shop_table td {
    border: none;
    border-bottom: 1px dashed #cbd5e1; /* Viền đứt nét tinh tế */
    padding: 15px 5px;
}
#order_review table.shop_table tr.order-total td strong {
    color: #ef4444; /* Bôi đỏ tổng tiền */
    font-size: 1.15rem;
}

h3#order_review_heading, 
.woocommerce-billing-fields h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 25px;
}

/* --- 4. TÚT LẠI Ô CHỌN PHƯƠNG THỨC THANH TOÁN (PAYMENT BOX) --- */
.woocommerce-checkout #payment {
    background: transparent !important; /* Xóa nền xám cứng nhắc */
    border-radius: 8px;
}
/* Ẩn dấu chấm tròn radio */
.woocommerce-checkout #payment ul.payment_methods li input {
    display: none !important;
}

/* Căn giữa tên phương thức */
.woocommerce-checkout #payment ul.payment_methods li label {
    display: block;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b; 
    text-align: center;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

/* Biến hộp cảnh báo thành Box màu xanh mát */
.woocommerce-checkout #payment div.payment_box {
    background-color: #f0fdf4; /* Xanh lá cực nhạt */
    border-left: 4px solid #22c55e; /* Thanh dọc xanh lá Onllang */
    border-radius: 6px;
    padding: 15px 20px;
    margin: 0 !important;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: none; /* Xóa bóng đổ mặc định của Woo */
}
/* Xóa cái mũi tên tam giác chĩa lên */
.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}

/* --- 5. NÚT ĐẶT HÀNG (PLACE ORDER) --- */
#place_order {
    background-color: #22c55e !important; /* Xanh lá Onllang */
    color: #fff !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 20px;
}
#place_order:hover {
    background-color: #16a34a !important; /* Xanh đậm khi hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

/* ========================================================
   ONLLANG: TÚT LẠI RUY BĂNG THÔNG BÁO, FORM ĐĂNG NHẬP & COUPON
======================================================== */

/* 1. Biến dải màu xanh thành viền đứt nét thanh lịch */
.woocommerce-checkout .woocommerce-info {
    background-color: #f8fafc !important; /* Xám xanh cực nhạt */
    border-top: none !important;
    border: 1px dashed #cbd5e1 !important; /* Viền đứt nét tinh tế */
    border-radius: 8px !important;
    color: #475569 !important;
    padding: 15px 20px !important;
    text-align: center !important; 
    margin-bottom: 25px !important;
    box-shadow: none !important;
}

/* Xóa cái icon chữ 'i' mặc định */
.woocommerce-checkout .woocommerce-info::before {
    display: none !important; 
}

/* Đổi màu chữ link "Bấm vào đây" sang Xanh Onllang */
.woocommerce-checkout .woocommerce-info a {
    color: #22c55e !important; /* Màu xanh lá Onllang */
    font-weight: 700 !important;
    text-decoration: underline !important;
    margin-left: 5px;
    transition: color 0.3s;
}
.woocommerce-checkout .woocommerce-info a:hover {
    color: #16a34a !important; /* Xanh đậm khi di chuột */
}

/* 2. Đóng khung form Đăng nhập & form Coupon xổ xuống */
.woocommerce-checkout .woocommerce-form-login,
.woocommerce-checkout .checkout_coupon {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Đổ bóng nổi khối */
}

/* 3. Tút lại nút Login và nút Apply Coupon */
.woocommerce-checkout .woocommerce-form-login .button,
.woocommerce-checkout .checkout_coupon .button {
    background-color: #22c55e !important; /* Nút xanh lá Onllang */
    color: #fff !important;
    border-radius: 8px !important;
    padding: 12px 25px !important;
    font-weight: 700 !important;
    border: none !important;
    transition: all 0.2s ease !important;
}
.woocommerce-checkout .woocommerce-form-login .button:hover,
.woocommerce-checkout .checkout_coupon .button:hover {
    background-color: #16a34a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.2);
}

/* Bo góc và làm gọn ô nhập liệu bên trong Form Đăng nhập & Form Coupon */
.woocommerce-checkout .woocommerce-form-login input.input-text,
.woocommerce-checkout .checkout_coupon input.input-text {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 12px 15px !important;
    background-color: #f8fafc !important;
    width: 100%;
    margin-bottom: 15px; /* Tạo khoảng cách với nút bấm */
}

/* Hiệu ứng khi bấm vào ô nhập */
.woocommerce-checkout .woocommerce-form-login input.input-text:focus,
.woocommerce-checkout .checkout_coupon input.input-text:focus {
    border-color: #22c55e !important; /* Xanh lá Onllang */
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15) !important;
    outline: none !important;
    background-color: #ffffff !important;
}

/* ========================================================
   ONLLANG: ẨN HOÀN TOÀN CHỮ "DUYỆT SẢN PHẨM" TRONG TAB ĐƠN HÀNG
======================================================== */
.woocommerce-MyAccount-content .woocommerce-message a.button.wc-backward,
.woocommerce-MyAccount-content .woocommerce-info a.button.wc-backward,
.woocommerce-MyAccount-content .woocommerce-message.woocommerce-info a.button,
.woocommerce-MyAccount-orders .woocommerce-info a.button {
    display: none !important;
}

/* Biến khung thông báo từ xanh dương sang xanh lá chuẩn Onllang và làm gọn lại */
.woocommerce-MyAccount-content .woocommerce-info {
    background-color: #f0fdf4 !important; /* Xanh lá cực nhạt */
    border-top: none !important;
    border: 1px dashed #22c55e !important; /* Viền đứt nét xanh lá Onllang */
    border-radius: 8px !important;
    color: #166534 !important; /* Chữ xanh lá đậm */
    padding: 15px 20px !important;
    text-align: center !important; 
    box-shadow: none !important;
}

/* Xóa icon chữ i mặc định của thông báo (nếu có) */
.woocommerce-MyAccount-content .woocommerce-info::before {
    display: none !important;
}

/* Cấu hình cái hộp bọc bên ngoài */
.quizlet-embed-wrapper {
  width: 100%;
  max-width: 850px; 
  margin: 30px auto; 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
  border: 1px solid #eaeaea; 
  background-color: #fff;
}

/* Cấu hình Iframe: Trả lại thanh cuộn mặc định để làm bài Test */
.quizlet-iframe {
  border: 0;
  width: 100%;
  height: 650px; 
  display: block; 
}

/* Tối ưu Điện thoại */
@media (max-width: 768px) {
  .quizlet-embed-wrapper {
    margin: 15px auto;
    border-radius: 12px;
  }
  .quizlet-iframe {
    height: 500px; 
  }
}