/* File: modules/rating/assets/css/sg-seo-rating.css v1.2 */
.sg-seo-rating-wrapper {
  border: 1px solid #e0e0e0;
  padding: 15px;
  border-radius: 5px;
  margin: 20px 0;
  text-align: center;
}
.sg-seo-rating-title {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #333;
}
.sg-seo-rating-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* The direction property is no longer needed */
}
.sg-seo-rating-stars .star {
  width: 25px;
  height: 25px;
  margin: 0 3px;
  cursor: pointer;
  transition: transform 0.1s ease-in-out;
}
.sg-seo-rating-wrapper:not(.rated) .sg-seo-rating-stars .star:hover {
  transform: scale(1.1);
}
.sg-seo-rating-wrapper.rated .star {
  cursor: default;
}
.sg-seo-rating-message {
  margin-top: 10px;
  color: #777;
  min-height: 20px;
}
.sg-seo-rating-summary {
  font-size: 0.9em;
}

.sg-seo-rating-success-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
}

/* -- UX Improvements -- */
.sg-seo-rating-loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #333;
  border-radius: 50%;
  animation: sg-seo-rating-spin 0.8s ease-in-out infinite;
}

@keyframes sg-seo-rating-spin {
  to {
    transform: rotate(360deg);
  }
}

.sg-seo-rating-success {
  color: #227122; /* Dark Green */
}

.sg-seo-rating-error {
  color: #d63638; /* Dark Red */
}
