/* ==========================================================================
   Customer Carousel / CUSTOM
   ========================================================================== */

.customer-carousel {
    background-color: var(--mmx-color-grey-01);
    padding: 40px 0;
}

.customer-carousel .g-wrapper {
    max-width: 76.83333rem;
}

@media(min-width: 48em) {
    .customer-carousel {
        padding: 62px 0;
    }
}

.customer-carousel__title,
.customer-carousel__subtitle {
    background: radial-gradient(50% 50% at 50% 50%, #E0E0E0 0%, rgba(224, 224, 224, 0) 100%);
    backdrop-filter: blur(2px);
    margin-bottom: 32px;
    text-align: var(--customer-carousel__text-align);
    position: relative;
}

.customer-carousel__subtitle {
    background: radial-gradient(65% 100% at 50% 50%, #f4f2f2 0%, rgba(224, 224, 224, 0) 100%);
    max-width: 574px;
    margin-left: auto;
    margin-right: auto;
}

.customer-carousel__card {
    display: flex;
    flex: 0 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: #fff;
    max-width: 1030px;
    margin: 0 auto;
}

.customer-carousel__card .customer-carousel__card--column {
    flex: 1 1 auto;
    max-width: 100%;
    flex-basis: 100%;
}

.customer-carousel__card--text-content {
    padding: 16px;
}

@media (max-width: 59.9em) {
    .customer-carousel__card--column img {
        max-height: 200px;
        width: 100%;
        object-fit: cover;
    }

    .swiper-button-next,
    .swiper-button-prev {
        top: 25% !important;
    }
}

@media (min-width: 60em) {
    .customer-carousel__card--column.left {
        max-width: 44.27%;
        flex-basis: 44.27%;
    }

    .customer-carousel__card--column.right {
        max-width: 55.73%;
        flex-basis: 55.73%;
    }

    .customer-carousel__card--text-content {
        padding: 50px 40px 0 40px;
    }
}

.customer-carousel__card--link {
    background-color: var(--mmx-color-grey-01);
    padding: 8px;
    color: var(--mmx-color-primary);
    font-size: 14px;
    font-weight: bold;
    text-decoration: underline;
    margin-bottom: 8px;
    transition: opacity 0.3s ease;
}

.customer-carousel__card--link:hover {
    opacity: 0.8;
}

.swiper-button-prev,
.swiper-button-next {
    background-color: var(--mmx-color-primary);
    color: var(--mmx-color-white);
    position: absolute;
    border-radius: 50%;
    height: 45px !important;
    line-height: 55px;
    opacity: 1;
    padding: 0;
    text-align: center;
    top: 50%;
    width: 45px !important;
    cursor: pointer;
}

@keyframes button-outline {
	0% {
		outline-offset: 1px;
	}
	50% {
		outline-offset: 6px;
	}
	100% {
		outline-color: transparent;
	}
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    animation: button-outline 1.5s infinite;
    background-color: #232E3A;
    outline: 1px solid var(--mmx-color-primary);
}

.swiper-button-prev .icon,
.swiper-button-next .icon {
    fill: currentColor;
    height: 19px;
    width: 19px;
}

.swiper-button-disabled {
    opacity: 1 !important;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    content: '' !important;
}

.swiper-button-disabled {
    cursor: not-allowed;
    background-color: var(--mmx-color-grey-02);
}

.swiper-button-prev {
    left: 0;
    transform: rotate(180deg);
}

.swiper-button-next {
    right: 0;
}
