/* /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);

  /* Theme color variables (set by JavaScript, inherited by all children) */
  --st-font-color: #333;
  --st-bg-color: #fff;
  --st-accent-color: #3b82f6;
  --st-secondary-color: #999999;
  --st-border-color: transparent;
}

.surftrust-notification-wrapper.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Positioning --- */
.surftrust-position-bottom-left {
  bottom: 20px !important;
  left: 20px !important;
}
.surftrust-position-bottom-right {
  bottom: 20px !important;
  right: 20px !important;
}
.surftrust-position-top-left {
  top: 20px !important;
  left: 20px !important;
}
.surftrust-position-top-right {
  top: 20px !important;
  right: 20px !important;
}

/* --- 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;
}
/* ==========================================================================
   UNIFIED CLOSE BUTTON STYLES
   ========================================================================== */
.surftrust-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.surftrust-close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1) rotate(90deg);
}

/* Notification Bar overrides - position close button at bottom-left */
.surftrust-layout--notification-bar-dark .surftrust-close-btn,
.surftrust-layout--notification-bar-gradient .surftrust-close-btn,
.surftrust-layout--notification-bar-floating .surftrust-close-btn,
.surftrust-layout--notification-bar-folded .surftrust-close-btn {
  top: auto !important;
  right: auto !important;
  bottom: 16px !important;
  left: 39px !important;
}

.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 --- */
/* ==========================================================================
   SALE: MINIMALIST BUBBLE (Vertical Pill Layout)
   ========================================================================== */

/* 1. Main Wrapper - Forces vertical layout and rounded pill shape */
.surftrust-notification-wrapper.surftrust-layout--sale-minimalist-bubble {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  border-radius: 24px !important; /* Soft, large rounded corners */
  padding: 30px 25px 20px 25px !important; /* Extra top padding for the badge */
  gap: 6px !important;
  width: auto !important;
  min-width: 240px !important;
  /* NOTE: Do NOT set position here - it must inherit position:fixed from base wrapper */

  /* The background and main text color are automatically handled by the 
     inline styles injected by the user's settings in React/public.js! */
}

/* 2. Top "New Purchase" Badge */
.surftrust-layout--sale-minimalist-bubble .st-bubble-badge {
  position: absolute !important;
  top: -12px !important; /* Floats perfectly on the top edge */
  background: var(--st-accent-color) !important; /* Theme accent color */
  color: white !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3) !important;
  z-index: 10 !important;
}

/* 3. Centered Image Container */
.surftrust-layout--sale-minimalist-bubble .st-bubble-image-container {
  width: 75px !important;
  height: 75px !important;
  border-radius: 50% !important; /* Perfect circle */
  overflow: hidden !important;
  margin-bottom: 5px !important;
  border: 3px solid rgba(255, 255, 255, 0.2) !important; /* Soft border */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
  flex-shrink: 0 !important;
}

.surftrust-layout--sale-minimalist-bubble .st-bubble-product-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* 4. Text Typography (Inheriting user colors) */
.surftrust-layout--sale-minimalist-bubble .st-bubble-product-name {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: inherit !important; /* Inherits user text color */
  line-height: 1.2 !important;
  margin-top: 5px !important;
}

.surftrust-layout--sale-minimalist-bubble .st-bubble-meta {
  font-size: 13px !important;
  color: inherit !important;
  opacity: 0.9 !important; /* Slightly faded for hierarchy */
}

.surftrust-layout--sale-minimalist-bubble .st-bubble-customer {
  font-weight: 700 !important;
}

.surftrust-layout--sale-minimalist-bubble .st-bubble-time {
  font-size: 11px !important;
  color: inherit !important;
  opacity: 0.6 !important; /* Most faded element */
  margin-top: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
/* ==========================================================================
   SALE: CLASSIC CARD (Pill Shape with Badge)
   ========================================================================== */

.surftrust-notification-wrapper.surftrust-layout--sale-classic-card {
  /* 1. Pill Shape & Layout */
  border-radius: 60px !important; /* Forces the pill shape */
  padding: 10px 30px 10px 10px !important; /* Less padding on left to hug the circle */
  background: var(--st-bg-color, #ffffff);
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06) !important;

  /* 2. Allow badge to float outside */
  /* NOTE: Do NOT set position here - it must inherit position:fixed from base wrapper */
  overflow: visible !important;
  width: max-content !important;
  min-width: 320px !important;
}

/* 3. The Outer Ring for the Image */
.st-classic-image-wrapper {
  width: 68px !important;
  height: 68px !important;
  border-radius: 50% !important;
  padding: 6px !important; /* Thickness of the ring gap */
  background: rgba(
    108,
    92,
    231,
    0.12
  ) !important; /* Soft purple ring background */
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* The actual Product Image */
.st-classic-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  background: #fff !important; /* Prevents transparent PNGs from blending badly */
}

/* 4. Stacked Content */
.st-classic-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  justify-content: center !important;
}

/* Text Hierarchy */
.st-classic-title {
  font-size: 13px !important;
  color: var(--st-font-color) !important;
  line-height: 1.2 !important;
}

.st-classic-title strong {
  font-weight: 700 !important;
}

.st-classic-product {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--st-accent-color) !important; /* Theme accent color */
  line-height: 1.2 !important;
}

.st-classic-time {
  font-size: 11px !important;
  color: var(--st-secondary-color) !important;
}

/* 5. Floating Top Right Badge */
.st-classic-badge {
  position: absolute !important;
  top: -8px !important;
  right: 15px !important; /* Pulled in slightly from the rounded edge */
  width: 28px !important;
  height: 28px !important;
  background: #ffeaa7 !important; /* Gold/Yellow background */
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  z-index: 10 !important;
}

/* The Icon inside the Badge */
.st-classic-badge .dashicons {
  font-size: 16px !important;
  width: 16px !important;
  height: 16px !important;
  color: #d35400 !important; /* Dark orange for high contrast */
}

/* --- 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;
}

.surftrust-layout--stock-classic-text {
  justify-content: 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;
}
/* Center dashicon :before pseudo-element */
.st-preview-social-icon.dashicons:before {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.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: white !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: var(--st-accent-color);
  color: white;
  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: white;
  background-color: var(--st-accent-color);
}
/* --- 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 {
  /* Glass effect uses a fixed semi-transparent overlay - theme color shows through */
  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: var(--st-font-color, #333) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* Glass Morph Container */
.st-glass-morph-container {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
}

/* Glass Morph Image Wrapper - with subtle shine effect */
.st-glass-morph-image-wrapper {
  position: relative !important;
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(5px) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.st-glass-morph-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Glass Morph Content */
.st-glass-morph-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
}

/* Glass Morph Header with Badge */
.st-glass-morph-header {
  margin-bottom: 2px !important;
}

.st-glass-morph-badge {
  display: inline-block !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-weight: 600 !important;
  color: rgba(0, 0, 0, 0.6) !important;
  background: rgba(255, 255, 255, 0.6) !important;
  padding: 3px 8px !important;
  border-radius: 20px !important;
  backdrop-filter: blur(5px) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

/* Glass Morph Product Name */
.st-glass-morph-product {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--st-font-color) !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}

/* Glass Morph Customer Info */
.st-glass-morph-customer {
  font-size: 13px !important;
  color: var(--st-font-color) !important;
  opacity: 0.85 !important;
  line-height: 1.4 !important;
}

.st-glass-morph-customer strong {
  font-weight: 600 !important;
}

/* Glass Morph Time */
.st-glass-morph-time {
  font-size: 11px !important;
  color: var(--st-secondary-color) !important;
  opacity: 0.6 !important;
  margin-top: 2px !important;
}

/* --- 2. Neon Style --- */
/* High contrast, dark mode with glowing accents and card layout. */
/* --- 2. Neon Style (UPDATED FOR ABSOLUTE IMAGE) --- */

.surftrust-notification-wrapper.surftrust-layout--sale-neon-glow {
  background: var(--st-bg-color, #0f0f0f);
  border: 1px solid var(--st-border-color, #00f3ff) !important;
  box-shadow:
    0 0 10px rgba(0, 243, 255, 0.2),
    inset 0 0 20px rgba(0, 243, 255, 0.05) !important;
  color: var(--st-font-color, #ffffff);
  border-radius: 12px !important;

  /* Create space on the right for the popping image */
  padding: 16px 65px 16px 20px !important;
  max-width: 360px !important;

  /* CRITICAL: Allow absolute children to pop outside the box */
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  /* NOTE: Do NOT set position here - it must inherit position:fixed from base wrapper */
}

.st-neon-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 0 !important;
  z-index: 2;
}

.st-neon-time {
  font-size: 11px !important;
  opacity: 0.6 !important;
  color: inherit !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.st-neon-customer {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--st-font-color) !important;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.3) !important;
}

.st-neon-product-section {
  background: rgba(255, 255, 255, 0.75) !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  margin-top: 4px !important;

  backdrop-filter: blur(10px) !important;

  border: 1px solid var(--st-accent-color, #00f3ff) !important;

  /* Neon glow */
  box-shadow:
    0 0 4px var(--st-accent-color, #00f3ff),
    0 0 8px var(--st-accent-color, #00f3ff),
    0 0 16px rgba(0, 243, 255, 0.5),
    inset 0 0 6px rgba(0, 243, 255, 0.35);

  transition: all 0.25s ease;
}
.st-neon-product-section:hover {
  box-shadow:
    0 0 6px var(--st-accent-color, #00f3ff),
    0 0 14px var(--st-accent-color, #00f3ff),
    0 0 24px rgba(0, 243, 255, 0.7),
    inset 0 0 8px rgba(0, 243, 255, 0.5);
}

.st-neon-purchased-label {
  font-size: 10px !important;
  text-transform: uppercase !important;
  opacity: 0.7 !important;
  margin-bottom: 2px !important;
}

.st-neon-product-name {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--st-font-color) !important;
  opacity: 0.95 !important;
}

/* --- THE NEW ABSOLUTE PRODUCT IMAGE --- */
.st-neon-product-image-wrapper {
  position: absolute !important;
  right: -25px !important; /* Protrudes outside the main box */
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 85px !important;
  height: 85px !important;
  background: #0f0f0f !important; /* Match card background for seamless cutout */
  border-radius: 18px !important;
  padding: 5px !important; /* Creates the border gap effect */
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.6),
    -5px 0 15px rgba(0, 243, 255, 0.1) !important;
  z-index: 10 !important;
}

.st-neon-product-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  border: 2px solid #00f3ff !important;
}

/* --- THE TICK ICON BADGE --- */
.st-neon-badge {
  position: absolute !important;
  bottom: -6px !important;
  left: -6px !important; /* Hangs off the bottom left of the image */
  width: 24px !important;
  height: 24px !important;
  background: var(--st-accent-color) !important; /* Theme accent color */
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 3px solid #0f0f0f !important;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.6) !important;
  z-index: 11 !important;
  color: #0f0f0f !important; /* Dark checkmark */
}

.st-neon-badge svg {
  width: 12px !important;
  height: 12px !important;
  stroke-width: 4 !important;
}

/* --- Modern Card Style --- */
.surftrust-layout--sale-modern-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--st-bg-color, #ffffff);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.st-modern-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.st-modern-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.st-modern-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.st-modern-badge svg {
  width: 10px;
  height: 10px;
}

.st-modern-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.st-modern-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--st-font-color);
  line-height: 1.2;
}

.st-modern-action {
  font-size: 13px;
  color: var(--st-secondary-color);
  line-height: 1.4;
  display: flex;
  align-items: start;
}

.st-modern-action strong {
  color: var(--st-accent-color);
  font-weight: 600;
}
.st-modern-text {
  color: var(--st-accent-color);
  font-size: 13px;
  font-weight: 600;
}
.st-modern-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e5e5, transparent);
  margin: 4px 0;
}

.st-modern-meta {
  font-size: 11px;
  color: var(--st-secondary-color);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.st-modern-meta strong {
  color: var(--st-secondary-color);
}

/* --- 3. Trusted Style (Updated: Right Border & Official Ticket Look) --- */

.surftrust-notification-wrapper.surftrust-layout--sale-trusted-badge {
  /* Move border from left to right */
  border-left: none !important;
  border-right: 5px solid #2271b1 !important; /* WordPress Blue */

  padding: 16px 22px 16px 16px !important; /* Extra padding on the right for the border */
  background: var(--st-bg-color, #ffffff);

  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

/* Make sure the text container takes up the remaining space */
.surftrust-layout--sale-trusted-badge .surftrust-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  flex-grow: 1 !important;
  text-align: left !important;
  margin: 0 !important;
}

/* 1. Product Name (Top) */
.st-trusted-product-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--st-font-color) !important;
  margin-bottom: 2px !important;
  line-height: 1.2 !important;
}

/* 2. Customer Name (Middle) */
.st-trusted-purchaser {
  font-size: 13px !important;
  color: var(--st-secondary-color) !important;
  margin-bottom: 8px !important;
}

.st-trusted-purchaser strong {
  color: var(--st-font-color) !important;
  font-weight: 600 !important;
}

/* 3. Time & Badge (Bottom) */
.st-trusted-time {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  color: var(--st-secondary-color) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}

.st-trusted-icon {
  color: var(--st-accent-color) !important;
  font-size: 13px !important;
  width: 13px !important;
  height: 13px !important;
}

.st-trusted-label {
  font-weight: 800 !important;
  color: var(--st-accent-color) !important;
}
/* --- 2. FLASH BURST --- */
.surftrust-layout--sale-flash-burst {
  background: var(--st-bg-color, #ff4757); /* Bright Red/Pink */
  color: var(--st-font-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: var(--st-font-color) !important;
  color: var(--st-bg-color) !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,
    var(--st-accent-color, #6c5ce7),
    var(--st-accent-color, #a29bfe)
  );
  color: var(--st-font-color, #ffffff);
}

.surftrust-layout--notification-bar-gradient .st-bar-button {
  background: #fff;
  color: var(--st-accent-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 - Simple Popup */
/* Move the X outside the image (top right) */
.surftrust-layout--image-popup-simple .surftrust-close-btn {
  top: -12px;
  right: -12px;
  background: rgba(0, 0, 0, 0.6) !important;
  color: white !important;
  border: 2px solid white !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 9999999;
}
.surftrust-layout--image-popup-simple .surftrust-close-btn:hover {
  background: rgba(0, 0, 0, 0.9) !important;
}
/* ==========================================================================
   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: var(--st-bg-color);
  color: var(--st-font-color);
  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: var(--st-bg-color);
  color: var(--st-font-color);
  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: var(--st-accent-color); /* Theme accent color */
  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: var(--st-accent-color);
  opacity: 0.9;
}

/* Close Button Position Override - Dialog */
.surftrust-layout--image-popup-dialog .surftrust-close-btn {
  background: rgba(0, 0, 0, 0.4) !important;
  color: white !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: var(--st-bg-color, #6c5ce7); /* Default fallback */
  color: var(--st-font-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 */
}

/* ==========================================================================
   VERTICAL BAR - MOBILE RESPONSIVE STYLES
   ========================================================================== */
@media only screen and (max-width: 768px) {
  /* Make vertical bar slightly smaller on tablets */
  .surftrust-notification-wrapper.surftrust-layout--notification-bar-vertical {
    min-width: 35px !important;
    padding: 25px 8px !important;
    gap: 10px !important;
  }

  /* Smaller button on mobile */
  .surftrust-layout--notification-bar-vertical .st-bar-button {
    padding: 5px 12px !important;
    font-size: 10px !important;
  }

  /* Smaller close button */
  .surftrust-layout--notification-bar-vertical .surftrust-close-btn {
    font-size: 12px !important;
  }
}

@media only screen and (max-width: 480px) {
  /* Even smaller on phones */
  .surftrust-notification-wrapper.surftrust-layout--notification-bar-vertical {
    min-width: 32px !important;
    padding: 20px 6px !important;
    gap: 8px !important;
    border-radius: 0 10px 10px 0 !important;
  }

  /* Even smaller button */
  .surftrust-layout--notification-bar-vertical .st-bar-button {
    padding: 4px 10px !important;
    font-size: 9px !important;
  }

  /* Even smaller close button */
  .surftrust-layout--notification-bar-vertical .surftrust-close-btn {
    font-size: 11px !important;
    top: 4px !important;
  }
}

/* ==========================================================================
   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);
  }
}

/* ==========================================================================
   GLOBAL SMART CONTRAST BUTTONS
   ========================================================================== */

/* 1. Target ALL Primary Buttons */
.st-preview-button,
.st-bar-button,
.st-dialog-button,
.st-btn-primary,
.st-btn-solid,
.st-btn-chip,
.st-btn-bubble {
  background-color: currentColor !important; /* Button takes text color */
  color: inherit !important; /* Text takes text color (initially) */
  border: none !important;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    opacity 0.2s;
}

/* 2. The Invert Trick */
/* Requires text to be wrapped in a <span> */
.st-preview-button span,
.st-bar-button span,
.st-dialog-button span,
.st-btn-primary span,
.st-btn-solid span,
.st-btn-chip span,
.st-btn-bubble span {
  filter: invert(1) grayscale(1) contrast(9);
  display: block;
  color: inherit;
}

/* 3. Hover Effect */
.st-preview-button:hover,
.st-bar-button:hover,
.st-dialog-button:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* 
   EXCEPTION: Secondary / Ghost Buttons 
   (These should NOT be filled) 
*/
.st-btn-secondary,
.st-btn-ghost {
  background-color: transparent !important;
  border: 1px solid currentColor !important;
  /* Disable the filter for outline buttons, just keep text as is */
}
.st-btn-secondary span,
.st-btn-ghost span {
  filter: none !important;
}
/* ==========================================================================
   GLOBAL TYPOGRAPHY OVERRIDES (With Mobile Protection)
   ========================================================================== */

/* 1. DESKTOP: Force Main Text to Inherit Builder Settings */
.surftrust-notification-wrapper .surftrust-content,
.surftrust-notification-wrapper .surftrust-content p,
.surftrust-notification-wrapper .surftrust-content span,
.surftrust-notification-wrapper .st-bar-message,
.surftrust-notification-wrapper .st-chip-text {
  font-size: inherit !important;
  font-family: inherit !important;

  /* --- THE FIX: FORCE COLOR INHERITANCE --- */
  color: inherit !important;

  line-height: 1.4;
}
/* 2. Scale Buttons Relative to Main Text (0.9x) */
.surftrust-notification-wrapper button,
.surftrust-notification-wrapper .st-preview-button,
.surftrust-notification-wrapper .st-bar-button,
.surftrust-notification-wrapper .st-btn-primary,
.surftrust-notification-wrapper .st-btn-secondary,
.surftrust-notification-wrapper .st-btn-chip,
.surftrust-notification-wrapper .st-btn-bubble,
.surftrust-notification-wrapper .st-btn-solid,
.surftrust-notification-wrapper .st-btn-ghost {
  font-size: 0.9em !important;
  font-family: inherit !important;
}

/* 3. Scale Headers Relative to Main Text (1.15x) */
.surftrust-notification-wrapper h4,
.surftrust-notification-wrapper .st-dialog-header,
.surftrust-notification-wrapper .st-preview-urgency-title,
.surftrust-notification-wrapper .st-preview-deal-title {
  font-size: 1.15em !important;
  font-family: inherit !important;
}

/* ==========================================================================
   MOBILE SAFETY NET (Max Width 600px)
   ========================================================================== */
/* ==========================================================================
   MOBILE RESPONSIVENESS (Max Width 600px) - SHRINKS ALL PROPORTIONS
   ========================================================================== */
/* ==========================================================================
   MOBILE RESPONSIVENESS (Max Width 600px) - SHRINKS ALL PROPORTIONS
   ========================================================================== */
@media only screen and (max-width: 600px) {
  /* 1. Global Wrapper Shrink (For Cards, Reviews, Cookies, etc.) */
  :host .surftrust-notification-wrapper:not([class*="notification-bar"]),
  html .surftrust-notification-wrapper:not([class*="notification-bar"]) {
    padding: 12px 14px !important;
    gap: 10px !important;
    width: 92% !important;
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 12px !important;
    bottom: 15px !important;
  }

  /* 2. Image Popups (Crucial Mobile Fix) */
  html .surftrust-notification-wrapper.surftrust-layout--image-popup-dialog {
    padding: 20px 15px !important;
    width: 90vw !important;
  }

  html
    .surftrust-notification-wrapper.surftrust-layout--image-popup-simple
    .st-popup-image {
    max-height: 60vh !important;
    width: auto !important;
  }

  html .surftrust-layout--image-popup-simple .surftrust-close-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 18px !important;
    top: -10px !important;
    right: -10px !important;
  }

  /* 3. Global Text & Image Shrink */
  html .surftrust-notification-wrapper .surftrust-content,
  html .surftrust-notification-wrapper .st-chip-text {
    font-size: 12px !important;
  }

  html .surftrust-notification-wrapper h4,
  html .surftrust-notification-wrapper .st-dialog-header,
  html .surftrust-notification-wrapper .st-modern-name,
  html .surftrust-notification-wrapper .st-trusted-product-name,
  html .surftrust-notification-wrapper .st-bubble-product-name {
    font-size: 14px !important;
    margin-bottom: 2px !important;
  }

  html .surftrust-notification-wrapper .st-preview-image--avatar,
  html .surftrust-notification-wrapper .st-preview-image--product,
  html .surftrust-notification-wrapper .st-modern-avatar {
    width: 40px !important;
    height: 40px !important;
  }

  html .surftrust-notification-wrapper .st-classic-image-wrapper {
    width: 48px !important;
    height: 48px !important;
    padding: 3px !important;
  }

  html .surftrust-notification-wrapper .st-bubble-image-container {
    width: 50px !important;
    height: 50px !important;
  }

  /* 4. Notification Bars Adjustments (FIXED 40px HEIGHT & INLINE) - Exclude Vertical Bar */
  :host .surftrust-notification-wrapper[class*="notification-bar"]:not(.surftrust-layout--notification-bar-vertical),
  html .surftrust-notification-wrapper[class*="notification-bar"]:not(.surftrust-layout--notification-bar-vertical) {
    width: 100% !important;
    border-radius: 0 !important;
    padding: 0 8px !important;
    height: 40px !important;
    min-height: 40px !important;
    bottom: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Force Bar elements to stay on ONE LINE */
  html
    .surftrust-notification-wrapper[class*="notification-bar"]:not(.surftrust-layout--notification-bar-vertical)
    .st-bar-content {
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100% !important;
    height: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 !important;
  }

  /* Shrink Timer */
  html
    .surftrust-notification-wrapper[class*="notification-bar"]:not(.surftrust-layout--notification-bar-vertical)
    .st-bar-timer {
    order: 1 !important;
    flex-shrink: 0 !important;
  }

  html
    .surftrust-notification-wrapper[class*="notification-bar"]:not(.surftrust-layout--notification-bar-vertical)
    .surftrust-countdown-timer {
    font-size: 11px !important;
    padding: 2px 4px !important;
    margin: 0 !important;
  }

  /* Squeeze Message */
  html
    .surftrust-notification-wrapper[class*="notification-bar"]:not(.surftrust-layout--notification-bar-vertical)
    .st-bar-message {
    order: 2 !important;
    flex: 1 1 auto !important;
    font-size: 11px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    display: block !important;
  }

  /* Shrink Button */
  html
    .surftrust-notification-wrapper[class*="notification-bar"]:not(.surftrust-layout--notification-bar-vertical)
    .st-bar-action {
    order: 3 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  html
    .surftrust-notification-wrapper[class*="notification-bar"]:not(.surftrust-layout--notification-bar-vertical)
    .st-bar-button,
  html
    .surftrust-notification-wrapper[class*="notification-bar"]:not(.surftrust-layout--notification-bar-vertical)
    .surftrust-coupon-btn {
    font-size: 10px !important;
    padding: 4px 8px !important;
    height: auto !important;
    min-height: 0 !important;
  }
  /* 1. Global Wrapper Shrink (For Cards, Reviews, Cookies, etc.) */
  :host .surftrust-notification-wrapper:not([class*="notification-bar"]),
  html .surftrust-notification-wrapper:not([class*="notification-bar"]) {
    padding: 12px 14px !important; /* Tighter padding */
    gap: 10px !important; /* Bring elements closer together */
    width: 92% !important;
    max-width: 340px !important; /* Shrink max-width so it doesn't feel like a brick */
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 12px !important; /* Slightly smaller border radius */
    bottom: 15px !important; /* Keep it close to the bottom */
  }

  /* 2. Image Popups (Crucial Mobile Fix) */
  html .surftrust-notification-wrapper.surftrust-layout--image-popup-dialog {
    padding: 20px 15px !important; /* Shrink massive 30px desktop padding */
    width: 90vw !important;
    height: 60vw !important; /* Make it more square on mobile to fit better */
  }

  html
    .surftrust-notification-wrapper.surftrust-layout--image-popup-simple
    .st-popup-image {
    max-height: 60vh !important; /* Prevent tall images from covering the whole phone screen */
    width: auto !important;
  }

  /* Shrink the Close Button on Image Popups so it doesn't look giant */
  html .surftrust-layout--image-popup-simple .surftrust-close-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 18px !important;
    top: -10px !important;
    right: -10px !important;
  }

  /* 3. Global Text & Image Shrink */
  html .surftrust-notification-wrapper .surftrust-content,
  html .surftrust-notification-wrapper .st-chip-text {
    font-size: 12px !important; /* Crisp, readable, but compact */
  }

  html .surftrust-notification-wrapper h4,
  html .surftrust-notification-wrapper .st-dialog-header,
  html .surftrust-notification-wrapper .st-modern-name,
  html .surftrust-notification-wrapper .st-trusted-product-name,
  html .surftrust-notification-wrapper .st-bubble-product-name {
    font-size: 14px !important;
    margin-bottom: 2px !important;
  }

  /* Shrink Avatars & Product Images */
  html .surftrust-notification-wrapper .st-preview-image--avatar,
  html .surftrust-notification-wrapper .st-preview-image--product,
  html .surftrust-notification-wrapper .st-modern-avatar {
    width: 40px !important;
    height: 40px !important;
  }

  html .surftrust-notification-wrapper .st-classic-image-wrapper {
    width: 48px !important;
    height: 48px !important;
    padding: 3px !important;
  }

  html .surftrust-notification-wrapper .st-bubble-image-container {
    width: 50px !important;
    height: 50px !important;
  }
}

/* Container for the buttons to sit side-by-side */
.surftrust-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* The Main Accept Button */
.surftrust-cookie-accept {
  background: var(--st-font-color);
  color: var(--st-bg-color);
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* --- THE MISSING CLASS --- */
.surftrust-cookie-decline {
  background: transparent;
  color: inherit; /* Inherits the text color of the popup */
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.surftrust-cookie-decline:hover {
  opacity: 1;
  text-decoration: none;
}
.surftrust-coupon-btn {
  cursor: pointer;
}
.st-bar-button,
.surftrust-coupon-btn,
.surftrust-close-btn {
  position: relative !important;
  z-index: 100 !important;
}
/* --- 1. Fix the Bar Layout (Flexbox) --- */
.surftrust-notification-wrapper.surftrust-layout--default,
.surftrust-notification-wrapper .st-bar-content {
  display: flex;
  align-items: center; /* Vertically center everything */
  justify-content: center;
  flex-wrap: wrap; /* Safe on mobile */
  gap: 10px; /* Space between items */
}

/* --- 2. Fix the Timer (Make it inline) --- */
.surftrust-countdown-timer {
  display: inline-flex !important; /* Forces it to sit next to text */
  align-items: center;
  background: rgba(0, 0, 0, 0.05); /* Subtle background instead of harsh grey */
  padding: 2px 8px;
  border-radius: 4px; /* Rounded corners */
  font-weight: 700;
  font-variant-numeric: tabular-nums; /* Prevents numbers from jumping */
  margin-left: 5px;
  margin-right: 5px;
  line-height: 1.2;
}

/* If the bar background is dark, make the timer text light */
.surftrust-notification-wrapper[style*="background-color: rgb(0, 0, 0)"]
  .surftrust-countdown-timer,
.surftrust-notification-wrapper[style*="background: #000"]
  .surftrust-countdown-timer {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* --- 3. Fix the Button Alignment --- */
.st-bar-button,
.surftrust-coupon-btn {
  margin: 0 !important; /* Remove random default margins */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  height: auto;
  padding: 6px 15px;
}

/* --- 4. Fix the Message Text --- */
.st-bar-message {
  display: inline-flex;
  align-items: center;
}
/* ==========================================================================
   3-COLUMN BAR LAYOUT (Timer | Message | Button)
   (Paste this at the VERY BOTTOM of surftrust-public.css)
   ========================================================================== */

/* 1. The Container - Align items horizontally */
.surftrust-notification-wrapper[class*="notification-bar"] .st-bar-content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  gap: 15px; /* Space between sections */
  width: 100%;
}

/* 2. The Individual Sections */
.st-bar-section {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 3. The Message (Middle) - Takes up available space */
.st-bar-message {
  flex-grow: 1;
  justify-content: center;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  display: flex !important; /* Fixes the inline-flex bug */
}

/* 4. Timer & Button (Sides) - Keep them compact */
.st-bar-timer,
.st-bar-action {
  flex-shrink: 0;
  white-space: nowrap;
}

/* 5. Fix Button Z-Index */
.surftrust-notification-wrapper .st-bar-button,
.surftrust-notification-wrapper .surftrust-coupon-btn {
  position: relative !important;
  z-index: 10 !important;
  margin: 0 !important;
}

/* 6. Ensure ALL buttons are ALWAYS above backdrop (which has z-index: 99998) */
.st-preview-button,
.st-bar-button,
.st-dialog-button {
  position: relative !important;
  z-index: 100001 !important; /* Above backdrop (99998) and notification (99999) */
  touch-action: manipulation; /* Better touch handling */
  pointer-events: auto !important;
}

/* 7. Fix Timer Styling */
.surftrust-notification-wrapper .surftrust-countdown-timer {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  margin: 0 !important;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (Stack on small screens)
   ========================================================================== */

/* Micro-Screens (iPhone SE, etc) */
/* ==========================================================================
   MICRO-SCREENS (Max Width 380px) - iPhone SE, Small Androids
   ========================================================================== */
@media only screen and (max-width: 380px) {
  /* 1. Squeeze the padding even tighter */
  :host .surftrust-notification-wrapper,
  html .surftrust-notification-wrapper {
    padding: 10px 12px !important;
    gap: 10px !important;
    width: 95% !important; /* Take up slightly more of the tiny screen */
  }

  /* 2. Drop the base font size down to 12px */
  html .surftrust-notification-wrapper .surftrust-content,
  html .surftrust-notification-wrapper .st-bar-message,
  html .surftrust-notification-wrapper .st-chip-text {
    font-size: 12px !important;
  }

  /* 3. Drop headers to 13px */
  html .surftrust-notification-wrapper h4,
  html .surftrust-notification-wrapper .st-dialog-header,
  html .surftrust-notification-wrapper .st-modern-name,
  html .surftrust-notification-wrapper .st-trusted-product-name,
  html .surftrust-notification-wrapper .st-bubble-product-name {
    font-size: 13px !important;
  }

  /* 4. Shrink Avatars/Images to 36px */
  html .surftrust-notification-wrapper .st-preview-image--avatar,
  html .surftrust-notification-wrapper .st-preview-image--product,
  html .surftrust-notification-wrapper .st-modern-avatar {
    width: 36px !important;
    height: 36px !important;
  }
}
.surftrust-notification-wrapper.st-preview-notification.st-preview--stock-urgent-icon.surftrust-layout--stock-urgent-icon {
  text-align: center;
}
/* ==========================================================================
   SALE: MODERN CARD LAYOUT (PUBLIC CSS)
   This goes in surftrust-public.css so it applies to both Admin and Frontend
   ========================================================================== */

/* 1. Main Container - Force Side-by-Side (Row) */
.surftrust-notification-wrapper.surftrust-layout--sale-modern-card {
  display: flex !important;
  flex-direction: row !important; /* Forces Avatar and Text side-by-side */
  align-items: center !important;
  padding: 18px !important;
  gap: 18px !important;
  background: var(--st-bg-color, #ffffff);
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  width: max-content !important; /* Prevents it from crushing the text */
  max-width: 450px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif !important;
}

/* 2. Avatar & Badge Wrapper */
.surftrust-layout--sale-modern-card .st-modern-avatar-wrapper {
  position: relative !important;
  flex-shrink: 0 !important; /* Prevents avatar from shrinking */
  display: flex !important;
  margin: 0 !important;
}

/* The Avatar Image */
.surftrust-layout--sale-modern-card .st-modern-avatar {
  width: 65px !important;
  height: 65px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid #ffffff !important;
  box-shadow:
    0 0 0 1px #e2e4e7,
    0 4px 8px rgba(0, 0, 0, 0.08) !important;
  margin: 0 !important;
}

/* The Green Checkmark Badge */
.surftrust-layout--sale-modern-card .st-modern-badge {
  position: absolute !important;
  bottom: 0rem !important;
  left: 45px !important;
  background-color: #50b848 !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
  z-index: 2;
}

.surftrust-layout--sale-modern-card .st-modern-badge svg {
  width: 12px !important;
  height: 12px !important;
}

/* 3. Text Content Area */
.surftrust-layout--sale-modern-card .st-modern-content {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* User Name */
.surftrust-layout--sale-modern-card .st-modern-name {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--st-font-color) !important;
  line-height: 1.2 !important;
  margin-bottom: 4px !important;
  letter-spacing: -0.3px !important;
}

/* Action & Product */
.surftrust-layout--sale-modern-card .st-modern-action {
  font-size: 14px !important;
  color: var(--st-secondary-color) !important;
  margin: 0 !important;
}

.surftrust-layout--sale-modern-card .st-modern-action strong {
  color: var(--st-font-color) !important;
  font-weight: 700 !important;
}

/* Horizontal Divider */
.surftrust-layout--sale-modern-card .st-modern-divider {
  height: 1px !important;
  background-color: #e2e4e7 !important;
  width: 100% !important;
  margin: 10px 0 !important;
}

/* Time & Location Metadata */
.surftrust-layout--sale-modern-card .st-modern-meta {
  font-size: 13px !important;
  color: var(--st-secondary-color) !important;
  margin: 0 !important;
}

.surftrust-layout--sale-modern-card .st-modern-meta strong {
  color: var(--st-font-color) !important;
  font-weight: 700 !important;
}
/* ==========================================================================
   SALE: MODERN GRADIENT CARD (Split Layout)
   ========================================================================== */

/* 1. Main Wrapper Reset */
.surftrust-notification-wrapper.surftrust-layout--sale-modern-gradient-card {
  padding: 0 !important; /* Remove default padding so gradient touches edges */
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important; /* Stretch columns to match height */
  overflow: hidden !important; /* Clips the child backgrounds to the border radius */
  background: var(--st-bg-color, #ffffff);
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 420px !important;
}

/* 2. LEFT SIDE (40%) - Gradient Background */
.st-gradient-left {
  width: 35% !important; /* Slightly less than 40 to give text breathing room */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 10px !important;
  color: #ffffff !important;
  text-align: center !important;
}

.st-gradient-avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  margin-bottom: 8px !important;
}

.st-avatar-initial {
  font-size: 22px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
}

.st-gradient-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

/* 3. RIGHT SIDE (60%) - White Background */
.st-gradient-right {
  width: 65% !important;
  padding: 16px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  background: #ffffff !important; /* Keep this white for contrast with gradient side */
}

.st-gradient-header {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.st-customer-fullname {
  font-weight: 800 !important;
  font-size: 16px !important;
  color: var(--st-font-color) !important;
  letter-spacing: -0.2px !important;
}

.st-verified-badge {
  width: 16px !important;
  height: 16px !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
}

.st-verified-badge svg {
  width: 10px !important;
  height: 10px !important;
}

.st-gradient-location {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 12px !important;
  color: var(--st-secondary-color) !important;
  font-weight: 500 !important;
}

.st-gradient-location svg {
  width: 12px !important;
  height: 12px !important;
}

.st-gradient-purchase {
  font-size: 13px !important;
  color: var(--st-secondary-color) !important;
  line-height: 1.4 !important;
  margin-top: 2px !important;
}

.st-gradient-purchase .st-product-name {
  font-weight: 700 !important;
  color: var(--st-accent-color) !important;
}

.st-gradient-right .st-time-ago {
  font-size: 11px !important;
  color: var(--st-secondary-color) !important;
  font-weight: 600 !important;
  margin-top: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
/* ==========================================================================
   SHIMMER BUTTON EFFECT (Applied to Dark Bar)
   ========================================================================== */

/* 1. Prepare the button to hold the animation */
.surftrust-layout--notification-bar-dark .st-bar-button,
.surftrust-layout--notification-bar-dark .surftrust-coupon-btn {
  position: relative !important;
  overflow: hidden !important;
}

/* 2. Ensure the text stays on top of the shine */
.surftrust-layout--notification-bar-dark .st-bar-button span,
.surftrust-layout--notification-bar-dark .surftrust-coupon-btn span {
  position: relative;
  z-index: 2;
}

/* 3. Create the Shine Line */
.surftrust-layout--notification-bar-dark .st-bar-button::after,
.surftrust-layout--notification-bar-dark .surftrust-coupon-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  /* A bright, semi-transparent white gradient */
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: stShineSweep 3.5s infinite; /* Sweeps every 3.5 seconds */
  z-index: 1;
  pointer-events: none; /* Ensures the shine doesn't block mouse clicks */
}

/* 4. The Animation Logic */
@keyframes stShineSweep {
  0% {
    left: -100%;
  }
  15% {
    left: 200%;
  } /* Moves quickly across the button */
  100% {
    left: 200%;
  } /* Pauses invisibly off-screen before looping */
}

/* ==========================================================================
   SPLIT BLOCK TIMER (Used in Gradient Bar)
   ========================================================================== */
.surftrust-countdown-timer.st-timer-blocks {
  display: inline-flex !important;
  gap: 4px;
  background: transparent !important;
  padding: 0 !important;
}

.surftrust-countdown-timer.st-timer-blocks .st-time-unit {
  background: rgba(0, 0, 0, 0.15); /* Dark transparent background */
  color: inherit;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

/* Tiny labels under the numbers */
.surftrust-countdown-timer.st-timer-blocks .st-time-label {
  font-size: 8px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 2px;
}
/* ==========================================================================
   PANIC MODE (Urgency Timer Pulse)
   ========================================================================== */
.st-timer-panic {
  color: #ff4757 !important; /* High urgency red */
  animation: stHeartbeat 1s infinite;
  border-color: #ff4757 !important; /* In case it's a block timer with borders */
}

/* Optional: Make the icon inside the timer red too */
.st-timer-panic .dashicons,
.st-timer-panic .st-time-label {
  color: #ff4757 !important;
}

@keyframes stHeartbeat {
  0% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.08);
  } /* Quick pulse up */
  30% {
    transform: scale(1);
  } /* Quick pulse down */
  100% {
    transform: scale(1);
  }
}

/* ==========================================================================
   BUILDER PREVIEW CONTAINMENT (SHADOW DOM SAFE)
   ========================================================================== */

/* 1. Strip fixed positioning when inside the builder preview */
:host .surftrust-notification-wrapper {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0 auto !important;
  transform: none !important;
  animation: none !important; /* Stop entrance animations from messing up the grid */
}

:host
  .surftrust-notification-wrapper[class*="notification-bar"]:not(
    .surftrust-layout--notification-bar-vertical
  ) {
  width: 90% !important; /* Leave breathing room on the sides */
  max-width: 1000px !important;
  border-radius: 8px !important; /* Soften the edges for the preview card */
}

/* 3. Ensure the folded bar doesn't break the bounding box */
:host
  .surftrust-notification-wrapper.surftrust-layout--notification-bar-folded {
  width: 85% !important;
}
/* 💥 4. NEW FIX: Keep Vertical Bar Thin in Previews! */
:host
  .surftrust-notification-wrapper.surftrust-layout--notification-bar-vertical {
  width: auto !important;
  min-width: 45px !important;
  border-radius: 12px !important;
}
/* ==========================================================================
   IMAGE POPUP - SPLIT OPT-IN (Half & Half)
   ========================================================================== */
.surftrust-notification-wrapper.surftrust-layout--image-popup-split {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) scale(0.9) !important;

  /* Reset Box Model */
  width: 90vw !important;
  max-width: 800px !important; /* Wide enough for the split */
  height: auto !important;
  min-height: 400px !important;
  margin: 0 !important;
  padding: 0 !important; /* Remove padding so image touches the edges */

  /* Dialog Style */
  background: var(--st-bg-color, #ffffff) !important;
  color: var(--st-font-color, #333333) !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;

  /* The Split Flex Layout */
  display: flex !important;
  flex-direction: row !important; /* Side by side on desktop */
  overflow: hidden !important; /* Clips the image inside the rounded corners */

  opacity: 0;
  z-index: 999999 !important;
  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-split.is-visible {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

/* LEFT SIDE: The Image Layer */
.surftrust-layout--image-popup-split .st-split-image-panel {
  flex: 1 1 50% !important;
  background-color: #f1f5f9;
  display: flex !important; /* CRITICAL: Force the container to be a flexbox */
}

.surftrust-layout--image-popup-split .st-split-image-panel img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* RIGHT SIDE: The Content Panel */
.surftrust-layout--image-popup-split .st-split-content-panel {
  flex: 1 1 50% !important;
  padding: 50px 40px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  text-align: left !important;
}

/* Typography inside the Split Card */
.surftrust-layout--image-popup-split .st-split-header {
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin: 0 0 10px 0 !important;
  color: inherit !important;
}

.surftrust-layout--image-popup-split .st-split-body {
  font-size: 15px !important;
  line-height: 1.5 !important;
  margin: 0 0 25px 0 !important;
  opacity: 0.8;
  color: inherit !important;
}

/* The Email Input Field */
.surftrust-layout--image-popup-split .st-split-input-wrapper {
  width: 100% !important;
  margin-bottom: 15px !important;
}

.surftrust-layout--image-popup-split .st-split-input {
  width: 100% !important;
  padding: 14px 15px !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #333 !important;
  box-sizing: border-box !important;
}

/* The Action Button */
.surftrust-layout--image-popup-split .st-split-button {
  width: 100% !important;
  padding: 14px 20px !important;
  background: var(--st-accent-color, #2563eb) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}

.surftrust-layout--image-popup-split .st-split-button:hover {
  opacity: 0.9 !important;
}

/* Close Button Override - Split Popup */
.surftrust-layout--image-popup-split .surftrust-close-btn {
  background: rgba(0, 0, 0, 0.4) !important;
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* --- MOBILE RESPONSIVENESS: Stack the Split Opt-In --- */
@media only screen and (max-width: 768px) {
  .surftrust-notification-wrapper.surftrust-layout--image-popup-split {
    flex-direction: column !important; /* Stack vertically on phones! */
    max-width: 360px !important;
  }

  .surftrust-layout--image-popup-split .st-split-image-panel {
    height: 200px !important; /* Give image a fixed height on top */
    flex: none !important;
    width: 100% !important;
  }

  .surftrust-layout--image-popup-split .st-split-content-panel {
    padding: 30px 20px !important;
    text-align: center !important;
    align-items: center !important;
  }
}
/* ==========================================================================
   IMAGE POPUP - FLOATING CUTOUT (Transparent PNG Mascot)
   ========================================================================== */
/* 1. Destroy the default white box */
.surftrust-notification-wrapper.surftrust-layout--image-popup-floating {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  max-width: 400px !important; /* Good default size for floating badges/mascots */

  /* CRITICAL: Let clicks pass through the invisible corners of the box */
  pointer-events: none !important;
}

/* 2. Re-enable clicks only on the actual image and close button */
.surftrust-layout--image-popup-floating .st-floating-image-container,
.surftrust-layout--image-popup-floating .surftrust-close-btn {
  pointer-events: auto !important;
}

/* 3. The 3D Image Effect */
.surftrust-layout--image-popup-floating .st-floating-image {
  width: 100% !important;
  height: auto !important;
  display: block !important;

  /* 💥 THE MAGIC: This creates a shadow that perfectly hugs the transparent PNG shape */
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4)) !important;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* 4. Interactive Hover Bounce */
.surftrust-layout--image-popup-floating .st-floating-image-container a {
  display: block !important;
  cursor: pointer !important;
}

.surftrust-layout--image-popup-floating
  .st-floating-image-container
  a:hover
  .st-floating-image {
  transform: translateY(-8px) scale(1.03) !important;
}

/* 5. Floating Close Button - positioned outside for transparent popups */
.surftrust-layout--image-popup-floating .surftrust-close-btn {
  top: -12px;
  right: -12px;
  background: rgba(0, 0, 0, 0.6) !important;
  color: white !important;
  border: 2px solid white !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
/* ==========================================================================
   IMAGE POPUP - CINEMATIC TAKEOVER (Full Screen)
   ========================================================================== */
.surftrust-notification-wrapper.surftrust-layout--image-popup-fullscreen {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.95) !important;

  /* Make it massive */
  width: 95vw !important;
  max-width: 1000px !important;
  height: auto !important;
  max-height: 90vh !important;
  margin: 0 !important;
  padding: 0 !important;

  background: var(--st-bg-color, #0f0f0f) !important;
  color: var(--st-font-color, #ffffff) !important;
  border-radius: 24px !important;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6) !important;
  overflow: hidden !important;
  z-index: 999999 !important;
  opacity: 0;
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.surftrust-notification-wrapper.surftrust-layout--image-popup-fullscreen.is-visible {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

/* 💥 THE MAGIC: Blur the entire website behind the popup! */
body:has(.surftrust-layout--image-popup-fullscreen.is-visible)
  .surftrust-backdrop {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Internal Layout */
.surftrust-layout--image-popup-fullscreen .st-cinematic-wrapper {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 90vh !important;
}

/* Top Image Panel */
.surftrust-layout--image-popup-fullscreen .st-cinematic-image-panel {
  width: 100% !important;
  height: 45vh !important; /* Takes up almost half the screen */
  min-height: 300px !important;
  flex-shrink: 0 !important;
  background: #111;
}

.surftrust-layout--image-popup-fullscreen .st-cinematic-image-panel img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Bottom Content Panel */
.surftrust-layout--image-popup-fullscreen .st-cinematic-content-panel {
  padding: 50px 8% !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex-grow: 1 !important;
}

.surftrust-layout--image-popup-fullscreen .st-cinematic-header {
  font-size: 42px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: -1px !important;
  margin: 0 0 15px 0 !important;
  line-height: 1.1 !important;
  color: inherit !important;
}

.surftrust-layout--image-popup-fullscreen .st-cinematic-body {
  font-size: 18px !important;
  line-height: 1.6 !important;
  opacity: 0.85 !important;
  margin: 0 0 35px 0 !important;
  max-width: 700px !important;
  color: inherit !important;
}

.surftrust-layout--image-popup-fullscreen .st-cinematic-button {
  display: inline-block !important;
  background: var(--st-accent-color, #ef4444) !important;
  color: #fff !important;
  padding: 18px 50px !important;
  border-radius: 50px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  text-decoration: none !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
}

.surftrust-layout--image-popup-fullscreen .st-cinematic-button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4) !important;
}

/* Close Button Over Image */
.surftrust-layout--image-popup-fullscreen .surftrust-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

/* Mobile Adjustments */
@media only screen and (max-width: 768px) {
  .surftrust-notification-wrapper.surftrust-layout--image-popup-fullscreen {
    width: 90vw !important;
    border-radius: 16px !important;
  }
  .surftrust-layout--image-popup-fullscreen .st-cinematic-image-panel {
    height: 30vh !important;
    min-height: 200px !important;
  }
  .surftrust-layout--image-popup-fullscreen .st-cinematic-content-panel {
    padding: 30px 20px !important;
  }
  .surftrust-layout--image-popup-fullscreen .st-cinematic-header {
    font-size: 28px !important;
  }
  .surftrust-layout--image-popup-fullscreen .st-cinematic-body {
    font-size: 15px !important;
    margin: 0 0 25px 0 !important;
  }
  .surftrust-layout--image-popup-fullscreen .st-cinematic-button {
    padding: 15px 30px !important;
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}
