/* ============================================================
   Google Reviews Badge – Elementor Widget Styles
   ============================================================ */

.grw-badge-wrapper {
    display: flex;
    justify-content: flex-start; /* Managed by Elementor alignment */
    width: 100%;
}

.grw-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px; /* Default gap, overridable by Elementor */
    padding: 10px; /* Default padding */
}

/* ── Avatares ── */
.grw-badge__avatars {
    display: flex;
    align-items: center;
}

.grw-badge__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: -15px; /* Managed by Elementor */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    /* CSS Vars para shadow/borde dinámico de Elementor */
    --avatar-outline-size: 2px;
    --avatar-outline-color: #ffffff;
    /* Usamos 4 drop-shadow ortogonales sin blur para simular un stroke (borde sólido) alrededor del PNG */
    filter: 
        drop-shadow(0px calc(var(--avatar-outline-size) * 2) 0px var(--avatar-outline-color))
        drop-shadow(0px calc(var(--avatar-outline-size) * -1) 0px var(--avatar-outline-color))
        drop-shadow(calc(var(--avatar-outline-size) * 2) 0px 0px var(--avatar-outline-color))
        drop-shadow(calc(var(--avatar-outline-size) * -1) 0px 0px var(--avatar-outline-color));
}

/* El primer avatar no debe tener margen izquierdo */
.grw-badge__avatar:first-child {
    margin-left: 0 !important;
    z-index: 2;
}

/* Para que se superpongan correctamente de manera visual */
.grw-badge__avatar:nth-child(2) { z-index: 3; }
.grw-badge__avatar:nth-child(3) { z-index: 4; }


/* ── Textos y Estrellas ── */
.grw-badge__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grw-badge__rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.grw-badge__score {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.grw-badge__text {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* ── Star system ── */
.grw-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.grw-star {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 0;
}

.grw-star__bg {
    display: block;
    width: 100%;
    height: 100%;
    filter: grayscale(100%) brightness(1.8);
    opacity: 0.35;
}

.grw-star__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    line-height: 0;
}

.grw-star__fill img {
    display: block;
    width: 22px;
    height: 22px;
    filter: none;
}
