/* ============================================================
   CF Widget — Product Rating
   ============================================================ */

.cw-rating {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    line-height: 1;
}

.cw-rating__stars {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

/* Cada estrella es un cuadrado posicionado.
   - bg: estrella vacía (full size) en gris claro.
   - fg-wrap: clipping horizontal (overflow:hidden + width inline 0/50/100%).
   - fg: estrella llena, dimensionada al tamaño del .cw-rating__star,
        no al del wrap, para que el clipping muestre la porción correcta. */
.cw-rating__star {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.cw-rating__star-bg {
    position: absolute;
    inset: 0;
    color: #E8E0D5;
    line-height: 0;
}

.cw-rating__star-fg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    line-height: 0;
    /* width: NN% se asigna inline (0 / 50 / 100) según el llenado */
}

.cw-rating__star-fg {
    /* width/height se sincronizan vía Elementor con el tamaño del star */
    width: 16px;
    height: 16px;
    color: #F5A623;
    display: block;
}

.cw-rating__star-bg svg,
.cw-rating__star-fg svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
    stroke: currentColor;
}

/* Texto: valor numérico */
.cw-rating__value {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    margin-left: 6px;
    line-height: 1;
}

.cw-rating__count {
    color: #666666;
    font-size: 13px;
    font-weight: 400;
    margin-left: 6px;
    line-height: 1;
}
