@layer components {
  .overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 0;
    margin-bottom: 0.5rem;
  }

  .overall-rating__title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
  }

  .overall-rating__stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .overall-rating__option {
    position: relative;
  }

  .overall-rating__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }

  .overall-rating__star {
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
    line-height: 1;
    color: #e5e7eb;
    transition: color 75ms ease;
  }

  .overall-rating__star--active {
    color: #facc15;
  }

  .overall-rating__feedback {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    height: 1.5rem;
    letter-spacing: 0.025em;
  }

  .rating-expand {
    margin: 0.25rem 0;
  }

  .rating-expand__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
    list-style: none;
    margin-bottom: 0.5rem;
    transition: color 150ms ease;

    &:hover { color: #1f2937; }

    &::-webkit-details-marker { display: none; }
  }

  .rating-expand__label--less { display: none; }

  details[open] .rating-expand__label--more { display: none; }
  details[open] .rating-expand__label--less  { display: inline; }

  .rating-expand__content { margin-top: 0.25rem; }
}
