/* star-rating.css — Accessible star rating system (half-stars, up to 10) */
.star-rating-fieldset {
  display: flex;
  gap: 2px;
  border: none;
  margin: 0;
  padding: 0;
  background: none;
  align-items: center;
}
.star-rating-star {
  background: none;
  border: none;
  padding: 0 2px;
  margin: 0;
  cursor: pointer;
  color: #eab308;
  font-size: 0;
  transition: transform 0.12s;
  outline: none;
  position: relative;
}
.star-rating-star:focus-visible {
  outline: 2px solid #eab308;
  outline-offset: 2px;
  z-index: var(--z-content);
}
.star-rating-star[aria-checked="true"] .star-icon {
  filter: drop-shadow(0 0 2px #eab30888);
}
.star-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

/* Modal overlay for rating popup */
.star-rating-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.18s;
}
.star-rating-modal {
  background: #232323;
  border-radius: 14px;
  box-shadow: 0 6px 32px #000b;
  padding: 32px 28px 24px 28px;
  min-width: 320px;
  max-width: 90vw;
  text-align: center;
  color: #fff;
  position: relative;
}
.star-rating-modal .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 22px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  transition: background 0.15s;
}
.star-rating-modal .close-btn:hover {
  background: #333;
  color: #fff;
}
.star-rating-modal h2 {
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.star-rating-modal .star-rating-fieldset {
  margin-bottom: 18px;
}
.star-rating-modal .rating-value {
  font-size: 1.1rem;
  color: #eab308;
  margin-top: 8px;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
