/* Scoped to the doctor review summary; existing site and review forms are unchanged. */
.doctor-profile-page-section .review-summary-detailed {
    --review-purple: #7952d6;
    --review-purple-deep: #6340bf;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 22px;
    margin-bottom: 24px;
    border: 1px solid #eee9fa;
    border-radius: 12px;
    background: #faf9fe;
    color: #263149;
}

.doctor-profile-page-section .review-summary-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.doctor-profile-page-section .review-summary-heading .avg-score {
    color: #24203c;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.doctor-profile-page-section .review-summary-caption {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #67718a;
    font-size: 12px;
}

.doctor-profile-page-section .review-summary-caption .avg-stars {
    display: flex;
    gap: 3px;
    font-size: 14px;
    color: #f1a82e;
}

.doctor-profile-page-section .review-rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doctor-profile-page-section .review-rating-criterion {
    min-width: 0;
}

.doctor-profile-page-section .review-rating-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.7;
}

.doctor-profile-page-section .review-rating-label > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.doctor-profile-page-section .review-rating-value {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    flex: none;
    color: #4b3a76;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.doctor-profile-page-section .review-rating-value .doctor-ui-icon {
    font-size: 11px;
    color: #f1a82e;
}

.doctor-profile-page-section .review-rating-track {
    height: 7px;
    width: 100%;
    background: #e9e4f5;
    border-radius: 999px;
    overflow: hidden;
    direction: rtl;
}

.doctor-profile-page-section .review-rating-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a18af0, var(--review-purple-deep));
}

.doctor-profile-page-section .review-summary-insights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e9e5f2;
}

.doctor-profile-page-section .review-summary-insight {
    flex: 1 1 145px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
    font-size: 12px;
    color: #737b91;
}

.doctor-profile-page-section .review-summary-insight + .review-summary-insight {
    border-right: 1px solid #e4deef;
}

.doctor-profile-page-section .review-summary-insight .doctor-ui-icon {
    font-size: 16px;
    color: var(--review-purple);
}

.doctor-profile-page-section .review-summary-insight strong {
    font-size: 17px;
    line-height: 1.4;
    color: #302551;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 575px) {
    .doctor-profile-page-section .review-summary-detailed {
        padding: 17px 15px;
        gap: 16px;
    }

    .doctor-profile-page-section .review-summary-heading .avg-score {
        font-size: 32px;
    }

    .doctor-profile-page-section .review-summary-insight {
        flex-basis: 115px;
    }
}
