/*
 Theme Name:   IMG
 Theme URI:    https://img-testing.1001.com.hk
 Description:  Child theme for Hello Elementor
 Author:       IMG
 Author URI:   https://img-testing.1001.com.hk
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/
#site-header{
    position: relative;
    z-index: 1;
    margin: 0 auto;
    width: 100%;
    max-width: 1140px;
}
.site-header .header-inner{
    position: relative;
}
.site-header .header-inner .site-branding .site-logo img{
    width: 150px !important;
}
.site-navigation-dropdown{
    left: auto !important;
    width: 300px !important;
    right: 0 !important; 
}
.site-navigation-dropdown ul.menu li.current-menu-item a{
    background:#3a31ac !important;
}
.site-header + .elementor{
    margin-top: -170px !important;
}
.woocommerce a, .breadcrumb a{
    color:#3a31ac !important;
}
@keyframes gradientFlow{
    0% {
        background-position: 0%;
    }
    50% {
        background-position: 100%;
    }
    100% {
        background-position: 0%;
    }
}
.gradient-text h2 {
    background: linear-gradient(88.47deg, #3A31AC -13.09%, #C6E4E3 23.53%, #DBE2EF 41.83%, #D4D8DA 52.21%, #C6E4E3 61.36%, #D4D8DA 82.72%, #3A31AC 108.96%);
    background-size: 150% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    display: inline-block !important;
    animation: gradientFlow 12s linear infinite !important;
    will-change: background-position;
}
.gradient-text, .gradient-text h2 {
    position: relative;
    color: transparent !important;
    display: inline-block;
}


/**  Woocommerce **/
.woocommerce h3, h2.woocommerce-order-details__title, h2.woocommerce-column__title{
    position: relative;
    display: inline-block;
    color:#3A31AC;
    border-bottom: 2px solid #3a31ac !important;
    font-size: 20px;
}
.woocommerce h3#ship-to-different-address{
    font-size: 16px;
    color: #333333;
    border-bottom: none !important;
}
.woocommerce-checkout-payment{
    background: #F4F6FD !important;
}
.woocommerce button{
    background-color: #3a31ac !important;
}
.woocommerce .product .content-pd{
    padding:20px;
}
.woocommerce li.product{
    border-radius: 8px !important;
    border: 1px solid #fafafa !important;
    box-shadow: 6px 6px 16px rgba(0, 0, 0, 0.06) !important;
}
.woocommerce .product .price, .woocommerce .product .prepaid-deposit{
    display: inline-block !important;
    font-size: 16px !important;
    line-height: 2.5 !important;
}
.woocommerce .product .woocommerce-loop-product__title{
    color: #949494;
    margin-bottom: 20px !important;
}
.woocommerce .product .product-short-description{
    color: #3a3a3a !important;
    font-size: 20px;
    font-weight: bold;
}
.woocommerce .product a{
    position: relative !important;
    font-size: 16px !important;
    font-weight: 400;
    color: #1C65E3 !important;
}
.woocommerce .product a.add_to_cart_button{
    width: 100%;
    background: #3a31ac;
    color: #ffffff !important;
    text-align: center;
    font-weight: bold;
}
.woocommerce .woocommerce-checkout-review-order-table thead,.woocommerce .order_details thead{
    background: #3a31ac;
    color: #ffffff;
    font-weight: bold;
}

/** Lightbox **/
.lightbox-trigger {
    display: inline-block;
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
    margin: 5px 0;
    transition: color 0.3s ease;
}

.lightbox-trigger:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Lightbox overlay */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    padding: 80px;
    flex-direction: column;
    overflow-y: auto;
}

/* Lightbox content */
.lightbox-inner {
    background: #fff;
    max-width: 600px;
    width: 100%;
    /* max-height: 80vh; */
    border-radius: 10px;
    position: relative;
}

.lightbox-inner h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.lightbox-inner-content{
    padding: 20px;
    /* overflow-y: auto;
    max-height: calc(80vh - 35%); */
}
/* Close button */
.lightbox-close {
    position: absolute;
    top: 0;
    right: 15px;
    background: hsla(0,0%,100%,.6);
    color: #787878;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 1rem;
}

.lightbox-close:hover {
    background: #3a31ac;
}
/* Style the Font Awesome close icon */
.lightbox-close .fa-times {
    font-size: 1.2rem;
    margin-right: 5px; /* Space between icon and text, remove if no text */
}

/* Adjust close button padding for icon */
.lightbox-close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px; /* Slightly smaller padding */
}

/* If using icon only, center and adjust size */
.lightbox-close i:only-child {
    margin-right: 0;
    font-size: 1.4rem;
}

.lightbox-inner-content ul{
    display: grid !important;
    grid-template-columns: 1fr 1fr!important;
    gap: 0 !important;
    list-style: none!important;
    padding: 0!important;
}

.lightbox-inner-content ul li {
    padding-right: 35px !important;
    list-style-position: outside !important;
    margin-left: 20px !important;
    list-style: disc;
}

.lightbox-inner-content ol{
    padding-left:18px !important;
}
.lightbox-inner-content ol li {
    font-size: 12px !important;
    line-height: 22px !important;
}
.lightbox-inner-content ul li:nth-child(odd):last-child{
    grid-column: 2 !important;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-overlay{
        padding:25px;
    }
    .lightbox-inner {
        max-width: 100%;
        padding: 15px;
    }
    .lightbox-inner h2 {
        font-size: 1.2rem;
    }
    .lightbox-inner-content ul{
        display: inline-block !important;
        margin-bottom: 25px;
    }
    .woocommerce ul.products[class*=columns-] li.product{
        width: 95% !important;
        float: initial !important;
        clear: both !important;
        margin: 0 auto 20px auto !important;
    }

}

/** form hook **/
.select2-container .select2-selection--single{
    height: 36px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow{
    height: 36px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
    height: 36px !important;
    line-height: 33px !important;
}

.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received{
    font-size: 20px;
    text-align: center;
    line-height: 50px;
    color: #3a31ac;
}
.woocommerce-order-overview.woocommerce-thankyou-order-details.order_details{
    background: #F4F6FD;
    padding: 10px 15px;
    border: 2px solid #3a31ac;
    border-radius: 5px;
}
.woocommerce-message {
    border-top-color: #3a31ac;
}
.woocommerce-message::before {
    content: "\e015";
    color: #3a31ac;
}
.woocommerce-info{
    border-top-color: #3a31ac;
}
.woocommerce-info::before {
    color: #3a31ac;
}

.woocommerce-cart-form__contents thead{
    background: #3a31ac;
    color: #ffffff;
}
/* .woocommerce-cart table.cart th,
.woocommerce-cart table.cart td{
    border: none;
} */
.woocommerce a.remove {
    display: block;
    font-size: 1em;
    height: 1em;
    width: auto;
    text-align: center;
    line-height: 1;
    border-radius: 100%;
    color: #3a31ac !important;
    text-decoration: none;
    font-weight: 700;
    border: 0;
}
.woocommerce a.remove:hover {
    color: #3a31ac !important;
    background:  transparent !important;
}
.woocommerce .checkout a.remove{
    display: inline-block;
    float: right;
    font-size: 0.8em;
    line-height: 2;
}
.woocommerce .cart .button{
    color: #fff !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
    background:  #3a31ac !important;
    color:#ffffff !important;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    #site-header{
        margin-bottom: 50px;
    }
    .site-header .header-inner .site-branding .site-logo img{
        width: 150px !important;
    }
    .site-navigation-dropdown {
        left: auto !important;
        width: 200px !important;
        right: 30px !important;
    }
    .woocommerce{
        padding: 25px;
    }
    .woocommerce a.remove{
        text-align: right;
    }
    .woocommerce table.shop_table{
        border: none;
    }
    .woocommerce table.shop_table_responsive tr, .woocommerce-page table.shop_table_responsive tr{
        margin-bottom: 20px;
        border: none !important;
    }
    .woocommerce table.shop_table_responsive tr.cart-subtotal, .woocommerce-page table.shop_table_responsive tr.cart-subtotal{
        margin-bottom: 0 !important;
    }
    .woocommerce-page table.cart td.actions{
        border: none;
        background: transparent;
    }
    .woocommerce table.shop_table td{
        border-top: none;
    }
    .woocommerce table.shop_table_responsive tbody tr td:first-child, .woocommerce-page table.shop_table_responsive tbody tr td:first-child{
        border-top:1px solid rgba(128, 128, 128,0.5) !important;
    }

}
