/*
 Theme Name: Twenty Twenty Child
 Theme URL: 
 Description: Twenty Twenty Child Theme
 Author: Splat Global
 Template: twentytwenty
 Version: 1.0
 Text Domain: twentytwenty-child
*/

/* IM Promo Slider Nav */
.slider-button-prev,
.slider-button-next {
    position: absolute;
    top: calc(50% - 66px);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    -webkit-box-shadow: 0px 2px 25px rgba(133, 135, 138, 0.2);
            box-shadow: 0px 2px 25px rgba(133, 135, 138, 0.2);
    background-color: white;
    cursor: pointer;
    z-index: 1;
    -webkit-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.slider-button-next,
.slider-button-prev {
    opacity: 0;
}
.slider-button-next[role="button"],
.slider-button-prev[role="button"] {
    opacity: 1;
}
.splat-promo-button-next,
.splat-promo-button-prev {
    top: calc(50% - 26px);
}
.slider-button-prev:hover,
.slider-button-next:hover {
    -webkit-box-shadow: 0px 1px 15px rgba(133, 135, 138, 0.2);
            box-shadow: 0px 1px 15px rgba(133, 135, 138, 0.2);
}
.slider-button-prev {
    left: -105px;
}
.slider-button-next {
    right: -105px;
}
.slider-button-prev.swiper-button-disabled,
.slider-button-next.swiper-button-disabled {
    border: 1px solid #E8EBED;
    -webkit-box-shadow: 0px 2px 25px rgba(133, 135, 138, 0);
            box-shadow: 0px 2px 25px rgba(133, 135, 138, 0);
}
.slider-button-prev.swiper-button-disabled svg path,
.slider-button-next.swiper-button-disabled svg path {
    fill: #E8EBED;
}
.promo-pagination .swiper-pagination-bullet {
    width: 69px;
    height: 4px;
    opacity: 0.15;
    border-radius: 16px;
    flex: 1;
}
.promo-pagination .swiper-pagination-bullet-active {
    background: #BA0C2F;
    opacity: 1;
}
.promo-pagination .swiper-pagination-bullet {
    position: relative;
    overflow: hidden;
}
.promo-pagination .swiper-pagination-bullet::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.promo-pagination .swiper-pagination-bullet-active {
    background: rgba(161, 161, 161, 0.15);
}
.promo-pagination .swiper-pagination-bullet-active::before {
    background-color: #BA0C2F;
    -webkit-animation: slide-progress 2s cubic-bezier(0.3, 0, 0.3, 1) forwards;
            animation: slide-progress 2s cubic-bezier(0.3, 0, 0.3, 1) forwards;
}
.swiper-paused .swiper-pagination-bullet-active::before {
    -webkit-animation-play-state: paused;
        animation-play-state: paused;
}

.woocommerce:has(.cart-empty-title) ~ #is-slider-cart-bottom-container,
.woocommerce:has(.cart-empty-title) #is-promo.cart-promo-section {
    margin-top: 50px;
}
  
@-webkit-keyframes slide-progress {
    0% {
        -webkit-transform: translateX(-100%);
                transform: translateX(-100%);
    }
    100% {
        -webkit-transform: translateX(0);
                transform: translateX(0);
    }
}
@keyframes slide-progress {
    0% {
        -webkit-transform: translateX(-100%);
                transform: translateX(-100%);
    }
    100% {
        -webkit-transform: translateX(0);
                transform: translateX(0);
    }
}
@media screen and (max-width: 1439px) {
    .slider-button-prev[role="button"] {
        left: -25px;
    }
    
    .slider-button-next[role="button"] {
        right: -25px;
    }
}
@media screen and (max-width: 1200.99px) {
     .slider-button-next[role="button"], .slider-button-prev[role="button"] {
        display: none;
    }
 
}


/**
* IM Promo Section
**/
.promo-section {
    padding-top: 0 !important;
    padding-bottom: 48px !important;
}

.promo-slider__box {
    position: relative;
}

.promo-slide__box {
    margin: 0;
    height: 148px;
    max-height: 148px;
    border-radius: 20px; 
    overflow: hidden;
    background-position: right bottom;
    background-position: right 16px bottom 0px;
    background-repeat: no-repeat;
}

.is-promo-slide__info {
    padding: 20px 24px 44px;
    max-width: calc(50% - 3rem);
    height: calc(100% - 5.8rem);
}

#is-promo .promo-slide__title {
    margin: 0 0 12px;
    color: #2C2C2C;
    font-family: Futura New Book !important;
    font-size: 20px;
    font-style: normal;
    font-weight: 450;
    letter-spacing: 0.4px; 
}

.promo-slide__text {
    color: #2C2C2C;
    font-family: Futura New Book;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; 
    opacity: .8;
}

.promo-slide__text.is-screen-desktop {
    display: block;
}
    
.promo-slide__text.is-screen-mobile {
    display: none;
}

.promo-pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
    position: absolute;
    bottom: 0;
    left: 0;
    max-width: 592px;
    padding: 20px 24px;
    display: flex;
    z-index: 1;
}

.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet, .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    max-width: 14%;
}

@media screen and (max-width: 1200.99px) {
    #is-slider-cart-top-container {
        margin-top: 8px;
        margin-bottom: -8px;
    }

    .is-promo-slide__info {
        max-width: calc(100% - 37%);
    }
    
    .promo-pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
        max-width: 423px;
    }
}

@media screen and (max-width: 767px) {
    .is-promo-slide__info {
        max-width: 50%;
    }
    
    .promo-slide__text.is-screen-desktop {
        display: none;
    }
    
    .promo-slide__text.is-screen-mobile {
        display: block;
    }
}

@media screen and (max-width: 500px) {
    .promo-section {
        padding-bottom: 32px !important;
    }

    .promo-slide__box {
       border-radius: 8px;
       background-position: right -100px bottom 0px;
    }
    
    .is-promo-slide__info {
        max-width: calc(100% - 132px);
    }
    
    #is-promo .promo-slide__title {
        margin-bottom: 8px;
        font-size: 16px;
        line-height: 100% !important;
    }
    
    .promo-slide__text {
        font-size: 14px;
    }
    
    .promo-pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
        max-width: 100%;
        padding: 12px 16px;
    }
    
    .swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet, .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
        max-width: 100%;
    }
    
    .woocommerce:has(.cart-empty-title) ~ #is-slider-cart-bottom-container,
    .woocommerce:has(.cart-empty-title) #is-promo.cart-promo-section {
        margin-top: 30px;
    }
}