/* /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: 5px;
  right: 5px;
  background: transparent;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  z-index: 100;
}
.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;
}
/* --- NEW: Center Position Styles --- */

/* 1. Add a backdrop for the centered modal */
.surftrust-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 99998; /* Just below the notification */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.surftrust-backdrop.is-visible {
  opacity: 1;
}

/* 2. Style the centered notification */
.surftrust-position-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9); /* Start slightly smaller */
  opacity: 0;
  transition:
    opacity 0.3s ease-out,
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.surftrust-position-center.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1); /* Animate to full size */
}
/* --- 1. Glass Morph Style --- */
/* A modern, frosted glass effect. Best for colorful backgrounds. */
.surftrust-layout--sale-glass-morph {
  background: rgba(255, 255, 255, 0.75) !important; /* Semi-transparent white */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 10px 15px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  color: #333 !important;
}

/* --- 2. Neon Style --- */
/* High contrast, dark mode with glowing accents. */
.surftrust-layout--sale-neon-glow {
  background: #0f0f0f !important; /* Force dark background */
  border: 1px solid #00f3ff; /* Cyan border */
  box-shadow:
    0 0 10px rgba(0, 243, 255, 0.2),
    inset 0 0 20px rgba(0, 243, 255, 0.05);
  color: #ffffff !important;
}

/* Force text colors for Neon to ensure visibility */
.surftrust-layout--sale-neon-glow p {
  color: #e0e0e0 !important;
  text-shadow: none;
}

.surftrust-layout--sale-neon-glow strong {
  color: #00f3ff !important; /* Cyan text */
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
  font-weight: 600;
}

.surftrust-layout--sale-neon-glow .st-preview-image--avatar,
.surftrust-layout--sale-neon-glow .st-preview-image--product {
  border: 2px solid #00f3ff;
  box-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

/* --- 3. Trusted Style --- */
/* Clean, official look with a trust badge header. */
.surftrust-layout--sale-trusted-badge {
  border-left: 5px solid #2271b1; /* WordPress Blue or Brand Color */
  padding-left: 18px; /* Extra padding to offset border */
  background: #fff;
}

.st-trusted-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.st-trusted-icon {
  color: #2271b1;
  font-size: 14px;
}

.st-trusted-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #2271b1;
  letter-spacing: 0.5px;
}
/* --- 2. FLASH BURST --- */
.surftrust-layout--sale-flash-burst {
  background: #ff4757; /* Bright Red/Pink */
  color: #fff;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  flex-direction: column;
  position: relative;
  overflow: visible !important;
  padding-top: 25px;
}
.st-flash-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #f1c40f; /* Yellow */
  color: #000;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 12px;
}
.surftrust-layout--sale-flash-burst .st-preview-button {
  width: 100%;
  text-align: center;
  background: #000 !important;
  color: #fff !important;
}
/* ==========================================================================
   NOTIFICATION BARS (Top/Bottom)
   ========================================================================== */

/* Shared Structure */
.surftrust-layout--notification-bar-dark,
.surftrust-layout--notification-bar-gradient {
  position: fixed;
  left: 0;
  right: 0;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  z-index: 999999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5%;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

  /* --- REMOVED BACKGROUND & COLOR --- */
  /* JS applies the theme colors here now */
}
.surftrust-layout--notification-bar-dark .st-bar-message,
.surftrust-layout--notification-bar-gradient .st-bar-message {
  font-size: 14px;
  font-weight: 500;
  color: inherit; /* Takes text color from the Theme */
}
/* Dark Theme */
.surftrust-layout--notification-bar-dark {
  border: 1px solid #333;
}

.st-bar-button {
  /* Make button contrast with the bar */
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  border: 1px solid currentColor;
  padding: 6px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
}

.st-bar-button:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Gradient Theme */
.surftrust-layout--notification-bar-gradient {
  background: linear-gradient(90deg, #6c5ce7, #a29bfe);
  color: #ffffff;
}

.surftrust-layout--notification-bar-gradient .st-bar-button {
  background: #fff;
  color: #6c5ce7;
  padding: 6px 16px;
  border-radius: 16px; /* Pill shape */
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Positioning Override Classes */
/* These classes are added by public.js based on settings */
/* Reset Positioning */
.surftrust-layout--notification-bar-dark.surftrust-position-top,
.surftrust-layout--notification-bar-gradient.surftrust-position-top {
  top: 0 !important;
  bottom: auto !important;
}

.surftrust-layout--notification-bar-dark.surftrust-position-bottom,
.surftrust-layout--notification-bar-gradient.surftrust-position-bottom {
  top: auto !important;
  bottom: 0 !important;
}

/* Ensure the text message is also above if you want text selection */
.st-bar-content {
  position: relative;
  z-index: 2;
}
/* --- 3. FLOATING CAPSULE --- */
.surftrust-layout--notification-bar-floating {
  position: fixed;
  left: 50% !important;
  transform: translateX(-50%); /* Center horizontally */
  width: 90% !important;
  max-width: 1200px !important;
  border-radius: 50px !important; /* Pill shape */
  z-index: 999999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  box-sizing: border-box;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  /* Colors handled by Theme JS */
}

/* Floating Positioning Overrides */
.surftrust-layout--notification-bar-floating.surftrust-position-top {
  top: 20px !important; /* Gap from top */
  bottom: auto !important;
  animation: slideDownFloat 0.5s ease forwards;
}

.surftrust-layout--notification-bar-floating.surftrust-position-bottom {
  top: auto !important;
  bottom: 20px !important; /* Gap from bottom */
  animation: slideUpFloat 0.5s ease forwards;
}

/* --- 4. INFO BADGE LAYOUT --- */
.surftrust-layout--notification-bar-badge {
  position: fixed;
  left: 0;
  right: 0;
  width: 100% !important;
  border-radius: 0 !important;
  z-index: 999999;
  display: flex;
  justify-content: center; /* Centered Content */
  align-items: center;
  padding: 12px 5%;
  gap: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* Colors handled by Theme JS */
}

.st-bar-badge-icon {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes slideDownFloat {
  from {
    transform: translate(-50%, -150%);
  }
  to {
    transform: translate(-50%, 0);
  }
}
@keyframes slideUpFloat {
  from {
    transform: translate(-50%, 150%);
  }
  to {
    transform: translate(-50%, 0);
  }
}
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
/* ==========================================================================
   IMAGE POPUP (Lightbox)
   ========================================================================== */

/* The Popup Card itself */
.surftrust-notification-wrapper.surftrust-layout--image-popup-simple {
  /* Absolute Center Positioning */
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;

  /* Reset Box Model (Crucial for centering) */
  width: auto !important; /* Let image define width */
  height: auto !important; /* Let image define height */
  max-width: 90vw !important; /* Don't go wider than screen */
  max-height: 90vh !important; /* Don't go taller than screen */
  margin: 0 !important; /* Remove default margins */
  padding: 0 !important; /* Remove default padding */

  /* Remove default card styling */
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;

  /* Ensure it sits on top */
  z-index: 999999 !important;

  /* Initial Animation State */
  transform: translate(-50%, -50%) scale(0.95) !important;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.surftrust-layout--image-popup-simple {
  position: fixed;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  z-index: 999999;

  /* Reset default card styles */
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 90vw; /* Responsive width */
  max-height: 90vh;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible !important;
}

.surftrust-notification-wrapper.surftrust-layout--image-popup-simple.is-visible {
  opacity: 1 !important;
  /* IMPORTANT: Maintain the -50% translate so it stays centered */
  transform: translate(-50%, -50%) scale(1) !important;
}
/* The Image */
.st-popup-image {
  display: block; /* Removes bottom whitespace bug */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh; /* Keep some room for the close button */
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Close Button Override */
/* Move the X outside the image (top right) */
/* 4. Close Button Position */
.surftrust-layout--image-popup-simple .surftrust-close-btn {
  position: absolute;
  top: -35px; /* Move up outside the image */
  right: -10px; /* Move slightly right */
  width: 30px;
  height: 30px;

  /* High Contrast Style */
  background-color: white !important;
  color: black !important;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);

  /* Alignment */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  padding-bottom: 2px; /* Visual center tweak */
  cursor: pointer;
  opacity: 0.9;
  z-index: 9999999; /* Top of everything */
}
.surftrust-layout--image-popup-simple .surftrust-close-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: black !important;
  opacity: 1;
  transform: rotate(90deg);
}
/* ==========================================================================
   NEW: IMAGE POPUP - MODERN DIALOG
   ========================================================================== */
.surftrust-notification-wrapper.surftrust-layout--image-popup-dialog {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;

  /* Reset Dimensions */
  width: 90vw !important;
  max-width: 450px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 30px !important;

  /* Dialog Style */
  background: #ffffff !important; /* Default white, overridden by theme */
  color: #333333 !important;
  border-radius: 12px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;

  /* Flex Layout */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;

  /* Initial State */
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9) !important;
  z-index: 999999 !important;
}
/* The main modal container (gets theme colors) */
.surftrust-layout--image-popup-dialog {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  z-index: 999999; /* Higher than backdrop */

  width: 90vw !important; /* Responsive width */
  max-width: 450px !important; /* Max width for dialog */
  height: auto !important;
  margin: 0 !important;
  padding: 30px !important; /* Inner spacing */

  background: #fff; /* Default to white, will be overridden by theme */
  color: #333; /* Default text, will be overridden */
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible !important; /* Allow close button to float outside */

  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.surftrust-notification-wrapper.surftrust-layout--image-popup-dialog.is-visible {
  opacity: 1 !important;
  /* Force it to stay centered */
  transform: translate(-50%, -50%) scale(1) !important;
}

/* Header Text */
.surftrust-layout--image-popup-dialog .st-dialog-header {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: inherit; /* Inherit from theme */
}

/* Body Text */
.surftrust-layout--image-popup-dialog .st-dialog-body p {
  font-size: 15px;
  margin-bottom: 10px;
  color: inherit;
  line-height: 1.5;
}

/* Warning Text */
.surftrust-layout--image-popup-dialog .st-dialog-warning {
  font-size: 13px;
  color: #e74c3c; /* Red warning */
  margin-bottom: 25px;
}

/* The Call to Action Button */
.surftrust-layout--image-popup-dialog .st-dialog-button {
  background: #4a90e2; /* Fallback Blue */
  color: white;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  position: relative !important;
  z-index: 10000 !important; /* Sit above the click mask */
  cursor: pointer !important;
  pointer-events: auto !important;
}
.surftrust-layout--image-popup-dialog .st-dialog-button:hover {
  background: #3a80d2;
}

/* Close Button Position Override */
.surftrust-layout--image-popup-dialog .surftrust-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #999 !important;
  background: transparent !important;
  border: none;
  font-size: 20px;
  padding: 5px;
}
.surftrust-layout--image-popup-dialog .surftrust-close-btn:hover {
  color: #333 !important;
  transform: none !important;
  background: none !important;
}
/* --- 5. FOLDED BAR (Skewed) --- */
/* ==========================================================================
   FIX: FOLDED (SKEWED) BAR
   ========================================================================== */

.surftrust-notification-wrapper.surftrust-layout--notification-bar-folded {
  /* 1. Force Fixed Positioning so it sticks to screen */
  position: fixed !important;
  z-index: 999999 !important;

  /* 2. Center it horizontally without using Transform (to avoid animation conflicts) */
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  width: 95% !important;
  max-width: 1000px !important;

  /* 3. The Skew Look */
  transform: skewX(-12deg);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

  /* 4. Layout */
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 15px 30px !important;

  /* 5. Colors (Dynamic fallback) */
  background: #6c5ce7; /* Default fallback */
  color: #fff;
}

/* Counter-skew content so text is straight */
.surftrust-layout--notification-bar-folded > * {
  transform: skewX(12deg);
}

/* --- POSITIONING OVERRIDES --- */

/* TOP POSITION */
.surftrust-layout--notification-bar-folded.surftrust-position-top {
  top: 20px !important; /* Gap from top */
  bottom: auto !important;

  /* Custom Animation that preserves Skew */
  animation: slideDownSkew 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* BOTTOM POSITION */
.surftrust-layout--notification-bar-folded.surftrust-position-bottom {
  top: auto !important;
  bottom: 20px !important; /* Gap from bottom */

  /* Custom Animation that preserves Skew */
  animation: slideUpSkew 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Custom Animations to keep the skew while moving */
@keyframes slideDownSkew {
  0% {
    transform: translateY(-150%) skewX(-12deg);
    opacity: 0;
  }
  100% {
    transform: translateY(0) skewX(-12deg);
    opacity: 1;
  }
}

@keyframes slideUpSkew {
  0% {
    transform: translateY(150%) skewX(-12deg);
    opacity: 0;
  }
  100% {
    transform: translateY(0) skewX(-12deg);
    opacity: 1;
  }
}

/* --- 6. VERTICAL BAR (Side Label) - FIXED --- */
.surftrust-notification-wrapper.surftrust-layout--notification-bar-vertical {
  /* 1. CRITICAL: Override default wrapper width */
  width: auto !important;
  max-width: none !important;
  min-width: 40px !important; /* Ensure it's not too thin */

  /* 2. Lock Position to Left Side */
  position: fixed !important;
  left: 0 !important;
  right: auto !important; /* Prevent stretching */
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;

  /* 3. Orientation & Layout */
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex !important;
  align-items: center; /* Centers horizontally in the strip */
  justify-content: center; /* Centers vertically in the strip */
  gap: 15px;

  /* 4. Visuals */
  padding: 35px 10px !important; /* Vertical padding > Horizontal padding */
  border-radius: 0 12px 12px 0 !important; /* Only round the right corners */
  z-index: 999999;
}

/* Fix Button Orientation inside the vertical bar */
.surftrust-layout--notification-bar-vertical .st-bar-button {
  writing-mode: horizontal-tb; /* Keep button text normal */
  transform: rotate(90deg); /* Rotate button to match bar direction */
  white-space: nowrap;
  padding: 6px 16px;
  font-size: 11px;
}

/* Fix Close Button Position for a thin strip */
.surftrust-layout--notification-bar-vertical .surftrust-close-btn {
  top: 6px !important;
  right: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important; /* Center X in the thin strip */
  font-size: 14px;
}
.surftrust-layout--notification-bar-vertical .surftrust-close-btn:hover {
  transform: translateX(-50%) rotate(90deg) !important; /* Add rotation on hover */
}

/* ==========================================================================
   GLOBAL ANIMATIONS (Enter States)
   ========================================================================== */

/* Base Transition for all effects */
.surftrust-notification-wrapper {
  /* Ensure transform and opacity animate smoothly */
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* 1. FADE */
.surftrust-effect-fade {
  opacity: 0;
  transform: translateY(0); /* No movement */
}
.surftrust-effect-fade.is-visible {
  opacity: 1;
}

/* 2. ZOOM (Pop in) */
.surftrust-effect-zoom {
  opacity: 0;
  transform: scale(0.5); /* Start small */
}
.surftrust-effect-zoom.is-visible {
  opacity: 1;
  transform: scale(1); /* Grow to normal */
}

/* 3. SLIDE UP (Standard) */
.surftrust-effect-slide-up {
  opacity: 0;
  transform: translateY(20px); /* Start slightly down */
}
.surftrust-effect-slide-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 4. SLIDE LEFT (Side entrance) */
.surftrust-effect-slide-left {
  opacity: 0;
  transform: translateX(30px); /* Start from right */
}
.surftrust-effect-slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}
/* ==========================================================================
   NEW COOKIE TEMPLATES (Bubble, Glass, Card)
   ========================================================================== */
/* ==========================================================================
   FIXED COOKIE TEMPLATES
   ========================================================================== */
/* --- 1. Friendly Bubble (Fixed Layout & Contrast) --- */
.surftrust-notification-wrapper.surftrust-layout--cookie-bubble {
  /* 1. FORCE FLEXBOX: Mandatory for side-by-side layout */
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  /* 2. Sizing */
  width: auto !important;
  max-width: 400px !important;
  border-radius: 50px !important;
  padding: 10px 20px 10px 10px !important;

  /* 3. Theme Inheritance */
  background-color: inherit;
  color: inherit;
}

.surftrust-layout--cookie-bubble .st-cookie-icon {
  width: 40px;
  height: 40px;
  background: rgba(125, 125, 125, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.surftrust-layout--cookie-bubble .surftrust-content {
  flex: 1;
  min-width: 0;
}

/* Button Styling */
.surftrust-layout--cookie-bubble .st-btn-bubble {
  /* Background becomes the text color (e.g., Black text -> Black Button) */
  background: currentColor !important;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;

  /* Remove any hardcoded colors, rely on the span trick below */
  color: inherit !important;
}

/* 
   3. THE CONTRAST TRICK 
   This matches the logic we added to your Admin Preview.
   It creates high contrast text automatically.
*/
.surftrust-layout--cookie-bubble .st-btn-bubble span {
  filter: invert(1) grayscale(1) contrast(9);
  color: inherit;
  display: block;
}

/* --- 4. Corner Chip (Fix: Styling Consistency) --- */
.surftrust-notification-wrapper.surftrust-layout--cookie-chip {
  border-radius: 999px !important;
  background-color: inherit;
  color: inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(125, 125, 125, 0.15);
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 6px 6px 6px 20px !important;
  display: flex !important;
  align-items: center;
  gap: 15px;

  /* Position overrides */
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  left: auto !important;
  top: auto !important;
}
/* Fixed Text Styling */
.surftrust-layout--cookie-chip .st-chip-text {
  font-family: sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  color: inherit;
  line-height: 1;
}
/* Button Inversion Logic */
.surftrust-layout--cookie-chip .st-btn-chip {
  background-color: currentColor !important;
  border: none !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
  text-transform: uppercase;
}
.surftrust-layout--cookie-chip .st-btn-chip span {
  filter: invert(1) grayscale(1) contrast(9);
  color: inherit;
  display: block;
}
/* Hide default close button */
.surftrust-layout--cookie-chip .surftrust-close-btn {
  display: none !important;
}
/* --- 3. Consent Card (Fixed Layout & Contrast) --- */
.surftrust-notification-wrapper.surftrust-layout--cookie-card {
  /* 1. Card Layout */
  display: flex !important;
  flex-direction: column !important; /* Stack vertically */
  align-items: stretch !important; /* Full width content */
  gap: 12px;

  /* 2. Sizing & Shape */
  width: 90% !important;
  max-width: 340px !important; /* Card width, not banner width */
  border-radius: 12px !important;
  padding: 20px !important;

  /* 3. Theme Inheritance */
  background-color: inherit;
  color: inherit;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Header Styling */
.surftrust-layout--cookie-card h4 {
  margin: 0 0 5px 0 !important;
  font-size: 14px;
  font-weight: 700;
  color: inherit;
}

/* Content Width */
.surftrust-layout--cookie-card .surftrust-content {
  width: 100%;
  margin-bottom: 5px;
}

/* Actions Container (Align Right) */
.surftrust-layout--cookie-card .st-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

/* Secondary Button (Settings/Decline) - Outline Style */
.surftrust-layout--cookie-card .st-btn-secondary {
  background: transparent !important;
  border: 1px solid currentColor !important; /* Theme color border */
  color: inherit !important;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.8;
  white-space: nowrap;
}
.surftrust-layout--cookie-card .st-btn-secondary:hover {
  opacity: 1;
}

/* Primary Button (Accept) - Solid Style */
.surftrust-layout--cookie-card .st-btn-primary {
  background: currentColor !important; /* Theme color background */
  border: none !important;
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;

  /* Text color inherits so it can be inverted by the span */
  color: inherit !important;
}

/* Contrast Trick for Primary Button Text */
.surftrust-layout--cookie-card .st-btn-primary span {
  filter: invert(1) grayscale(1) contrast(9);
  color: inherit;
  display: block;
}
/* ==========================================================================
   PRO ANIMATIONS (New Additions)
   ========================================================================== */

/* 5. BOUNCE IN (Pro) */
.surftrust-effect-bounce {
  opacity: 0;
  transform: translateY(100px);
}
.surftrust-effect-bounce.is-visible {
  opacity: 1;
  animation: stBounceIn 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}
@keyframes stBounceIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  20% {
    transform: translate3d(0, 10px, 0);
  }
  40% {
    transform: translate3d(0, -10px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 5px, 0);
  }
  80% {
    transform: translate3d(0, -2px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* 6. 3D FLIP (Pro) */
.surftrust-effect-flip {
  opacity: 0;
  transform: perspective(400px) rotateX(90deg);
  transform-origin: top center;
}
.surftrust-effect-flip.is-visible {
  opacity: 1;
  transform: perspective(400px) rotateX(0deg);
  transition:
    transform 0.5s ease-out,
    opacity 0.5s;
}

/* 7. SWING (Pro) */
.surftrust-effect-swing {
  opacity: 0;
  transform-origin: top center;
}
.surftrust-effect-swing.is-visible {
  opacity: 1;
  animation: stSwing 0.8s ease-out forwards;
}
@keyframes stSwing {
  0% {
    transform: rotateX(-90deg);
    opacity: 0;
  }
  40% {
    transform: rotateX(20deg);
    opacity: 1;
  }
  60% {
    transform: rotateX(-10deg);
  }
  80% {
    transform: rotateX(5deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}
