.review-compose-area { margin: 16px auto 24px; }
#viet-danh-gia > summary {
  display: flex; align-items: center; gap: 8px; width: fit-content; margin-inline: auto;
  padding: 10px 18px; border: 1px solid #9d4c24; border-radius: 24px;
  color: #803b1a; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none;
}
#viet-danh-gia > summary::-webkit-details-marker { display: none; }
#viet-danh-gia > summary:hover, #viet-danh-gia[open] > summary { background: #fff3e8; }
#course-review-form {
  display: grid; gap: 15px; max-width: 610px; margin: 16px auto 0;
  padding: clamp(14px, 3vw, 24px); border: 1px solid #e7ddd6; border-radius: 12px;
  background: #fffcf9;
}
.review-rating-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.review-rating-picker legend, .review-field { padding: 0; font-size: 16px; font-weight: 600; }
.review-rating-options { display: flex; align-items: center; flex-wrap: wrap; }
.review-rating-options label { display: grid; position: relative; width: 40px; height: 44px; place-items: center; cursor: pointer; }
.review-rating-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.review-rating-options label > span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 6px;
  font: 31px/1 Arial, sans-serif; color: #fff7ee; -webkit-text-stroke: 1.4px #8b705c;
}
.review-rating-options label:has(input:checked) > span,
.review-rating-options label:has(~ label input:checked) > span { color: #ad561a; -webkit-text-stroke-color: #ad561a; }
.review-rating-options input:focus-visible + span, #viet-danh-gia summary:focus-visible,
.review-field :is(input,textarea):focus-visible { outline: 3px solid #4945ce; outline-offset: 2px; }
.review-rating-options output { padding-inline: 5px; color: #7f4c28; font-size: 14px; }
.review-field { display: block; }
.review-field small { color: var(--copy); font-size: 14px; font-weight: 400; }
.review-field :is(input,textarea) {
  display: block; width: 100%; min-width: 0; margin-top: 5px; padding: 10px 12px;
  border: 1px solid #a7a6ac; border-radius: 8px; background: white; color: var(--ink);
  font: 400 16px/1.45 "Inter Tight", Arial, sans-serif;
}
.review-field textarea { resize: vertical; }
.review-publish-note, .review-form-error, #review-load-error, #review-sent { font-size: 14px; }
.review-form-error { color: #982c1c; }
#course-review-form .btn { justify-self: start; padding: 11px 22px; }
#course-review-form .btn:disabled { opacity: .65; cursor: wait; }
#review-sent, #review-load-error { margin: 10px 0 0; text-align: center; }
#review-sent { color: #236341; }
#review-sent:empty { display: none; }
#review-load-error button { border: 0; padding: 4px; background: none; text-decoration: underline; color: inherit; cursor: pointer; }
.review-footer:has(.review-empty[hidden]) { display: none; }
.review-panel:has(#review-load-error:not([hidden])) .review-empty { display: none; }
@media (max-width: 420px) {
  .review-rating-options label { width: min(40px, 18%); }
  #course-review-form .btn { justify-self: stretch; }
}
