.orbit-wrapper {
    --ot-text-primary: #1e293b;
    --ot-text-secondary: #64748b;
    --ot-accent-color: #3b82f6;
    --ot-card-bg: #ffffff;
    --ot-avatar-size-normal: 70px;
    --ot-avatar-size-center: 130px;
    --ot-transition-speed: 800ms;
    --ot-container-height: 450px;
    /* Design tab overridable tokens */
    --ot-name-color: var(--ot-accent-color);
    --ot-role-color: var(--ot-text-secondary);
    --ot-quote-color: var(--ot-text-secondary);
    --ot-arrow-color: var(--ot-text-secondary);
    --ot-bullet-color: var(--ot-text-secondary);
    --ot-bullet-active-color: var(--ot-accent-color);
}

.orbit-wrapper * {
    box-sizing: border-box;
}

.orbit-wrapper.ot-testimonials-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--ot-text-primary);
}

.orbit-wrapper .ot-avatars-layer {
    position: relative;
    width: 100%;
    height: var(--ot-container-height);
}

.orbit-wrapper .ot-avatar {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: left var(--ot-transition-speed) cubic-bezier(0.25, 1, 0.5, 1),
        top var(--ot-transition-speed) cubic-bezier(0.25, 1, 0.5, 1),
        width var(--ot-transition-speed) cubic-bezier(0.25, 1, 0.5, 1),
        height var(--ot-transition-speed) cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.3s ease,
        transform 0.2s ease, filter 0.3s ease;
    /* overflow visible to allow the social badge to extend outside the circle */
    overflow: visible;
    background-color: var(--ot-card-bg);
    border: 4px solid var(--ot-card-bg);
    will-change: transform, left, top, width, height;
}

.orbit-wrapper .ot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
    pointer-events: none;
    border-radius: 50%;
}

.orbit-wrapper .ot-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4776e6, #8e54e9);
    color: #fff;
    font-size: 1.4em;
    font-weight: 700;
    border-radius: 50%;
    text-transform: uppercase;
    user-select: none;
    pointer-events: none;
}

/* Colour palette — cycles every 6 avatars */
.orbit-wrapper .ot-avatar:nth-child(6n+1) .ot-avatar-initials {
    background: linear-gradient(135deg, #4776e6, #8e54e9);
}

/* indigo / violet  */
.orbit-wrapper .ot-avatar:nth-child(6n+2) .ot-avatar-initials {
    background: linear-gradient(135deg, #0ba360, #3cba92);
}

/* emerald / teal    */
.orbit-wrapper .ot-avatar:nth-child(6n+3) .ot-avatar-initials {
    background: linear-gradient(135deg, #f7971e, #ffd200);
}

/* amber / yellow    */
.orbit-wrapper .ot-avatar:nth-child(6n+4) .ot-avatar-initials {
    background: linear-gradient(135deg, #f953c6, #b91d73);
}

/* pink / magenta    */
.orbit-wrapper .ot-avatar:nth-child(6n+5) .ot-avatar-initials {
    background: linear-gradient(135deg, #1a85ff, #00c6fb);
}

/* sky / cyan        */
.orbit-wrapper .ot-avatar:nth-child(6n+6) .ot-avatar-initials {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

/* coral / red       */

.orbit-wrapper .ot-avatar:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Social network badge */
.orbit-wrapper .ot-social-badge-link {
    display: block;
    text-decoration: none;
}

.orbit-wrapper .ot-social-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #555;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 3;
    transition: transform 0.2s ease;
    pointer-events: auto;
}

.orbit-wrapper .ot-social-badge-link:hover .ot-social-badge {
    transform: scale(1.15);
    pointer-events: auto;
}

.orbit-wrapper .ot-social-badge svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

/* Brand colours */
.orbit-wrapper .ot-social-badge--facebook    { background: #1877f2; }
.orbit-wrapper .ot-social-badge--instagram   { background: radial-gradient(circle at 30% 110%, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.orbit-wrapper .ot-social-badge--linkedin    { background: #0a66c2; }
.orbit-wrapper .ot-social-badge--twitter     { background: #000; }
.orbit-wrapper .ot-social-badge--youtube     { background: #ff0000; }
.orbit-wrapper .ot-social-badge--tiktok      { background: #010101; }
.orbit-wrapper .ot-social-badge--google      { background: #fff; }
.orbit-wrapper .ot-social-badge--trustpilot  { background: #00b67a; }

/* Google: coloured SVG — no colour override needed */
.orbit-wrapper .ot-social-badge--google svg  { color: unset; }

.orbit-wrapper .ot-avatar.ot-center-avatar {
    width: var(--ot-avatar-size-center);
    height: var(--ot-avatar-size-center);
    cursor: default;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.orbit-wrapper.grayscale .ot-avatar.ot-center-avatar {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.orbit-wrapper .ot-avatar.ot-floating-avatar {
    width: var(--ot-avatar-size-normal);
    height: var(--ot-avatar-size-normal);
    z-index: 5;
}

.orbit-wrapper.grayscale .ot-avatar.ot-floating-avatar {
    filter: grayscale(100%) brightness(0.9);
    opacity: 0.7;
}

.orbit-wrapper.grayscale .ot-avatar.ot-floating-avatar:hover {
    filter: grayscale(50%) brightness(0.95);
    opacity: 0.9;
}

.orbit-wrapper .ot-avatar.ot-floating-avatar:hover {
    transform: scale(1.1);
    z-index: 6;
}

.orbit-wrapper .ot-navigation-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 850px;
    z-index: 15;
    position: relative;
    margin-top: -30px;
    padding: 0 1rem;
}

.orbit-wrapper .ot-nav-btn {
    background: var(--ot-card-bg);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    color: var(--ot-arrow-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.orbit-wrapper .ot-nav-btn:hover {
    background: var(--ot-bullet-active-color);
    color: white;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--ot-bullet-active-color) 40%, transparent);
    transform: translateY(-2px);
}

.orbit-wrapper .ot-nav-btn svg {
    display: block;
    /* Remove espaços vazios estranhos abaixo do ícone */
}

/* Testimonial Card */
.orbit-wrapper .ot-testimonial-card {
    background: var(--ot-card-bg);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    flex: 1;
    max-width: 650px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    cursor: grab;
    will-change: transform, opacity;
}

.orbit-wrapper .ot-testimonial-card:active,
.orbit-wrapper .ot-testimonial-card.ot-is-dragging {
    cursor: grabbing;
}

.orbit-wrapper .ot-testimonial-card.ot-is-dragging {
    transition: none !important;
}

.orbit-wrapper .ot-testimonial-card.show {
    opacity: 1;
    transform: translateY(0);
}

.orbit-wrapper .ot-quote-icon {
    color: var(--ot-quote-color);
    opacity: 0.2;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.orbit-wrapper .ot-testimonial-text {
    color: var(--ot-text-primary);
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: 1.6rem;
    font-style: italic;
    font-weight: 500;
}

.orbit-wrapper .ot-testimonial-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ot-name-color);
    margin-top: 1rem;
    margin-bottom: 0.3rem;
}

.orbit-wrapper .ot-testimonial-role {
    font-size: 0.95rem;
    color: var(--ot-role-color);
    font-weight: 500;
}

/* Star Rating */
.orbit-wrapper .ot-star-rating {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0.75rem 0 0.75rem;
    line-height: 1;
}

.orbit-wrapper .ot-star {
    font-size: 1.6rem;
    color: #d1d5db;
    /* empty star — grey */
    transition: color 0.2s ease;
    user-select: none;
}

.orbit-wrapper .ot-star.ot-star--filled {
    color: #f59e0b;
    /* filled star — amber */
}

.orbit-wrapper .ot-star.ot-star--half {
    position: relative;
    display: inline-block;
    color: #d1d5db;
    /* base color */
}

.orbit-wrapper .ot-star.ot-star--half::after {
    content: "\2605";
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #f59e0b;
    /* half filled color */
}

/* Company Logo */
.orbit-wrapper .ot-company-logo {
    display: block;
    max-height: 30px;
    width: auto;
    max-width: 120px;
    margin: 0.9rem auto 0;
    object-fit: contain;
    opacity: 0.75;
    filter: grayscale(20%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.orbit-wrapper .ot-company-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Pagination Bullets */
.orbit-wrapper .ot-pagination-bullets {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
    z-index: 15;
}

.orbit-wrapper .ot-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--ot-bullet-color);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.orbit-wrapper .ot-bullet.active {
    background-color: var(--ot-bullet-active-color);
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .orbit-wrapper .ot-avatars-layer {
        height: 350px;
    }

    .orbit-wrapper .ot-navigation-wrapper {
        margin-top: 0;
        gap: 0.5rem;
    }

    .orbit-wrapper .ot-nav-btn {
        width: 40px;
        height: 40px;
    }

    .orbit-wrapper .ot-testimonial-card {
        padding: 2rem 1.5rem;
    }

    .orbit-wrapper .ot-avatar.ot-floating-avatar {
        width: 50px;
        height: 50px;
    }

    .orbit-wrapper .ot-avatar.ot-floating-avatar .ot-avatar-initials {
        font-size: 1em;
    }

    .orbit-wrapper .ot-avatar.ot-center-avatar {
        width: 100px;
        height: 100px;
    }

    .orbit-wrapper .ot-testimonial-text {
        font-size: 1.1rem;
    }
}

/* ========================================
   Resilience: global theme / builder resets
   Some themes and page builders apply rules like `html * { transition-duration: 0 !important; }`
   or zero out animations, which breaks the orbit layout and micro-interactions.
   Scoped overrides below mirror the approach used in Aha Mobile Menu.
   Note: this can override `prefers-reduced-motion` reductions on these elements only.
   ======================================== */
.orbit-wrapper .ot-avatar {
    transition: left var(--ot-transition-speed) cubic-bezier(0.25, 1, 0.5, 1),
        top var(--ot-transition-speed) cubic-bezier(0.25, 1, 0.5, 1),
        width var(--ot-transition-speed) cubic-bezier(0.25, 1, 0.5, 1),
        height var(--ot-transition-speed) cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.3s ease,
        transform 0.2s ease, filter 0.3s ease !important;
    transition-delay: 0s !important;
}

.orbit-wrapper .ot-nav-btn {
    transition: all 0.3s ease !important;
    transition-delay: 0s !important;
}

.orbit-wrapper .ot-testimonial-card {
    transition: opacity 0.5s ease, transform 0.5s ease !important;
    transition-delay: 0s !important;
}

.orbit-wrapper .ot-star {
    transition: color 0.2s ease !important;
    transition-delay: 0s !important;
}

.orbit-wrapper .ot-company-logo {
    transition: opacity 0.3s ease, filter 0.3s ease !important;
    transition-delay: 0s !important;
}

.orbit-wrapper .ot-bullet {
    transition: all 0.3s ease !important;
    transition-delay: 0s !important;
}