/* ==========================================================================
   Wixel Testimonial Carousel
   ========================================================================== */

.wixel-tc {
    position: relative;
}

/* --------------------------------------------------------------------------
   Swiper overrides
   -------------------------------------------------------------------------- */

.wixel-tc__swiper {
    overflow: hidden;
}

.wixel-tc .swiper-slide {
    height: auto;
}

.wixel-tc .swiper-slide .wixel-tc__slide {
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.wixel-tc .wixel-tc__content {
    flex: 1;
}

/* --------------------------------------------------------------------------
   Slide — Card layout
   -------------------------------------------------------------------------- */

.wixel-tc--card .wixel-tc__slide {
    background: #ffffff;
    border: 1px solid #eaeaea;
}

/* --------------------------------------------------------------------------
   Slide — Bubble layout
   -------------------------------------------------------------------------- */

.wixel-tc--bubble .wixel-tc__slide {
    background: transparent;
}

.wixel-tc--bubble .wixel-tc__content {
    background: #f8f9fa;
    border-radius: 0.75em;
    padding: 1.25em;
    position: relative;
    margin-bottom: 1.25em;
}

.wixel-tc--bubble .wixel-tc__content::after {
    content: "";
    position: absolute;
    bottom: -0.5em;
    left: 50%;
    margin-left: -0.5em;
    width: 1em;
    height: 1em;
    background: #f8f9fa;
    transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Slide — Minimal layout
   -------------------------------------------------------------------------- */

.wixel-tc--minimal .wixel-tc__slide {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Quote Icon
   -------------------------------------------------------------------------- */

.wixel-tc__quote {
    line-height: 1;
}

.wixel-tc__quote svg {
    display: inline-block;
}

/* --------------------------------------------------------------------------
   Stars / Rating
   -------------------------------------------------------------------------- */

.wixel-tc__stars {
    display: inline-flex;
    gap: 0.125em;
    line-height: 1;
}

.wixel-tc__star--filled {
    color: #FFC107;
}

.wixel-tc__star--half {
    color: #FFC107;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.wixel-tc__star--half::after {
    content: "\2606";
    position: absolute;
    left: 50%;
    top: 0;
    color: #E0E0E0;
}

.wixel-tc__star--empty {
    color: #E0E0E0;
}

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */

.wixel-tc__content {
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Author Block
   -------------------------------------------------------------------------- */

.wixel-tc__author {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin-top: auto;
}

.wixel-tc__image img {
    object-fit: cover;
    display: block;
}

.wixel-tc__meta {
    min-width: 0;
}

.wixel-tc__name {
    font-weight: 600;
}

.wixel-tc__title {
    font-size: 0.875em;
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Navigation Arrows
   -------------------------------------------------------------------------- */

.wixel-tc__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    padding: 0;
    line-height: 1;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.wixel-tc__arrow:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.wixel-tc__arrow--prev {
    left: 0;
}

.wixel-tc__arrow--next {
    right: 0;
}

.wixel-tc__arrow.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.wixel-tc__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375em;
    position: static;
}

.wixel-tc__pagination .swiper-pagination-bullet {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .wixel-tc .swiper-wrapper {
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   Responsive — mobile
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .wixel-tc__arrow {
        display: none;
    }
}
