input#woocommerce-product-search-field-0 {
    height: 40px;
    border-color: white;
}
button.ux-search-submit.submit-button.secondary.button.icon.mb-0 {
    height: 40px;
}
input#woocommerce-product-search-field-1 {
    height: 40px;
}
input#woocommerce-product-search-field-2 {
    height: 40px;
}
a.button-continue-shopping {
    display: none;
}
span.txt_flashsale {
    font-weight: bold;
    font-size: 19px;
    color: orange;
}
/* ----------------------------------- style coupon -------------------------------------------------- */
/* CSS dành cho desktop (mặc định) */
.coupon-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.coupon-container {
    position: relative; /* Bật thuộc tính định vị cho các phần tử con */
    display: flex;
    align-items: center;
    width: 320px;
    height: auto;
    border: 1px solid #ccc;
    margin: 10px;
    border-radius: 7px;
    overflow: hidden;
    background-color: #fff;
}

.coupon-left {
    background-color: #006432;
    width: 3%;
    height: 100%;
}

.coupon-middle {
    width: 25%;
    color: #006432;
    text-align: center;
    font-size: 35px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px dashed #ccc;
    height: 100%;
}

.coupon-right {
    width: 72%;
    /* height: 100%; */
    display: flex;
    justify-content: space-between;
    padding: 10px;
    position: relative; /* Đảm bảo các phần tử con có thể được định vị */
    text-align: left;
}

.rg-left {
    width: 70%;
    line-height: 1.2;
}

.rg-right {
    width: 60%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: absolute;
    bottom: 0px; /* Sát cạnh dưới */
    left: 42%;
}

.rg-top h3 {
    margin: 0;
    font-size: 12px;
    color: #333;
}

.rg-top p, .rg-bottom p {
    margin: 5px 0;
    font-size: 12px;
    color: #555;
}

.copy-button {
    background-color: black;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 10px;
    /* padding: 8px 15px; */
}

.copy-button:hover {
    background-color: #0056b3;
}

.copy-button.copied {
    background-color: green;
    color: white;
}

/* CSS dành cho mobile (màn hình dưới 768px) */
@media screen and (max-width: 768px) {
    /* .coupon-wrapper {
        flex-direction: column;
        align-items: center;
    } */

    .coupon-container {
        position: relative; /* Bật thuộc tính định vị cho các phần tử con */
        display: flex;
        align-items: center;
        width: 320px;
        height: auto;
        border: 1px solid #ccc;
        margin: 10px auto 10px auto;
        border-radius: 7px;
        overflow: hidden;
        background-color: #fff;
    }
}
.alert-num-iconcart {
    /* float: right; */
    background: red;
    color: #fff;
    padding: 1px 5px;
    border-radius: 100%;
    font-size: 9px;
    position: absolute;
    top: -8px;
    right: -7px;
}


/* ----------------------------------- end style coupon -------------------------------------------------- */

img.alignleft {
    float: left;
    padding-right: 5px;
    width: 20%;
    height: auto;
}

.product-item-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Khoảng cách giữa ảnh và text */
}

.product-image {
    flex-shrink: 0;
}

.product-details {
    white-space: nowrap; /* Không cho văn bản xuống dòng */
    overflow: hidden;
    text-overflow: ellipsis; /* Cắt ngắn văn bản nếu quá dài */
}

td.woocommerce-table__product-name.product-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* css icon mobile */

@media (max-width: 767px) { /* Áp dụng cho thiết bị di động */
    .image-tools.grid-tools {
        opacity: 1 !important; /* Đảm bảo luôn hiển thị */
        visibility: visible !important; /* Đảm bảo không bị ẩn */
        transform: translateY(0) !important; /* Loại bỏ hiệu ứng trượt */
        transition: none !important; /* Loại bỏ hiệu ứng hover */
    }

    .image-tools.grid-tools.show-on-hover {
        display: flex !important; /* Hiển thị layout flex (nếu bị ẩn) */
    }

    .image-tools.grid-tools .hover-slide-in {
        transform: none !important; /* Vô hiệu hóa hiệu ứng trượt */
    }
    a.added_to_cart.wc-forward {
        /* display: none; */
        font-size: 10px;
    }
    a.quick-view.quick-view-added {
        font-size: 10px;
    }

    a.add-to-cart-grid.no-padding.is-transparent.product_type_simple.add_to_cart_button.ajax_add_to_cart.added {
        display: block !important;
    }
}

@media (max-width: 767px) { /* Áp dụng cho mobile */

    .toast-container {
        position: fixed;
        z-index: 9999;
        top: 20px;
        right: 20px
    }
    
    .toast-container .toast {
        position: relative;
        width: 100%;
        max-width: 300px;
        min-width: 280px;
        background-color: #fff;
        border-radius: 5px;
        padding: 15px;
        margin-bottom: 20px;
        box-shadow: 0 5px 10px -5px rgba(0,0,0,0.15),0 10px 10px -5px rgba(0,0,0,0.1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out
    }
    
    .toast-container .toast:hover {
        box-shadow: 0 15px 20px -5px rgba(0,0,0,0.15),0 15px 15px -5px rgba(0,0,0,0.1)
    }
    
    .toast-container .toast .t-title {
        display: flex;
        align-items: center;
        width: 100%;
        margin: 0;
        color: #262626;
        font-weight: 600;
        font-size: 1.1rem
    }
    
    .toast-container .toast .t-title[class^="t-icon-"] {
        font-size: 1.2rem;
        padding: 0 10px 0 0
    }
    
    .toast-container .toast .t-text {
        color: #262626;
        margin: 5px 0 0 0
    }
    
    .toast-container .toast .t-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        height: 25px;
        width: 25px;
        right: -10px;
        top: -10px;
        padding: 0;
        margin: 0;
        background-color:#929292;;
        border-radius: 50%;
        transform: rotate(45deg);
        cursor: pointer;
        box-shadow: 0 5px 10px -5px rgba(0,0,0,0.15),0 10px 10px -5px rgba(0,0,0,0.1)
    }
    
    .toast-container .toast .t-close:after,.toast-container .toast .t-close:before {
        content: '';
        display: block;
        position: absolute;
        background-color: #eee;
        border-radius: 3px
    }
    
    .toast-container .toast .t-close:after {
        width: 2px;
        height: 16px
    }
    
    .toast-container .toast .t-close:before {
        width: 16px;
        height: 2px
    }
    
    .toast-container .toast.active {
        opacity: 1;
        visibility: visible
    }
    
    .toast-container .toast.system {
        background-color: var(--toastSysBg)
    }
    
    .toast-container .toast.system .t-text,.toast-container .toast.system .t-title {
        color: var(--toastSysCl)
    }
    
    .toast-container .toast.success {
        background-color: #d1e7dd;
    }
    
    .toast-container .toast.success .t-text,.toast-container .toast.success .t-title {
        color: #0f5132;
    }
    
    .toast-container .toast.warning {
        background-color: #fff3cd;
    }
    
    .toast-container .toast.warning .t-text,.toast-container .toast.warning .t-title {
        color: #664d03;
    }
    
    .toast-container .toast.error {
        background-color: #f8d7da;
    }
    
    .toast-container .toast.error .t-text,.toast-container .toast.error .t-title {
        color: #842029;
    }

}

#test img{
    border-radius: 12px;
}
button.mfp-close {
    color: #efefed !important;
    font-weight: bold;
}
.lightbox-content {
    background: none !important;
    border: none;
}

body {
    font-family: Helvetica Neue, sans-serif !important;
}

/* style menu footer product details */

a.btn-click-by {
    background: black;
}
.btn-click-by span{
	padding-top: 10px;
}