/*--------------------------------------------------------------
# WooCommerce Reviews Wall
--------------------------------------------------------------*/
.wpbce-rw-section {
  width: 100%;
  position: relative;
  padding: 20px 0;
  color: #101828;
}

.wpbce-rw-section,
.wpbce-rw-section * {
  box-sizing: border-box;
}

.wpbce-rw-intro {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.wpbce-rw-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 8px 22px;
  border: 1px solid rgba(211, 24, 36, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #d31824;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.wpbce-rw-badge i {
  font-size: 13px;
  line-height: 1;
}

.wpbce-rw-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.22em;
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.06;
  font-weight: 800;
}

.wpbce-rw-title span,
.wpbce-rw-title strong {
  display: inline-block;
}

.wpbce-rw-title strong {
  color: #d31824;
  font-weight: 800;
}

.wpbce-rw-title-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 12px;
  color: #d31824;
}

.wpbce-rw-title-line span {
  width: 92px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211, 24, 36, 0.62), transparent);
}

.wpbce-rw-title-line i {
  font-size: 12px;
  line-height: 1;
}

.wpbce-rw-description {
  max-width: 680px;
  margin: 0 auto;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.7;
}

.wpbce-rw-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 840px;
  margin: 0 auto 34px;
  padding: 16px 24px;
  border: 1px solid #eadfd0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.wpbce-rw-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 66px;
  border-right: 1px solid rgba(17, 24, 39, 0.1);
}

.wpbce-rw-stat:last-child {
  border-right: 0;
}

.wpbce-rw-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #d31824;
  background: rgba(211, 24, 36, 0.11);
  font-size: 22px;
}

.wpbce-rw-stat strong {
  display: block;
  color: #111827;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
}

.wpbce-rw-stat small {
  display: block;
  margin-top: 7px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.25;
}

.wpbce-rw-wall {
  display: block;
  position: relative;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.wpbce-rw-wall.is-masonry-ready {
  opacity: 1;
}

.wpbce-rw-card {
  display: block;
  position: absolute;
  width: 100%;
  margin: 0 0 16px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #e9edf3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  opacity: 1;
  transition: opacity 0.22s ease, top 0.28s ease, left 0.28s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wpbce-rw-card.is-masonry-pending {
  opacity: 0;
  pointer-events: none;
}

.wpbce-rw-card:hover {
  transform: translateY(-3px);
  border-color: #dce3ed;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.11);
}

.wpbce-rw-card.is-hidden {
  display: none;
}

.wpbce-rw-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.wpbce-rw-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wpbce-rw-author img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef1f5;
}

.wpbce-rw-author h3 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.wpbce-rw-author span {
  display: block;
  margin-top: 3px;
  color: #2f855a;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.wpbce-rw-card-head time {
  flex: 0 0 auto;
  color: #667085;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.wpbce-rw-stars {
  display: flex;
  gap: 2px;
  margin: 14px 0 14px;
  color: #f59e0b;
  font-size: 19px;
  line-height: 1;
}

.wpbce-rw-stars .is-empty {
  color: #d9dee7;
}

.wpbce-rw-review-text {
  margin: 0;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.55;
}

.wpbce-rw-featured-image {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #f3f4f6;
  cursor: zoom-in;
}

.wpbce-rw-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.wpbce-rw-featured-image:hover img {
  transform: scale(1.025);
}

.wpbce-rw-product {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e8edf3;
  color: inherit;
  text-decoration: none;
}

.wpbce-rw-product img {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border-radius: 6px;
  object-fit: cover;
  background: #f3f4f6;
}

.wpbce-rw-product span {
  display: block;
  min-width: 0;
}

.wpbce-rw-product strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  text-overflow: ellipsis;
}

.wpbce-rw-product em {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 8px;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 800;
}

.wpbce-rw-product em .woocommerce-Price-amount,
.wpbce-rw-product em bdi {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  white-space: nowrap;
}

.wpbce-rw-product del {
  color: #98a2b3;
  font-weight: 500;
  white-space: nowrap;
}

.wpbce-rw-product ins {
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
}

.wpbce-rw-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

button[type=button].wpbce-rw-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 320px;
  min-height: 54px;
  padding: 13px 28px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

button[type=button].wpbce-rw-load-more:hover,
button[type=button].wpbce-rw-load-more:focus {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  outline: none;
}

button[type=button].wpbce-rw-load-more i {
  color: #111827;
  font-size: 18px;
  line-height: 1;
}

button[type=button].wpbce-rw-load-more.is-loading i {
  animation: wpbce-rw-spin 0.8s linear infinite;
}

button[type=button].wpbce-rw-load-more:disabled {
  cursor: wait;
  opacity: 0.72;
}

@keyframes wpbce-rw-spin {
  to {
    transform: rotate(360deg);
  }
}

.wpbce-rw-modal-open {
  overflow: hidden;
}

.wpbce-rw-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.wpbce-rw-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wpbce-rw-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(5px);
}

.wpbce-rw-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(960px, 94vw);
  min-height: 240px;
  max-height: 88vh;
  transform: translateY(14px) scale(0.96);
  opacity: 0;
  transition: transform 0.26s ease, opacity 0.26s ease;
}

.wpbce-rw-modal.is-open .wpbce-rw-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.wpbce-rw-modal-image {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.wpbce-rw-modal.is-loading .wpbce-rw-modal-image {
  display: none;
}

.wpbce-rw-modal-loader {
  display: none;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
}

.wpbce-rw-modal.is-loading .wpbce-rw-modal-loader {
  display: flex;
}

.wpbce-rw-modal-loader i {
  animation: wpbce-rw-spin 0.8s linear infinite;
}

.wpbce-rw-modal-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #111827;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.wpbce-rw-empty,
.wpbce-rw-notice {
  padding: 24px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  text-align: center;
}

@media (max-width: 1024px) {
  .wpbce-rw-stats {
    border-radius: 24px;
  }
}

@media (max-width: 767px) {
  .wpbce-rw-section {
    padding: 8px 0;
  }

  .wpbce-rw-intro {
    margin-bottom: 24px;
  }

  .wpbce-rw-title {
    font-size: 36px;
  }

  .wpbce-rw-description {
    font-size: 15px;
  }

  .wpbce-rw-card {
    margin-bottom: 12px;
    padding: 16px;
  }

  .wpbce-rw-stats {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 20px;
  }

  .wpbce-rw-stat {
    justify-content: flex-start;
    min-height: 58px;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid #eadfce;
  }

  .wpbce-rw-stat:last-child {
    border-bottom: 0;
  }

  .wpbce-rw-card-head {
    gap: 10px;
  }

  .wpbce-rw-author img {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .wpbce-rw-card-head time {
    font-size: 11px;
  }

  button[type=button].wpbce-rw-load-more {
    width: 100%;
    min-width: 0;
  }

  .wpbce-rw-modal {
    padding: 14px;
  }

  .wpbce-rw-modal-close {
    top: 10px;
    right: 10px;
  }
}
