/* ===== Everstride product reviews widget (Loox lookalike) ===== */

.ev-reviews {
  max-width: 1200px;
  margin: 64px auto 32px;
  padding: 0 24px;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111;
}

.ev-reviews__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 32px;
  border-bottom: 1px solid #eee;
  margin-bottom: 32px;
  text-align: center;
}

.ev-reviews__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.01em;
}

.ev-reviews__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.ev-reviews__stars {
  display: inline-flex;
  font-size: 22px;
  letter-spacing: 2px;
  color: #EBBF20;
}

.ev-reviews__avg {
  font-size: 22px;
  font-weight: 700;
}

.ev-reviews__count {
  font-size: 14px;
  color: #555;
}

.ev-reviews__distribution {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 360px;
}

.ev-reviews__dist-row {
  display: grid;
  grid-template-columns: 24px 1fr 40px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #555;
}

.ev-reviews__dist-bar {
  height: 6px;
  background: #f3f3f3;
  border-radius: 3px;
  overflow: hidden;
}

.ev-reviews__dist-fill {
  height: 100%;
  background: #EBBF20;
  border-radius: 3px;
}

.ev-reviews__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: center;
}

.ev-reviews__filter {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}

.ev-reviews__filter:hover { background: #f7f7f7; }
.ev-reviews__filter[aria-pressed="true"] {
  background: #111;
  color: #fff;
  border-color: #111;
}

.ev-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.ev-review {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ev-review__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.ev-review__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ev-review__author-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.ev-review__author-verified {
  font-size: 11px;
  color: #2a9d44;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ev-review__date {
  font-size: 11px;
  color: #999;
  white-space: nowrap;
}

.ev-review__stars {
  color: #EBBF20;
  font-size: 14px;
  letter-spacing: 1px;
}

.ev-review__variant {
  font-size: 11px;
  color: #666;
  background: #f7f7f7;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.ev-review__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.ev-review__body {
  font-size: 13px;
  line-height: 1.55;
  color: #333;
  margin: 0;
}

.ev-review__photos {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ev-review__photo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  background: #f3f3f3;
}

.ev-reviews__loadmore {
  display: block;
  margin: 32px auto 0;
  padding: 14px 32px;
  background: transparent;
  color: #111;
  border: 1.5px solid #111;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
  transition: all .2s;
}

.ev-reviews__loadmore:hover { background: #111; color: #fff; }

@media (max-width: 600px) {
  .ev-reviews { margin-top: 32px; padding: 0 16px; }
  .ev-reviews__title { font-size: 22px; }
  .ev-reviews__grid { grid-template-columns: 1fr; }
}

/* Hide the original empty Loox container if it shipped */
#looxReviews:empty,
#looxReviewsFrame[height="0"] {
  display: none !important;
}
