/* ==========================================================================
   ELOVA CUSTOMER REVIEWS & HOMEPAGE CAROUSEL STYLES
   ========================================================================== */

/* ── MY ACCOUNT / VIEW ORDER REVIEW SECTION ────────────────────────────── */
.elova-order-reviews-section {
  margin: 2.5rem 0 1.5rem;
  padding: 1.75rem;
  background: #ffffff;
  border: 1px solid rgba(19, 87, 45, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.elova-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.elova-reviews-header h3 {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #13572d;
  margin: 0;
}

.elova-reviews-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.elova-reviews-badge.is-verified {
  background: #e6f4ea;
  color: #13572d;
}

.elova-reviews-badge.is-locked {
  background: #f1f3f4;
  color: #5f6368;
}

.elova-reviews-intro {
  font-size: 0.9rem;
  color: #535e57;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.elova-reviewable-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.elova-reviewable-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: #fafcf9;
  border: 1px solid #e7efe5;
  border-radius: 10px;
}

.elova-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e0eae0;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.elova-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.elova-item-info {
  flex: 1;
}

.elova-item-info h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a221d;
}

.elova-item-meta {
  display: block;
  font-size: 0.8rem;
  color: #718077;
  margin-bottom: 8px;
}

.elova-open-review-modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #13572d;
  color: #ffffff !important;
  border: none;
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(19, 87, 45, 0.2);
}

.elova-open-review-modal-btn:hover {
  background: #0e3f21;
  transform: translateY(-1px);
}

.elova-open-review-modal-btn.is-disabled {
  background: #e2e8e0;
  color: #8c9b91 !important;
  cursor: not-allowed;
  box-shadow: none;
}

.elova-existing-review-box {
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid #13572d;
  margin-top: 6px;
}

.elova-existing-review-box strong {
  display: block;
  font-size: 0.9rem;
  color: #1a221d;
  margin: 4px 0 2px;
}

.elova-existing-review-box p {
  font-size: 0.85rem;
  color: #535e57;
  margin: 0 0 4px;
  line-height: 1.4;
}

.elova-reviewed-tag {
  font-size: 0.72rem;
  color: #13572d;
  font-weight: 600;
}

.elova-stars-gold {
  color: #c5a059;
  letter-spacing: 2px;
  font-size: 1rem;
}

/* ── REVIEW MODAL DIALOG ────────────────────────────────────────────────── */
.elova-review-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.elova-review-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.elova-review-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 30, 20, 0.6);
  backdrop-filter: blur(4px);
}

.elova-review-modal-content {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.elova-review-modal.is-open .elova-review-modal-content {
  transform: translateY(0);
}

.elova-review-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #8c9b91;
  cursor: pointer;
  transition: color 0.2s ease;
}

.elova-review-modal-close:hover {
  color: #13572d;
}

.elova-modal-prod-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #edf2ec;
}

.elova-modal-prod-summary img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #fafcf9;
  border-radius: 8px;
  padding: 4px;
  border: 1px solid #e0eae0;
}

.elova-modal-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #13572d;
  margin-bottom: 2px;
}

.elova-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a221d;
}

.elova-form-group {
  margin-bottom: 1.25rem;
}

.elova-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a221d;
  margin-bottom: 6px;
}

.elova-star-picker {
  display: inline-flex;
  gap: 6px;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  color: #d8ded8;
  user-select: none;
}

.elova-star-picker .star {
  transition: color 0.15s ease, transform 0.15s ease;
}

.elova-star-picker .star:hover,
.elova-star-picker .star.hover,
.elova-star-picker .star.active {
  color: #c5a059;
}

.elova-star-picker .star:hover {
  transform: scale(1.15);
}

.elova-star-desc {
  display: block;
  font-size: 0.8rem;
  color: #718077;
  margin-top: 4px;
  font-weight: 500;
}

.elova-input,
.elova-textarea {
  width: 100% !important;
  box-sizing: border-box;
  padding: 10px 14px !important;
  border: 1.5px solid #d4dfd4 !important;
  border-radius: 8px !important;
  background: #fafcf9 !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  color: #1a221d !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.elova-input:focus,
.elova-textarea:focus {
  border-color: #13572d !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(19, 87, 45, 0.12) !important;
  outline: none !important;
}

.elova-review-feedback {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.elova-review-feedback.is-error {
  background: #fdf2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.elova-review-feedback.is-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.elova-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 1.5rem;
}

/* ── HOMEPAGE 3-VISIBLE REVIEW CAROUSEL ─────────────────────────────────── */
.elova-reviews-section {
  position: relative;
  overflow: hidden;
}

.elova-reviews-carousel-wrapper {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.elova-reviews-track-container {
  overflow: hidden;
  width: 100%;
}

.elova-reviews-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  gap: 2rem;
}

/* Exactly 3 cards visible on desktop */
.elova-review-slide {
  flex: 0 0 calc((100% - 4rem) / 3);
  box-sizing: border-box;
  background-color: var(--cream);
  padding: 2.25rem 2rem;
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none !important;
  box-shadow: none !important;
  min-height: 260px;
}


/* Carousel Controls */
.elova-reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.elova-reviews-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #13572d;
  background: #ffffff;
  color: #13572d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.elova-reviews-nav-btn:hover:not(:disabled) {
  background: #13572d;
  color: #ffffff;
  transform: scale(1.05);
}

.elova-reviews-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: #ccd8ca;
  color: #ccd8ca;
}

.elova-reviews-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.elova-reviews-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(19, 87, 45, 0.2);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.elova-reviews-dot.is-active {
  width: 28px;
  border-radius: 6px;
  background: #13572d;
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

  /* 2 cards visible on tablet */
  .elova-review-slide {
    flex: 0 0 calc((100% - 2rem) / 2);
  }

  .elova-reviews-track {
    gap: 2rem;
  }
}

@media (max-width: 640px) {

  /* 1 card visible on mobile */
  .elova-review-slide {
    flex: 0 0 100%;
    padding: 1.75rem 1.5rem;
  }

  .elova-reviews-track {
    gap: 1.25rem;
  }

  .elova-review-modal-content {
    padding: 1.5rem;
    max-height: 94vh;
  }
}
/* Shared by account orders and checkout confirmation. */
.elova-item-info{min-width:0;flex:1}.elova-item-info h4{overflow-wrap:anywhere}
.elova-item-meta{display:block;margin-bottom:12px}
.elova-item-thumb{flex-shrink:0}.elova-item-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.elova-item-info .elova-open-review-modal-btn{max-width:100%;white-space:normal;line-height:1.5;margin:0}
@media(max-width:480px){
 .elova-order-reviews-section{padding:16px}
 .elova-reviewable-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;padding:12px;align-items:start}
 .elova-reviewable-card .elova-item-thumb{width:64px;height:88px}
 .elova-item-info h4{font-size:16px;line-height:1.4;margin:0 0 8px}
 .elova-item-info .elova-open-review-modal-btn{padding:10px 12px;font-size:12px}
}
/* A separate row for each action prevents inherited inline/button styles from overlapping. */
.elova-reviewable-card .elova-item-info{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.elova-reviewable-card .elova-item-info>h4,.elova-reviewable-card .elova-item-meta{margin:0}
.elova-reviewable-card .elova-open-review-modal-btn{position:static;float:none;flex-shrink:0;align-self:flex-start;box-sizing:border-box}
