/* ==========================================================================
   PRODUCT REVIEW V2
   Mobile-first. Inspirado en el mockup aprobado.
   ========================================================================== */

.product-review-v2,
.product-review-v2 *,
.product-review-v2 *::before,
.product-review-v2 *::after {
    box-sizing: border-box;
}

.product-review-v2 {
    width: calc(100% - 16px);
    max-width: 760px;

    margin: 14px auto;
    padding: 12px;

    background: #fff;

    border: 1px solid #e2e6ea;
    border-radius: 14px;

    box-shadow: 0 4px 14px rgba(0,0,0,.04);

    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
}


/* ==========================================================================
   CABECERA
   ========================================================================== */

.product-review-v2__top {
    display: grid;

    grid-template-columns: 92px minmax(0,1fr);
    grid-template-areas:
        "image title"
        "button button";

    gap: 8px 12px;

    align-items: center;
}


.product-review-v2__image-wrap {
    grid-area: image;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 92px;
    height: 92px;

    margin: 0;
    padding: 0;
}


.product-review-v2__image-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    text-decoration: none;
}


.product-review-v2 img.product-review-v2__image {
    display: block;

    width: auto;
    height: auto;

    max-width: 88px;
    max-height: 88px;

    margin: 0;
    padding: 0;

    object-fit: contain;

    border: 0;
    box-shadow: none;
}


.product-review-v2__title-wrap {
    grid-area: title;
    min-width: 0;
}


.product-review-v2__title {
    margin: 0;
    padding: 0;

    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
}


.product-review-v2__title a,
.product-review-v2 .aawp-product__title {
    color: #1f2933 !important;
    text-decoration: none !important;
}


.product-review-v2__rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 5px;

    margin-top: 5px;

    color: #6b7280;

    font-size: 12px;
}


.product-review-v2__reviews {
    color: #6b7280;
    font-size: 12px;
}


.product-review-v2__actions {
    grid-area: button;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;
}


.product-review-v2 a.product-review-v2__button,
.product-review-v2 a.aawp-button.product-review-v2__button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 42px;

    padding: 9px 16px;

    background: #27ae60;
    color: #fff !important;

    border: 0;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none !important;

    box-shadow: none;
}


.product-review-v2 a.product-review-v2__button:hover {
    opacity: .92;
}


/* ==========================================================================
   CHIPS
   ========================================================================== */

.product-review-v2__chips {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    width: 100%;

    margin-top: 10px;
}


.product-review-v2__chip {
    display: inline-flex;
    align-items: center;

    padding: 5px 8px;

    background: #f7f9fa;

    border: 1px solid #dfe4e8;
    border-radius: 8px;

    color: #303840;

    font-size: 11px;
    line-height: 1.25;
    font-weight: 500;
}


/* ==========================================================================
   SHOW / HIDE
   ========================================================================== */

.product-review-v2__details {
    display: block;

    margin-top: 10px;
    padding-top: 8px;

    border-top: 1px solid #edf0f2;
}


.product-review-v2__summary {
    display: block;

    width: 100%;

    margin: 0;
    padding: 2px 0;

    cursor: pointer;

    color: #1769aa;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;

    text-align: center;

    list-style: none;
}


.product-review-v2__summary::-webkit-details-marker {
    display: none;
}


.product-review-v2__summary::marker {
    content: "";
}


.product-review-v2__hide {
    display: none;
}


.product-review-v2__details[open] .product-review-v2__show {
    display: none;
}


.product-review-v2__details[open] .product-review-v2__hide {
    display: inline;
}


/* ==========================================================================
   DESPLEGADO
   ========================================================================== */

.product-review-v2__expanded {
    padding-top: 10px;
}


.product-review-v2__review {
    margin: 0;

    color: #303840;

    font-size: 13px;
    line-height: 1.5;
}


.product-review-v2__review p {
    margin: 0;
}


/* ==========================================================================
   LO MAS RELEVANTE
   ========================================================================== */

.product-review-v2__relevant {
    margin-top: 9px;
    padding: 9px 10px;

    background: #f1f8f3;

    border: 1px solid #dcecdf;
    border-radius: 10px;
}


.product-review-v2__section-title {
    margin: 0 0 4px;

    color: #247a43;

    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
}


.product-review-v2__relevant ul {
    margin: 3px 0 0;
    padding-left: 17px;
}


.product-review-v2__relevant li {
    margin: 2px 0;

    color: #303840;

    font-size: 13px;
    line-height: 1.4;
}


/* ==========================================================================
   V1 LEGACY
   ========================================================================== */

.product-review-v2__legacy-section {
    margin: 8px 0 0;
}


.product-review-v2__legacy-section:first-child {
    margin-top: 0;
}


.product-review-v2__legacy-section
.product-review-v2__section-title {
    color: #303840;
}


.product-review-v2__legacy-section p,
.product-review-v2__legacy-section li {
    font-size: 13px;
    line-height: 1.4;
}


.product-review-v2__legacy-section p {
    margin: 2px 0;
}


.product-review-v2__legacy-section ul {
    margin: 4px 0;
    padding-left: 17px;
}


/* ==========================================================================
   GALERIA
   Una imagen ~50% del ancho.
   ========================================================================== */

.product-review-v2__gallery {
    display: flex;

    gap: 8px;

    width: 100%;

    margin-top: 10px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x proximity;

    -webkit-overflow-scrolling: touch;
}


.product-review-v2__gallery-item {
    flex: 0 0 52%;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    height: 150px;

    padding: 6px;

    background: #fafafa;

    border: 1px solid #edf0f2;
    border-radius: 10px;

    scroll-snap-align: start;

    text-decoration: none;
}


.product-review-v2__gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: contain;

    border: 0;
    box-shadow: none;
}


/* ==========================================================================
   DESKTOP
   ========================================================================== */

@media (min-width: 700px) {

    .product-review-v2 {
        width: min(92%, 760px);

        padding: 16px 18px 12px;

        border-radius: 16px;

        font-size: 15px;
    }


    .product-review-v2__top {
        grid-template-columns: 150px minmax(0,1fr) auto;
        grid-template-areas: "image title button";

        gap: 16px;
    }


    .product-review-v2__image-wrap {
        width: 150px;
        height: 120px;
    }


    .product-review-v2 img.product-review-v2__image {
        max-width: 140px;
        max-height: 112px;
    }


    .product-review-v2__title {
        font-size: 18px;
    }


    .product-review-v2__actions {
        width: auto !important;
    }


    .product-review-v2 a.product-review-v2__button,
    .product-review-v2 a.aawp-button.product-review-v2__button {
        width: auto;
        min-width: 126px;
    }


    .product-review-v2__chips {
        margin-top: 11px;
    }


    .product-review-v2__chip {
        padding: 6px 10px;

        font-size: 12px;
    }


    .product-review-v2__review,
    .product-review-v2__relevant li,
    .product-review-v2__legacy-section p,
    .product-review-v2__legacy-section li {
        font-size: 14px;
    }


    .product-review-v2__section-title {
        font-size: 14px;
    }


    .product-review-v2__gallery-item {
        flex-basis: 48%;
        height: 190px;
    }

}

/* ==========================================================
   RESET FUERTE DE AAWP
   ========================================================== */

.product-review-v2 .aawp-product__image-link,
.product-review-v2 .aawp-product__image,
.product-review-v2 .aawp-product__thumb,
.product-review-v2 .aawp-product__footer,
.product-review-v2 .aawp-product__content,
.product-review-v2 .aawp-product__info {
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-review-v2 img {
    float: none !important;
    clear: none !important;
}

.product-review-v2 .aawp-product__image-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.product-review-v2 .aawp-product__footer {
    text-align: right !important;
}