
html:has(.add_review_popup_overlay.is-open), body:has(.add_review_popup_overlay.is-open) {
    overflow: hidden;
}
.add_review_trigger_wrap {
    margin: -4px 0 22px;
    text-align: center;
}

.add_product_review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 44px;
    margin: 0;
    padding: 0 22px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    font-family:  MaisonNeue-Book, Heebo-Regular;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
}

.add_product_review:hover,
.add_product_review:focus,
.add_product_review:active {
    background: #000;
    color: #fff;
    outline: none;
}

.add_review_popup_overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.55);
}

.add_review_popup_overlay.is-open {
    display: flex;
}

body.add-review-open {
    overflow: hidden;
}

.add_review_container {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 22px 24px 24px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.11);
    animation: popupFadeIn 0.3s ease-out;
}

.add_review_popup_close {
    position: absolute;
    top: 20px;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.add_review_popup_close:hover,
.add_review_popup_close:focus {
    background: #fff;
    outline: none;
}

.add_review_popup_close .close-icon {
    color: #000;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

.add_review_content {
    direction: rtl;
    font-family:  MaisonNeue-Book, Heebo-Regular;
    color: #000;
}

.add_review_product {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 4px 0 18px;
    padding-bottom: 18px;
    border-bottom: 2px solid #dddddd;
    text-align: right;
}

.add_review_product img {
    display: block;
    width: 142px;
    height: 142px;
    margin: 0;
    flex: 0 0 142px;
    object-fit: contain;
    background: #f6f6f6;
}

.add_review_product_name {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.add_review_title {
    margin: 0 0 6px;
    font-family: MaisonNeue-Book, Heebo-Regular;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #000;
}

.add_review_intro {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: #6a6c77;
}

.add_review_field {
    display: block;
    margin: 0 0 16px;
}

.add_review_rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 22%;
}

.add_review_label {
    display: block;
    margin-bottom: 6px;
    font-size: 19px;
    line-height: 1.3;
    color: #000;
    text-align: right;
    font-weight: bold;
}

.add_review_rating .add_review_label {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.add_review_score_label {
    font-size: 20px;
    line-height: 1.3;
    color: #000;
}

.add_review_stars {
    display: flex;
    direction: rtl;
    justify-content: flex-start;
    gap: 2px;
}

.add_review_star {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000000;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.add_review_star:after {
    content: "☆";
}
.add_review_star.is-active:after,
.add_review_star.is-preview:after {
    content: "★";
}


.add_review_stars.is-hovering .add_review_star.is-preview:after {
    content: "★";
}

.add_review_error {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: #c0392b;
    text-align: right;
}

.add_review_form input[type="text"],
.add_review_form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    box-sizing: border-box;
    border:  2px solid #dddddd;
    border-radius: 10px;
    background: #fff;
    color: #000;
    font-family: MaisonNeue-Book, Heebo-Regular;
    font-size: 16px;
    line-height: 1.4;
    text-align: right;
    -webkit-appearance: none;
    appearance: none;
}
.add_review_form input[type="text"]::placeholder,
.add_review_form textarea::placeholder {
    color: #6f6f6f;
}
.add_review_form textarea {
    height: auto;
    min-height: 112px;
    padding: 12px 14px;
    resize: vertical;
}

.add_review_form input[type="text"]:focus,
.add_review_form textarea:focus {
    border-color: #000;
    outline: none;
}

.add_review_form input[type="text"]:user-invalid,
.add_review_form textarea:user-invalid {
    border-color: #c0392b;
}

.add_review_submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    background: #000;
    color: #fff;
    font-family: MaisonNeue-Book, Heebo-Regular;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    border-radius: 10px;
    font-weight: bold;
}

.add_review_submit:hover,
.add_review_submit:focus,
.add_review_submit:active {
    background: #000;
    color: #fff;
    opacity: 0.9;
    outline: none;
}

@media only screen and (max-width: 480px) {
    .add_review_popup_overlay {
        padding: 12px;
        align-items: center;
    }

    .add_review_container {
        max-height: calc(100vh - 24px);
        padding: 24px 16px 16px;
    }

    .add_review_title {
        font-size: 22px;
    }
}
