@use "../common/utils" as *;
@use "../common/mixins" as *;

body {
    background: rgba(var(--color-background), 1);
    overflow-x: hidden;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.text-right {
    text-align: right;
}

.text-md-right {
    @include media-breakpoint-up(md) {
        text-align: right;
    }
}

.mt-4 {
    margin-top: calc-rem(16px);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-2 {
    margin-bottom: calc-rem(8px);
}

.mb-4 {
    margin-bottom: calc-rem(16px);
}

.mb-8 {
    margin-bottom: calc-rem(32px);
}

.mt-0 {
    margin-top: 0;
}

.mt-2 {
    margin-top: calc-rem(8px);
}

.mt-4 {
    margin-top: calc-rem(16px);
}

.mt-8 {
    margin-top: calc-rem(32px);
}

.ml-auto {
    margin-left: auto;
}

.mr-auto {
    margin-right: auto;
}

main {
    &.bg-white {
        background: #FFF;
    }

    &.padding {
        padding: calc-rem(30px 0);
    }

    &.rounded {
        border-top-left-radius: var(--border-radius);
        border-top-right-radius: var(--border-radius);
    }

   &.component-wrapper {
       section{
           &:not(:first-child) {
               position: relative;

               @for $i from 1 through 25 {
                   &:nth-child(#{$i}) {
                       z-index: $i;
                   }
               }
           }
       }
   }
}

// Component styles
.component-border-radius {
    border-top-left-radius: calc-rem(25px);
    border-top-right-radius: calc-rem(25px);
    margin-top: calc-rem(-25px);
    padding-block: calc-rem(40px) calc-rem(65px);

    @include media-breakpoint-up(md) {
        padding-block: calc-rem(50px) calc-rem(75px);
    }

    @include media-breakpoint-up(lg) {
        padding-block: calc-rem(80px) calc-rem(105px);
    }
}

section.component-white {
    background: rgba(var(--color-white));
}

.component-margin {
    margin-block: calc-rem(60px);

    @include media-breakpoint-up(md) {
        margin-block: calc-rem(80px);
    }

    @include media-breakpoint-up(lg) {
        margin-block: calc-rem(100px);
    }
}

// Component styles ends

.pill-category {
    background: rgba(var(--color-primary));
    text-transform: uppercase;
    color: rgba(var(--color-white));
    font-weight: var(--font-weight-bold);
    padding-inline: calc-rem(10px);
    border-radius: calc-rem(20px);
    height: calc-rem(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc-rem(10px);
    width: fit-content;
}

.slider-functions {
    display: flex;
    align-items: center;
    gap: calc-rem(20px);
    margin-top: calc-rem(30px);

    @include media-breakpoint-up(lg) {
        margin-top: calc-rem(65px);
        gap: calc-rem(30px);
    }

    .swiper-buttons {
        display: flex;
        align-items: center;
        gap: calc-rem(5px);

        .prev {
            svg {
                rotate: 180deg;
            }
        }

        .swiper-button-disabled {
            opacity: .3;
        }
    }

    .swiper-pagination {
        position: relative;

        &.swiper-pagination-progressbar {
            height: calc-rem(2px);
            border-radius: 1rem;
            background: rgba(var(--color-border));

            .swiper-pagination-progressbar-fill {
                background: rgba(var(--color-secondary));
                height: calc-rem(2px);
            }
        }


    }

}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: calc-rem(10px);
}
