.asfan-review-comment-widget,
.asfan-review-comment-widget * {
  box-sizing: border-box;
}

.asfan-review-comment-widget {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1280px;
  margin: 40px auto;
  padding: 26px;
  border: 1px solid rgba(125, 92, 255, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(106, 92, 255, 0.07) 0%, transparent 28%),
    radial-gradient(circle at top right, rgba(184, 76, 255, 0.06) 0%, transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 249, 255, 0.96) 100%);
  color: #111827;
  box-shadow:
    0 14px 40px rgba(17, 24, 39, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.asfan-review-comment-widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  width: 140px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5f6fff 0%, #8b5cf6 55%, #b84cff 100%);
}

.asfan-review-comment-widget h2 {
  margin: 10px 0 10px;
  font-size: 28px;
  line-height: 1.2;
  color: #121a33;
}

.asfan-review-comment-intro {
  margin: 0 0 22px;
  color: #5f6c89;
  line-height: 1.7;
}

.asfan-review-comment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.asfan-review-comment-summary-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 92, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(106, 92, 255, 0.06) 0%, rgba(177, 76, 255, 0.03) 100%);
  box-shadow:
    0 8px 22px rgba(17, 24, 39, 0.035),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.asfan-review-comment-summary-card strong {
  display: block;
  font-size: 30px;
  margin-bottom: 6px;
  color: #16203b;
}

.asfan-review-comment-summary-card span {
  color: #66728f;
  font-size: 14px;
}

.asfan-review-comment-form-wrap {
  border: 1px solid rgba(125, 92, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 255, 0.95) 100%);
  box-shadow:
    0 10px 24px rgba(20, 24, 44, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.asfan-review-comment-form-wrap h3 {
  margin: 0 0 14px;
  font-size: 22px;
  color: #121a33;
}

.asfan-review-comment-form {
  display: grid;
  gap: 14px;
}

.asfan-review-comment-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.asfan-review-comment-form input,
.asfan-review-comment-form select,
.asfan-review-comment-form textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(125, 92, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  color: #16203b;
  outline: none;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease,
    background 0.22s ease;
}

.asfan-review-comment-form input::placeholder,
.asfan-review-comment-form textarea::placeholder {
  color: #7a849d;
}

.asfan-review-comment-form input:focus,
.asfan-review-comment-form select:focus,
.asfan-review-comment-form textarea:focus {
  border-color: rgba(124, 92, 255, 0.48);
  box-shadow:
    0 0 0 4px rgba(124, 92, 255, 0.10),
    0 8px 20px rgba(106, 92, 255, 0.05);
  background: #ffffff;
  transform: translateY(-1px);
}

.asfan-review-comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.asfan-review-comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.asfan-review-comment-btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 13px 22px;
  background: linear-gradient(135deg, #5f6fff 0%, #8b5cf6 55%, #b84cff 100%);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15px;
  box-shadow:
    0 12px 26px rgba(106, 92, 255, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.asfan-review-comment-note {
  font-size: 14px;
  color: #697592;
}

.asfan-review-comment-message {
  min-height: 22px;
  font-size: 14px;
  font-weight: 600;
}

.asfan-review-comment-message.is-success {
  color: #15803d;
}

.asfan-review-comment-message.is-error {
  color: #b91c1c;
}

.asfan-review-comment-list-title {
  margin: 0 0 14px;
  font-size: 22px;
  color: #121a33;
}

.asfan-review-comment-list {
  display: grid;
  gap: 14px;
}

.asfan-review-comment-item {
  border: 1px solid rgba(125, 92, 255, 0.11);
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 249, 255, 0.93) 100%);
  box-shadow:
    0 8px 20px rgba(17, 24, 39, 0.03),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.asfan-review-comment-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.asfan-review-comment-item-name {
  font-weight: 700;
  font-size: 16px;
  color: #16203b;
}

.asfan-review-comment-item-date {
  color: #73809c;
  font-size: 13px;
  margin-bottom: 10px;
}

.asfan-review-comment-item-text {
  line-height: 1.75;
  color: #3d4a67;
}

.asfan-review-comment-empty {
  border: 1px dashed rgba(125, 92, 255, 0.18);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  color: #6d7892;
  background:
    linear-gradient(135deg, rgba(106, 92, 255, 0.03) 0%, rgba(184, 76, 255, 0.025) 100%);
}

.asfan-review-comment-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.asfan-review-comment-stars svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 18px;
}

.asfan-review-comment-stars .is-filled {
  fill: #f4b740;
  stroke: #f4b740;
  filter: drop-shadow(0 1px 2px rgba(244, 183, 64, 0.18));
}

.asfan-review-comment-stars .is-empty {
  fill: rgba(255, 255, 255, 0.9);
  stroke: rgba(180, 146, 56, 0.45);
}

@media (max-width: 900px) {
  .asfan-review-comment-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .asfan-review-comment-row {
    grid-template-columns: 1fr;
  }

  .asfan-review-comment-widget {
    padding: 18px;
  }

  .asfan-review-comment-widget h2 {
    font-size: 24px;
  }

  .asfan-review-comment-list-title,
  .asfan-review-comment-form-wrap h3 {
    font-size: 20px;
  }
}
.asfan-review-comment-widget-ar {
  direction: rtl;
  text-align: right;
}

.asfan-review-comment-widget-ar::before {
  left: auto;
  right: 26px;
}

.asfan-review-comment-widget-ar h2,
.asfan-review-comment-widget-ar h3,
.asfan-review-comment-widget-ar p,
.asfan-review-comment-widget-ar span,
.asfan-review-comment-widget-ar div {
  text-align: right;
}

.asfan-review-comment-widget-ar .asfan-review-comment-form input,
.asfan-review-comment-widget-ar .asfan-review-comment-form textarea,
.asfan-review-comment-widget-ar .asfan-review-comment-form select {
  text-align: right;
}

.asfan-review-comment-widget-ar .asfan-review-comment-item-top {
  flex-direction: row-reverse;
}

.asfan-review-comment-widget-ar .asfan-review-comment-actions {
  justify-content: flex-start;
}

.asfan-review-comment-widget-ar .asfan-review-comment-stars {
  direction: ltr;
}

.asfan-review-comment-widget-ar .asfan-review-comment-item-date {
  text-align: right;
}

.asfan-review-comment-widget-ar .asfan-review-comment-item-text {
  text-align: right;
}

@media (max-width: 700px) {
  .asfan-review-comment-widget-ar::before {
    right: 18px;
  }
}