/* MySave Vertical Slides — Elementor widget */

.ypvs-wrap {
    --ypvs-inactive-opacity: 0.8;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.ypvs-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
}

.ypvs-viewport {
    position: relative;
    width: 100%;
    height: 45vh;
    min-height: 360px;
    overflow: hidden;
}

.ypvs-fade {
    --ypvs-fade-color: #ffffff;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32%;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--ypvs-fade-color) 0%, transparent) 0%,
        color-mix(in srgb, var(--ypvs-fade-color) 55%, transparent) 45%,
        var(--ypvs-fade-color) 100%
    );
}

@supports not (background: linear-gradient(to bottom, color-mix(in srgb, #fff 0%, transparent), #fff)) {
    .ypvs-fade {
        background: linear-gradient(
            to bottom,
            transparent 0%,
            var(--ypvs-fade-color) 88%
        );
    }
}

.ypvs-swiper,
.ypvs-swiper .swiper-wrapper {
    height: 100%;
    width: 100%;
}

.ypvs-swiper .swiper-slide {
    box-sizing: border-box;
    height: auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.ypvs-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "media"
        "content";
    gap: 16px;
    align-items: center;
    overflow: hidden;
    background: transparent;
    color: #1a1a1a;
    transition: opacity 0.7s ease;
}

.ypvs-swiper .swiper-slide:not(.swiper-slide-active) .ypvs-card {
    opacity: var(--ypvs-inactive-opacity);
}

.ypvs-swiper .swiper-slide-active .ypvs-card {
    opacity: 1;
}

.ypvs-media {
    grid-area: media;
    position: relative;
    width: 100%;
    min-height: 160px;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: transparent;
}

.ypvs-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ypvs-content {
    grid-area: content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 12px 4px;
    min-height: 0;
    height: 100%;
}

.ypvs-copy {
    width: 100%;
    max-width: 420px;
}

.ypvs-title {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--ypvs-title-color, #1a1a1a) !important;
    white-space: pre-line;
}

.ypvs-desc {
    margin: 0;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.45;
    color: var(--ypvs-desc-color, #6b7280) !important;
    white-space: pre-line;
}

.ypvs-actions {
    margin-top: 16px;
    padding-top: 0;
}

.ypvs-btn {
    display: inline-block;
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--ypvs-btn-color, #20A748) !important;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.ypvs-btn:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.ypvs-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.ypvs-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 9999px;
    border: 2px solid var(--ypvs-nav-bg, #20A748);
    background: #ffffff;
    color: var(--ypvs-nav-bg, #20A748);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ypvs-nav-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    transition: filter 0.25s ease;
}

.ypvs-nav-fallback {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.ypvs-nav-fallback svg {
    width: 100%;
    height: 100%;
}

.ypvs-nav-btn.is-active {
    background: var(--ypvs-nav-bg, #20A748);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
    transform: translateY(-1px);
}

.ypvs-nav-btn.is-active img {
    filter: brightness(0) invert(1);
}

.ypvs-nav-btn:hover {
    transform: translateY(-1px);
}

.ypvs-empty {
    padding: 24px;
    border-radius: 16px;
    background: #f3f4f6;
    color: #6b7280;
    text-align: center;
}

@media (min-width: 768px) {
    .ypvs-card {
        grid-template-columns: 0.9fr 1.1fr;
        grid-template-areas: "content media";
        gap: 28px;
    }

    .ypvs-media {
        min-height: 0;
        height: 100%;
    }

    .ypvs-content {
        padding: 12px 8px 12px 4px;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .ypvs-layout {
        grid-template-columns: 1fr auto;
        gap: 28px;
    }

    .ypvs-viewport {
        min-height: 420px;
    }

    .ypvs-card {
        gap: 36px;
    }

    .ypvs-content {
        padding: 16px 12px;
    }

    .ypvs-nav {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}
