/* Legacy selectors are still used by theme overrides of product_list.tpl. */
.reviStarsContainer {
    --star-color: #dedede;
    --star-background: #f4c318;
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
    align-items: center;
    vertical-align: middle;
    margin: 5px 0px 5px 0px;
    height: 25px;
    /* Asegura que el contenedor vacío tenga altura */
}

.reviStarsContainer--left {
    justify-content: flex-start;
}

.reviStarsContainer .reviStars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: 25px;
    font-family: Times;
    line-height: 1;
}

.reviStarsContainer .reviStars::before {
    content: "\2605\2605\2605\2605\2605";
    letter-spacing: -3px;
    background: -webkit-gradient(linear, left top, right top, from(var(--star-background)), to(var(--star-color)));
    background: linear-gradient(90deg, var(--star-background) var(--percent), var(--star-color) var(--percent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reviStarsContainer .reviStarsBlock {
    font-size: 11px;
    font-family: roboto;
    margin-left: 6px;
    margin-top: 0px;
    color: var(--secundary);
}

/* Keep the slot intact under theme rules such as .product-miniature div. */
.revi-listing-rating.revi-listing-rating {
    --revi-listing-rating-fill: #f4c318;
    --revi-listing-rating-empty: #dedede;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 25px;
    min-height: 25px;
    margin: 5px 0;
    padding: 0;
}

.revi-listing-rating.revi-listing-rating--left {
    justify-content: flex-start;
}

.revi-listing-rating.revi-listing-rating--charcoal {
    --revi-listing-rating-fill: #2f3031;
}

.revi-listing-rating.revi-listing-rating--square {
    --revi-listing-rating-fill: #494848;
    --revi-listing-rating-empty: #e0dcdf;
}

.revi-listing-rating.revi-listing-rating,
.revi-listing-rating .revi-listing-rating__stars,
.revi-listing-rating .revi-listing-rating__glyph,
.revi-listing-rating .revi-listing-rating__count {
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.revi-listing-rating .revi-listing-rating__stars {
    display: inline-flex;
    flex: none;
    align-items: center;
    height: 25px;
    margin: 0;
    padding: 0;
}

.revi-listing-rating .revi-listing-rating__glyph {
    --revi-listing-rating-percent: calc(var(--revi-listing-rating-value) / 5 * 100%);
    display: inline-flex;
    flex: none;
    align-items: center;
    margin: 0;
    padding: 0;
    direction: ltr;
    white-space: nowrap;
}

.revi-listing-rating .revi-listing-rating__stars::before,
.revi-listing-rating .revi-listing-rating__count::before,
.revi-listing-rating .revi-listing-rating__stars::after,
.revi-listing-rating .revi-listing-rating__count::after,
.revi-listing-rating .revi-listing-rating__glyph::after,
.revi-listing-rating .revi-listing-rating__box::after {
    content: none;
}

.revi-listing-rating .revi-listing-rating__glyph::before,
.revi-listing-rating .revi-listing-rating__box::before {
    position: static;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font: normal 25px/1 Times, serif;
    text-indent: 0;
    text-shadow: none;
    transform: none;
}

.revi-listing-rating .revi-listing-rating__glyph::before {
    content: "\2605\2605\2605\2605\2605";
    letter-spacing: -3px;
    color: var(--revi-listing-rating-fill);
    background: linear-gradient(90deg, var(--revi-listing-rating-fill) var(--revi-listing-rating-percent), var(--revi-listing-rating-empty) var(--revi-listing-rating-percent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.revi-listing-rating .revi-listing-rating__box,
.revi-listing-rating--square .revi-listing-rating__glyph::before {
    display: none;
}

.revi-listing-rating--square .revi-listing-rating__glyph {
    gap: 1.34px;
}

.revi-listing-rating--square .revi-listing-rating__box {
    --revi-listing-rating-box-index: 0;
    --revi-listing-rating-box-percent: clamp(0%, calc((var(--revi-listing-rating-value) - var(--revi-listing-rating-box-index)) * 100%), 100%);
    display: inline-flex;
    flex: 0 0 16px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 1.68px;
    box-shadow: none;
    background: var(--revi-listing-rating-empty);
    background: linear-gradient(90deg, var(--revi-listing-rating-fill) var(--revi-listing-rating-box-percent), var(--revi-listing-rating-empty) var(--revi-listing-rating-box-percent));
}

.revi-listing-rating__box:nth-child(2) { --revi-listing-rating-box-index: 1; }
.revi-listing-rating__box:nth-child(3) { --revi-listing-rating-box-index: 2; }
.revi-listing-rating__box:nth-child(4) { --revi-listing-rating-box-index: 3; }
.revi-listing-rating__box:nth-child(5) { --revi-listing-rating-box-index: 4; }

/* Product Stars square/5-stars.svg paths, scaled from 96 to 16 px per tile. */
.revi-listing-rating--square .revi-listing-rating__box::before {
    content: "";
    display: block;
    position: static;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    transform: none;
    clip-path: polygon(50% 22%, 58% 36%, 78% 42%, 63% 55%, 67% 77%, 50% 69%, 33% 77%, 37% 55%, 22% 42%, 42% 36%);
    clip-path: path("m8.49,3.72333l0.99667,2.02167c0.080.16167,0.23333,0.27333,0.41167,0.29833l2.23,0.325c0.448330.065,0.62667,0.615,0.30167,0.93167l-1.61333,1.57333c-0.128330.125-0.18667,0.30667-0.15667,0.48333l0.38167,2.22167c0.07667,0.44667-0.39167,0.78667-0.79167,0.575l-1.995-1.04833c-0.16-0.08333-0.35-0.08333-0.50833,0l-1.995,1.04833c-0.4,0.21167-0.86833-0.13-0.79167-0.575l0.38167-2.22167c0.03-0.17667-0.02833-0.35833-0.15667-0.48333l-1.61333-1.57333c-0.32333-0.315-0.145-0.86667,0.30333-0.93167l2.23-0.325c0.17833-0.025,0.33167-0.13667,0.41167-0.29833l0.99667-2.02167c0.2-0.40667,0.77833-0.40667,0.97833,0Z");
}

.revi-listing-rating--square .revi-listing-rating__box:nth-child(2)::before,
.revi-listing-rating--square .revi-listing-rating__box:nth-child(3)::before {
    clip-path: path("m8.5,3.81l1.02167,2.06833c0.081670.165,0.23833,0.28,0.42,0.305l2.28333,0.33167c0.458330.06667,0.64167,0.63,0.31,0.95333l-1.65167,1.61c-0.131670.12833-0.19167,0.31333-0.16,0.495l0.39,2.27333c0.07833,0.45667-0.4,0.805-0.81167,0.58833l-2.04167-1.07333c-0.16333-0.085-0.35833-0.085-0.52,0l-2.04167,1.07333c-0.41,0.215-0.88833-0.13167-0.81-0.58833l0.39-2.27333c0.03167-0.18167-0.03-0.36667-0.16167-0.495l-1.65167-1.61c-0.33167-0.32333-0.14833-0.88667,0.31-0.95333l2.28333-0.33167c0.18167-0.02667,0.34-0.14,0.42167-0.305l1.02167-2.06833c0.205-0.415,0.79667-0.415,1.00167,0Z");
}

.revi-listing-rating--square .revi-listing-rating__box:nth-child(4)::before {
    clip-path: path("m8.5,3.80667l1.02,2.06667c0.081670.165,0.23833,0.28,0.42,0.305l2.28,0.33167c0.458330.06667,0.64,0.63,0.30833,0.95167l-1.65,1.60833c-0.131670.12833-0.19167,0.31333-0.16,0.495l0.39,2.27167c0.07833,0.45667-0.4,0.80333-0.81,0.58833l-2.04-1.07167c-0.16333-0.085-0.35667-0.085-0.52,0l-2.04,1.07167c-0.41,0.215-0.88833-0.13167-0.81-0.58833l0.39-2.27167c0.03-0.18167-0.03-0.365-0.16-0.495l-1.65-1.60833c-0.33167-0.32333-0.14833-0.885,0.31-0.95167l2.28-0.33167c0.18167-0.02667,0.33833-0.14,0.42-0.305l1.02-2.06667c0.205-0.415,0.79667-0.415,1.00167,0Z");
}

.revi-listing-rating--square .revi-listing-rating__box:nth-child(5)::before {
    clip-path: path("m8.49167,3.80667l1.02,2.06667c0.081670.165,0.23833,0.28,0.42,0.305l2.28,0.33167c0.458330.06667,0.64,0.63,0.30833,0.95167l-1.65,1.60833c-0.131670.12833-0.19167,0.31333-0.16,0.495l0.39,2.27167c0.07833,0.45667-0.4,0.80333-0.81,0.58833l-2.04-1.07167c-0.16333-0.085-0.35667-0.085-0.52,0l-2.04,1.07167c-0.41,0.215-0.88833-0.13167-0.81-0.58833l0.39-2.27167c0.03-0.18167-0.03-0.365-0.16-0.495l-1.65-1.60833c-0.33167-0.32333-0.14833-0.885,0.31-0.95167l2.28-0.33167c0.18167-0.02667,0.33833-0.14,0.42-0.305l1.02-2.06667c0.205-0.415,0.79667-0.415,1.00167,0Z");
}

.revi-listing-rating .revi-listing-rating__count {
    flex: none;
    margin: 0 0 0 6px;
    padding: 0;
    color: var(--secundary, inherit);
    font: normal 11px/1 Roboto, sans-serif;
}

/*
 * Widget «Fotos de clientes» (8.4.0): alto reservado mientras carga para no desplazar la
 * pagina (CLS). Son los altos finales medidos con el tema classic de PrestaShop 8.2 y el
 * widget real de Widgets dev: 203 px con el contenedor de 1110 px, 183 px de 690 a 930 px,
 * 167 px a 450 px y 151 px a 345 px. Se libera cuando Widgets marca el contenedor como listo,
 * vacio o fallido, o cuando el JS de Revi no carga (.revi-widgets-unavailable); un widget sin
 * fotos no deja hueco.
 */
html:not(.revi-widgets-unavailable) [data-revi-widget-lazy][data-revi-type-hint="photos"]:not([data-revi-state="ready"]):not([data-revi-state="empty"]):not([data-revi-state="failed"]) {
    min-height: 203px;
}

@media (max-width: 1199px) {
    html:not(.revi-widgets-unavailable) [data-revi-widget-lazy][data-revi-type-hint="photos"]:not([data-revi-state="ready"]):not([data-revi-state="empty"]):not([data-revi-state="failed"]) {
        min-height: 183px;
    }
}

@media (max-width: 600px) {
    html:not(.revi-widgets-unavailable) [data-revi-widget-lazy][data-revi-type-hint="photos"]:not([data-revi-state="ready"]):not([data-revi-state="empty"]):not([data-revi-state="failed"]) {
        min-height: 167px;
    }
}

@media (max-width: 420px) {
    html:not(.revi-widgets-unavailable) [data-revi-widget-lazy][data-revi-type-hint="photos"]:not([data-revi-state="ready"]):not([data-revi-state="empty"]):not([data-revi-state="failed"]) {
        min-height: 151px;
    }
}

/*
 * Sello Revi (8.6.0) en el pie: linea propia a todo el ancho de la fila del tema (classic pinta
 * displayFooterBefore dentro de un .row flexible) y sello centrado, con un
 * ancho maximo para que no se estire. Widgets alinea el sello al inicio de su contenedor; aqui
 * se centra en ambos sentidos de escritura, sin tocar text-align (RTL). Sin reserva de alto: va
 * al final de la pagina y no desplaza contenido visible al cargar.
 */
.revi-seal-footer {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
    padding: 0 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* Widgets fija width:100% y margin:0 con !important en el contenedor: se centra por flex. */
.revi-seal-footer > [data-revi-widget-lazy] {
    max-width: 480px;
}

/*
 * Solo el contenedor del modelo (revi-widget-seal-N, a todo el ancho): centrar los niveles
 * superiores los encogeria a 0 px, porque Widgets les da container-type: inline-size.
 */
.revi-seal-footer [class^="revi-widget-seal-"] {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
