@font-face {
    font-family: "jlil";
    src: url('../fonts/jlil.eot?t=1755940621051'); /* IE9*/
    src: url('../fonts/jlil.eot?t=1755940621051#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url("../fonts/jlil.woff2?t=1755940621051") format("woff2"),
    url("../fonts/jlil.woff?t=1755940621051") format("woff"),
    url('../fonts/jlil.ttf?t=1755940621051') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
    url('../fonts/jlil.svg?t=1755940621051#jlil') format('svg'); /* iOS 4.1- */
    font-display: swap;
}

[class^="ri-"], [class*="ri-"],
.wp-soft-star-rating label::after,
.wp-soft-star-full::before,
.wp-soft-star::before{
    font-family: 'jlil' !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ri-star-fill:before { content: "\f186"; }
.ri-star-line:before { content: "\f18b"; }

/* .wp-soft-star-rating{
  display: flex;
} */

.wp-soft-star-rating input {
  display: none;
}

.wp-soft-star-rating label {
  color: #CCCCCC;
  font-size: 23px;
  margin: 0 3px;
}

.wp-soft-star-rating label::after {
  content: "\f18b";
}
.wp-soft-star-rating label:hover{
    color: #CCCCCC;
}
.wp-soft-star-rating label:hover::after,
.wp-soft-star-rating label:hover ~ label::after,
.wp-soft-star-rating input:checked ~ label::after {
    content: "\f186";
  color: #FFD700;
}

/**
 * WP Soft Rating Styles
 */

/* Main container */
.wp-soft-rating-container {

}

.wp-soft-rating-container h3 {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.25em;
  color: #333;
}

/* Rating summary */
.wp-soft-rating-summary {
  display: flex;
  align-items: center;
  margin-bottom: 1.5em;
}

.wp-soft-rating-average {
  font-size: 1.5em;
  font-weight: bold;
  margin-right: 1em;
}

.wp-soft-rating-value {
  color: #333;
}

.wp-soft-rating-count {
  margin-left: 1em;
  color: #666;
  font-size: 0.9em;
}

/* Star styles */
.wp-soft-stars {
  display: inline-flex;
  align-items: center;
}

.wp-soft-star {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 2px;
  position: relative;
}

.wp-soft-star::before {
  content: "\f18b";
}

.wp-soft-star-full::before {
  content: '\f186';
}

.wp-soft-star-half::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='var(--star-color, %23FFD700)' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z'/%3E%3C/svg%3E");
  clip-path: inset(0 50% 0 0);
}

.wp-soft-star-half::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D3D3D3' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z'/%3E%3C/svg%3E");
  clip-path: inset(0 0 0 50%);
}

/* User rating form */
.wp-soft-rating-form {
  margin: 1.5em 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.wp-soft-rating-prompt {
  margin-right: 1em;
  font-weight: bold;
}
.wp-soft-star-rating {
  display: inline-flex;
  flex-direction: row-reverse; /* لاتجاه الكتابة من اليمين لليسار */
  position: relative;
}

.rtl .wp-soft-star-rating {
  /* flex-direction: row; */
}
.wp-soft-rating-message {
  width: 100%;
  margin-top: 0.5em;
  font-size: 0.9em;
}

.wp-soft-rating-success {
  color: #4caf50;
}

.wp-soft-rating-error {
  color: #f44336;
}

.wp-soft-rating-submitting {
  opacity: 0.7;
  pointer-events: none;
}

/* Rating details */
.wp-soft-rating-toggle {
  display: block;
  margin: 1em 0;
  padding: 0.5em 1em;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  color: #555;
  text-align: center;
}

.wp-soft-rating-details {
  display: none;
  margin-top: 1.5em;
  border-top: 1px solid #eee;
  padding-top: 1.5em;
}

.wp-soft-rating-details-visible {
  display: block;
}

.wp-soft-rating-details h4 {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.1em;
  color: #333;
}

.wp-soft-rating-bar-container {
  display: flex;
  align-items: center;
  margin-bottom: 0.5em;
}

.wp-soft-rating-star-label {
  width: 60px;
  text-align: right;
  margin-right: 1em;
  font-size: 0.9em;
}

.wp-soft-rating-progress-bar {
  flex-grow: 1;
  height: 16px;
  background-color: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
  margin-right: 1em;
}

.wp-soft-rating-progress {
  height: 100%;
  min-width: 4px;
  transition: width 0.3s ease;
}

.wp-soft-rating-percentage {
  width: 40px;
  text-align: right;
  font-size: 0.9em;
  font-weight: bold;
  margin-right: 1em;
}

.wp-soft-rating-count-detail {
  width: 40px;
  text-align: right;
  font-size: 0.85em;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .wp-soft-rating-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .wp-soft-rating-average {
    margin-bottom: 0.5em;
  }

  .wp-soft-rating-count {
    margin-left: 0;
    margin-top: 0.5em;
  }

  .wp-soft-rating-form {
    flex-direction: column;
    align-items: flex-start;
  }

  .wp-soft-rating-prompt {
    margin-bottom: 0.5em;
  }

  .wp-soft-rating-bar-container {
    flex-wrap: wrap;
  }

  .wp-soft-rating-star-label {
    width: 50px;
    font-size: 0.8em;
  }
}

