/* =========================================================
   StudioEsagono - Google Reviews Widget
   ========================================================= */
.cew-rv {
    --cew-rv-slides-desktop: 3;
    --cew-rv-slides-tablet:  2;
    --cew-rv-slides-mobile:  1;
    box-sizing: border-box;
    width: 100%;
}

/* ---------- Header ---------- */
.cew-rv-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.cew-rv-header__glogo { flex-shrink: 0; }
.cew-rv-header__meta { flex: 1 1 auto; min-width: 0; }
.cew-rv-header__title { font-weight: 600; margin-bottom: 4px; }
.cew-rv-header__rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}
.cew-rv-header__rating {
    font-weight: 700;
    line-height: 1;
}
.cew-rv-header__count {
    font-size: 0.9em;
    margin-top: 4px;
}
.cew-rv-header__link {
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.cew-rv-header__link:hover { text-decoration: underline; }

/* ---------- Stars ---------- */
.cew-rv__stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 16px;
    line-height: 1;
    color: #e0e0e0;
}
.cew-rv__star { line-height: 1; }
.cew-rv__star--filled { color: #fbbc04; }

/* ---------- Card ---------- */
.cew-rv__card {
    position: relative;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    box-sizing: border-box;
}
.cew-rv__glogo {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0.9;
}
.cew-rv__head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cew-rv__photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.cew-rv__photo--placeholder {
    background: #e0e0e0;
    color: #5a6068;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
}
.cew-rv__info { flex: 1 1 auto; min-width: 0; }
.cew-rv__author {
    font-weight: 600;
    line-height: 1.3;
    color: #1f2933;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cew-rv__date {
    font-size: 0.85em;
    color: #8a8f99;
    margin-top: 2px;
}
.cew-rv__text {
    color: #5a6068;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Grid ---------- */
.cew-rv__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ---------- Slider ---------- */
.cew-rv__slider {
    position: relative;
}
.cew-rv__viewport {
    overflow: hidden;
}
.cew-rv__track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(.4,.0,.2,1);
    will-change: transform;
}
.cew-rv__slide {
    flex: 0 0 calc((100% - (var(--cew-rv-slides-desktop) - 1) * 20px) / var(--cew-rv-slides-desktop));
    min-width: 0;
    box-sizing: border-box;
    display: flex;
}
@media (max-width: 1024px) {
    .cew-rv__slide {
        flex-basis: calc((100% - (var(--cew-rv-slides-tablet) - 1) * 20px) / var(--cew-rv-slides-tablet));
    }
}
@media (max-width: 767px) {
    .cew-rv__slide {
        flex-basis: calc((100% - (var(--cew-rv-slides-mobile) - 1) * 20px) / var(--cew-rv-slides-mobile));
    }
}

/* Arrows */
.cew-rv__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background-color: #2271b1;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: background-color 0.2s;
}
.cew-rv__arrow:hover { background-color: #135e96; }
.cew-rv__arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.cew-rv__arrow--prev { left: -20px; }
.cew-rv__arrow--next { right: -20px; }
@media (max-width: 767px) {
    .cew-rv__arrow--prev { left: 4px; }
    .cew-rv__arrow--next { right: 4px; }
}

/* Dots */
.cew-rv__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}
.cew-rv__dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background-color: #d0d5db;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s, transform 0.2s;
}
.cew-rv__dot:hover { transform: scale(1.15); }
.cew-rv__dot.is-active { background-color: #2271b1; }
