.yalla-testimonials-slider,
.yalla-testimonials-slider * {
    box-sizing: border-box;
}

.yalla-testimonials-slider {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 0 0 calc(var(--yt-arrow-size, 48px) + var(--yt-arrow-offset-y, 10px) + 14px);
    background: var(--yt-section-bg, #252525);
    color: var(--yt-text, #fff);
}

.yalla-testimonials-viewport {
    width: 100%;
    overflow: hidden;
}

.yalla-testimonials-track {
    display: flex;
    align-items: stretch;
    gap: var(--yt-gap, 30px);
    transform: translate3d(0, 0, 0);
    transition: transform var(--yt-speed, 650ms) cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.yalla-testimonial-slide {
    min-width: 0;
    flex: 0 0 100%;
}

.yalla-testimonial-card {
    display: grid;
    grid-template-columns: minmax(280px, 43%) minmax(0, 1fr);
    min-height: var(--yt-image-height, 470px);
    height: 100%;
    overflow: hidden;
    border-radius: var(--yt-radius, 0);
    background: var(--yt-card-bg, #252525);
    color: var(--yt-text, #fff);
}

.yalla-testimonial-image {
    position: relative;
    min-height: var(--yt-image-height, 470px);
    overflow: hidden;
    background: rgba(255,255,255,.06);
}

.yalla-testimonial-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: var(--yt-image-height, 470px);
    object-fit: cover;
}

.yalla-testimonial-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.yalla-testimonial-image--placeholder span {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(100px, 15vw, 220px);
    line-height: 1;
    opacity: .12;
    transform: translateY(25px);
}

.yalla-testimonial-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: var(--yt-padding, 44px);
}

.yalla-testimonial-stars {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
    color: var(--yt-star, #f3c44e);
    font-size: 20px;
    line-height: 1;
    letter-spacing: 4px;
    white-space: nowrap;
}

.yalla-stars-empty {
    opacity: .45;
}

.yalla-testimonial-quote {
    position: absolute;
    top: 12px;
    right: 34px;
    color: var(--yt-text, #fff);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 150px;
    line-height: 1;
    opacity: .07;
    pointer-events: none;
}

.yalla-testimonial-content blockquote {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--yt-text, #fff);
    font-family: inherit;
    font-size: var(--yt-quote-size, 22px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.65;
}

.yalla-testimonial-content blockquote p {
    margin: 0 0 1em;
}

.yalla-testimonial-content blockquote p:last-child {
    margin-bottom: 0;
}

.yalla-testimonial-author {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.18);
}

.yalla-testimonial-author strong {
    color: var(--yt-text, #fff);
    font-size: 18px;
    font-weight: 700;
}

.yalla-testimonial-author span {
    color: var(--yt-muted, #d6d6d6);
    font-size: 14px;
    line-height: 1.4;
}

.yalla-testimonials-slider--cards .yalla-testimonial-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.yalla-testimonials-slider--cards .yalla-testimonial-image,
.yalla-testimonials-slider--cards .yalla-testimonial-image img {
    min-height: min(var(--yt-image-height, 470px), 330px);
    height: min(var(--yt-image-height, 470px), 330px);
}

.yalla-testimonials-slider--cards .yalla-testimonial-content {
    flex: 1;
}

.yalla-testimonials-slider--cards .yalla-testimonial-content blockquote {
    font-size: min(var(--yt-quote-size, 22px), 19px);
}

.yalla-testimonials-arrows {
    position: absolute;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: var(--yt-arrow-gap, 10px);
    pointer-events: none;
}

.yalla-testimonials-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--yt-arrow-size, 48px);
    height: var(--yt-arrow-size, 48px);
    margin: 0;
    padding: 0;
    border: var(--yt-arrow-border-width, 1px) solid var(--yt-control-border, #fff);
    background: var(--yt-control-bg, #fff);
    color: var(--yt-control-icon, #252525);
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
    appearance: none;
    pointer-events: auto;
}

.yalla-testimonials-arrow:hover,
.yalla-testimonials-arrow:focus-visible {
    border-color: var(--yt-control-hover-border, #f3c44e);
    background: var(--yt-control-hover-bg, #f3c44e);
    color: var(--yt-control-hover-icon, #252525);
    transform: scale(1.045);
}

.yalla-testimonials-arrow:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.yalla-testimonials-arrow:disabled {
    cursor: default;
    opacity: .3;
    transform: none;
}

.yalla-testimonials-arrow svg {
    width: var(--yt-arrow-icon-size, 22px);
    height: var(--yt-arrow-icon-size, 22px);
    fill: none;
    stroke: currentColor;
    stroke-width: var(--yt-arrow-stroke, 2);
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

/* 5 układów położenia strzałek */
.yalla-arrows-layout--bottom-right .yalla-testimonials-arrows {
    right: var(--yt-arrow-offset-x, 0px);
    bottom: var(--yt-arrow-offset-y, 10px);
}

.yalla-arrows-layout--bottom-center {
    padding-bottom: calc(var(--yt-arrow-size, 48px) + var(--yt-arrow-offset-y, 10px) + 48px);
}

.yalla-arrows-layout--bottom-center .yalla-testimonials-arrows {
    left: 50%;
    bottom: var(--yt-arrow-offset-y, 10px);
    transform: translateX(-50%);
}

.yalla-arrows-layout--bottom-center .yalla-testimonials-dots {
    bottom: calc(var(--yt-arrow-size, 48px) + var(--yt-arrow-offset-y, 10px) + 18px);
    max-width: 100%;
}

.yalla-arrows-layout--sides-inside,
.yalla-arrows-layout--sides-outside,
.yalla-arrows-layout--top-right {
    padding-bottom: 54px;
}

.yalla-arrows-layout--sides-inside .yalla-testimonials-arrows {
    top: 50%;
    right: var(--yt-arrow-offset-x, 14px);
    left: var(--yt-arrow-offset-x, 14px);
    justify-content: space-between;
    transform: translateY(-50%);
}

.yalla-arrows-layout--sides-outside .yalla-testimonials-arrows {
    top: 50%;
    right: calc(-1 * (var(--yt-arrow-size, 48px) + var(--yt-arrow-offset-x, 0px)));
    left: calc(-1 * (var(--yt-arrow-size, 48px) + var(--yt-arrow-offset-x, 0px)));
    justify-content: space-between;
    transform: translateY(-50%);
}

.yalla-arrows-layout--top-right .yalla-testimonials-arrows {
    top: var(--yt-arrow-offset-y, 10px);
    right: var(--yt-arrow-offset-x, 0px);
}

/* 5 kształtów przycisków */
.yalla-arrows-shape--circle .yalla-testimonials-arrow {
    border-radius: 50%;
}

.yalla-arrows-shape--square .yalla-testimonials-arrow {
    border-radius: 0;
}

.yalla-arrows-shape--rounded .yalla-testimonials-arrow {
    border-radius: var(--yt-arrow-radius, 12px);
}

.yalla-arrows-shape--diamond .yalla-testimonials-arrow {
    border-radius: var(--yt-arrow-radius, 4px);
    transform: rotate(45deg);
}

.yalla-arrows-shape--diamond .yalla-testimonials-arrow svg {
    transform: rotate(-45deg);
}

.yalla-arrows-shape--diamond .yalla-testimonials-arrow:hover,
.yalla-arrows-shape--diamond .yalla-testimonials-arrow:focus-visible {
    transform: rotate(45deg) scale(1.045);
}

.yalla-arrows-shape--diamond .yalla-testimonials-arrow:disabled {
    transform: rotate(45deg);
}

.yalla-arrows-shape--minimal .yalla-testimonials-arrow,
.yalla-arrows-shape--minimal .yalla-testimonials-arrow:hover,
.yalla-arrows-shape--minimal .yalla-testimonials-arrow:focus-visible {
    border-color: transparent;
    border-radius: 0;
    background: transparent;
}

.yalla-testimonials-dots {
    position: absolute;
    left: 0;
    bottom: 27px;
    z-index: 4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    max-width: calc(100% - 130px);
}

.yalla-testimonials-dot {
    width: 8px;
    height: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--yt-muted, #d6d6d6);
    opacity: .35;
    cursor: pointer;
    transition: width .25s ease, border-radius .25s ease, opacity .25s ease;
    appearance: none;
}

.yalla-testimonials-dot.is-active {
    width: 26px;
    border-radius: 10px;
    opacity: 1;
}

.yalla-testimonials-empty {
    padding: 20px;
    border: 1px dashed #aaa;
    background: #fff;
    color: #333;
    text-align: center;
}

@media (max-width: 1024px) {
    .yalla-testimonial-card {
        display: flex;
        flex-direction: column;
    }

    .yalla-testimonial-image,
    .yalla-testimonial-image img {
        min-height: min(var(--yt-image-height, 470px), 390px);
        height: min(var(--yt-image-height, 470px), 390px);
    }
}

@media (max-width: 767px) {
    .yalla-testimonials-slider {
        padding-bottom: calc(var(--yt-arrow-size-mobile, 43px) + var(--yt-arrow-offset-y, 10px) + 14px);
    }

    .yalla-testimonial-image,
    .yalla-testimonial-image img,
    .yalla-testimonials-slider--cards .yalla-testimonial-image,
    .yalla-testimonials-slider--cards .yalla-testimonial-image img {
        min-height: 260px;
        height: 260px;
    }

    .yalla-testimonial-content {
        padding: clamp(24px, 7vw, 34px);
    }

    .yalla-testimonial-content blockquote,
    .yalla-testimonials-slider--cards .yalla-testimonial-content blockquote {
        font-size: clamp(16px, 4.5vw, 19px);
        line-height: 1.6;
    }

    .yalla-testimonial-stars {
        margin-bottom: 17px;
        font-size: 17px;
        letter-spacing: 3px;
    }

    .yalla-testimonial-author {
        margin-top: 24px;
        padding-top: 18px;
    }

    .yalla-testimonials-arrow {
        width: var(--yt-arrow-size-mobile, 43px);
        height: var(--yt-arrow-size-mobile, 43px);
    }

    .yalla-arrows-mobile-hidden .yalla-testimonials-arrows {
        display: none !important;
    }

    .yalla-arrows-layout--sides-outside .yalla-testimonials-arrows {
        right: max(8px, var(--yt-arrow-offset-x, 8px));
        left: max(8px, var(--yt-arrow-offset-x, 8px));
    }

    .yalla-testimonials-dots {
        bottom: 24px;
        max-width: calc(100% - 112px);
    }

    .yalla-arrows-layout--bottom-center {
        padding-bottom: calc(var(--yt-arrow-size-mobile, 43px) + var(--yt-arrow-offset-y, 10px) + 46px);
    }

    .yalla-arrows-layout--bottom-center .yalla-testimonials-dots {
        bottom: calc(var(--yt-arrow-size-mobile, 43px) + var(--yt-arrow-offset-y, 10px) + 17px);
        max-width: 100%;
    }

    .yalla-arrows-layout--sides-inside,
    .yalla-arrows-layout--sides-outside,
    .yalla-arrows-layout--top-right {
        padding-bottom: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yalla-testimonials-track,
    .yalla-testimonials-arrow,
    .yalla-testimonials-dot {
        transition: none !important;
    }
}
