.chinax-reviews {
    display: grid;
    gap: 24px;
}

.chinax-reviews__summary {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(260px, 1fr);
    gap: 32px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}

.chinax-reviews__score {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.chinax-reviews__score strong {
    font-size: clamp(44px, 7vw, 72px);
    line-height: 1;
}

.chinax-reviews__stars,
.chinax-review__rating {
    color: #e78a00;
    letter-spacing: 2px;
}

.chinax-reviews__distribution {
    display: grid;
    gap: 10px;
}

.chinax-reviews__distribution-row {
    display: grid;
    grid-template-columns: 38px minmax(100px, 1fr) 38px;
    align-items: center;
    gap: 10px;
}

.chinax-reviews__bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0f3;
}

.chinax-reviews__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #ec7550;
}

.chinax-reviews__list {
    display: grid;
    gap: 16px;
}

.chinax-review {
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}

.chinax-review__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.chinax-review h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.chinax-review__text {
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.chinax-review__reply {
    margin-top: 18px;
    padding: 16px;
    border-left: 4px solid #ec7550;
    border-radius: 8px;
    background: #f8f8f8;
}

.chinax-review__reply strong {
    display: block;
    margin-bottom: 8px;
}

.chinax-reviews__empty {
    padding: 24px;
    border-radius: 18px;
    background: #f7f8fa;
}

.chinax-reviews__pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chinax-reviews__pagination a,
.chinax-reviews__pagination strong {
    display: inline-grid;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    border: 1px solid #d7dce1;
    border-radius: 10px;
    text-decoration: none;
}

.chinax-reviews__pagination strong {
    border-color: #ec7550;
    background: #ec7550;
    color: #fff;
}

.chinax-review-form-wrap {
    scroll-margin-top: 90px;
    padding: 24px;
    border-radius: 18px;
    background: #f7f8fa;
}

.chinax-review-form {
    display: grid;
    gap: 18px;
}

.chinax-review-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.chinax-review-form input[type="text"],
.chinax-review-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #cfd5db;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.chinax-review-form fieldset {
    padding: 0;
    border: 0;
}

.chinax-review-form__rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.chinax-review-form__rating input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chinax-review-form__rating label {
    cursor: pointer;
    padding: 2px;
    color: #c8cdd2;
    font-size: 34px;
    line-height: 1;
}

.chinax-review-form__rating input:checked ~ label,
.chinax-review-form__rating label:hover,
.chinax-review-form__rating label:hover ~ label {
    color: #e78a00;
}

.chinax-review-form__rating input:focus-visible + label {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.chinax-review-form__consent {
    grid-template-columns: 24px 1fr !important;
    align-items: start;
    font-weight: 400 !important;
}

.chinax-review-form button {
    min-height: 48px;
    justify-self: start;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: #ec7550;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.chinax-review-form button[disabled] {
    cursor: wait;
    opacity: .6;
}

.chinax-review-form__message {
    min-height: 24px;
}

@media (max-width: 720px) {
    .chinax-reviews__summary {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 18px;
    }

    .chinax-review {
        padding: 18px;
    }

    .chinax-review__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .chinax-review-form-wrap {
        padding: 18px;
    }

    .chinax-review-form button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chinax-reviews *,
    .chinax-reviews *::before,
    .chinax-reviews *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* v1.0.1 corrective notice: inline, directly below submit button. */
.chinax-review-form__message[hidden] {
    display: none !important;
}

.chinax-review-form__message {
    display: none;
    grid-template-columns: 46px minmax(0, 1fr) 34px;
    gap: 14px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
    margin-top: 14px;
    padding: 18px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    outline: none;
}

.chinax-review-form__message.is-visible {
    display: grid;
    animation: chinax-review-notice-in .24s ease both;
}

.chinax-review-form__message.is-success {
    border-color: #b7e5c4;
    background: #f0faf3;
}

.chinax-review-form__message.is-error {
    border-color: #f3bcbc;
    background: #fff3f3;
}

.chinax-review-form__message-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.chinax-review-form__message.is-success
.chinax-review-form__message-icon {
    background: #1f9d55;
}

.chinax-review-form__message.is-error
.chinax-review-form__message-icon {
    background: #d63c3c;
}

.chinax-review-form__message-content {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding-top: 2px;
}

.chinax-review-form__message-title {
    color: #172033;
    font-size: 17px;
    line-height: 1.3;
}

.chinax-review-form__message-text {
    color: #526071;
    font-size: 14px;
    line-height: 1.55;
}

.chinax-review-form__message-close {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #687385;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.chinax-review-form__message-close:hover,
.chinax-review-form__message-close:focus-visible {
    background: rgba(15, 23, 42, .07);
    color: #172033;
}

@keyframes chinax-review-notice-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .chinax-review-form__message {
        grid-template-columns: 42px minmax(0, 1fr) 32px;
        gap: 11px;
        padding: 15px;
    }

    .chinax-review-form__message-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chinax-review-form__message.is-visible {
        animation: none;
    }
}


/* v1.0.2: plain orange close glyph without button chrome. */
.chinax-review-form
.chinax-review-form__message
.chinax-review-form__message-close {
    display: inline-flex !important;
    width: 28px !important;
    min-width: 0 !important;
    height: 28px !important;
    min-height: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline-offset: 3px;
    background: transparent !important;
    box-shadow: none !important;
    color: #ef744c !important;
    font-size: 27px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-shadow: none !important;
    appearance: none;
}

.chinax-review-form
.chinax-review-form__message
.chinax-review-form__message-close:hover,
.chinax-review-form
.chinax-review-form__message
.chinax-review-form__message-close:focus-visible {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #cf5835 !important;
    transform: none !important;
}
