/* ==========================================================================
   HiSmile WooCommerce — Stylesheet hoàn chỉnh cho Giỏ hàng, Thanh toán, Tài khoản
   ========================================================================== */

/* ── 1. GLOBAL & NOTICES ─────────────────────────────────────────────────── */
.woocommerce-notices-wrapper {
    margin-bottom: 0rem;
    width: 100%;
}
.woocommerce-account .addresses .title .edit {
    float: left;
}
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    list-style: none !important;
    margin: 0 0 1rem !important;
    border-radius: 1.25rem !important;
    padding: 1rem 1.5rem !important;
    font-size: 0.9375rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    border-width: 1px !important;
    border-style: solid !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.woocommerce-message {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border-color: #a7f3d0 !important;
}
.woocommerce-error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-color: #fecaca !important;
}
.woocommerce-info {
    background: #f0f9ff !important;
    color: #0369a1 !important;
    border-color: #bae6fd !important;
}
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
    margin-left: auto !important;
    border-radius: 9999px !important;
    padding: 0.45rem 1.1rem !important;
    font-size: 0.8125rem !important;
    background: #ffffff !important;
    color: currentColor !important;
    border: 1px solid currentColor !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}
.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover,
.woocommerce-error a.button:hover {
    background: currentColor !important;
    color: #ffffff !important;
}

/* ── 2. FORM CONTROLS & INPUTS (Chống vỡ khung) ──────────────────────────── */
.woocommerce form .form-row,
.woocommerce-page form .form-row {
    margin: 0 0 1.25rem 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    display: block !important;
}
.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
    width: 100% !important;
    float: none !important;
}
@media (min-width: 640px) {
    .woocommerce form .form-row-first {
        width: 48% !important;
        float: left !important;
    }
    .woocommerce form .form-row-last {
        width: 48% !important;
        float: right !important;
    }
}
.woocommerce form .form-row::after {
    content: "";
    display: table;
    clear: both;
}
.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.4rem !important;
    display: block !important;
    color: #013d7f !important;
}
.woocommerce form .form-row label .required {
    color: #ee343b !important;
    text-decoration: none !important;
}

.woocommerce-input-wrapper {
    display: block !important;
    width: 100% !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce .woocommerce-Input,
.woocommerce-page input.input-text,
.woocommerce-page select,
.woocommerce-page textarea {
    border-radius: 0.875rem !important;
    border: 1px solid #005ac82e !important;
    padding: 0.75rem 1.15rem !important;
    font-size: 0.9375rem !important;
    width: 100% !important;
    background: #f7fbff !important;
    color: #013d7f !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce .woocommerce-Input:focus {
    border-color: #005ac8 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0, 90, 200, 0.15) !important;
}

/* Checkbox & Radio */
.woocommerce form .form-row .woocommerce-form__label-for-checkbox,
.woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    cursor: pointer !important;
}
.woocommerce form .form-row input[type="checkbox"],
.woocommerce form .form-row input[type="radio"] {
    width: 1.125rem !important;
    height: 1.125rem !important;
    accent-color: #005ac8 !important;
    cursor: pointer !important;
}

/* ── 3. CART PAGE STYLING (2 Cột tinh gọn, chống đè chữ) ────────────────── */
.hs-cart-layout-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    align-items: start !important;
}
@media (min-width: 1024px) {
    .hs-cart-layout-grid {
        grid-template-columns: 1fr 380px !important;
    }
}

.hs-cart-items-column {
    width: 100% !important;
}

.hs-cart-totals-column {
    width: 100% !important;
}

/* Card sản phẩm trong giỏ */
.hs-cart-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.25rem !important;
    background: #ffffff !important;
    border: 1px solid #005ac81f !important;
    border-radius: 1.5rem !important;
    padding: 1.25rem !important;
    box-shadow: 0 4px 16px rgba(0, 90, 200, 0.04) !important;
    transition: box-shadow 0.2s ease !important;
}
.hs-cart-card:hover {
    box-shadow: 0 8px 24px rgba(0, 90, 200, 0.08) !important;
}

/* 1. Ảnh thumbnail */
.hs-cart-thumb {
    width: 5rem !important;
    height: 5rem !important;
    flex-shrink: 0 !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    background: #f7fbff !important;
    border: 1px solid #005ac814 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.hs-cart-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 2. Thông tin tên + giá */
.hs-cart-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.hs-cart-title {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #013d7f !important;
    margin: 0 !important;
}
.hs-cart-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.15s !important;
}
.hs-cart-title a:hover {
    color: #005ac8 !important;
}
.hs-cart-price {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #005ac8 !important;
    margin-top: 0.25rem !important;
}
.hs-cart-meta {
    font-size: 0.75rem !important;
    color: #64748b !important;
    margin-top: 0.15rem !important;
}

/* 3. Bộ tăng giảm số lượng (+ / -) */
.hs-cart-qty-wrapper {
    flex-shrink: 0 !important;
}
.hs-quantity-stepper {
    display: inline-flex !important;
    align-items: center !important;
    background: #f7fbff !important;
    border: 1px solid #005ac82e !important;
    border-radius: 9999px !important;
    padding: 3px 6px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
.hs-quantity-stepper .hs-qty-btn {
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    width: 1.625rem !important;
    height: 1.625rem !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 9999px !important;
    color: #013d7f !important;
    padding: 0 !important;
    transition: background 0.15s, color 0.15s !important;
}
.hs-quantity-stepper .hs-qty-btn:hover {
    background: #eaf2fc !important;
    color: #005ac8 !important;
}
.hs-quantity-stepper .hs-qty-input {
    width: 2.25rem !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    color: #013d7f !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
}
.hs-quantity-stepper .hs-qty-input::-webkit-outer-spin-button,
.hs-quantity-stepper .hs-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* 4. Thành tiền */
.hs-cart-subtotal {
    flex-shrink: 0 !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: #013d7f !important;
    text-align: right !important;
    min-width: 5.5rem !important;
}

/* 5. Nút xóa */
.hs-cart-remove {
    flex-shrink: 0 !important;
}
.hs-cart-remove-btn {
    display: grid !important;
    place-items: center !important;
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 9999px !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s !important;
}
.hs-cart-remove-btn:hover {
    color: #ee343b !important;
    background: rgba(238, 52, 59, 0.08) !important;
}

/* Thanh hành động (Tiếp tục mua hàng + Cập nhật) */
.hs-cart-actions-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    padding: 1rem 1.25rem !important;
    background: #ffffff !important;
    border: 1px solid #005ac81f !important;
    border-radius: 1.25rem !important;
    margin-top: 1.25rem !important;
}
.hs-cart-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-decoration: none !important;
    transition: color 0.15s !important;
}
.hs-cart-back-btn:hover {
    color: #005ac8 !important;
}
.hs-cart-update-btn {
    border-radius: 9999px !important;
    border: 1px solid #005ac82e !important;
    background: #ffffff !important;
    color: #013d7f !important;
    padding: 0.6rem 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.hs-cart-update-btn:hover {
    background: #f7fbff !important;
    border-color: #005ac8 !important;
    color: #005ac8 !important;
}

/* Responsive mobile */
@media (max-width: 639px) {
    .hs-cart-card {
        flex-wrap: wrap !important;
    }
    .hs-cart-info {
        width: calc(100% - 6.5rem) !important;
    }
    .hs-cart-qty-wrapper {
        margin-left: auto !important;
    }
}

/* ── CỘT TỔNG CỘNG GIỎ HÀNG (.hs-cart-totals-column) ───────────────────────── */
.hs-cart-totals-column .cart-collaterals {
    width: 100% !important;
}

.hs-cart-totals-column .cart_totals {
    width: 100% !important;
    float: none !important;
    background: #ffffff !important;
    border: 1px solid #005ac81f !important;
    border-radius: 1.5rem !important;
    padding: 1.75rem !important;
    box-shadow: 0 10px 30px -10px rgba(0, 90, 200, 0.06) !important;
    position: sticky !important;
    top: 100px !important;
}

.hs-cart-totals-column .cart_totals h2 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #013d7f !important;
    margin: 0 0 1.25rem 0 !important;
    padding-bottom: 0.85rem !important;
    border-bottom: 1px solid #005ac814 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.hs-cart-totals-column .cart_totals table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 0 1.5rem 0 !important;
    border: none !important;
    background: transparent !important;
}

.hs-cart-totals-column .cart_totals table.shop_table tbody tr {
    border-bottom: 1px dashed #005ac81a !important;
}

.hs-cart-totals-column .cart_totals table.shop_table tbody tr:last-child {
    border-bottom: none !important;
}

.hs-cart-totals-column .cart_totals table.shop_table th,
.hs-cart-totals-column .cart_totals table.shop_table td {
    padding: 0.85rem 0 !important;
    font-size: 0.9375rem !important;
    border: none !important;
    background: transparent !important;
}

.hs-cart-totals-column .cart_totals table.shop_table th {
    font-weight: 500 !important;
    color: #64748b !important;
    text-align: left !important;
    width: 40% !important;
}

.hs-cart-totals-column .cart_totals table.shop_table td {
    text-align: right !important;
    color: #013d7f !important;
    font-weight: 600 !important;
}

.hs-cart-totals-column .cart_totals table.shop_table .cart-subtotal td .woocommerce-Price-amount {
    color: #013d7f !important;
    font-weight: 600 !important;
}

.hs-cart-totals-column .cart_totals table.shop_table .order-total {
    border-top: 1px solid #005ac81f !important;
    border-bottom: none !important;
}

.hs-cart-totals-column .cart_totals table.shop_table .order-total th {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #013d7f !important;
    padding-top: 1.1rem !important;
}

.hs-cart-totals-column .cart_totals table.shop_table .order-total td {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #005ac8 !important;
    padding-top: 1.1rem !important;
}

.hs-cart-totals-column .cart_totals .wc-proceed-to-checkout {
    padding: 0 !important;
    margin: 0 !important;
}

.hs-cart-totals-column .cart_totals .wc-proceed-to-checkout a.checkout-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 0.95rem 1.5rem !important;
    background: linear-gradient(135deg, #005ac8 0%, #004299 100%) !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-radius: 9999px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 90, 200, 0.28) !important;
    transition: all 0.25s ease !important;
    text-align: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.hs-cart-totals-column .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
    background: linear-gradient(135deg, #004bb0 0%, #003377 100%) !important;
    box-shadow: 0 8px 24px rgba(0, 90, 200, 0.38) !important;
    transform: translateY(-1px) !important;
}

.hs-cart-totals-column .cart_totals .wc-proceed-to-checkout a.checkout-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0, 90, 200, 0.2) !important;
}



/* ── 4. CHECKOUT PAGE STYLING (2 Cột tinh gọn) ────────────────────────────── */
.woocommerce-checkout-custom-wrapper {
    width: 100% !important;
}

/* Coupon form top */
.woocommerce-checkout-custom-wrapper .woocommerce-form-coupon-toggle {
    margin-bottom: 1.5rem !important;
}
.woocommerce-checkout-custom-wrapper .woocommerce-info {
    border-radius: 1rem !important;
    background: #f7fbff !important;
    border: 1px solid #005ac82e !important;
    color: #013d7f !important;
    padding: 1rem 1.25rem !important;
    font-size: 0.9375rem !important;
}
.woocommerce-checkout-custom-wrapper .woocommerce-info a {
    color: #005ac8 !important;
    font-weight: 600 !important;
}
.woocommerce-checkout-custom-wrapper form.checkout_coupon {
    border-radius: 1.25rem !important;
    background: #ffffff !important;
    border: 1px solid #005ac81f !important;
    padding: 1.25rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 4px 16px rgba(0, 90, 200, 0.04) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    align-items: center !important;
}
.woocommerce-checkout-custom-wrapper form.checkout_coupon .form-row {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}
.woocommerce-checkout-custom-wrapper form.checkout_coupon .form-row-first {
    flex: 1 1 240px !important;
    width: auto !important;
}
.woocommerce-checkout-custom-wrapper form.checkout_coupon .form-row-last {
    width: auto !important;
}
.woocommerce-checkout-custom-wrapper form.checkout_coupon button.button {
    border-radius: 9999px !important;
    background: #005ac8 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.woocommerce-checkout-custom-wrapper form.checkout_coupon button.button:hover {
    background: #004299 !important;
}

/* Form checkout chính (2 Cột Flexbox) */
.woocommerce-checkout-custom-wrapper form.checkout {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    align-items: flex-start !important;
    width: 100% !important;
}

/* Cột trái (Thông tin khách hàng - 60-65% trên Desktop) */
.woocommerce-checkout-custom-wrapper #customer_details {
    flex: 1 1 560px !important;
    width: auto !important;
    float: none !important;
    background: #ffffff !important;
    border: 0px !important;
    border-radius: 1.5rem !important;
    padding: 0rem !important;
    box-shadow: 0 10px 30px -10px rgba(0, 90, 200, 0.05) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    box-sizing: border-box !important;
}

/* Chia col-1 (Thông tin thanh toán) và col-2 (Thông tin bổ sung) theo 2 cột flex */
.woocommerce-checkout-custom-wrapper .col-1 {
    flex: 1 1 320px !important;
    width: auto !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout-custom-wrapper .col-2 {
    flex: 1 1 240px !important;
    width: auto !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout-custom-wrapper h3 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin: 0 0 1.25rem 0 !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid #005ac814 !important;
    color: #013d7f !important;
    display: flex !important;
    align-items: center !important;
}

/* Grid cho các field trong Billing & Shipping */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem 1rem !important;
}

.woocommerce-checkout-custom-wrapper .form-row {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* 2 cột cho Tên & Họ */
.woocommerce-checkout-custom-wrapper .form-row-first,
.woocommerce-checkout-custom-wrapper .form-row-last {
    width: calc(50% - 0.5rem) !important;
    float: none !important;
}
@media (max-width: 639px) {
    .woocommerce-checkout-custom-wrapper .form-row-first,
    .woocommerce-checkout-custom-wrapper .form-row-last {
        width: 100% !important;
    }
}

.woocommerce-checkout-custom-wrapper .form-row-wide {
    width: 100% !important;
    clear: both !important;
}

.woocommerce-checkout-custom-wrapper .form-row label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #013d7f !important;
    margin-bottom: 0.4rem !important;
    display: block !important;
}
.woocommerce-checkout-custom-wrapper .form-row label .optional {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    font-size: 0.8125rem !important;
}
.woocommerce-checkout-custom-wrapper .form-row label .required {
    color: #ee343b !important;
    font-weight: 700 !important;
}

/* Input, Select, Textarea */
.woocommerce-checkout-custom-wrapper input.input-text,
.woocommerce-checkout-custom-wrapper select,
.woocommerce-checkout-custom-wrapper textarea {
    border-radius: 0.875rem !important;
    border: 1px solid #005ac82e !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9375rem !important;
    width: 100% !important;
    background: #f7fbff !important;
    color: #013d7f !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}
.woocommerce-checkout-custom-wrapper input.input-text:focus,
.woocommerce-checkout-custom-wrapper select:focus,
.woocommerce-checkout-custom-wrapper textarea:focus {
    border-color: #005ac8 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0, 90, 200, 0.15) !important;
}
.woocommerce-checkout-custom-wrapper textarea {
    min-height: 90px !important;
    resize: vertical !important;
}

/* Custom Select2 cho ô Quốc gia / Tỉnh thành */
.woocommerce-checkout-custom-wrapper .select2-container .select2-selection--single {
    height: 46px !important;
    border-radius: 0.875rem !important;
    border: 1px solid #005ac82e !important;
    background: #f7fbff !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 0.5rem !important;
    transition: all 0.2s ease !important;
}
.woocommerce-checkout-custom-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #013d7f !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    line-height: 46px !important;
    padding-left: 0.5rem !important;
}
.woocommerce-checkout-custom-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    right: 0.75rem !important;
}
.woocommerce-checkout-custom-wrapper .select2-container--open .select2-selection--single {
    border-color: #005ac8 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0, 90, 200, 0.15) !important;
}

/* Cột phải: Order Review & Thanh toán (Flex item 380px) */
.woocommerce-checkout-custom-wrapper #order_review_heading {
    display: none !important;
}
.woocommerce-checkout-custom-wrapper #order_review {
    flex: 1 1 380px !important;
    max-width: 420px !important;
    width: 100% !important;
    float: none !important;
    background: #ffffff !important;
    border: 1px solid #005ac81f !important;
    border-radius: 1.5rem !important;
    padding: 1.75rem !important;
    box-shadow: 0 10px 30px -10px rgba(0, 90, 200, 0.06) !important;
    position: sticky !important;
    top: 100px !important;
    box-sizing: border-box !important;
}
@media (max-width: 1023px) {
    .woocommerce-checkout-custom-wrapper #order_review {
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
}

.woocommerce-checkout-review-order table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 1.5rem !important;
    border: none !important;
    background: transparent !important;
}
.woocommerce-checkout-review-order table.shop_table th,
.woocommerce-checkout-review-order table.shop_table td {
    padding: 0.85rem 0 !important;
    font-size: 0.9375rem !important;
    border-bottom: 1px dashed #005ac81a !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background: transparent !important;
}
.woocommerce-checkout-review-order table.shop_table thead th {
    font-weight: 700 !important;
    color: #013d7f !important;
    border-bottom: 1px solid #005ac81f !important;
    padding-bottom: 0.85rem !important;
}
.woocommerce-checkout-review-order table.shop_table thead th.product-name {
    text-align: left !important;
}
.woocommerce-checkout-review-order table.shop_table thead th.product-total {
    text-align: right !important;
}
.woocommerce-checkout-review-order table.shop_table .cart_item td.product-name {
    color: #013d7f !important;
    font-weight: 500 !important;
    text-align: left !important;
}
.woocommerce-checkout-review-order table.shop_table .cart_item td.product-total {
    color: #013d7f !important;
    font-weight: 600 !important;
    text-align: right !important;
}
.woocommerce-checkout-review-order table.shop_table .cart_item .product-quantity {
    font-weight: 700 !important;
    color: #005ac8 !important;
}
.woocommerce-checkout-review-order table.shop_table tfoot tr.cart-subtotal th,
.woocommerce-checkout-review-order table.shop_table tfoot tr.shipping th {
    font-weight: 500 !important;
    color: #64748b !important;
    text-align: left !important;
}
.woocommerce-checkout-review-order table.shop_table tfoot tr.cart-subtotal td,
.woocommerce-checkout-review-order table.shop_table tfoot tr.shipping td {
    text-align: right !important;
    font-weight: 600 !important;
    color: #013d7f !important;
}
.woocommerce-checkout-review-order table.shop_table tfoot tr.order-total th {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #013d7f !important;
    border-top: 1px solid #005ac81f !important;
    border-bottom: none !important;
    padding-top: 1.1rem !important;
    text-align: left !important;
}
.woocommerce-checkout-review-order table.shop_table tfoot tr.order-total td {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #005ac8 !important;
    border-top: 1px solid #005ac81f !important;
    border-bottom: none !important;
    padding-top: 1.1rem !important;
    text-align: right !important;
}

/* Payment box */
#payment {
    background: #f7fbff !important;
    border-radius: 1.25rem !important;
    padding: 1.25rem !important;
    border: 1px solid #005ac81f !important;
}
#payment ul.payment_methods {
    padding: 0 !important;
    margin: 0 0 1rem 0 !important;
    list-style: none !important;
    border-bottom: 1px solid #005ac81a !important;
}
#payment ul.payment_methods li {
    padding: 0.75rem 0.25rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #013d7f !important;
}
#payment ul.payment_methods li label {
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}
#payment div.payment_box {
    background: #ffffff !important;
    border-radius: 0.875rem !important;
    padding: 0.85rem 1.15rem !important;
    font-size: 0.84rem !important;
    color: #475569 !important;
    margin-top: 0.5rem !important;
    border: 1px solid #005ac81f !important;
    line-height: 1.5 !important;
}
#payment div.payment_box::before {
    display: none !important;
}
.woocommerce-privacy-policy-text {
    font-size: 0.8125rem !important;
    color: #64748b !important;
    margin: 1rem 0 !important;
    line-height: 1.5 !important;
}
.woocommerce-privacy-policy-text a {
    color: #005ac8 !important;
    text-decoration: underline !important;
}

.woocommerce .col2-set::after, .woocommerce .col2-set::before, .woocommerce-page .col2-set::after, .woocommerce-page .col2-set::before {
    content: unset !important;
}

/* Nút đặt hàng */
#place_order,
.woocommerce #payment #place_order {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    border-radius: 9999px !important;
    background: linear-gradient(135deg, #005ac8 0%, #004299 100%) !important;
    color: #ffffff !important;
    padding: 0.95rem 1.5rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    transition: all 0.25s ease !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 90, 200, 0.28) !important;
    margin-top: 1rem !important;
    box-sizing: border-box !important;
}
#place_order:hover,
.woocommerce #payment #place_order:hover {
    background: linear-gradient(135deg, #004bb0 0%, #003377 100%) !important;
    box-shadow: 0 8px 24px rgba(0, 90, 200, 0.38) !important;
    transform: translateY(-1px) !important;
}
#place_order:active,
.woocommerce #payment #place_order:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0, 90, 200, 0.2) !important;
}

/* ── 5. ACCOUNT & LOGIN / REGISTER (Tỉ lệ 3:7 Chuẩn) ──────────────────── */
.hs-account-layout-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    align-items: start !important;
}
@media (min-width: 768px) {
    .hs-account-layout-grid {
        grid-template-columns: 280px 1fr !important;
    }
}
@media (min-width: 1024px) {
    .hs-account-layout-grid {
        grid-template-columns: 320px 1fr !important; /* Tỉ lệ ~3:7 trên màn hình lớn */
    }
}

/* Sidebar nav (30%) */
.hs-account-sidebar {
    width: 100% !important;
}
.hs-account-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    background: #ffffff !important;
    border: 1px solid #005ac81f !important;
    border-radius: 1.5rem !important;
    padding: 0.75rem !important;
    box-shadow: 0 4px 16px rgba(0, 90, 200, 0.04) !important;
}
.hs-account-nav-item {
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 0.875rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #013d7f !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}
.hs-account-nav-item:hover {
    background: #f7fbff !important;
    color: #005ac8 !important;
}
.hs-account-nav-item.active {
    background: #005ac8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 90, 200, 0.25) !important;
}

/* Content card (70%) */
.hs-account-content-card {
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #005ac81f !important;
    border-radius: 1.75rem !important;
    padding: 2rem !important;
    box-shadow: 0 10px 30px -10px rgba(0, 90, 200, 0.05) !important;
}

/* ── 6. AUTH / LOGIN & REGISTER (2 Cột song song cân đối) ──────────────── */
.hs-auth-page-wrapper {
    width: 100% !important;
}
.hs-auth-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Container chia 2 cột bằng FLEX */
#customer_login,
.u-columns.col2-set,
.u-columns,
.col2-set {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}
@media (min-width: 768px) {
    #customer_login,
    .u-columns.col2-set,
    .u-columns,
    .col2-set {
        flex-direction: row !important;
        gap: 2.5rem !important;
        align-items: stretch !important;
    }
}

/* 2 Cột Login & Register dạng 2 thẻ Card */
#customer_login .col-1,
#customer_login .col-2,
.u-columns .u-column1,
.u-columns .u-column2,
.u-columns .col-1,
.u-columns .col-2,
.col2-set .col-1,
.col2-set .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    float: none !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #005ac81f !important;
    border-radius: 1.75rem !important;
    padding: 2.25rem !important;
    box-shadow: 0 10px 30px -10px rgba(0, 90, 200, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}


.woocommerce-account h2,
#customer_login h2 {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    color: #013d7f !important;
}
.woocommerce-account form.login,
.woocommerce-account form.register {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.woocommerce-account .woocommerce-button,
.woocommerce-account .woocommerce-form-login__submit,
.woocommerce-account .woocommerce-form-register__submit,
.woocommerce-account .woocommerce-Button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    border-radius: 9999px !important;
    background: #005ac8 !important;
    color: #ffffff !important;
    padding: 0.875rem 1.75rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    box-shadow: 0 10px 25px -5px rgba(0, 90, 200, 0.35) !important;
    margin-top: 1.25rem !important;
}
.woocommerce-account .woocommerce-button:hover,
.woocommerce-account .woocommerce-form-login__submit:hover,
.woocommerce-account .woocommerce-form-register__submit:hover,
.woocommerce-account .woocommerce-Button:hover {
    box-shadow: 0 15px 35px -5px rgba(0, 90, 200, 0.5) !important;
    transform: translateY(-2px) !important;
}

.woocommerce-account .woocommerce-privacy-policy-text {
    font-size: 0.8125rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin: 0.75rem 0 !important;
}

.woocommerce-account .lost_password {
    margin-top: 1rem !important;
    text-align: center !important;
}
.woocommerce-account .lost_password a {
    font-size: 0.875rem !important;
    color: #005ac8 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
.woocommerce-account .lost_password a:hover {
    text-decoration: underline !important;
}

/* Hide default WooCommerce MyAccount navigation in content */
.woocommerce-MyAccount-navigation {
    display: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content p {
    margin-bottom: 1.25rem !important;
    line-height: 1.65 !important;
    font-size: 0.9375rem !important;
    color: #013d7f !important;
}
.woocommerce-account .woocommerce-MyAccount-content a {
    color: #005ac8 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content a:hover {
    text-decoration: underline !important;
}

/* Account Tables */
.woocommerce-MyAccount-content table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 1rem !important;
}
.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table td {
    padding: 1rem 0.75rem !important;
    font-size: 0.875rem !important;
    border-bottom: 1px solid #005ac81f !important;
    color: #013d7f !important;
}
/* ── 6. PAGINATION STYLING (Phân trang hiện đại & tinh tế) ───────────────── */
.hs-pagination,
.woocommerce-pagination {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin-top: 3.5rem !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
    list-style: none !important;
}

.hs-pagination ul.page-numbers,
.woocommerce-pagination ul.page-numbers {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    border: none !important;
}

.hs-pagination .hs-page-item,
.hs-pagination li,
.woocommerce-pagination li {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.hs-pagination .page-numbers,
.woocommerce-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 2.75rem !important;
    height: 2.75rem !important;
    padding: 0 0.85rem !important;
    border-radius: 9999px !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.32, 1) !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

/* Trang chưa chọn (Link thông thường) */
.hs-pagination a.page-numbers,
.woocommerce-pagination a.page-numbers {
    background: #ffffff !important;
    color: #013d7f !important;
    border: 1px solid #005ac824 !important;
    box-shadow: 0 2px 8px rgba(0, 90, 200, 0.05) !important;
}

.hs-pagination a.page-numbers:hover,
.woocommerce-pagination a.page-numbers:hover {
    color: #005ac8 !important;
    border-color: #005ac8 !important;
    background: #f7fbff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 90, 200, 0.15) !important;
}

/* Trang hiện tại (Active / Current) */
.hs-pagination span.page-numbers.current,
.woocommerce-pagination span.page-numbers.current {
    background: linear-gradient(135deg, #005ac8 0%, #004299 100%) !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    box-shadow: 0 4px 16px rgba(0, 90, 200, 0.35) !important;
    cursor: default !important;
    font-weight: 700 !important;
    transform: scale(1.05) !important;
}

/* Nút Trước / Tiếp */
.hs-pagination .prev.page-numbers,
.hs-pagination .next.page-numbers,
.woocommerce-pagination .prev.page-numbers,
.woocommerce-pagination .next.page-numbers {
    font-weight: 600 !important;
    padding: 0 1.25rem !important;
    font-size: 0.875rem !important;
}

/* Dấu ba chấm ... (Dots) */
.hs-pagination .page-numbers.dots,
.woocommerce-pagination .page-numbers.dots {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    min-width: 1.75rem !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
    letter-spacing: 2px !important;
}

/* ─── Search Inputs & Search Icons Styling ───────────────────────────── */
input[type="search"],
#faq-search,
#clinic-search-input,
.search-form input[type="search"] {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-weight: 500 !important;
}

input[type="search"]::placeholder,
#faq-search::placeholder,
#clinic-search-input::placeholder,
.search-form input[type="search"]::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Biến tất cả SVG search icon thành màu xanh chủ đạo */
.lucide-search,
svg.text-primary,
#faq-search ~ svg,
form[role="search"] svg,
#clinic-search-input ~ svg,
.search-form svg {
    color: #005ac8 !important;
    stroke: #005ac8 !important;
}
