/*
Theme Name: Biolife-child
Author: Ohtez
Description: This is a child theme for Biolife Theme
Template: biolife
*/

/* Hide duplicate affiliate menu from woo-coupon-usage plugin */
.woocommerce-MyAccount-navigation-link--coupon-affiliate {
    display: none !important;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #183484;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.wrapper-container {
    padding-left: 100px;
    padding-right: 100px;
    max-width: 1440px;
    margin: 0 auto;

    @media screen and (max-width: 1390px) {
        padding-left: 70px;
        padding-right: 70px;
    }

    @media screen and (max-width: 1360px) {
        padding-left: 50px;
        padding-right: 50px;
    }

    @media screen and (max-width: 1024px) {
        padding-left: 40px;
        padding-right: 40px;
    }

    @media screen and (max-width: 768px) {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.site {
    padding-bottom: 0px !important;
}

/* Custom Slider */

.swiper-container {
    position: relative;
    width: calc(100vw - 15px);
    height: 600px;

    .mySwiper {
        height: 610px !important;
    }
}

.custom-swiper-slide {
    height: 570px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms linear;
    transform: scale(0.8);

    &.swiper-slide-active {
        transform: scale(1);

        .overlay-slider {
            background-color: transparent !important;
        }
    }
}

.swiper-slide-prev,
.swiper-slide-next {
    display: flex;
    align-items: center;
    justify-content: center;

    .slider-image-container {
        height: 446px !important;
        background-color: #0000004D;
    }

    .overlay-slider {
        background-color: #0000004D !important;
    }
}

@media screen and (max-width: 1024px) {
    .custom-swiper-slide {
        height: 400px;
    }

    .swiper-container {
        height: 400px;

        .mySwiper {
            height: 420px !important;
        }

        .slider-image-container {
            height: 400px !important;
        }
    }
}

@media screen and (max-width: 768px) {
    .custom-swiper-slide {
        height: 300px;
    }

    .swiper-container {
        height: 300px;

        .mySwiper {
            height: 308px !important;
        }

        .slider-image-container {
            height: 300px !important;
        }
    }
}

@media screen and (max-width: 480px) {
    .custom-swiper-slide {
        height: 223px;
    }

    .swiper-container {
        height: 243px;

        .mySwiper {
            height: 240px !important;
        }

        .slider-image-container {
            height: 223px !important;
        }
    }
}

/* Custom Swiper Pagination */
.swiper-pagination {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto !important;

    @media screen and (max-width: 1024px) {
        bottom: 0px !important;
    }

    @media screen and (max-width: 480px) {
        gap: 0px !important;
    }
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    border-radius: 100% !important;
    background-color: #BDCBF3 !important;
    transform: scale(1) !important;
    opacity: 1 !important;
    left: 0px !important;

    @media screen and (max-width: 768px) {
        width: 8px !important;
        height: 8px !important;
    }
}

.swiper-pagination-bullet-active {
    background: #183484 !important;
}

#custom-product-list-button-prev .swiper-button-lock {
    display: block !important;
}

#custom-product-list-button-next .swiper-button-lock {
    display: block !important;
}

/* End Custom Slider */

.dropdown-user-content {
    display: none;
}

.dropdown-user-select:hover .dropdown-user-content {
    display: flex;
}

.custom-input-icon-error {
    display: none;
}

.wrapper-input-error .custom-input-icon-error {
    color: #FF424E;
    display: block;
}

.blog-content blockquote,
.blog-content .wp-block-quote {
    border-left: 4px solid #ccc;
    padding-left: 1em;
    color: #555;
    font-style: italic;
    background: #f9f9f9;
    margin-left: 30px;
}


.blog-content ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-left: 30px !important;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.language-select-content {
    display: none;
}

.language-select:hover .language-select-content {
    display: flex;
}

.square-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    display: block;
}