.unlock-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* spacing between svg and text */
    position: relative;
    background: white !important;
    border: 2px solid transparent !important;
    border-radius: 15px !important;
    color: #daad56 !important;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    padding: 10px 14px;
    background-image: 
      linear-gradient(white, white), 
      linear-gradient(to right, #d4af37, #ffd700, #f6e27f);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 10px rgba(218, 173, 86, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
  }
  
  /* Align the crown SVG vertically */
  .unlock-btn svg.crown-path {
    vertical-align: middle;
    transform: translateY(-3px); /* Fine-tune if it's still slightly off */
    flex-shrink: 0;
  }
  
  .unlock-btn span {
    display: inline-block;
    transform: translateX(-7px); /* Move right */
  }
  
  
  /* ✨ SHIMMER EFFECT */
  .unlock-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-20deg);
    animation: shimmer 2s infinite;
    z-index: 2;
    pointer-events: none;
    border-radius: 15px;
  }
  
  /* ✨ SHIMMER ANIMATION */
  @keyframes shimmer {
    0% {
      left: -75%;
    }
    100% {
      left: 125%;
    }
  }
  
  /* 🔁 ON HOVER — SWITCH TO GOLD */
  .unlock-btn:hover {
    background-image: 
      linear-gradient(to right, #ffd700, #f6e27f), 
      linear-gradient(to right, #ffd700, #f6e27f, #ffd700);
    color: #000 !important;
    box-shadow: 0 0 15px rgba(218, 173, 86, 0.6);
  }


/* === CONTAINER === */
.email-message-cta-banner ,
.qr-message-cta-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.email-message-cta-left,
.qr-message-cta-left,
.email-message-cta-right,
.qr-message-cta-right {
  flex: none;
}

/* === CTA TEXT === */
.email-message-cta-text,
.qr-message-cta-text {
  font-size: 1rem;
  font-weight: 400;
  color: #222;
  margin: 0;
}

/* === BUTTON === */
.email-message-cta-btn,
.qr-message-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  background: white;
  border: 2px solid #daad56;
  border-radius: 4px;
  color: #daad56;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 14px;
  background-image:
    linear-gradient(white, white),
    linear-gradient(to right, #d4af37, #ffd700, #f6e27f);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 10px rgba(218, 173, 86, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
  text-decoration: none;
}

/* ✨ SHIMMER EFFECT */
.email-message-cta-btn::before,
.qr-message-cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-20deg);
  animation: shimmer 2s infinite;
  z-index: 2;
  pointer-events: none;
  border-radius: 15px;
}

/* ✨ SHIMMER ANIMATION */
@keyframes shimmer {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

/* === BUTTON TEXT === */
.email-message-cta-btn-text,
.qr-message-cta-btn-text {
  margin: 0;
}

/* === ICON === */
.email-message-cta-icon,
.qr-message-cta-icon {
  width: 18px;
  height: auto;
  margin-left: 4px;
  transform: translateY(-1px);
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .email-message-cta-banner,
  .qr-message-cta-banner  {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}


.ai-body.collapsed {
  display: none;
}

.ai-toggle-icon {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.ai-toggle-icon.rotate {
  transform: rotate(180deg);
}

.sparkles-wrapper {
  position: relative;
  display: inline-block;
  width: 35px; /* or the width of your icon */
  height: 35px; /* match your icon height */
  overflow: hidden; /* Prevent shimmer overflow */
  border-radius: 50%; /* Optional: smooth shimmer edges */
}

.sparkles-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-20deg);
  animation: shimmer 2s infinite;
  pointer-events: none;
  border-radius: 50%;
}

@keyframes shimmer {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
}

/* Group the icon and text */
.ai-header-left {
  display: flex;
  align-items: center;
  gap: 10px; /* spacing between sparkles and Jay */
}

.ai-header-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ai-header span {
  font-weight: 400;
  font-size: 18px;
  color: #232323;
}

.ai-input {
  display: flex;
  align-items: center;
  border: 2px solid #daad56; /* gold border */
  border-radius: 10px;
  padding: 6px 10px;
  background-color: #fff;
  gap: 8px;
  margin-bottom: 1rem;
}

.ai-input textarea {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 8px;
  color: #333;
  background: transparent;
  resize: none;
  line-height: 1.6em;
  max-height: 3.2em; /* roughly 2 lines */
  overflow-y: auto;
  height: auto;
  min-height: 1.6em;
}

.ai-input input::placeholder {
  color: #999;
}

#send-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#send-btn img {
  width: 22px;
  height: 22px;
}

.ai-suggestions {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding: 16px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ai-suggestions::-webkit-scrollbar {
  display: none;
}

.suggestion-item {
  flex: 0 0 calc(33.333% - 16px); /* 3 visible at a time with spacing */
  scroll-snap-align: center;
  text-align: center;
  padding: 12px 16px;
  background-color: #fdfdfd;
  border-radius: 8px;
  font-size: 14px;
  position: relative;
  border: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.suggestion-item:hover {
  background-color: #fffbe6;
  border-color: #daad56;
}

#ai-response {
  width: 100%;
  min-height: 150px;
  max-height: 300px;
  padding: 12px;
  padding-bottom: 48px;
  border-radius: 8px;
  font-size: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  color: #333;

  /* 👇 Key styles to mimic <textarea> behavior */
  overflow-y: auto;
  overflow-x: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.6;
  user-select: text;
}

.ai-footer {
  position: relative;
  margin-top: 1rem;
}

/* ICON CONTAINER */
.ai-footer-icons {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
}

.left-icon,
.right-icons img {
  width: 24px;
  height: 24px;
  cursor: pointer;
  pointer-events: auto; /* allow clicking */
  transition: transform 0.2s ease;
}

.left-icon:hover,
.right-icons img:hover {
  transform: scale(1.1);
}

/* Group the right icons */
.right-icons {
  display: flex;
  gap: 20px;
}

.icon-with-tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  background: linear-gradient(135deg, #444, #222); /* Premium dark gradient */
  color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  position: absolute;
  top: 130%; /* Below the icon */
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 999;
  opacity: 0;
  transition: none !important;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
  max-width: 140px;
  text-align: center;
  pointer-events: none;
}

.icon-with-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #222 transparent;
}

#send-btn img.stop-icon {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain;
  transition: all 0.2s ease-in-out;
}

.ai-footer-icons,
.ai-footer-icons * {
  user-select: none !important;
}

/* === EVENT TRIGGER SECTION === */

.event-trigger-container {
  margin-bottom: 1.5rem;
}

.event-trigger-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}


.event-trigger-label {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin: 0;
  white-space: nowrap;
}

.required {
  color: red !important;
}

.event-trigger-description {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
  margin-left: 2px;
}

/* === TOGGLE SWITCH === */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 28px;
  max-width: 60px;
  cursor: pointer;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.3s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #daad56;
}

input:checked + .slider:before {
  transform: translateX(32px);
}

.slider.round {
  border-radius: 34px;
}

/* === EVENT TRIGGER FIELDS CONTAINER === */
#event_trigger_fields {
  margin-top: 1.5rem;
}

/* === TOP LABEL ABOVE CHECKBOX BOX === */
#event_trigger_fields > label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

/* === CHECKBOX LIST CONTAINER === */
#event_trigger_fields .checkbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 20px;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

/* === INDIVIDUAL CHECKBOX LABELS === */
#event_trigger_fields .checkbox-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 400;
  color: #333;
  line-height: 1.4;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

/* === HOVER STATE (NO SHAKE) === */
#event_trigger_fields .checkbox-list label:hover {
  background-color: #f1f1f1;
}

/* === RESET & RESTORE CHECKBOX INPUTS === */
#event_trigger_fields .checkbox-list input[type="checkbox"] {
  all: unset;
  appearance: checkbox;
  width: 18px;
  height: 18px;
  display: inline-block;
  position: static;
  opacity: 1;
  visibility: visible;
  vertical-align: middle;
  cursor: pointer;
  accent-color: #daad56;
}

/* === CUSTOM DATE PICKER === */
#custom_date_picker {
  margin-top: 10px;
  padding-left: 26px;
}

#custom_date_picker input[type="date"] {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  color: #333;
  width: 100%;
  max-width: 240px;
}

.recommend-toggle {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.star-icon {
  stroke: #DAA520;
  fill: #fff3cd; /* light yellowish interior */
  stroke-width: 1.5;
  transition: fill 0.3s ease, transform 0.3s ease;
}

.recommend-toggle.active .star-icon {
  fill: #DAA520;
  animation: popStar 0.4s ease;
}

@keyframes popStar {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* === Base table styles (apply globally) === */
.job-schedule-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: auto !important;
}

.job-schedule-table img {
  max-width: 100px !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

/* === Only apply layout refinements on larger screens === */
@media (min-width: 768px) {
  .job-schedule-table th,
  .job-schedule-table td {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 12px 10px !important;
    border: 1px solid #ccc !important;
    white-space: nowrap;
  }

  .job-schedule-table th:nth-child(2),
  .job-schedule-table td:nth-child(2) {
    width: 120px !important; /* image column */
  }

  .job-schedule-table th:last-child,
  .job-schedule-table td:last-child {
    text-align: left !important;
  }
}


/* Tooltip text via ::after */
.custom-th-label::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1f1f1f;
  color: #eee;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  white-space: normal;
  width: 240px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
  z-index: 9999;
  pointer-events: none;
  font-weight: 300;
}

/* Show on hover */
.custom-th-label:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Container for badge stack */
.ai-badge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
}

/* Base badge styling */
.badge-ai-product {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  animation: fadeInScale 0.3s ease-in-out;
  clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0% 100%);
}

/* Kitchen Recommended - Purple */
.kitchen-recommended {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  border: none;
}

/* Best Seller - Hot Red */
.best-ai-seller {
  background: linear-gradient(135deg, #ff4b2b, #ff416c);
  border: none;
}

/* Fade in animation */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.geo-tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
  font-size: 15px;
  color: #333;
}

.geo-tooltip-icon {
  position: relative;
  display: inline-block;
  cursor: help;
  margin-left: 4px;
  vertical-align: middle;
}

.geo-tooltip-icon img {
  width: 16px;
  height: 16px;
  display: block;
}

.geo-tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  color: #fff;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
  text-align: left;
  z-index: 999;
}

.geo-tooltip-icon:hover .geo-tooltip-text {
  visibility: visible;
  opacity: 1;
}

.geo-tooltip-text::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #222 transparent;
}

.qr-trigger-tooltip-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 5px;
}

.qr-tooltip-content {
  display: none;
  position: absolute;
  top: 20px;
  left: 0;
  background: #232323;
  color: #fff;
  padding: 8px 10px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 12px;
  z-index: 1000;
}
.qr-trigger-tooltip-wrapper:hover .qr-tooltip-content {
  display: block;
}
