/* Before & After Showcase for Elementor */
.basfe-widget {
    position: relative;
    width: 100%;
}

.basfe-track {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.basfe-case {
    display: none;
    width: 100%;
    animation: basfeFade 260ms ease both;
}

.basfe-case.is-active {
    display: block;
}

.basfe-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: stretch;
}

.basfe-image-card {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: #454545;
    border-radius: 36px;
}

.basfe-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.basfe-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 34px;
}

.basfe-name {
    color: #fff;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 800;
    text-transform: uppercase;
}

.basfe-treatment {
    margin-top: 6px;
    color: #ff5a00;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.basfe-arrows {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.basfe-arrow {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    background: #ff5a00;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    transition: transform 180ms ease, opacity 180ms ease;
}

.basfe-arrow:hover {
    transform: translateY(-2px);
}

.basfe-arrow:focus {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@keyframes basfeFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .basfe-stack-mobile .basfe-images {
        grid-template-columns: 1fr;
    }

    .basfe-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .basfe-arrows {
        width: 100%;
        justify-content: flex-start;
    }
}
