
/* =========================================
   SITE REVIEWS – FORM + REVIEWS (FULL STYLE)
   Compatible with Flatsome + Site Reviews
   Desktop: 720px
   Mobile: 400px
   ========================================= */

/* ---------- GLOBAL WRAPPER (DESKTOP DEFAULT) ---------- */
.glsr,
.glsr-form-wrap,
.glsr-reviews-wrap {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- GLOBAL WRAPPER (MOBILE OVERRIDE) ---------- */
@media (max-width: 768px) {
  .glsr,
  .glsr-form-wrap,
  .glsr-reviews-wrap {
    max-width: 400px;
  }
}

/* ---------- FORM CARD ---------- */
.glsr-form {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 20px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  margin-bottom: 40px;
}

/* ---------- LABELS ---------- */
.glsr-form label {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 6px;
  display: block;
}

/* ---------- INPUTS ---------- */
.glsr-form input[type="text"],
.glsr-form input[type="email"],
.glsr-form textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #ddd;
  padding: 12px 16px;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
}

.glsr-form textarea {
  border-radius: 14px;
  min-height: 90px;
}

/* ---------- STAR RATING (FORM SPACING) ---------- */
.glsr-rating-stars,
.glsr-field-rating {
  margin-bottom: 14px;
}

/* ---------- SUBMIT BUTTON ---------- */
.glsr-form button[type="submit"] {
  background: #3b1e1e;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.glsr-form button[type="submit"]:hover {
  opacity: 0.9;
}

/* ---------- TERMS / CONSENT ROW ---------- */
.glsr-field-terms label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.glsr-field-terms label span,
.glsr-field-terms label .glsr-label-text {
  position: relative !important;
  top: -3px !important;
  font-size: 13px;
  color: #333;
}

/* ---------- REVIEWS LIST ---------- */
.glsr-review {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 18px 74px;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

/* ---------- AVATAR ---------- */
.glsr-review::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #3b1e1e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  z-index: 1;
}

/* ---------- MOBILE AVATAR ---------- */
@media (max-width: 768px) {
  .glsr-review {
    padding: 18px 18px 18px 70px;
  }

  .glsr-review::before {
    top: 16px;
    left: 16px;
  }
}

/* ---------- AUTHOR ---------- */
.glsr-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.glsr-review-avatar,
.glsr-review-avatar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #3b1e1e;
  object-fit: cover;
}

.glsr-review-author-name,
.glsr-review-name,
.glsr-review .glsr-author {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
}

/* ---------- REVIEW TITLE ---------- */
.glsr-review-title,
.glsr-review h3,
.glsr-review h4 {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

/* =========================================
   REVIEW META LAYOUT
   Force stars + date on same row
   ========================================= */
.glsr-review .glsr-review-rating,
.glsr-review .glsr-rating,
.glsr-review .glsr-stars,
.glsr-review .glsr-review-date,
.glsr-review .glsr-date {
  display: inline-block !important;
  vertical-align: middle !important;
}

.glsr-review .glsr-review-rating,
.glsr-review .glsr-rating,
.glsr-review .glsr-stars {
  margin: 0 10px 10px 0 !important;
  line-height: 1 !important;
}

.glsr-review .glsr-review-date,
.glsr-review .glsr-date {
  margin: 0 0 10px 0 !important;
  font-size: 12px;
  color: #888;
  position: relative;
  top: -1px;
}

/* ---------- STAR ICONS ---------- */
.glsr-review-rating .glsr-star,
.glsr-review .glsr-rating .glsr-star,
.glsr-review .glsr-stars .glsr-star,
.glsr .glsr-stars svg,
.glsr .glsr-rating svg,
.glsr-review-rating svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  vertical-align: middle !important;
}

/* ---------- STAR COLOR ---------- */
.glsr-review-rating .glsr-star,
.glsr-review .glsr-rating .glsr-star,
.glsr-review .glsr-stars .glsr-star,
.glsr .glsr-stars svg,
.glsr .glsr-rating svg,
.glsr-review-rating svg {
  fill: #f4b000 !important;
  stroke: #f4b000 !important;
  color: #f4b000 !important;
}

/* ---------- FORM STARS ---------- */
.glsr-form .glsr-field-rating,
.glsr-form .glsr-rating,
.glsr-form .glsr-stars {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

.glsr-form .glsr-stars label {
  display: inline-block !important;
  cursor: pointer !important;
  margin-right: 6px;
}

.glsr-form .glsr-stars svg,
.glsr-form .glsr-rating svg {
  width: 18px !important;
  height: 18px !important;
  display: inline-block !important;
  fill: #f4b000 !important;
  stroke: #f4b000 !important;
  color: #f4b000 !important;
}

/* ---------- REVIEW TEXT ---------- */
.glsr-review-content,
.glsr-review-text,
.glsr-review .glsr-content {
  font-size: 14px;
  line-height: 1.45;
  color: #333;
  margin-bottom: 10px;
}

/* ---------- DATE ---------- */
.glsr-review-date,
.glsr-review .glsr-date {
  font-size: 12px;
  color: #888;
}

/* ---------- SAFETY FIXES ---------- */
.glsr-review * {
  overflow: visible;
}

.glsr-review .glsr-star-empty,
.glsr-review .glsr-star-full,
.glsr-review .glsr-star-half {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* =========================================
   FORCE RATING + DATE INLINE EVEN IF PLUGIN
   USES BLOCK ELEMENTS
   ========================================= */
.glsr-review .glsr-review-rating + .glsr-review-date,
.glsr-review .glsr-rating + .glsr-date,
.glsr-review .glsr-stars + .glsr-date,
.glsr-review .glsr-stars + .glsr-review-date,
.glsr-review .glsr-review-rating + .glsr-date,
.glsr-review .glsr-rating + .glsr-review-date {
  display: inline-block !important;
}

/* ---------- SMALL MOBILE TWEAK ---------- */
@media (max-width: 768px) {
  .glsr-review .glsr-review-rating,
  .glsr-review .glsr-rating,
  .glsr-review .glsr-stars {
    margin-right: 8px !important;
  }
}