/* ROOT */
.steps-carousel {
    position: relative;
    color: var(--wp--preset--color--czarny);
    overflow: hidden;
    max-width: unset !important;
}

/* Wyłączenie zaznaczania */
.steps-carousel * {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Wspólna karta kroku (taka jak info-item, tylko nazwy pod steps-) */
.steps-carousel .step-item {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 0px;
    box-sizing: border-box;
}

.steps-carousel .step-item-inner {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* Numer kroku zamiast ikony */
.steps-carousel .step-number {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--wp--preset--color--rozowy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-bottom: 10px;
}

.steps-carousel .step-number span {
    font-size: 40px;
    line-height: 1;
    font-weight: 700;
    color: var(--wp--preset--color--bialy);
    letter-spacing: 0.04em;
}

/* Teksty */
.steps-carousel .step-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.steps-carousel .step-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    color: var(--wp--preset--color--bialy);
}

.steps-carousel .step-description {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--wp--preset--color--bialy);
}

/* .steps-carousel .step-description > p{
    margin: 0;
} */

/* --- DWA STANY: LISTA (>782px) vs SWIPER (<=782px) --- */

/* Domyślnie: pokazujemy listę (desktop/tablet) */
.steps-carousel .steps-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Domyślnie ukrywamy Swipera (pokazywany dopiero na mobile) */
.steps-carousel .swiper-container.steps-carousel-swiper {
    display: none;
}

/* CTA dla desktopu pod listą */
.steps-carousel .steps-carousel-cta-desktop {
    margin-top: 60px;
    display: flex;
}

/* Wspólny kontener dolny przy Swiperze (mobile) */
.steps-carousel .bottom-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
}

/* Nawigacja */
.steps-carousel .swiper-nav {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 14px;
}

.steps-carousel .swiper-button-prev-steps,
.steps-carousel .swiper-button-next-steps {
    display: flex;
    cursor: pointer;
}

.steps-carousel .swiper-button-prev-steps *,
.steps-carousel .swiper-button-next-steps * {
    transition: all 0.3s ease;
}

.steps-carousel .swiper-button-prev-steps svg path,
.steps-carousel .swiper-button-next-steps svg path {
    fill: #fff;
}

.steps-carousel .swiper-button-prev-steps:hover svg path,
.steps-carousel .swiper-button-next-steps:hover svg path {
    fill: var(--wp--preset--color--czarny);
}

.steps-carousel .swiper-button-prev-steps svg rect,
.steps-carousel .swiper-button-next-steps svg rect {
    fill: transparent;
    stroke: #fff;
}

.steps-carousel .swiper-button-prev-steps:hover svg rect,
.steps-carousel .swiper-button-next-steps:hover svg rect {
    fill: #fff;
}

/* CTA towarzyszące Swiperowi (mobile) */
.steps-carousel .steps-carousel-cta {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

/* SWIPER – ogólne */
.steps-carousel .swiper-container {
    width: 100%;
    overflow: visible;
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.steps-carousel .swiper-slide {
    height: auto;
    display: flex;
}

/* --- MOBILE: <=781px --- */
@media (max-width: 781px) {

    /* Na mobile ukrywamy listę i pokazujemy Swipera */
    .steps-carousel .steps-list {
        display: none;
    }

    .steps-carousel .swiper-container.steps-carousel-swiper {
        display: flex;
    }

    /* CTA desktopowe chowamy, zostawiamy to przy Swiperze */
    .steps-carousel .steps-carousel-cta-desktop {
        display: none;
    }

    /* Drobne zmiany spacingu na mobile */
    .steps-carousel .step-item {
        padding: 0;
    }

    .steps-carousel .bottom-container{
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-top: 0;
    }
    .steps-carousel .steps-carousel-button,
    .steps-carousel .steps-carousel-cta {
        width: 100%;
    }

    .steps-carousel .step-item-inner{
        flex-direction: column;
    }

    .steps-carousel .step-number{
        width: 60px;
        height: 60px;
    }

    .steps-carousel .step-number span{
        font-size: 30px;
    }
}
