/* /surftrust/public/css/surftrust-public.css - COMPLETE AND UNIFIED VERSION */

/* --- Base Notification Wrapper --- */
.surftrust-notification-wrapper {
  position: fixed;
  z-index: 99999;
  font-family: sans-serif;
  box-sizing: border-box;
  max-width: 380px;
  width: 90%;
  border-radius: 8px;
  background: #fff;
  color: #333;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.surftrust-notification-wrapper.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Positioning --- */
.surftrust-position-bottom-left {
  bottom: 20px;
  left: 20px;
}
.surftrust-position-bottom-right {
  bottom: 20px;
  right: 20px;
}
.surftrust-position-top-left {
  top: 20px;
  left: 20px;
}
.surftrust-position-top-right {
  top: 20px;
  right: 20px;
}

/* --- Click Area & Content Layers --- */
.surftrust-click-area {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.surftrust-image,
.surftrust-content,
.st-preview-deal-details,
.st-preview-button,
.st-preview-social-icons {
  position: relative;
  z-index: 2;
}
.surftrust-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  opacity: 0.4;
  padding: 0;
  color: #000;
  z-index: 3;
}
.surftrust-close-btn:hover {
  opacity: 1;
}
.surftrust-content p {
  margin: 0;
  line-height: 1.4;
  color: inherit;
}
.surftrust-content p * {
  color: inherit !important;
}

/* --- Base Image Styles --- */
.st-preview-image--avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.st-preview-image--product {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

/* --- TEMPLATE-SPECIFIC STYLES --- */

/* --- Sale / Review / Default --- */
.surftrust-layout--sale-minimalist-bubble {
  flex-direction: column;
  text-align: center;
  border-radius: 50px;
  gap: 8px;
}
.surftrust-layout--sale-classic-card {
  justify-content: space-between;
}
.surftrust-layout--sale-classic-card .surftrust-content {
  flex-grow: 1;
}

/* --- Review --- */
.st-preview-stars {
  color: #ffb900;
  font-size: 16px;
  letter-spacing: 2px;
}
.surftrust-layout--review-quote-box {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.st-preview-quote-icon {
  width: 24px;
  height: 24px;
  opacity: 0.2;
}
.surftrust-layout--review-speech-bubble {
  position: relative;
  margin-bottom: 12px;
}
.surftrust-layout--review-speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 30px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: inherit transparent transparent transparent;
  display: block;
  width: 0;
}
.surftrust-layout--review-inline-card {
  justify-content: space-between;
}

/* --- Low Stock --- */
.st-preview-urgent-icon {
  font-size: 24px;
  color: #e65100;
}
.st-preview-stock-bar {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}
.st-preview-stock-bar-inner {
  height: 100%;
  background-color: #e65100;
  border-radius: 4px;
  transition: width 0.5s ease-in-out;
}
.surftrust-layout--stock-classic-text .surftrust-content {
  text-align: center;
}

/* --- Cookie Notice --- */
.st-preview-button {
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.surftrust-layout--cookie-floating-bar {
  width: 100%;
  border-radius: 0;
  justify-content: space-between;
}
.surftrust-layout--cookie-centered-box {
  flex-direction: column;
  text-align: center;
  gap: 15px;
}

/* --- Growth Alert --- */
.st-preview-social-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}
.st-preview-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
.surftrust-layout--growth-minimalist,
.surftrust-layout--growth-solid,
.surftrust-layout--growth-outline {
  flex-direction: column;
  text-align: center;
  gap: 10px;
}
.surftrust-layout--growth-solid .st-preview-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff !important;
}
.surftrust-layout--growth-solid .st-preview-social-icon.facebook {
  background-color: #1877f2;
}
.surftrust-layout--growth-solid .st-preview-social-icon.twitter {
  background-color: #1da1f2;
}
.surftrust-layout--growth-solid .st-preview-social-icon.pinterest {
  background-color: #e60023;
}
.surftrust-layout--growth-outline .st-preview-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid;
}
.surftrust-layout--growth-outline .st-preview-social-icon.facebook {
  border-color: #1877f2;
  color: #1877f2;
}
.surftrust-layout--growth-outline .st-preview-social-icon.twitter {
  border-color: #1da1f2;
  color: #1da1f2;
}
.surftrust-layout--growth-outline .st-preview-social-icon.pinterest {
  border-color: #e60023;
  color: #e60023;
}

/* --- Live Visitors --- */
.surftrust-layout--live-minimalist-pill {
  border-radius: 50px;
  padding: 10px 20px !important;
  gap: 10px;
}
.st-preview-live-dot {
  width: 8px;
  height: 8px;
  background-color: #e53935;
  border-radius: 50%;
  animation: st-pulse 1.5s infinite;
}
@keyframes st-pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(229, 57, 53, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
  }
}
.st-preview-icon {
  font-size: 40px;
  width: 40px;
  height: 40px;
  color: #6c5ce7;
}
.surftrust-layout--live-animated-counter {
  flex-direction: column;
  text-align: center;
  gap: 5px;
}
.st-preview-counter-number {
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
}

/* --- Sale Announcement --- */
.st-preview-deal-details {
  gap: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.st-preview-deal-title {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0;
}
.st-preview-deal-product {
  font-weight: bold;
  margin: 2px 0 5px 0;
}
.st-preview-deal-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
}
.st-preview-deal-pricing .new-price {
  font-weight: bold;
  font-size: 1.1em;
}
.st-preview-deal-pricing .old-price {
  text-decoration: line-through;
  opacity: 0.6;
}
.st-preview-deal-discount {
  background-color: #e53935;
  color: #fff;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px;
}
.surftrust-layout--sale-urgency-banner {
  flex-direction: column;
  text-align: center;
  gap: 8px;
}
.st-preview-urgency-title {
  font-size: 16px;
  font-weight: bold;
}
.st-preview-urgency-timer {
  font-family: monospace;
  font-size: 1.3em;
  background: rgba(0, 0, 0, 0.05);
  padding: 5px 10px;
  border-radius: 4px;
}

/* --- ADD THIS TO THE END of public/css/surftrust-public.css --- */

/* --- Banner Position Styles --- */
.surftrust-position-top-bar,
.surftrust-position-bottom-bar {
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}
.surftrust-position-bottom-left {
  bottom: 20px;
  left: 20px;
}
.surftrust-position-bottom-right {
  bottom: 20px;
  right: 20px;
}

.surftrust-position-top-bar {
  top: 0;
  transform: translateY(-100%); /* Start hidden above screen */
}

.surftrust-position-bottom-bar {
  bottom: 0;
  transform: translateY(100%); /* Start hidden below screen */
}

.surftrust-position-top-bar.is-visible,
.surftrust-position-bottom-bar.is-visible {
  transform: translateY(0); /* Animate into view */
}
.is-sales-urgency {
  display: flex;
  align-items: center;
  /* justify-content: space-evenly; */
  flex-direction: row;
  gap: 29px;
}
.is-primary-cta {
  color: #fff;
  background-color: #e60023;
}
