/* Overlay – bottom right */
#testimonial-popup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 20px;
  background: transparent;
  z-index: 99999;
}

#testimonial-popup-overlay.show {
  display: flex;
}

/* Popup card */
.tp-popup-card {
  width: 360px;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px 20px;
  box-shadow: 0 18px 35px rgba(0,0,0,0.25);
  position: relative;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  animation: slideUp 0.35s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close button */
.tp-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
}

/* Top row */
.tp-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tp-quote-icon {
  font-size: 22px;
  color: #2f855a;
}

.tp-stars {
  font-size: 13px;
  letter-spacing: 2px;
  color: #f59e0b;
}

/* Text */
.tp-text {
  font-size: 14px;
  line-height: 1.55;
  color: #333;
  margin: 10px 0 14px;
}

/* Author */
.tp-author {
  font-size: 12px;
  color: #555;
  margin-bottom: 14px;
}

.tp-author strong {
  display: block;
  font-size: 13px;
  color: #111;
}

/* CTA */
.tp-cta {
  width: 100%;
  background: #d97706;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
}

.tp-cta:hover {
  background: #c2410c;
}


/* Fade animation for rotating testimonials */
#testimonial-popup-overlay.fade .tp-popup-card {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tp-popup-card {
  transition: opacity 0.3s ease;
}

/* Mobile – center */
@media (max-width: 640px) {
  #testimonial-popup-overlay {
    justify-content: center;
    align-items: center;
  }
}
