.custom-product-reviews {
    --reviews-text: #36485C;
    --reviews-border: #EBEDEF;
    --reviews-green: #88B04B;
    --reviews-green-dark: #275E43;
    --reviews-yellow: #FFD148;
    --reviews-verified-bg: #ECF3F0;

    width: 100%;
    color: var(--reviews-text);
    position: relative;
    z-index: 2;
}

.custom-product-reviews *,
.custom-product-reviews *::before,
.custom-product-reviews *::after {
    box-sizing: border-box;
}

.custom-product-reviews__layout {
    display: grid;
    grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
}

.custom-product-reviews__title {
    color: var(--reviews-text);
    font-size: 32px;
    font-weight: 600;
    line-height: 38.4px;
    letter-spacing: -0.8px;
    margin: 0 0 23px !important;
}

.custom-product-reviews__summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 23px;
}

.custom-product-reviews__average {
    flex: 0 0 auto;
    font-size: 50px;
    font-weight: 400;
    line-height: 60px;
    letter-spacing: -1.25px;
}

.custom-product-reviews__rating-details {
    min-width: 0;
}

.custom-product-reviews__stars {
    margin-bottom: 8px;
}

.custom-product-reviews .star-rating {
    float: none;
    display: block;
    width: 6.4em;
    height: 1.15em !important;
    margin: 0;
    font-family: star;
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: 1px;
    color: var(--reviews-yellow) !important;
}

.custom-product-reviews .star-rating::before {
    color: #d9dde3;
}

.custom-product-reviews .star-rating span::before {
    color: var(--reviews-yellow);
}

.custom-product-reviews__count {
    color: var(--reviews-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
}

.custom-product-reviews__sidebar .custom-product-reviews__write-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 0 0 23px;
    padding: 12px 24px;
    border: 0;
    border-radius: 8px !important;
    background: var(--reviews-green);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 25.2px;
    cursor: pointer;
    transition: 0.3s ease-in-out !important;
}

.custom-product-reviews__write-button:hover {
    background: #5E7D33;
}

.custom-product-reviews__write-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-product-reviews__verified-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: 8px;
    background: var(--reviews-verified-bg);
}

.custom-product-reviews__verified-icon {
    max-height: 32px;
    min-width: 32px;
}

.custom-product-reviews__verified-content {
    min-width: 0;
}

.custom-product-reviews__verified-content strong {
    display: block;
    margin-bottom: 8px;
    color: var(--reviews-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 16.8px;
}

.custom-product-reviews__verified-content p {
    color: var(--reviews-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 16.8px;
    padding: 0 !important;
}

.custom-product-reviews__review-notice {
    margin-bottom: 23px;
    padding: 16px;
    border-radius: 8px;
    color: var(--reviews-text);
    font-size: 14px;
    line-height: 19.6px;
}

.custom-product-reviews__content {
    min-width: 0;
}

.custom-product-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.custom-product-reviews__list > li {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.custom-product-reviews__list > li::before,
.custom-product-reviews__list > li::after {
    display: none !important;
    content: none !important;
}

.custom-product-reviews__load-more-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 24px;
}

.custom-product-reviews__load-more-wrapper .custom-product-reviews__load-more {
    position: relative;
    padding: 0 4px 4px;
    border: 0;
    border-bottom: 2px solid var(--reviews-green-dark);
    border-radius: 0 !important;
    background: transparent;
    color: var(--reviews-green-dark) !important;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 25.2px;
    cursor: pointer;
    transition: 0.3s ease-in-out !important;
}

.custom-product-reviews__load-more-wrapper .custom-product-reviews__load-more:hover {
    color: var(--reviews-green) !important;
    border-bottom-color: var(--reviews-green) !important;
}

.custom-product-reviews__empty {
    padding: 24px;
    border: 1px solid var(--reviews-border);
    border-radius: 16px;
    text-align: center;
}

.custom-product-reviews__empty p {
    padding: 0 !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
}

.custom-product-reviews .custom-review-card.is-review-hidden {
    display: none;
}

.custom-review-form[hidden] {
    display: none !important;
}

.custom-review-form {
    position: fixed !important;
	inset: 0 !important;
	z-index: 2147483647 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.custom-review-form__overlay {
    position: fixed !important;
	inset: 0 !important;
	z-index: 1;
	background: rgba(15, 25, 38, 0.62);
}

.custom-review-form__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.22);
}

.custom-review-form__close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 13px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #36485C;
    font-size: 32px;
    font-weight: 400;
    line-height: 38px;
    cursor: pointer;
}

.custom-review-form .comment-reply-title {
    display: block;
    margin: 0 35px 25px 0;
    color: #36485C;
    font-size: 28px !important;
    font-weight: 600 !important;
    line-height: 35.2px !important;
}

.custom-review-form p {
    margin: 0 0 18px;
}

.custom-review-form label {
    display: block;
    margin-bottom: 8px;
    color: #36485C;
    font-size: 14px;
    font-weight: 600;
}

.custom-review-form input[type="text"],
.custom-review-form input[type="email"],
.custom-review-form textarea,
.custom-review-form select {
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #EBEDEF;
    border-radius: 8px;
    background: #fff;
    color: #36485C;
    font-family: inherit;
    font-size: 16px;
    box-shadow: none;
}

.custom-review-form textarea {
    min-height: 145px;
    resize: vertical;
}

.custom-review-form .comment-form-rating {
    margin: 16px 0 0 !important;
}

.custom-review-form .comment-form-comment {
    margin: 16px 0 0 !important;
    padding: 0 !important;
}

.custom-review-form .comment-notes {
    padding: 0 !important;
}

.custom-review-form .comment-form-author,
.custom-review-form .comment-form-email,
.custom-review-form .comment-form-cookies-consent {
    padding: 0 !important;
    width: 100% !important;
}

.custom-review-form .comment-form-cookies-consent {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.custom-review-form .comment-form-cookies-consent input {
    margin: 0 !important;
    width: 16px;
    height: 16px;
    min-width: 16px;
    accent-color: #88B04B;
}

.custom-review-form .comment-form-cookies-consent label {
    margin-bottom: 0;
}

.custom-review-form .form-submit {
    margin: 24px 0 0 !important;
}

.custom-review-form .comment-form-rating .stars {
    margin: 0 !important;
    padding: 0 !important;
}

.custom-review-form .custom-review-form__submit,
.custom-review-form .custom-review-form input[type="submit"] {
    width: 100%;
    padding: 12px 24px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--reviews-green);
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 25.2px !important;
    cursor: pointer !important;
    text-transform: unset !important;
}

body.custom-review-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .custom-product-reviews__layout {
        grid-template-columns: 1fr;
    }
}

.custom-review-card__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid var(--reviews-border);
    border-radius: 16px;
    background: #fff;
    color: var(--reviews-text);
    box-shadow: none;
}

.custom-review-card__description {
    margin-bottom: 24px;
    color: var(--reviews-text);
    font-size: 18px;
    font-weight: 400;
    line-height: 25.2px;
}

.custom-review-card__description p {
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.custom-review-card__description p + p {
    margin-top: 8px;
}

.custom-review-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.custom-review-card__customer {
    min-width: 0;
}

.custom-review-card__author-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.custom-review-card__author {
    display: block;
    color: var(--reviews-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 19.6px;
}

.custom-review-card__date {
    display: block;
    color: var(--reviews-text);
    font-size: 12px;
    font-weight: 400;
    line-height: 16.8px;
    text-transform: capitalize;
}

.custom-review-card__rating .star-rating {
    float: none !important;
    display: block;
    width: 5.4em;
    height: 1.15em !important;
    margin: 0;
    font-family: star;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: 1px;
    color: var(--reviews-yellow) !important;
}

.custom-review-card__rating .star-rating::before {
    color: #d9dde3;
}

.custom-review-card__rating .star-rating span::before {
    color: var(--reviews-yellow);
}

.custom-review-card .avatar,
.custom-review-card .woocommerce-review__dash,
.custom-review-card .woocommerce-review__published-date,
.custom-review-card .woocommerce-review__verified {
    display: none !important;
}

@media (max-width: 767px) {
    .custom-review-card__inner {
        padding: 24px 16px;
    }
}