/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

.absolute-footer {
    display: none !important;
}

.entry-content {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

@media only screen and (max-width: 48em) {

}

/* --- Dev site CSS for Footer Clone --- */

/* Background */
.xc-footer {
    background-image: linear-gradient(rgba(11, 117, 83, 0.8), rgba(11, 117, 83, 0.8)), url('assets/images/bg-img-footer.webp') !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    color: #f1f1f1 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Global Text Colors */
.xc-footer, 
.xc-footer p, 
.xc-footer a {
    color: #f1f1f1;
}
.xc-footer a:hover {
    color: #fff;
}

/* Column 1: Company Info */
.xc-footer p.company {
    display: flex;
    align-items: center;
    background: transparent;
    padding: 0 !important;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: 0;
}
.xc-footer ul.contact-info {
    border: none;
    padding: 0;
    margin-bottom: 1.3em;
    list-style: none;
    margin-left: 0;
}
.xc-footer ul.contact-info li {
    margin-bottom: 0.6em;
    margin-left: 0;
}

/* Map & BCT images */
.xc-footer .row-bct-map {
    margin-top: 20px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px; /* Khoảng cách giữa 2 ảnh */
    margin-left: 0;
    margin-right: 0;
}
.xc-footer .row-bct-map .col {
    flex: 0 0 auto !important;
    max-width: none !important;
    width: auto !important;
    padding: 0 !important;
}
.xc-footer .row-bct-map .col .col-inner {
    margin: 0 !important;
    width: auto !important;
}
.xc-footer .row-bct-map .col:nth-child(2) .img img {
    border-radius: 50%; 
    width: 100px;
    height: 100px;
    object-fit: cover;
}
.xc-footer .row-bct-map .col:nth-child(1) .img img {
    max-width: 120px; 
}

/* Column 2: Hướng dẫn Menu */
.xc-footer .ux-menu-title {
    background: transparent;
    padding: 0 !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    color: #fff;
    min-height: auto;
    margin-bottom: 10px;
    margin-top: 0;
}
.xc-footer .ux-menu-link {
    padding: 0;
    border: none;
}
.xc-footer .ux-menu-link__link {
    font-size: 13px !important;
    background: url('assets/images/bg-li-footer.png') left 13px no-repeat;
    display: flex;
    padding-left: 25px;
    border: none;
    color: #fff;
    padding-top: 6px;
    padding-bottom: 6px;
    width: 100%;
}
.xc-footer .ux-menu-link:hover .ux-menu-link__link {
    color: #fff;
}

/* Copyright Row */
.xc-footer .row-copyright .icon-box {
    justify-content: center;
    align-items: center;
}
.xc-footer .row-copyright .icon-box-text {
    flex: 0 1 auto;
}

/* Custom styles for archive posts */
.archive .post-item .box {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.archive .post-item .box:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.archive .post-item .box .is-divider {
    display: none !important;
}

.archive .post-item .post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
    margin-bottom: 0.5em;
}

.archive .post-item .from_the_blog_excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 4.5em;
}

/* --- Sidebar Widget Customization --- */
#secondary .widget {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    margin-bottom: 30px;
    border: 1px solid #67bd45;
    overflow: hidden;
}

#secondary .widget:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

#secondary .widget-title {
    display: flex !important;
    align-items: center;
    background: #67bd45;
    height: 40px;
    padding: 0 10px !important;
    color: #fff !important;
    letter-spacing: 0;
    margin-bottom: 0;
    border-bottom: none;
}
#secondary .widget-title::after {
    display: none !important;
}

#secondary .widget-title > span {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

#secondary .widget .is-divider {
    display: none !important;
}

/* Add borders to widget contents */
#secondary .widget_nav_menu > div,
#secondary .widget_nav_menu > ul,
#secondary .flatsome_recent_posts > ul {
    border: none;
    padding: 0 15px;
    margin-bottom: 0;
}

/* Navigation menu items styling */
#secondary .widget_nav_menu ul.menu > li {
    background: url('assets/images/icon-menu.png') left center no-repeat;
    background-size: 8px auto;
    padding-left: 25px;
    margin-left: 0; 
    align-items: center;
    display: flex;
    flex-flow: row wrap;
    border-bottom: none;
}

#secondary .widget_nav_menu ul.menu > li > a {
    width: 100%;
    color: #333;
    padding: 8px 0;
    border-bottom: 1px solid #ececec;
}
#secondary .widget_nav_menu ul.menu > li:last-child > a {
    border-bottom: none;
}
#secondary .widget_nav_menu ul.menu > li > a:hover {
    color: #67bd45;
}

/* Recent posts styling */
#secondary .widget > ul > li + li, 
#secondary ul.menu > li + li {
    border-top: none;
}
#secondary .flatsome_recent_posts li.recent-blog-posts-li {
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px dashed #ececec;
}
#secondary .flatsome_recent_posts li.recent-blog-posts-li .recent-blog-posts {
    padding-top: 0;
    padding-bottom: 0;
}
#secondary .flatsome_recent_posts li.recent-blog-posts-li:last-child {
    border-bottom: none;
}
#secondary .flatsome_recent_posts li.recent-blog-posts-li a {
    color: #333;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
}
#secondary .flatsome_recent_posts li.recent-blog-posts-li a:hover {
    color: #67bd45;
}
#secondary .flatsome_recent_posts .badge,
#secondary .flatsome_recent_posts .badge-inner {
    border-radius: 50% !important;
}

/* Custom Masthead Header Images */
@media screen and (min-width: 1200px) {
    #masthead::before {
        content: "";
        width: 300px;
        height: 250px;
        background-image: url('assets/images/img-before-head.webp');
        position: absolute;
        background-size: contain;
        background-repeat: no-repeat;
    }

    #masthead::after {
        content: "";
        width: 300px;
        height: 250px;
        background-image: url('assets/images/img-after-head.webp');
        position: absolute;
        background-size: contain;
        background-repeat: no-repeat;
        right: 0;
    }
}

/* Header Dropdown - Remove margin left */
#header .nav-dropdown > li {
    margin-left: 0 !important;
}

/* ========================================================
   CSS TÙY CHỈNH CHO SIDEBAR - RITAJUICE
======================================================= */

#shop-sidebar .widget:not(.widget_product_search):not(.widget_search) {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    margin-bottom: 30px;
    border: 1px solid #67bd45;
    overflow: hidden;
}

#shop-sidebar .widget:not(.widget_product_search):not(.widget_search):hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

#shop-sidebar .widget-title {
    display: flex;
    align-items: center;
    background: #67bd45;
    height: 40px;
    padding: 0 15px !important;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 0;
    border-bottom: none;
}
#shop-sidebar .widget-title::after {
    display: none !important;
}

#shop-sidebar .widget .is-divider {
    display: none;
}

#shop-sidebar .menu-danh-muc-san-pham-container,
#shop-sidebar ul.product_list_widget {
    border: none;
    padding: 10px 15px;
    margin-bottom: 0;
}

#shop-sidebar ul.menu {
    margin: 0;
    padding: 0;
}

#shop-sidebar ul.menu li {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px dashed #ececec;
}

#shop-sidebar ul.menu li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#shop-sidebar ul.menu li a {
    color: #333;
    display: flex;
    align-items: center;
    transition: color 0.3s;
    background: url('assets/images/icon-menu.png') left center no-repeat;
    padding-left: 20px;
}

#shop-sidebar ul.menu li a:hover {
    color: #67bd45;
}

#shop-sidebar ul.menu li::before {
    display: none !important;
}

#shop-sidebar ul.product_list_widget li {
    padding: 12px 0 12px 75px;
    min-height: 80px;
    border-bottom: 1px dashed #ececec;
    position: relative;
}

#shop-sidebar ul.product_list_widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#shop-sidebar span.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
    transition: color 0.3s;
}

#shop-sidebar ul.product_list_widget li a:hover span.product-title {
    color: #67bd45;
}

#shop-sidebar .woocommerce-Price-amount {
    color: #e40059 !important;
    font-weight: 700;
    font-size: 15px;
}

#shop-sidebar .widget_product_search .searchform {
    border: 1px solid #67bd45;
    border-radius: 4px;
    overflow: hidden;
}
#shop-sidebar .widget_product_search input[type="search"] {
    border: none !important;
    box-shadow: none !important;
    font-size: 14px;
}
#shop-sidebar .widget_product_search button {
    background-color: #67bd45;
    color: white;
}
#shop-sidebar .widget_product_search button:hover {
    background-color: #5aa73c;
}

/* ========================================================
   CSS TÙY CHỈNH CHO LƯỚI SẢN PHẨM (PRODUCT GRID)
======================================================= */
.products .product-small .col-inner {
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.products .product-small:hover .col-inner {
    border-color: #67bd45;
}

/* ========================================================
   TĂNG CHIỀU CAO BANNER DANH MỤC SẢN PHẨM (SHOP PAGE TITLE)
======================================================= */
.shop-page-title.category-page-title .page-title-inner {
    min-height: 300px; /* Tăng giảm con số này (ví dụ: 400px) để chỉnh chiều cao hiện background */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ========================================================
   CSS CHO TIÊU ĐỀ SECTION (NƯỚC GIẢI KHÁT RITA)
======================================================= */
h2.xc-section-title {
    position: relative;
    text-align: center;
    color: #555;
    font-size: 1.6em;
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 1em;
    padding-bottom: 10px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

h2.xc-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 100px;
    background-color: #67bd45;
}

@media (max-width: 549px) {
    h2.xc-section-title {
        font-size: 1.2em;
    }
}

/* ========================================================
   CSS CHO MENU HƯƠNG VỊ (FLAVOR MENU)
======================================================= */
.xc-flavor-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.3em;
}

.xc-flavor-menu__label {
    font-weight: bold;
    font-size: 12px;
    color: #333;
}

.xc-flavor-menu__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.xc-flavor-menu__item {
    display: inline-flex;
    transition: transform 0.3s ease;
}

.xc-flavor-menu__item:hover {
    transform: translateY(-3px);
}

.xc-flavor-menu__icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* =========================================================
   1. CSS LAYOUT CHO DANH SÁCH SẢN PHẨM (xc-list-product-vertical)
   ========================================================= */

/* Đưa sản phẩm về dạng hàng ngang (flex row) */
.product-small.xc-list-product-vertical {
    display: flex !important;
    flex-direction: row;
    align-items: center; /* Căn giữa theo chiều dọc. Đổi thành 'flex-start' nếu muốn ảnh và chữ căn từ trên xuống */
    gap: 15px; /* Khoảng cách giữa ảnh và chữ */
    margin-bottom: 15px;
}

/* Giới hạn kích thước ảnh bên trái */
.product-small.xc-list-product-vertical .box-image {
    flex: 0 0 80px; /* Chiều rộng của ảnh (ví dụ 80px), bạn có thể tăng/giảm tùy ý */
    max-width: 80px;
    margin: 0;
}

/* Cấu trúc phần chữ (Title và Price) bên phải */
.product-small.xc-list-product-vertical .box-text {
    flex: 1; /* Chiếm hết phần không gian còn lại */
    display: flex;
    flex-direction: column;
    text-align: left; /* Ghi đè các class căn giữa như text-center */
    justify-content: center;
    padding: 0 !important;
    height: auto !important; /* Ghi đè thẻ inline height của Theme */
}

/* Xóa bỏ các thuộc tính height được gán bằng JS (inline styles) của Theme */
.product-small.xc-list-product-vertical .box-text .title-wrapper,
.product-small.xc-list-product-vertical .box-text .name,
.product-small.xc-list-product-vertical .box-text .price-wrapper {
    height: auto !important;
    margin-bottom: 5px; /* Khoảng cách nhỏ giữa tiêu đề và giá */
}


/* =========================================================
   2. GLOBAL CSS - TIÊU ĐỀ SẢN PHẨM VÀ GIÁ (Áp dụng toàn trang)
   ========================================================= */

/* Tùy chỉnh Font chữ, màu sắc, kích thước cho Tiêu đề sản phẩm */
.product-title a, 
.woocommerce-loop-product__title,
.woocommerce-loop-product__title a {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; /* Đổi font chữ tại đây */
    color: #333333; /* Màu của tiêu đề */
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.3s ease;
    
    /* Giới hạn số dòng chữ, cắt chữ thêm dấu ... nếu quá dài */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giới hạn hiển thị tối đa 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Màu khi di chuột (hover) vào Tiêu đề */
.product-title a:hover, 
.woocommerce-loop-product__title a:hover {
    color: #67bd45; /* Màu xanh ngọc / lá cây của bạn */
}

/* Tùy chỉnh Màu sắc, độ đậm cho Giá sản phẩm */
.price, 
.price .amount, 
.price ins .amount {
    color: #e40059 !important; /* Màu giá bán (vd: Đỏ hồng) */
    font-weight: 700;
    font-size: 15px;
}

/* Tùy chỉnh hiển thị cho Giá cũ (nếu sản phẩm đang sale) */
.price del .amount {
    color: #999999 !important; /* Màu xám cho giá gốc */
    font-weight: 400;
    font-size: 13px;
}

/* =========================================================
   3. CSS BỔ SUNG CHO PRODUCT LOOP (Có viền, bo góc, hover xanh)
   ========================================================= */

/* Tạo viền và bo góc cho toàn bộ khung sản phẩm */
.product-small .box,
.product-small.box {
    border: 1px solid #ebebeb; /* Màu viền xám nhạt mặc định */
    border-radius: 12px; /* Độ bo tròn các góc (tùy chỉnh to/nhỏ tại đây) */
    background-color: #ffffff; /* Nền trắng */
    overflow: hidden; /* Rất quan trọng: Giúp ảnh không bị tràn ra ngoài phần góc bo */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Hiệu ứng chuyển đổi mượt mà */
}

/* Căn chỉnh lại khoảng cách phần chữ để không bị sát vào đường viền */
.product-small .box .box-text,
.product-small.box .box-text {
    padding: 10px 15px 15px 15px !important; /* Đệm cách lề trái/phải/dưới cho chữ */
}

/* Đổi viền sang màu xanh khi di chuột (Hover) */
.product-small .box:hover,
.product-small.box:hover {
    border-color: #67bd45; /* Màu xanh lá cây/xanh ngọc khi hover */
    
    /* (Tùy chọn) Bỏ comment dòng dưới nếu bạn muốn sản phẩm nổi bóng nhẹ lên khi hover */
    /* box-shadow: 0 5px 15px rgba(103, 189, 69, 0.15); */
}

/* =========================================================
   4. CSS CHO BÀI VIẾT (POST LOOP) GIỐNG SẢN PHẨM
   ========================================================= */

/* Cấu trúc viền, bo góc và hover cho box bài viết */
.post-item .box-blog-post {
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background-color: #ffffff;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-item .box-blog-post:hover {
    border-color: #67bd45;
}

/* Định dạng tiêu đề bài viết giống tiêu đề sản phẩm */
.post-item .box-blog-post .post-title a {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333333;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
    
    /* Bắt buộc hiển thị 2 dòng (line-clamp 2) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em; /* 1.4 * 2 = 2.8em. Giữ chiều cao cố định kể cả khi tiêu đề chỉ có 1 dòng */
}

/* Hover tiêu đề bài viết đổi màu xanh */
.post-item .box-blog-post .post-title a:hover {
    color: #67bd45;
}

/* Định dạng mô tả ngắn (excerpt) bắt buộc 3 dòng */
.post-item .box-blog-post .from_the_blog_excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px; 
    color: #666666;
    line-height: 1.5;
    margin-top: 10px;
    height: 4.5em; /* 1.5 * 3 = 4.5em. Giữ chiều cao cố định 3 dòng */
}

/* Ẩn dấu gạch ngang (divider) giữa tiêu đề và mô tả */
.post-item .box-blog-post .is-divider {
    display: none !important;
}

/* ==============================================
   CSS CHO SECTION ABOUT LIST (.row-about-list)
   ============================================== */

/* Căn giữa các cột theo chiều dọc (nếu ảnh giữa cao hơn) */
.row-about-list {
    align-items: center;
}

/* 1. KHOẢNG CÁCH GIỮA CÁC ICON-BOX */
/* Thay thế cho gap-element: Tạo khoảng cách giữa 2 block trên cùng 1 cột */
.row-about-list .col-inner > .icon-box:not(:last-child) {
    margin-bottom: 70px;
}

/* 2. CẤU TRÚC CHUNG CỦA ICON BOX */
.row-about-list .icon-box {
    display: flex;
    flex-wrap: nowrap;
    align-items: center; /* Căn giữa icon và text theo chiều ngang */
}

.row-about-list .icon-box-text {
    flex: 1; /* Cho chữ chiếm phần không gian còn lại */
}

.row-about-list .icon-box-text h3 {
    font-size: 1.25em;
    color: #333;
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: 700;
}

.row-about-list .icon-box-text p {
    color: #666;
    margin: 0;
    line-height: 1.5;
    font-size: 0.95em;
}

/* 3. ĐỊNH DẠNG KHUNG ICON CÓ VIỀN TRÒN (Thay thế style inline cũ) */
.row-about-list .icon-box-img {
    flex: 0 0 80px; 
    width: 80px !important; /* Ghi đè lại style="width: 60px" trong HTML để khung to đẹp hơn */
}

.row-about-list .icon {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Tạo khung vuông tỷ lệ 1:1 */
}

.row-about-list .icon-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #0c7743; /* Màu xanh của thương hiệu */
    border-radius: 50%; /* Bo tròn 100% */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.row-about-list .icon-inner img {
    width: 50%; /* Kích thước ảnh bên trong vòng tròn */
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Hiệu ứng hover đổi màu nền */
.row-about-list .icon-box:hover .icon-inner {
    background-color: #0c7743;
}

/* (Tùy chọn) Làm sáng ảnh icon khi hover nếu icon là màu đen/tối */
.row-about-list .icon-box:hover .icon-inner img {
    filter: brightness(0) invert(1); 
}

/* 4. CĂN CHỈNH RIÊNG CHO CỘT TRÁI & PHẢI */

/* Cột trái: text căn phải, icon nằm bên phải */
.row-about-list .icon-box-right {
    text-align: right;
}
.row-about-list .icon-box-right .icon-box-img {
    order: 2; /* Đẩy icon ra sau khối text */
    margin-left: 25px; /* Cách text một khoảng */
}
.row-about-list .icon-box-right .icon-box-text {
    order: 1;
}

/* Cột phải: text căn trái, icon nằm bên trái */
.row-about-list .icon-box-left {
    text-align: left;
}
.row-about-list .icon-box-left .icon-box-img {
    margin-right: 25px; /* Cách text một khoảng */
}


/* 5. RESPONSIVE CHO MOBILE & TABLET */
@media (max-width: 849px) {
    .row-about-list .col-inner > .icon-box:not(:last-child) {
        margin-bottom: 30px; /* Giảm khoảng cách trên mobile */
    }
    
    /* Hình ở giữa cần cách một chút trên mobile */
    .row-about-list #image_1775120548 {
        margin: 40px 0;
    }
    
    /* Đưa cột trái về hiển thị bình thường (icon trái, text phải) trên mobile cho dễ đọc */
    .row-about-list .icon-box-right {
        text-align: left;
    }
    .row-about-list .icon-box-right .icon-box-img {
        order: 0;
        margin-left: 0;
        margin-right: 20px;
    }
    .row-about-list .icon-box-right .icon-box-text {
        order: 1;
    }
}

/* ========================================================
   CSS CHO FORM NEWSLETTER (.xc-form-newsleeter)
======================================================= */
.xc-form-newsleeter {
    width: 100%;
    max-width: 600px; /* Thêm lại giới hạn để không bị quá dài trên màn hình to */
    margin: 0 auto;
    position: relative;
}

.xc-form-newsleeter .xc-form-group {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px dashed #67bd45; /* Đổi sang viền nét đứt và thêm màu xanh để đẹp hơn, hoặc giữ nguyên màu xám tuỳ ý, ở đây tôi dùng màu xanh cho hợp với form */
    border-radius: 50px;
    padding: 3px; /* Giảm padding để form nhỏ gọn hơn */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.xc-form-newsleeter .xc-form-group:hover,
.xc-form-newsleeter .xc-form-group:focus-within {
    border-color: #67bd45;
    box-shadow: 0 6px 20px rgba(103, 189, 69, 0.15);
}

/* Contact Form 7 wrappers */
.xc-form-newsleeter p {
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    align-items: center;
}

.xc-form-newsleeter br {
    display: none !important;
}

.xc-form-newsleeter .wpcf7-form-control-wrap {
    flex: 1;
    margin-bottom: 0;
    position: static;
}

/* Email Input Field */
.xc-form-newsleeter input[type="email"] {
    width: 100%;
    border: none !important;
    background: transparent;
    box-shadow: none !important;
    padding: 8px 15px; /* Thu nhỏ padding */
    margin: 0;
    font-size: 14px; /* Giảm font-size */
    color: #333;
    outline: none !important;
}

/* Submit Button */
.xc-form-newsleeter input[type="submit"] {
    background-color: #67bd45 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 8px 25px !important; /* Thu nhỏ nút */
    font-size: 14px !important; /* Giảm font-size */
    font-weight: 600 !important;
    cursor: pointer !important;
    margin: 0 !important;
    white-space: nowrap !important;
    transition: background-color 0.3s ease !important;
}

.xc-form-newsleeter input[type="submit"]:hover {
    background-color: #5aa73c !important;
}

/* Xử lý Spinner và Thông báo của CF7 */
.xc-form-newsleeter .wpcf7-spinner {
    position: absolute;
    right: 120px;
    top: 50%;
    transform: translateY(-50%);
}

.xc-form-newsleeter .wpcf7-not-valid-tip {
    position: absolute;
    font-size: 12px;
    color: #e40059;
    margin-top: 5px;
    padding-left: 20px;
    bottom: -20px;
    left: 0;
}

.xc-form-newsleeter .wpcf7-response-output {
    border: none !important;
    margin: 25px 0 0 !important;
    padding: 10px 15px !important;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    background-color: #f9f9f9;
}

/* Căn chỉnh lại cho mobile gọn gàng hơn */
@media (max-width: 549px) {
    .xc-form-newsleeter .xc-form-group {
        padding: 4px;
    }
    .xc-form-newsleeter input[type="email"] {
        padding: 8px 15px;
        font-size: 14px;
    }
    .xc-form-newsleeter input[type="submit"] {
        padding: 8px 20px;
        font-size: 14px;
    }
    .xc-form-newsleeter .wpcf7-spinner {
        right: 100px;
    }
}