.doctor-card__rating-stars {
  position: relative;
  width: 110px;
  height: 22px;
  background: url(/icons/star-gray.svg) repeat-x 0 0/22px 22px;
}

.doctor-card__rating-stars-value {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: url(/icons/star-yellow.svg) repeat-x 0 0/22px 22px;
}

.doctor-card__rating-value {
  font-weight: 600;
  line-height: 1;
  color: #343a40;
}

.doctor-rate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.doctor-rate__label {
  font-weight: 600;
  color: #495057;
}

.doctor-rate__stars {
  display: flex;
  gap: 2px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.doctor-rate__star {
  display: inline-flex;
  padding: 3px;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.doctor-rate__star svg {
  width: 34px;
  height: 34px;
  fill: #fff;
  stroke: #c3c8d1;
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: fill 0.12s ease, stroke 0.12s ease, transform 0.12s ease;
}
.doctor-rate__star.is-on svg {
  fill: #ffd055;
  stroke: #f2b600;
  transform: scale(1.06);
}
.doctor-rate__star:focus-visible {
  outline: 2px solid #3b3f9c;
  outline-offset: 1px;
  border-radius: 6px;
}

.doctor-rate__hint {
  font-size: 0.8rem;
  color: #6c757d;
}

.doctor-rate__hint-touch {
  display: none;
}

@media (hover: none) {
  .doctor-rate__hint-mouse {
    display: none;
  }
  .doctor-rate__hint-touch {
    display: inline;
  }
}
.doctor-photo-card {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem 0.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20, 30, 80, 0.2);
  white-space: nowrap;
}
.doctor-photo-card .doctor-card__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e9ecf2;
}
.doctor-photo-card .doctor-rate {
  gap: 0;
}
.doctor-photo-card .doctor-rate__label {
  font-size: 0.85rem;
}
.doctor-photo-card .doctor-rate__star svg {
  width: 30px;
  height: 30px;
}
.doctor-photo-card .doctor-rate__hint {
  display: none;
}

.doctor-more__visible > .review-list {
  margin-bottom: 1.5rem !important;
}

.doctor-more__toggle {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 1rem;
}

.section > .resume-more__btn {
  margin: -0.5rem 0 1.25rem;
}

@media (max-width: 767.98px) {
  .doctor-photo-card {
    bottom: 12px;
    padding: 0.45rem 0.85rem 0.4rem;
  }
  .doctor-photo-card .doctor-card__rating-stars {
    width: 100px;
    height: 20px;
    background-size: 20px 20px;
  }
  .doctor-photo-card .doctor-card__rating-stars-value {
    background-size: 20px 20px;
  }
  .doctor-photo-card .doctor-rate__star svg {
    width: 34px;
    height: 34px;
  }
}
.doctor-rate__label-done,
.doctor-review-done {
  display: none;
}

html[data-doctor-reviewed] .doctor-rate__label-ask,
html[data-doctor-reviewed] .doctor-rate__hint,
html[data-doctor-reviewed] [data-doctor-review-open] {
  display: none !important;
}
html[data-doctor-reviewed] .doctor-rate__label-done {
  display: inline;
}
html[data-doctor-reviewed] .doctor-review-done {
  display: inline-block;
  font-weight: 600;
  color: #6c757d;
}
html[data-doctor-reviewed] .doctor-rate__stars {
  pointer-events: none;
}

html[data-doctor-reviewed="1"] .doctor-rate__star:nth-child(-n+1) svg {
  fill: #ffd055;
  stroke: #f2b600;
}

html[data-doctor-reviewed="2"] .doctor-rate__star:nth-child(-n+2) svg {
  fill: #ffd055;
  stroke: #f2b600;
}

html[data-doctor-reviewed="3"] .doctor-rate__star:nth-child(-n+3) svg {
  fill: #ffd055;
  stroke: #f2b600;
}

html[data-doctor-reviewed="4"] .doctor-rate__star:nth-child(-n+4) svg {
  fill: #ffd055;
  stroke: #f2b600;
}

html[data-doctor-reviewed="5"] .doctor-rate__star:nth-child(-n+5) svg {
  fill: #ffd055;
  stroke: #f2b600;
}
