/* =================== اسلایدر مراحل داینامیک =================== */
.cw-ds,
.cw-ds * {
    box-sizing: border-box;
}

.cw-ds {
    --cw-ds-media-width: 45%;
    --cw-ds-content-width: 55%;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    direction: rtl;
    font-family: inherit;
}

.cw-ds-layout {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, var(--cw-ds-media-width)) minmax(0, var(--cw-ds-content-width));
    grid-template-areas: "media content";
    align-items: center;
    direction: ltr;
}

.cw-ds[data-image-position="right"] .cw-ds-layout {
    grid-template-columns: minmax(0, var(--cw-ds-content-width)) minmax(0, var(--cw-ds-media-width));
    grid-template-areas: "content media";
}

.cw-ds-content-col {
    grid-area: content;
    min-width: 0;
    width: 100%;
}

.cw-ds-media-col {
    grid-area: media;
    min-width: 0;
    width: 100%;
}

.cw-ds[dir="rtl"] .cw-ds-content-col,
.cw-ds[dir="rtl"] .cw-ds-media-col,
.cw-ds[dir="rtl"] .cw-ds-header,
.cw-ds[dir="rtl"] .cw-ds-tabs,
.cw-ds[dir="rtl"] .cw-ds-copy-item,
.cw-ds[dir="rtl"] .cw-ds-media-caption,
.cw-ds[dir="rtl"] .cw-ds-custom-area {
    direction: rtl;
}

.cw-ds[dir="ltr"] .cw-ds-content-col,
.cw-ds[dir="ltr"] .cw-ds-media-col,
.cw-ds[dir="ltr"] .cw-ds-header,
.cw-ds[dir="ltr"] .cw-ds-tabs,
.cw-ds[dir="ltr"] .cw-ds-copy-item,
.cw-ds[dir="ltr"] .cw-ds-media-caption,
.cw-ds[dir="ltr"] .cw-ds-custom-area {
    direction: ltr;
}

.cw-ds-header {
    margin-bottom: 20px;
}

.cw-ds-main-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.45;
    color: #17134D;
}

.cw-ds-main-subtitle {
    font-size: 14px;
    line-height: 2;
    color: #6B7280;
}

.cw-ds-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 24px;
    direction: inherit;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

.cw-ds-pagination-extra {
    margin-inline-start: auto;
    min-width: 0;
}

.cw-ds-pagination-extra-content {
    min-width: 0;
}

.cw-ds-pagination-extra-content > .e-con,
.cw-ds-pagination-extra-content > .elementor-element {
    width: auto;
    max-width: 100%;
}

.elementor-editor-active .cw-ds-pagination-extra-content:empty,
.elementor-editor-preview .cw-ds-pagination-extra-content:empty {
    min-width: 120px;
    min-height: 40px;
    border: 1px dashed #cfd6df;
    border-radius: 10px;
}

.cw-ds-tab,
.cw-ds-mobile-step {
    border: 0;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: inherit;
    line-height: 1.2;
}

.cw-ds-tab {
    min-height: 36px;
    background: #F5F4FF;
    color: #6B7280;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
}

.cw-ds-tab.is-active {
    background: #6652FF;
    color: #fff;
}

.cw-ds-tab:hover,
.cw-ds-mobile-step:hover {
    transform: translateY(-1px);
}

.cw-ds-mobile-steps {
    display: none;
    position: relative;
    align-items: center;
    justify-content: safe center;
    flex-wrap: nowrap;
    margin-bottom: 28px;
    direction: rtl;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: none;
}

.cw-ds-mobile-steps::-webkit-scrollbar {
    display: none;
}

.cw-ds-mobile-steps::before {
    content: '';
    position: absolute;
    left: 28px;
    right: 28px;
    top: 50%;
    height: 2px;
    background: #D9D4FF;
    transform: translateY(-50%);
    z-index: 0;
}

.cw-ds-mobile-step {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #EAE7FF;
    color: #6652FF;
    font-size: 18px;
    font-weight: 800;
}

.cw-ds-mobile-step.is-active {
    background: #6652FF;
    color: #fff;
}

.cw-ds-copy-wrap {
    position: relative;
    min-width: 0;
}

.cw-ds-copy-item {
    display: none;
    flex-direction: column;
    gap: 12px;
    animation: cwDsFadeIn 0.24s ease both;
}

.cw-ds-copy-item.is-active {
    display: flex;
}

.cw-ds-slide-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.55;
    color: #17134D;
}

.cw-ds-slide-text {
    font-size: 16px;
    line-height: 2.1;
    color: #6B7280;
}

.cw-ds-custom-area {
    width: 100%;
    min-width: 0;
    margin: 24px 0;
}

.cw-ds-custom-content {
    width: 100%;
    min-width: 0;
}

.cw-ds-custom-content > .e-con,
.cw-ds-custom-content > .elementor-element {
    width: 100%;
    max-width: 100%;
}

.cw-ds-fallback-note {
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff6d8;
    color: #7a5800;
    font-size: 13px;
    line-height: 1.8;
}

.cw-ds-media-stage {
    position: relative;
    width: 100%;
    min-width: 0;
}

.cw-ds-media-item {
    display: none;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 16px;
    animation: cwDsFadeIn 0.28s ease both;
}

.cw-ds-media-item.is-active {
    display: flex;
}

.cw-ds-media-caption {
    width: 100%;
    direction: inherit;
}

.cw-ds-media-title {
    margin: 0 0 8px;
    color: #17134D;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.6;
}

.cw-ds-media-text {
    color: #6B7280;
    font-size: 14px;
    line-height: 2;
}

.cw-ds-image {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
}

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

@media (max-width: 767px) {
    .cw-ds-layout,
    .cw-ds[data-image-position="right"] .cw-ds-layout {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        grid-template-areas: none;
        gap: var(--cw-ds-mobile-content-image-gap, 16px) !important;
        direction: inherit;
    }

    .cw-ds-content-col,
    .cw-ds-media-col {
        width: 100%;
    }

    .cw-ds:not(.cw-ds-mobile-header-on) .cw-ds-header {
        display: none;
    }

    .cw-ds-tabs {
        display: none;
    }

    .cw-ds-pagination-extra {
        display: none;
    }

    .cw-ds-mobile-steps {
        display: flex;
        order: 1;
        width: 100%;
    }

    .cw-ds-copy-wrap {
        order: 2;
        width: 100%;
    }

    .cw-ds-custom-area {
        order: 3;
        width: 100%;
        margin-top: var(--cw-ds-mobile-custom-area-gap, 0) !important;
        margin-bottom: var(--cw-ds-mobile-custom-area-gap, 0) !important;
    }

    .cw-ds-mobile-hide-custom-area .cw-ds-custom-area {
        display: none !important;
    }

    body:not(.elementor-editor-active) .cw-ds-custom-content:empty {
        display: none !important;
    }

    @supports selector(:has(*)) {
        body:not(.elementor-editor-active) .cw-ds-custom-area:has(.cw-ds-custom-content:empty),
        body:not(.elementor-editor-active) .cw-ds-custom-area:has(.cw-ds-custom-content > .e-con:empty),
        body:not(.elementor-editor-active) .cw-ds-custom-area:has(.cw-ds-custom-content > .elementor-element:empty) {
            display: none !important;
        }
    }

    .cw-ds-media-col {
        order: 4;
    }

    .cw-ds-content-col {
        display: flex;
        flex-direction: column;
    }

    .cw-ds-slide-title {
        font-size: 24px;
        text-align: center;
    }

    .cw-ds-slide-text {
        font-size: 16px;
        line-height: 2.05;
        text-align: center;
    }

    .cw-ds-media-item {
        align-items: center;
    }
}

