.product-review-summary {
    align-items: center;
    background: #f7f7f7;
    border: 1px solid #e7e7e7;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 16px 18px;
}

.product-review-summary strong {
    color: #222;
    font-size: 2.4rem;
    line-height: 1;
}

.product-review-summary small {
    color: #777;
    display: block;
    margin-top: 4px;
}

.product-review-gallery-strip {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.product-review-gallery-thumb,
.product-review-inline-thumb {
    background: #fff;
    border: 1px solid #dedede;
    cursor: pointer;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 0;
}

.product-review-gallery-thumb {
    height: 92px;
    width: 92px;
}

.product-review-inline-thumb {
    height: 78px;
    width: 78px;
}

.product-review-gallery-thumb img,
.product-review-inline-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
    width: 100%;
}

.product-review-gallery-thumb:hover img,
.product-review-inline-thumb:hover img {
    transform: scale(1.04);
}

.product-review-list .product-review-item {
    align-items: flex-start;
    border-bottom: 1px solid #ececec;
    display: flex;
    gap: 18px;
    margin-bottom: 0;
    padding: 22px 0;
}

.product-review-avatar {
    align-items: center;
    background: #222;
    border: 0;
    color: #fff;
    display: flex;
    flex: 0 0 54px;
    height: 54px;
    justify-content: center;
    margin: 0;
    width: 54px;
}

.product-review-avatar span {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.product-review-list .comment-block {
    flex: 1 1 auto;
    min-width: 0;
}

.product-review-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 12px;
}

.product-review-empty {
    background: #fafafa;
    border: 1px solid #eee;
    color: #555;
    padding: 28px;
    text-align: center;
}

.product-review-empty strong {
    color: #222;
    display: block;
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.product-review-lightbox[hidden] {
    display: none;
}

.product-review-lightbox {
    inset: 0;
    position: fixed;
    z-index: 20000;
}

.product-review-lightbox__backdrop {
    background: rgba(0, 0, 0, .78);
    inset: 0;
    position: absolute;
}

.product-review-lightbox__dialog {
    background: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    left: 50%;
    max-height: calc(100vh - 56px);
    max-width: min(1120px, calc(100vw - 32px));
    min-height: min(680px, calc(100vh - 56px));
    overflow: hidden;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.product-review-lightbox__media {
    align-items: center;
    background: #111;
    display: flex;
    justify-content: center;
    min-height: 320px;
    overflow: hidden;
}

.product-review-lightbox__media img {
    display: block;
    max-height: calc(100vh - 80px);
    max-width: 100%;
    object-fit: contain;
}

.product-review-lightbox__review {
    color: #333;
    overflow-y: auto;
    padding: 34px 30px;
}

.product-review-lightbox__review h3 {
    font-size: 1.8rem;
    margin: 14px 0 4px;
}

.product-review-lightbox__review time,
.product-review-lightbox__count {
    color: #777;
    display: block;
    font-size: 1.3rem;
}

.product-review-lightbox__review p {
    font-size: 1.5rem;
    line-height: 1.7;
    margin-top: 20px;
    white-space: pre-line;
}

.product-review-lightbox__close,
.product-review-lightbox__nav {
    align-items: center;
    background: rgba(0, 0, 0, .58);
    border: 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    position: absolute;
    z-index: 2;
}

.product-review-lightbox__close {
    font-size: 3.2rem;
    height: 44px;
    right: 10px;
    top: 10px;
    width: 44px;
}

.product-review-lightbox__nav {
    border-radius: 50%;
    font-size: 4.2rem;
    height: 52px;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
}

.product-review-lightbox__nav--prev {
    left: 14px;
}

.product-review-lightbox__nav--next {
    right: 374px;
}

body.product-review-lightbox-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .product-review-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-review-gallery-thumb {
        height: 78px;
        width: 78px;
    }

    .product-review-list .product-review-item {
        gap: 12px;
    }

    .product-review-avatar {
        flex-basis: 44px;
        height: 44px;
        width: 44px;
    }

    .product-review-lightbox__dialog {
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 24px);
        max-width: calc(100vw - 18px);
        min-height: 0;
    }

    .product-review-lightbox__media {
        min-height: 260px;
    }

    .product-review-lightbox__media img {
        max-height: 54vh;
    }

    .product-review-lightbox__review {
        max-height: 34vh;
        padding: 22px 20px;
    }

    .product-review-lightbox__nav {
        height: 44px;
        width: 44px;
    }

    .product-review-lightbox__nav--next {
        right: 14px;
    }
}
