/* Liway: reCAPTCHA и крестик только в форме добавления отзыва. */
body.liway-redesign .rewievs-modal:has(form [name="g-recaptcha-response-userRate"])
    :is(.modal-dialog, .modal-content) > .close[data-dismiss="modal"] {
    position: absolute;
    z-index: 2;
    inset: 9px 10px auto auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid #ddc8a8;
    border-radius: 8px;
    background: #fff9ef;
    color: #0c2c1d;
    font: 400 26px/1 var(--liway-ui-font, "Open Sans", Arial, sans-serif);
    opacity: 1;
    text-shadow: none;
}

body.liway-redesign .rewievs-modal:has(form [name="g-recaptcha-response-userRate"])
    .close[data-dismiss="modal"] span {
    color: inherit;
    font: inherit;
    opacity: 1;
}

body.liway-redesign .rewievs-modal:has(form [name="g-recaptcha-response-userRate"])
    .close[data-dismiss="modal"]:hover {
    border-color: #cbaa7e;
    background: #efe1cb;
    color: #0c2c1d;
}

body.liway-redesign .rewievs-modal:has(form [name="g-recaptcha-response-userRate"])
    .close[data-dismiss="modal"]:focus-visible {
    outline: 2px solid #996121;
    outline-offset: 2px;
}

body.liway-redesign .rewievs-modal .liway-review-captcha {
    max-width: 100%;
    margin: 12px 0 8px;
}

body.liway-redesign .rewievs-modal form > .liway-review-captcha-status {
    color: #81511e;
    font: 400 14px/1.4 var(--liway-ui-font, "Open Sans", Arial, sans-serif);
}

body.liway-redesign .rewievs-modal .liway-review-captcha-status[hidden] {
    display: none;
}
