/* Review Bar Plugin - Floating sidebar with rotating reviews */

.review-bar {
  position: absolute;
  right: calc(100% + 20px);
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  overflow: hidden;
  z-index: 100;
  pointer-events: none;
  padding: 5px;
}

.review-track {
  position: relative;
  height: 720px;
}

.review-card {
  position: absolute;
  left: 0;
  right: 0;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 3px solid transparent;
  transform: scale(0.9);
  transition: all 0.5s ease;
  pointer-events: auto;
  opacity: 1;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.review-card.pos-0 {
  top: 0;
}

.review-card.pos-1 {
  top: 180px;
}

.review-card.pos-2 {
  top: 360px;
}

.review-card.pos-3 {
  top: 540px;
}

.review-card.pos-exit {
  top: -180px;
  opacity: 0;
}

.review-card.pos-enter {
  top: 720px;
}

.review-card.active {
  transform: scale(1);
  box-shadow: 0 4px 15px rgba(82, 169, 223, 0.4);
  border: 3px solid #52a9df;
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 8px;
}

.star-icon {
  width: 18px;
  height: 18px;
}

.verified-icon {
  width: 16px;
  height: 16px;
  margin-left: 6px;
}

.review-text {
  font-size: 0.85rem;
  color: #000;
  line-height: 1.4;
  margin-bottom: 8px;
  font-style: italic;
}

.review-name {
  font-size: 0.8rem;
  color: #000;
  font-weight: 700;
}

/* Mobile: single card sticky at bottom */
@media (max-width: 1200px) {
  .review-bar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    padding: 10px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  }

  .review-track {
    height: auto;
  }

  .review-card {
    position: relative;
    top: auto !important;
    transform: none;
    opacity: 1;
  }

  .review-card.active {
    transform: none;
  }

  .review-card:not(.mobile-visible) {
    display: none;
  }

  .review-card.mobile-visible {
    display: block;
    border: 3px solid #52a9df;
    box-shadow: 0 4px 15px rgba(82, 169, 223, 0.4);
  }
}
