@font-face {
    font-family: IRANSans;
    src: url("../../doctorPanel/assets/fonts/1-IranSansWeb/IRANSansWeb.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: IRANSans;
    src: url("../../doctorPanel/assets/fonts/1-IranSansWeb/IRANSansWeb_Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

.doctor-comments {
    container: doctor-comments / inline-size;
    min-width: 0;
    padding: 12px 20px 24px;
    scroll-margin-top: 24px;
    border-radius: 16px;
    background: #fff;
    color: #334155;
    font-family: IRANSans, YekanBakh-Regular, sans-serif;
}

.doctor-comments__title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
}

.doctor-comments__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.doctor-comments__summary {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr);
    gap: 20px 24px;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid #e5edff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fbff, #f3f7ff);
}

.doctor-comments__summary--simple {
    grid-template-columns: minmax(0, 1fr);
}

.doctor-comments__overall {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

.doctor-comments__summary-label,
.doctor-comments__review-count,
.doctor-comments__unrated {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 22px;
}

.doctor-comments__average {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 6px;
    color: #161e55;
}

.doctor-comments__average strong {
    font-size: 42px;
    font-weight: 700;
    line-height: 56px;
}

.doctor-comments__average > span {
    color: #94a3b8;
    font-size: 14px;
}

.doctor-comments__summary-stars {
    display: flex;
    gap: 3px;
    margin-block: 4px 8px;
}

.doctor-comments__summary-star {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    color: #dde5f1;
}

.doctor-comments__summary-star svg {
    display: block;
    width: 20px;
    height: 20px;
    max-width: none;
    fill: currentColor;
}

.doctor-comments__star-fill {
    position: absolute;
    inset: 0 0 0 auto;
    overflow: hidden;
    color: #ffb800;
}

.doctor-comments__star-fill svg {
    position: absolute;
    right: 0;
}

.doctor-comments__unrated {
    margin-top: 10px;
}

.doctor-comments__metrics {
    display: grid;
    align-content: center;
    gap: 20px;
    min-width: 0;
    padding-inline-start: 24px;
    border-inline-start: 1px solid #dce7f8;
}

.doctor-comments__metric-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    font-size: 13px;
    line-height: 22px;
}

.doctor-comments__metric-heading > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.doctor-comments__metric-value {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 4px;
    color: #161e55;
    font-weight: 700;
}

.doctor-comments__metric-value svg {
    width: 13px;
    height: 13px;
    fill: #ffb800;
}

.doctor-comments__metric-track {
    height: 6px;
    overflow: hidden;
    border-radius: 99px;
    background: #e1e9f6;
}

.doctor-comments__metric-track > span {
    display: block;
    height: 100%;
    margin-left: auto;
    border-radius: inherit;
    background: linear-gradient(90deg, #7b9cff, #3156ff);
}

.doctor-comments__recommendation {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid #e1e9f6;
    color: #0f766e;
    font-size: 12px;
    line-height: 24px;
}

.doctor-comments__recommendation svg {
    flex: none;
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .doctor-comments__summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding: 20px 16px;
    }

    .doctor-comments__metrics {
        padding-inline-start: 0;
        padding-top: 20px;
        border-inline-start: 0;
        border-top: 1px solid #dce7f8;
    }
}

@container doctor-comments (max-width: 560px) {
    .doctor-comments__summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding: 20px 16px;
    }

    .doctor-comments__metrics {
        padding-inline-start: 0;
        padding-top: 20px;
        border-inline-start: 0;
        border-top: 1px solid #dce7f8;
    }
}

.doctor-comments__list > li {
    min-width: 0;
}

.doctor-comments__card {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #edf2f8;
    border-radius: 10px;
    background: #fff;
}

.doctor-comments__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.doctor-comments__author {
    display: flex;
    flex: 1 1 180px;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}

.doctor-comments__avatar {
    flex: none;
    width: 24px;
    height: 26px;
    fill: #3156ff;
}

.doctor-comments__name {
    min-width: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 24px;
    overflow-wrap: anywhere;
}

.doctor-comments__rating {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 1px;
    color: #ffb800;
    font-size: 13px;
    line-height: 24px;
}

.doctor-comments__rating svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.doctor-comments__date {
    flex: none;
    margin-right: auto;
    color: #64748b;
    font-size: 12px;
    line-height: 24px;
    white-space: nowrap;
}

.doctor-comments__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.doctor-comments__badge {
    max-width: 100%;
    padding: 2px 10px;
    border-radius: 4px;
    background: #dce7ff;
    color: #3156ff;
    font-size: 14px;
    line-height: 24px;
    overflow-wrap: anywhere;
}

.doctor-comments__text {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 24px;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

@media (max-width: 480px) {
    .doctor-comments {
        padding-inline: 14px;
    }
}
