// Variant of the swiper for offer categories.
.tb-swiper--offer-categories {
    margin-top: 2.5rem;

    // Remove min-height when category-teasers are displayed.
    .tb-swiper__wrapper {
        min-height: auto;
    }

    .tb-swiper__slide {
        &:first-child {
            padding-left: .5rem;
        }

        &:last-child {
            padding-right: .5rem;
        }
    }

    .tb-teaser__title {
        font-size: 1rem;
        text-align: center;
    }

    @include mappy-bp(md) {
        margin-top: 4.125rem;
    }
}

.tb-swiper--offer-categories-textonimage {
    .tb-teaser {
        position: relative;

        &::after {
            content: '';
            display: block;
            position: absolute;
            bottom: 0;
            z-index: 1;
            height: 50%;
            width: 100%;
            background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0));
        }
    }

    .tb-teaser__text {
        position: absolute;
        bottom: .25rem;
        z-index: 2;
        width: 100%;
        background: transparent;
    }

    .tb-teaser__title {
        color: white;
    }
}
