.product-reviews-section {
    width: 100%;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #d9d9d9;
    color: #222;
}

.product-reviews-title {
    color: #074863;
}

.reviews-overview {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 32px;
    margin-bottom: 35px;
}

.reviews-rating-box {
    padding: 18px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
}

.reviews-main-rating {
    text-align: center;
}

.reviews-main-rating-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.reviews-main-rating-value {
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
}

.reviews-out-of {
    color: #555;
    font-size: 16px;
    line-height: 1;
    font-weight: normal;
}

.reviews-total-count {
    margin-top: 6px;
    color: #555;
    font-size: 12px;
    line-height: 1.4;
    font-weight: normal;
}

.reviews-breakdown {
    margin-top: 24px;
}

.reviews-summary-text {
    margin: 0;
    color: #CA6437;
    font-weight: bold;
    font-size: 15px;
    line-height: 1.55;
}

.main-single-star {
    display: inline-block;
    width: 21px;
    height: 22px;

    font-size: 24px;
    line-height: 20px;

    background: linear-gradient(
        to right,
        #f2a900 var(--fill),
        #d9d9d9 var(--fill)
    );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}

.review-gallery-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    width: fit-content;
    margin-top: 8px;
    color: #f5a623;
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
}

.review-gallery-stars span {
    font-size: inherit;
    line-height: inherit;
}

.review-gallery-star-filled {
    color: #f5a623;
}

.review-gallery-star-empty {
    color: #d5d5d5;

}

.reviews-breakdown-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 7px;
    height: 26px;
}

.reviews-breakdown-label {
    font-size: 12px;
    white-space: nowrap;
}

.reviews-breakdown-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 1px;
    background: #eee;
}

.reviews-breakdown-fill {
    height: 100%;
    background: #f5b72b;
}

.reviews-breakdown-percent {
    color: #555;
    font-size: 12px;
    text-align: right;
}

.reviews-disclaimer {
    margin-top: 18px;
    color: #767676;
    font-size: 11px;
    line-height: 1.45;
}

.reviews-content {
    min-width: 0;
}

.review-image:focus-visible {
    outline: 2px solid #006fba;
    outline-offset: 2px;
}

.review-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.48);
}

.review-image-more {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);

    color: #fff;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;

    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8),
    0 2px 6px rgba(0, 0, 0, 0.5);

    pointer-events: none;
}

.reviews-summary {
    margin-bottom: 20px;
}

.customer-reviews-heading {
    margin-bottom: 14px;
    color: rgb(57, 57, 57);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.reviews-search {
    position: relative;
}

.reviews-search input {
    width: 100%;
    height: 46px;
    padding: 0 42px 0 13px;
    border: 1px solid #777;
    border-radius: 4px;
    outline: none;
    background: #fff;
    color: #222;
    font-size: 14px;
    box-sizing: border-box;
}
.reviews-search input:hover {
    border-color: rgb(0, 114, 206);
}
.reviews-search input:focus {
    border-width: 2px;
    border-color: rgb(0, 114, 206);
}

.reviews-search input::placeholder {
    color: #666;
    opacity: 1;
}

.reviews-search-icon {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    color: #555;
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
}

.reviews-sort {
    position: relative;
}

.reviews-sort label {
    position: absolute;
    top: -7px;
    left: 10px;
    z-index: 1;
    padding: 0 4px;
    background: #fff;
    color: #555;
    font-size: 11px;
    line-height: 14px;
}

.reviews-sort select:hover {
    border-color: rgb(0, 114, 206);
}

.reviews-sort select:focus {
    border-width: 2px;
    border-color: rgb(0, 114, 206);
}

.reviews-sort select {
    width: 100%;
    height: 46px;
    padding: 0 11px;
    border: 1px solid #777;
    border-radius: 4px;
    outline: none;
    background: #fff;
    color: #222;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
}

.reviews-list {
    width: 100%;
}

.customer-review {
    padding: 22px 0;
    border-bottom: 1px solid #ddd;
}

.customer-review:first-child {
    padding-top: 0;
}

.customer-review-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: start;
    column-gap: 20px;
}

.customer-review-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 180px;
    margin: 0;
    padding: 0;
}

.customer-review-author {
    font-size: 14px;
    color: rgb(22, 22, 22);
}

.customer-review-date {
    font-weight: normal;
    font-size: 12px;
    color: rgb(84, 84, 84);
}

.customer-review-author,
.customer-review-date {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}


.customer-review-left {
    min-width: 0;
}

.customer-review-title {
    margin: 0 0 7px;
    color: #222;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 600;
}

.customer-review-stars {
    display: flex;
    gap: 1px;
    font-size: 17px;
    line-height: 1;
}

.star-filled {
    color: #f5a623;
}

.star-empty {
    color: #d5d5d5;
}

.customer-review-source {
    margin-top: 7px;
    color: #555;
    font-size: 12px;
    line-height: 1.4;
}

.customer-review-body {
    max-width: 900px;
    font-weight: normal;
    margin: 12px 0 0;
    color: #333;
    font-size: 16px;
    line-height: 1.55;
}

.customer-review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.customer-review-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-review-image {
    position: relative;
    display: block;
    width: 110px;
    height: 110px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
    cursor: pointer;
}

.customer-review-image:hover img {
    transform: scale(1.03);
}

.customer-review-image img {
    transition: transform .15s ease;
}

.reviews-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 215px;
    gap: 18px;
    margin-bottom: 24px;
}

.reviews-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
    padding: 24px 0 12px;
}

.reviews-page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-number,
.pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d5d5d5;
    border-radius: 2px;
    background: #fff;
    color: #222;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .15s ease,
    border-color .15s ease,
    color .15s ease;
}

.pagination-number:hover,
.pagination-arrow:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #999;
}

.pagination-number.active {
    border-color: #333;
    background: #333;
    color: #fff;
    font-weight: 700;
    cursor: default;
}

.pagination-arrow {
    font-size: 22px;
    font-weight: 400;
}

.pagination-arrow.disabled,
.pagination-arrow:disabled {
    border-color: #e5e5e5;
    background: #f8f8f8;
    color: #bbb;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 36px;
    color: #555;
    font-size: 13px;
    line-height: 1;
}

.no-reviews {
    padding: 30px 0;
    color: #666;
    font-size: 14px;
    text-align: center;
}

.review-images-modal .modal-dialog {
    width: calc(100% - 48px);
    max-width: 1379px;
}

.modal-backdrop {
    background-color: rgba(23,25,31,0.7);
}

.review-images-modal .modal-content {
    display: flex;
    flex-direction: column;

    max-height: 90vh;
    width: 80%;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}


.review-images-modal-content {
    display: grid;
    grid-template-columns: 60% 40%;
    grid-template-rows: minmax(0, 1fr);

    width: 100%;
    height: auto;

    padding: 0;
    margin: 0;
    gap: 0;

    min-width: 0;
    min-height: 0;
}


.review-images-modal-close {
    position: absolute;

    top: 8px;
    right: 8px;

    z-index: 100;

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

    width: 36px;
    height: 36px;

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #000;

    font-size: 27px;
    line-height: 1;
    font-weight: 300;

    cursor: pointer;
}

.review-images-modal-close:hover {
    background: #e5e9f1;
}

.review-gallery-main {
    grid-column: 1;
    grid-row: 1;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 8px;

    box-sizing: border-box;

    overflow: hidden;
}

.review-gallery-main-image-wrapper {
    flex: 1 1 auto;

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

    width: 100%;
    height: auto;

    min-width: 0;
    min-height: 0;

    padding: 0;

    box-sizing: border-box;

    overflow: hidden;
}

.review-gallery-image-container {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    min-width: 0;
    min-height: 0;

    box-sizing: border-box;

    overflow: hidden;
}

.review-gallery-image {
    position: relative;

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

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    box-sizing: border-box;
}

#review-gallery-main-image {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    object-fit: cover;

    border-radius: 4px;
}

.review-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 5;

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

    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;

    transform: translateY(-50%);

    background: #fff;
    color: #0072ce;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;

    padding: 0 0 6px;
}

.review-gallery-prev {
    left: 10px;
}

.review-gallery-next {
    right: 10px;
}

.review-gallery-nav:hover {
    background: #d4ebfe;
}

.review-gallery-nav:disabled {
    opacity: .25;
    cursor: default;
}

.review-gallery-thumbnails {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 8px;

    width: 100%;

    flex: 0 0 auto;

    margin-top: 14px;

    overflow: hidden;

    box-sizing: border-box;
}


.review-gallery-thumbnail {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    min-width: 0;
    min-height: 0;

    padding: 3px;

    overflow: hidden;

    border: 2px solid transparent;
    border-radius: 4px;

    background: #fff;

    cursor: pointer;

    box-sizing: border-box;
}


.review-gallery-thumbnail:hover {
    border-color: #888;
}


.review-gallery-thumbnail.active {
    border-color: #0878d1;
}


.review-gallery-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.review-gallery-thumbnail-more-button {
    position: relative;
    border: 2px solid transparent;
}

.review-gallery-thumbnail-more-button .review-gallery-thumbnail-more {
    position: absolute;
    inset: 0;

    z-index: 2;

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

    background: rgba(0, 0, 0, .55);

    color: #fff;

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

    pointer-events: none;
}


.review-gallery-thumbnail-more-button:hover
.review-gallery-thumbnail-more {
    background: rgba(0, 0, 0, .68);
}

.review-gallery-details {
    grid-column: 2;
    grid-row: 1;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    box-sizing: border-box;

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

}

.review-gallery-title {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    color: #222;
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    letter-spacing: 0;
}


.review-gallery-body {
    margin-top: 18px;
    font-weight: normal;
    color: #333;
    font-size: 14px;
    line-height: 1.55;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #126bd6 transparent;
}

.review-gallery-reviewer-wrapper {
    margin-top: 25px;
    padding-top: 25px;

    border-top: 1px solid #eee;
}

.review-gallery-reviewer {
    color: #222;

    font-size: 14px;
    line-height: 1.4;

    font-weight: 600;
}

.review-gallery-date {
    font-weight: normal;
    margin-top: 3px;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.review-images-modal-header {
    display: flex;
    align-items: center;
    flex: 0 0 66px;
    height: 66px;
    padding: 0 18px;
    box-sizing: border-box;
}

.review-images-modal-tab {
    font-weight: 600!important;
    color: #17191f;
    display: flex;
    align-items: center;
}

.search-highlight {
    font-weight: bold;
}

@media (max-width: 1025px) {

    .review-gallery-thumbnails {
        display: none;
    }

    .review-images-modal-header {
        position: relative;

        width: 100%;
        height: 66px;
        overflow: hidden;
        display: grid;
        grid-template-columns: 1fr auto;

        align-items: center;

        padding: 0 18px;

        box-sizing: border-box;

        background: #fff;

        border-bottom: 1px solid #cbd1dd;

        z-index: 20;
    }


    .review-images-modal-close {
        position: absolute;

        top: 10px;
        right: 10px;

        z-index: 100;

        width: 36px;
        height: 36px;

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

        padding: 0;

        border: 0;
        border-radius: 6px;

        background: transparent;
        color: #222;

        font-size: 27px;
        line-height: 1;

        cursor: pointer;
    }

    .review-images-modal-close:hover {
        background: #e5e9f1;
    }

    .review-gallery-prev {
        left: 8px;
    }

    .review-gallery-next {
        right: 8px;
    }
}

@media (max-width: 990px) {
    .reviews-overview {
        display: block;
        width: 100%;
        overflow: visible;
    }

    .reviews-overview > aside {
        width: 100%;
        margin-bottom: 20px;
    }

    .reviews-rating-box {
        width: 100%;
    }

    .reviews-content {
        display: block;
        width: 100%;
        min-width: 0;
        overflow: visible;
    }

    .customer-review {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .customer-review-header {
        display: contents;
    }

    .customer-review-left {
        grid-column: 1;
        grid-row: 1;
    }

    .customer-review-body {
        grid-column: 1;
        grid-row: 2;
        margin-bottom: 15px;
    }

    .customer-review-meta {
        grid-column: 1;
        grid-row: 3;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .customer-reviews-heading {
        width: 100%;
        margin-bottom: 15px;
    }

    .reviews-list {
        width: 100%;
        min-width: 0;
    }

    .customer-review-images {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;

        gap: 8px;

        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .customer-review-image {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }

    .reviews-summary {
        width: 100%;
        margin-bottom: 20px;
    }

    .reviews-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }

    .reviews-search {
        flex: 1 1 100%;
        width: 100%;
    }

    .reviews-search input {
        width: 100%;
        box-sizing: border-box;
    }

    .reviews-sort {
        flex: 1 1 100%;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .reviews-sort select {
        flex: 1;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 640px) {
    .hidden-mobile {
        display: none;
    }
}

@media (max-width: 767px) {

    .review-images-modal-content {
        display: grid;

        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;

        height: calc(100% - 66px);
        max-height: calc(100% - 66px);

        padding: 0 12px;

        overflow-y: auto !important;
        overflow-x: hidden;
    }

    .review-gallery-details {
        display: contents;
    }

    .review-gallery-title {
        grid-column: 1;
        grid-row: 3;

        width: 100%;

        margin: 0;
        padding: 12px 4px 0;

        font-size: 1.15rem;
        line-height: 1.45rem;
    }

    .review-gallery-stars {
        grid-column: 1;
        grid-row: 4;

        margin: 6px 4px 10px;
    }

    .review-gallery-main {
        grid-column: 1;
        grid-row: 5;

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

        margin: 0;
        padding: 0;

        border-top: 0;

        overflow: hidden;
    }

    .review-gallery-main-image-wrapper {
        width: 100%;
        height: 100%;

        padding: 0;
    }

    .review-gallery-image-container {
        height: 100%;
    }

    .review-gallery-image {
        width: 100%;
        height: 100%;
    }

    #review-gallery-main-image {
        width: auto;
        object-fit: contain;
    }

    .review-gallery-body {
        grid-column: 1;
        grid-row: 6;

        width: 100%;

        margin-top: 16px;
        padding: 0 4px;

        max-height: 180px;

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

        box-sizing: border-box;

        scrollbar-width: thin;
        scrollbar-color: #9fc7e8 transparent;
    }

    .review-gallery-reviewer-wrapper {
        grid-column: 1;
        grid-row: 7;

        width: 100%;

        margin-top: 20px;
        padding: 18px 4px 24px;

        box-sizing: border-box;
    }
    .review-gallery-image {
        position: relative;

        width: fit-content;
        max-width: 100%;
        height: 100%;

        margin: 0 auto;
    }

    .review-gallery-prev {
        left: 6px;
    }

    .review-gallery-next {
        right: 6px;
    }
}
