/* Rate My Post Plugin Styles */
/* Примечание: @font-face для 'ratemypost' определен в fonts-styles.ts */

.rmp-widgets-container {
  margin: 20px 0;
}

.rmp-rating-widget {
  text-align: center;
  padding: 20px;
}

.rmp-heading {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

.rmp-rating-widget__icons {
  margin: 15px 0;
}

.rmp-rating-widget__icons-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 5px;
}

.rmp-rating-widget__icons-list__icon {
  cursor: pointer;
  display: inline-block;
  margin: 0 2px;
}

.rmp-icon {
  font-family: 'ratemypost', sans-serif !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  width: 1em;
  height: 1em;
  color: #ddd;
  transition: color 0.2s ease;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

.rmp-icon--star::before {
  content: "\e900";
  display: block;
  font-family: 'ratemypost' !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: inherit;
}

.rmp-icon--full-highlight {
  color: #ff9800 !important;
}

.rmp-icon--full-highlight::before {
  color: #ff9800 !important;
}

.rmp-icon--half-highlight {
  color: #ddd;
  position: relative;
}

.rmp-icon--half-highlight::after {
  content: "\e900";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  color: #ff9800;
  font-family: 'ratemypost' !important;
  font-style: normal !important;
  font-weight: normal !important;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.rmp-rating-widget__icons-list__icon:hover .rmp-icon,
.rmp-rating-widget__icons-list__icon.active .rmp-icon {
  color: #ff9800;
}

.rmp-rating-widget__submit-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.rmp-rating-widget__submit-btn:hover {
  background-color: #005a87;
}

.rmp-rating-widget__submit-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.rmp-rating-widget__results {
  margin-top: 15px;
  font-size: 14px;
  color: #666;
}

.rmp-rating-widget__results--hidden {
  display: none;
}

.rmp-rating-widget__hover-text {
  margin: 10px 0;
  min-height: 20px;
  font-size: 14px;
  color: #666;
}

.rmp-rating-widget__msg {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
}

.rmp-rating-widget__msg.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.rmp-rating-widget__msg.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.rmp-rating-widget__not-rated {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.rmp-rating-widget__not-rated--hidden {
  display: none;
}

