/* STYLES FOR STORIES TESTIMONIAL SLIDER WIDGET f2955ad3 */

.sts-f2955ad3-slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Base Canvas & Card Styles */
.sts-f2955ad3-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #121212; /* Default dark mode canvas */
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glassmorphism Class Prefix */
.sts-glassmorphism-yes .sts-f2955ad3-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alignments */
.sts-align-left .sts-f2955ad3-slider-wrapper { align-items: flex-start; }
.sts-align-center .sts-f2955ad3-slider-wrapper { align-items: center; }
.sts-align-right .sts-f2955ad3-slider-wrapper { align-items: flex-end; }

/* Story Style progress bars container */
.sts-f2955ad3-progressbar {
    display: flex;
    width: 100%;
    padding: 15px 20px;
    box-sizing: border-box;
    z-index: 10;
}

.sts-f2955ad3-pb-bottom {
    padding-top: 5px;
    padding-bottom: 15px;
}

.sts-f2955ad3-pb-segment {
    flex: 1;
    overflow: hidden;
    position: relative;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.sts-f2955ad3-pb-fill {
    height: 100%;
    width: 0%;
    background-color: #ffffff;
    transition: width 0.05s linear;
}

/* Slides Inner Canvas Container */
.sts-f2955ad3-slides-container {
    position: relative;
    flex-grow: 1;
    width: 100%;
    height: 100%;
}

.sts-f2955ad3-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.sts-f2955ad3-slide-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
    position: relative; /* Take up structural space */
}

/* Transition Animations Styles */

/* 1. Fade */
[data-effect="fade"] .sts-f2955ad3-slide {
    transition: opacity 0.4s ease-in-out;
}

/* 2. Slide Effect */
[data-effect="slide"] .sts-f2955ad3-slide {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    transform: translateX(30px);
}
[data-effect="slide"] .sts-f2955ad3-slide-active {
    transform: translateX(0);
}
[data-effect="slide"] .sts-f2955ad3-slide-prev {
    transform: translateX(-30px);
}

/* 3. Zoom Effect */
[data-effect="zoom"] .sts-f2955ad3-slide {
    transition: transform 0.4s ease-out, opacity 0.4s ease;
    transform: scale(0.95);
}
[data-effect="zoom"] .sts-f2955ad3-slide-active {
    transform: scale(1);
}

/* Slide Content Layout */
.sts-f2955ad3-slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 10px 0;
}

/* Star Rating */
.sts-f2955ad3-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    color: #FFB800;
}

/* Review text */
.sts-f2955ad3-review {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 400;
    margin: 0 0 30px 0;
    color: #ffffff;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Profile container section styles */
.sts-f2955ad3-profile-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.sts-f2955ad3-avatar {
    display: block;
}

.sts-f2955ad3-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sts-f2955ad3-client-meta {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sts-f2955ad3-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sts-f2955ad3-name {
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
}

.sts-f2955ad3-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0095F6;
    width: 16px;
    height: 16px;
}

.sts-verification-badge-svg {
    width: 100%;
    height: 100%;
}

.sts-f2955ad3-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.sts-f2955ad3-followers {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.sts-f2955ad3-badge-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.sts-f2955ad3-platform-icon {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}
.sts-f2955ad3-platform-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sts-f2955ad3-brand-logo {
    display: block;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
}

/* Extra Actions Section */
.sts-f2955ad3-extra-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    gap: 10px;
}

.sts-f2955ad3-custom-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.sts-f2955ad3-cta {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.sts-f2955ad3-cta:hover {
    transform: translateX(3px);
    color: #ffffff;
}

/* Manual Navigation click areas (Stories style tap target areas) */
.sts-f2955ad3-tap-zone {
    position: absolute;
    top: 50px;
    bottom: 80px;
    width: 20%;
    z-index: 5;
    cursor: pointer;
}

.sts-f2955ad3-tap-left {
    left: 0;
}

.sts-f2955ad3-tap-right {
    right: 0;
}

/* Arrow Overlays styling */
.sts-f2955ad3-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: color 0.2s ease;
}

.sts-f2955ad3-arrow-prev {
    left: -45px;
}

.sts-f2955ad3-arrow-next {
    right: -45px;
}

/* Dots layout */
.sts-f2955ad3-dots {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    z-index: 10;
}

.sts-f2955ad3-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease;
}

.sts-f2955ad3-dot-active {
    background-color: #ffffff;
}

/* Responsive Overrides */
@media (max-width: 767px) {
    .sts-f2955ad3-arrow {
        display: none !important; /* Hide overlays on mobile, use swipes / taps instead */
    }
    .sts-f2955ad3-tap-zone {
        width: 30%; /* Increase active tap width area on small screens */
    }
    .sts-f2955ad3-review {
        font-size: 16px;
    }
}
