.mw-review-wrap {
    margin-top: 24px;
}

.mw-review-box {
    background: #f5f6f8;
    border-radius: 14px;
    padding: 28px;
}

.mw-review-heading {
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
    color: #111;
    margin: 0 0 26px;
}

.mw-review-overview {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 34px;
    align-items: center;
    margin-bottom: 28px;
}

.mw-review-score-box {
    text-align: center;
}

.mw-review-score {
    font-size: 52px;
    line-height: 1;
    font-weight: 700;
    color: #111;
}

.mw-review-score span {
    font-size: 20px;
    color: #63708a;
    font-weight: 400;
    margin-left: 2px;
}

.mw-review-total {
    font-size: 16px;
    color: #7d89a6;
    margin-top: 10px;
}

.mw-review-bars {
    width: 100%;
}

.mw-rating-row {
    display: grid;
    grid-template-columns: 42px 1fr 58px;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mw-rating-label {
    font-size: 15px;
    color: #222;
    white-space: nowrap;
}

.mw-rating-label-star {
    display: inline-flex;
    width: 14px;
    height: 14px;
    color: #f5a623;
    vertical-align: -2px;
}

.mw-rating-bar {
    height: 8px;
    background: #e2e2e2;
    border-radius: 999px;
    overflow: hidden;
}

.mw-rating-bar span {
    display: block;
    height: 100%;
    background: #55a7f7;
    border-radius: 999px;
}

.mw-rating-percent {
    font-size: 14px;
    color: #111;
    text-align: right;
    white-space: nowrap;
}

.mw-review-list {
    margin-top: 10px;
}

.mw-comment-list,
.mw-pending-review-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mw-review-item {
    list-style: none;
    padding: 18px 0;
    border-top: 1px solid #dde1e7;
}

.mw-review-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.mw-review-author {
    font-size: 17px;
    color: #111;
    font-weight: 700;
}

.mw-review-date {
    font-size: 14px;
    color: #7d89a6;
}

.mw-review-rating {
    margin-bottom: 8px;
}

.mw-review-rating .star-rating {
    float: none;
    margin: 0;
}

.mw-review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #111;
}

.mw-review-text p {
    margin-bottom: 0;
}

.mw-no-reviews {
    margin: 0 0 12px;
}

.mw-review-loadmore-wrap {
    text-align: center;
    margin-top: 20px;
}

.mw-review-loadmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 24px;
    border: 1px solid #d70000;
    border-radius: 6px;
    background: #fff;
    color: #d70000;
    font-weight: 700;
    cursor: pointer;
}

.mw-review-loadmore:hover,
.mw-review-loadmore.is-loading {
    background: #d70000;
    color: #fff;
}

.mw-review-loadmore:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.mw-review-form {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #dde1e7;
}

.mw-review-form-title,
.mw-pending-title {
    font-size: 22px;
    font-weight: 700;
    color: #003b8f;
    margin: 0 0 18px;
}

.mw-review-field {
    margin-bottom: 14px;
}

.mw-review-form label,
.mw-review-edit-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    color: #111;
}

.mw-review-form input,
.mw-review-form textarea,
.mw-review-form select,
.mw-review-edit-form textarea,
.mw-review-edit-form select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 11px 13px;
    font-size: 15px;
    background: #fff;
}

.mw-review-form textarea,
.mw-review-edit-form textarea {
    min-height: 120px;
}

.mw-review-submit,
.mw-review-save-edit,
.mw-review-cancel-edit,
.mw-review-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.mw-review-submit,
.mw-review-save-edit {
    background: #d70000;
    color: #fff;
    padding: 12px 26px;
    text-transform: uppercase;
}

.mw-review-submit:hover,
.mw-review-save-edit:hover {
    opacity: 0.85;
}

.mw-review-cancel-edit,
.mw-review-edit-btn {
    background: #fff;
    color: #003b8f;
    border: 1px solid #c8d4e8;
    border-radius: 6px;
    padding: 9px 16px;
    margin-top: 12px;
}

.mw-review-form-message {
    display: none;
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 8px;
    font-weight: 600;
}

.mw-review-form-message.is-success {
    display: block;
    background: #e9f8ee;
    color: #0a7a2f;
}

.mw-review-form-message.is-error {
    display: block;
    background: #fdeaea;
    color: #b00020;
}

.maxweb-review-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.mw-pending-reviews {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #dde1e7;
}

.mw-pending-note {
    margin: -8px 0 14px;
    font-size: 14px;
    color: #7d89a6;
}

.mw-review-pending-item {
    background: #fffdf4;
    border: 1px solid #f0df9b;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.mw-review-pending-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff1c2;
    color: #8a6400;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
}

.mw-review-edit-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #eadb9a;
}

.mw-review-edit-form textarea,
.mw-review-edit-form select {
    margin-bottom: 12px;
}

.mw-edit-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.is-loading {
    cursor: wait !important;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .mw-review-box {
        padding: 20px;
    }

    .mw-review-heading {
        font-size: 20px;
    }

    .mw-review-overview {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mw-review-score-box {
        text-align: left;
    }

    .mw-review-score {
        font-size: 42px;
    }

    .mw-rating-row {
        grid-template-columns: 36px 1fr 52px;
    }
}

.mw-rating-buttons {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.mw-rating-btn {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    padding: 4px 6px 6px;
    cursor: pointer;
    text-align: center;
    border-radius: 8px;
    line-height: 1.1;
}

.mw-rating-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 42px;
    line-height: 1;
    color: #ff9800;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.mw-rating-text {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 400;
    color: #555;
}

.mw-rating-btn:hover .mw-rating-star,
.mw-rating-btn.is-active .mw-rating-star {
    transform: translateY(-2px) scale(1.08);
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.18));
}

.mw-rating-btn.is-active {
    border-color: #ff9800;
    background: #fff8e8;
}

.mw-rating-btn.is-active .mw-rating-text {
    color: #111;
    font-weight: 700;
}

@media (max-width: 480px) {
    .mw-rating-buttons {
        gap: 10px;
    }

    .mw-rating-star {
        width: 34px;
        height: 34px;
        font-size: 34px;
    }

    .mw-rating-text {
        font-size: 13px;
    }
}

.mw-review-form-message .mw-view-pending-review {
    margin-left: 12px;
}

.mw-view-pending-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #0a7a2f;
    border-radius: 6px;
    background: #fff;
    color: #0a7a2f;
    padding: 6px 12px;
    font-weight: 700;
    cursor: pointer;
}

.mw-view-pending-review:hover {
    background: #0a7a2f;
    color: #fff;
}

.mw-custom-review-form.is-disabled input,
.mw-custom-review-form.is-disabled textarea,
.mw-custom-review-form.is-disabled .mw-rating-btn,
.mw-custom-review-form.is-disabled .mw-review-submit {
    cursor: not-allowed;
    opacity: 0.65;
}

.mw-review-pending-item.mw-pending-highlight {
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.35);
    transition: box-shadow 0.2s ease;
}

@media (max-width: 480px) {
    .mw-review-form-message .mw-view-pending-review {
        margin-left: 0;
        margin-top: 10px;
    }
}

.mw-review-rating .mw-star-icons {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
    font-size: 16px;
}

.mw-review-rating .mw-star-wrap {
    display: inline-flex;
    width: 16px;
    height: 16px;
}

.mw-review-rating .mw-star-filled {
    color: #004aad;
}

.mw-review-rating .mw-star-empty {
    color: #c7cfdd;
}

.mw-star-svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}
