/* ECO BOOM Reviews — standalone form page + PDP section + lightbox.
   Brand: Catamaran, navy #0a1e33, orange #e46a4b, flat, 4px radius. */

/* ---------- Standalone form page ---------- */

.ebr-page {
  margin: 0;
  font-family: 'Catamaran', Helvetica, Arial, sans-serif;
  color: #0a1e33;
  background: #f7f9fa;
}
.ebr-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px 8px;
}
.ebr-main { max-width: 560px; margin: 0 auto; padding: 8px 16px 40px; }
.ebr-title { font-size: 26px; font-weight: 800; text-align: center; margin: 8px 0 4px; }
.ebr-sub { text-align: center; color: rgba(10,30,51,.65); margin: 0 0 20px; font-size: 15px; line-height: 1.5; }
.ebr-foot { text-align: center; padding: 20px; color: rgba(10,30,51,.5); font-size: 13px; }
.ebr-foot a { color: inherit; }

.ebr-card {
  background: #fff;
  border: 1px solid #d7dbe0;
  border-radius: 4px;
  padding: 20px;
  margin: 0 0 16px;
}
.ebr-center { text-align: center; }
.ebr-center h1 { font-size: 24px; font-weight: 800; margin: 0 0 8px; }

.ebr-product { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.ebr-product img { border-radius: 4px; object-fit: cover; }
.ebr-product strong { font-size: 16px; }

.ebr-stars { display: flex; gap: 4px; margin: 0 0 14px; }
.ebr-star {
  border: 0;
  background: none;
  font-size: 34px;
  line-height: 1;
  padding: 2px;
  cursor: pointer;
  color: #d7dbe0;
  transition: color .1s ease, transform .1s ease;
}
.ebr-star.is-on { color: #e46a4b; }
.ebr-star:active { transform: scale(1.15); }

.ebr-form textarea,
.ebr-form input[type="text"],
.ebr-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1px solid #dfe7e8;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  color: #0a1e33;
  margin: 0 0 12px;
  background: #fff;
}
.ebr-form textarea:focus,
.ebr-form input:focus { outline: none; border-color: #e46a4b; }
.ebr-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ebr-row input { flex: 1 1 180px; }

.ebr-photos { margin: 2px 0 14px; }
.ebr-photos__btn {
  display: inline-block;
  padding: 10px 16px;
  border: 1px dashed #b9c2cc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(10,30,51,.75);
}
.ebr-photos__previews { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ebr-photos__previews img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; border: 1px solid #d7dbe0; }

.ebr-hp { position: absolute !important; left: -9999px !important; }

.ebr-btn {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 14px 22px;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease;
}
.ebr-btn--orange { background: #e46a4b !important; color: #fff !important; }
.ebr-btn--orange:hover { background: #d15c3f; }
.ebr-btn--dark { background: #0a1e33 !important; color: #fff !important; width: auto; padding: 12px 26px; }
.ebr-btn--dark:hover { background: #1c3a5e; }
.ebr-btn:disabled { opacity: .6; cursor: default; }

.ebr-msg { margin: 12px 0 0; font-size: 15px; min-height: 1em; }
.ebr-msg:empty { display: none; margin: 0; min-height: 0; }
.ebr-msg.is-err { color: #c0392b; }
.ebr-msg.is-ok { color: #2e9e5b; font-weight: 700; font-size: 17px; }
.ebr-muted { color: rgba(10,30,51,.5); font-size: 12px; }
.ebr-consent { margin: 10px 0 0; line-height: 1.5; }

/* ---------- PDP section ---------- */

#ebr-reviews {
  max-width: 1140px;
  margin: 80px auto 48px;
  padding: 0 20px;
  font-family: 'Catamaran', Helvetica, Arial, sans-serif;
  color: #0a1e33;
}
#ebr-reviews * { box-sizing: border-box; }
.ebr-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 20px; }
.ebr-sec-head h2 { font-size: 26px; font-weight: 800; margin: 0; }
.ebr-sec-head .ebr-btn--dark { width: auto; }

.ebr-summary {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  border: 1px solid #d7dbe0;
  border-radius: 4px;
  padding: 20px 24px;
  margin: 0 0 20px;
}
.ebr-avg { text-align: center; }
.ebr-avg__num { font-size: 44px; font-weight: 800; line-height: 1; }
.ebr-avg__stars { color: #e46a4b; font-size: 20px; letter-spacing: 2px; }
.ebr-avg__stars .off { color: #d7dbe0; }
.ebr-avg__count { color: rgba(10,30,51,.55); font-size: 13px; margin-top: 4px; }

.ebr-hist { flex: 1 1 260px; min-width: 240px; }
.ebr-hist__row { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.ebr-hist__row:hover, .ebr-hist__row.is-active { background: #f2f5f7; }
.ebr-hist__label { width: 34px; font-size: 13px; white-space: nowrap; }
.ebr-hist__bar { display: block; flex: 1; height: 8px; background: #edf0f3; border-radius: 4px; overflow: hidden; }
.ebr-hist__fill { display: block; height: 100%; background: #e46a4b; border-radius: 4px; }
.ebr-hist__n { width: 28px; text-align: right; font-size: 13px; color: rgba(10,30,51,.55); }

.ebr-list { display: flex; flex-direction: column; gap: 12px; }
.ebr-review {
  background: #fff;
  border: 1px solid #d7dbe0;
  border-radius: 4px;
  padding: 18px 20px;
}
.ebr-review__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; }
.ebr-review__stars { color: #e46a4b; letter-spacing: 2px; font-size: 16px; }
.ebr-review__stars .off { color: #d7dbe0; }
.ebr-review__author { font-weight: 700; }
.ebr-review__date { color: rgba(10,30,51,.45); font-size: 13px; }
.ebr-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #2e9e5b;
  background: #e9f6ef;
  padding: 2px 10px;
  border-radius: 4px;
}
.ebr-review__text { margin: 4px 0 0; font-size: 15px; line-height: 1.6; }
.ebr-review__photos { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ebr-photo img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; border: 1px solid #d7dbe0; display: block; }

.ebr-empty { text-align: center; padding: 36px 20px; background: #fff; border: 1px dashed #b9c2cc; border-radius: 4px; }
.ebr-empty p { margin: 0 0 14px; color: rgba(10,30,51,.65); }

.ebr-more { display: block; margin: 18px auto 0; width: auto; background: #fff !important; color: #0a1e33 !important; border: 2px solid #0a1e33; padding: 11px 26px; }
.ebr-more:hover { background: #0a1e33 !important; color: #fff !important; }

/* ---------- Lightbox ---------- */

.ebr-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,30,51,.85);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.ebr-lightbox.is-open { display: flex; }
.ebr-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 4px; }
.ebr-lightbox button {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .ebr-summary { gap: 18px; }
  .ebr-sec-head h2 { font-size: 22px; }
}
