/* Modern & Responsive Chat Widget CSS */
#ai-auto-sales-booster-for-woocommerce-chat-box , #ai-auto-sales-booster-for-woocommerce-chat-widget {
max-width: 300px;
}
#ai-auto-sales-booster-for-woocommerce-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); */
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
}

/* Ensure chat toggle is visible on small screens */
@media (max-width: 480px) {
  #ai-auto-sales-booster-for-woocommerce-chat-widget {
    bottom: 15px;
    right: 15px;
    width: calc(100% - 30px);
  }
}

#ai-auto-sales-booster-for-woocommerce-chat-toggle {
  background: linear-gradient(135deg, #0073aa, #005a87);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  /* box-shadow: 0 4px 10px rgba(0, 115, 170, 0.3); */
  transition: all 0.3s ease;
  outline: none;
  display: block;
  width: auto;
  min-width: 120px;
}

#ai-auto-sales-booster-for-woocommerce-chat-toggle:hover {
  background: linear-gradient(135deg, #005a87, #00446b);
  transform: translateY(-1px);
  /* box-shadow: 0 6px 14px rgba(0, 115, 170, 0.35); */
}

#ai-auto-sales-booster-for-woocommerce-chat-toggle:active {
  transform: translateY(0);
}

#ai-auto-sales-booster-for-woocommerce-chat-box {
  display: none;
  width: 300px;
  max-height: 60vh; /* Reduced initial height */
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  margin-top: 10px;
  padding: 16px;
  overflow: auto;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

@media (max-width: 480px) {
  #ai-auto-sales-booster-for-woocommerce-chat-box {
    width: 100%;
    max-height: 70vh;
    border-radius: 16px;
    padding: 14px;
	float:right;
  }
  #ai-auto-sales-booster-for-woocommerce-chat-toggle {
	  float:right;
  }
}

#ai-auto-sales-booster-for-woocommerce-chat-messages {
  height: calc(100% - 60px);
  overflow-y: auto;
  font-size: 14px;
  font-weight: 500;
  padding: 0 0 10px 0;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #0073aa #f1f1f1;
}

#ai-auto-sales-booster-for-woocommerce-chat-messages::-webkit-scrollbar {
  width: 6px;
}

#ai-auto-sales-booster-for-woocommerce-chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#ai-auto-sales-booster-for-woocommerce-chat-messages::-webkit-scrollbar-thumb {
  background: #0073aa;
  border-radius: 10px;
}

#ai-auto-sales-booster-for-woocommerce-chat-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

#ai-auto-sales-booster-for-woocommerce-chat-input:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Message styling */
.ai-auto-sales-booster-for-woocommerce-add-user-msg {
  text-align: right;
  margin: 10px 0;
  animation: slideInRight 0.3s ease-out;
}

.ai-auto-sales-booster-for-woocommerce-add-ai-msg {
  text-align: left;
  margin: 10px 0;
  animation: slideInLeft 0.3s ease-out;
}

.ai-auto-sales-booster-for-woocommerce-add-msg-ai {
  display: inline-block;
  vertical-align: middle;
  background: #f9f9fb;
  padding: 10px 14px;
  border-radius: 18px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.ai-auto-sales-booster-for-woocommerce-add-user-msg .ai-auto-sales-booster-for-woocommerce-add-msg-ai {
  background: #0073aa;
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* AI Product Suggestions Styling */
#ai-auto-sales-booster-for-woocommerce-chat-messages .ai-auto-sales-booster-for-woocommerce-ai-reply .ai-auto-sales-booster-for-woocommerce-suggestion {
  border: none;
  background: #f9f9fb;
  padding: 12px 0;
  margin-top: 8px;
  border-radius: 8px;
  /* border: 1px solid #eee; */
}

#ai-auto-sales-booster-for-woocommerce-chat-messages .ai-auto-sales-booster-for-woocommerce-ai-reply .ai-auto-sales-booster-for-woocommerce-suggestion h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  text-align: center;
}

/* Product Grid Layout – Max 2 per row */
#ai-auto-sales-booster-for-woocommerce-chat-messages .ai-auto-sales-booster-for-woocommerce-ai-reply .ai-auto-sales-booster-for-woocommerce-suggestion .product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 8px;
}

#ai-auto-sales-booster-for-woocommerce-chat-messages .ai-auto-sales-booster-for-woocommerce-ai-reply .ai-auto-sales-booster-for-woocommerce-suggestion .product-card {
  flex: 1 1 calc(50% - 8px); /* Two per row */
  max-width: 100%;
  border: none;
  padding: 0;
  background: transparent;
  text-align: center;
  font-size: 13px;
  border-radius: 8px;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); */
  transition: transform 0.2s ease;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 15px;
}

@media (max-width: 480px) {
  #ai-auto-sales-booster-for-woocommerce-chat-messages .ai-auto-sales-booster-for-woocommerce-ai-reply .ai-auto-sales-booster-for-woocommerce-suggestion .product-card {
    flex: 1 1 100%; /* Stack on mobile */
    max-width: 100%;
  }
}

#ai-auto-sales-booster-for-woocommerce-chat-messages .ai-auto-sales-booster-for-woocommerce-ai-reply .ai-auto-sales-booster-for-woocommerce-suggestion .product-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 6px;
  background: #f0f0f0;
  padding: 8px;
}

#ai-auto-sales-booster-for-woocommerce-chat-messages .ai-auto-sales-booster-for-woocommerce-ai-reply .ai-auto-sales-booster-for-woocommerce-suggestion .product-card h5 {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ai-auto-sales-booster-for-woocommerce-chat-messages .ai-auto-sales-booster-for-woocommerce-ai-reply .ai-auto-sales-booster-for-woocommerce-suggestion .product-card p {
  font-size: 12px;
  color: #666;
  margin: 4px 0;
  line-height: 1.3;
}

#ai-auto-sales-booster-for-woocommerce-chat-messages .ai-auto-sales-booster-for-woocommerce-ai-reply .ai-auto-sales-booster-for-woocommerce-suggestion .product-card .button {
  margin-top: auto;
  font-size: 12px;
  padding: 8px 16px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease;
  width: 100%;
  max-width: 120px;
  text-decoration: none;
}

#ai-auto-sales-booster-for-woocommerce-chat-messages .ai-auto-sales-booster-for-woocommerce-ai-reply .ai-auto-sales-booster-for-woocommerce-suggestion .product-card .button:hover {
  background: #000;
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
#ai-auto-sales-booster-for-woocommerce-chat-input {
	scroll-margin-bottom: 20px;
}

#ai-auto-sales-booster-for-woocommerce-chat-messages, #ai-auto-sales-booster-for-woocommerce-chat-messages .ai-auto-sales-booster-for-woocommerce-ai-reply .ai-auto-sales-booster-for-woocommerce-suggestion .product-card h5 {
	max-width: 100%;
	word-break: break-all;
}

/* Inline styles migrated to classes for cart suggesstions */
/* ---------- AI cart suggestions — no image background, flush images, black CTA ---------- */

/* outer container */
.ai-auto-sales-booster-for-woocommerce-inline-16 {
  margin-top: 30px;
  padding: 15px 6px;
  background: transparent;
  text-align: center;
  border: 0;
}
.ai-auto-sales-booster-for-woocommerce-inline-17 {
  margin: 0;
  font-style: italic;
  color: #555;
}

/* wrapper */
.ai-auto-sales-booster-for-woocommerce-inline-24 {
  margin-top: 10px;
  padding: 8px 6px;
}
.ai-auto-sales-booster-for-woocommerce-inline-25 {
  margin-bottom: 14px;
  /* font-size: 20px;
  font-weight: 500; */
  color: inherit;
  text-align: center;
}

/* products container: flex row, center aligned */
.ai-auto-sales-booster-for-woocommerce-inline-26 {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.ai-auto-sales-booster-for-woocommerce-post-thumbnail {
	width:100%; height:auto;
}
/* card: responsive for 5 columns on wide screens */
.ai-auto-sales-booster-for-woocommerce-inline-27 {
  box-sizing: border-box;
  width: calc(20% - 17.6px); /* 5 columns */
  min-width: 160px;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  padding-bottom: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 6px 18px rgba(0,0,0,0.03);
}

/* IMAGE — flush (no padding), no pale background, object-fit contain */
.ai-auto-sales-booster-for-woocommerce-inline-27 img,
.ai-auto-sales-booster-for-woocommerce-suggestion .wc-block-components-product-image img,
.ai-auto-sales-booster-for-woocommerce-suggestion img.attachment-woocommerce_thumbnail {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
  background: transparent !important; /* removed pale background */
  padding: 0 !important;               /* no padding */
  box-sizing: border-box;
  /* border-bottom: 1px solid rgba(0,0,0,0.02); */
  margin: 0;
}

/* content area */
.ai-auto-sales-booster-for-woocommerce-inline-27 .content {
  padding: 16px 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* title */
.ai-auto-sales-booster-for-woocommerce-inline-27 h4,
.ai-auto-sales-booster-for-woocommerce-inline-27 .product-title,
.ai-auto-sales-booster-for-woocommerce-inline-27 h3 {
  font-size: 17px;
  margin: 8px 0 8px;
  color: #222;
  line-height: 1.2;
  text-align: center;
}

/* price */
.ai-auto-sales-booster-for-woocommerce-inline-27 p,
.ai-auto-sales-booster-for-woocommerce-inline-27 .price {
  font-size: 15px;
  margin: 0 0 10px;
  color: #111;
}

/* reason text */
.ai-auto-sales-booster-for-woocommerce-inline-28 {
  font-size: 13px;
  color: #777;
  margin: 6px 0 12px;
  max-width: 88%;
  line-height: 1.35;
  /* display:none; */
  min-height: 40px;
}

/* ADD TO CART — force black CTA for AI suggestions (scoped only to these cards) */
.ai-auto-sales-booster-for-woocommerce-inline-27 .wp-block-button__link,
.ai-auto-sales-booster-for-woocommerce-inline-27 a.add_to_cart_button,
.ai-auto-sales-booster-for-woocommerce-inline-27 button.add_to_cart_button {
  background: #111 !important;
  color: #fff !important;
  border: none !important;
  display: inline-block;
  padding: 12px 34px !important;
  border-radius: 4px !important;
  font-size: 16px;
  text-decoration: none !important;
  box-shadow: none;
  margin: 0 auto 8px;
}

/* Ensure button sits at bottom of card content */
.ai-auto-sales-booster-for-woocommerce-inline-27 .content > .wp-block-button {
  margin-top: auto;
}

/* fallback spacing for nodes without .content */
.ai-auto-sales-booster-for-woocommerce-inline-27 > *:not(img) {
  /* padding-left: 14px;
  padding-right: 14px; */
}

/* Responsive breakpoints */
/* 5 columns on wide screens (default), then 4/3/2/1 */
@media (max-width: 1500px) {
  .ai-auto-sales-booster-for-woocommerce-inline-27 {
    width: calc(23% - 16px); /* 4 columns */
  }
  .ai-auto-sales-booster-for-woocommerce-inline-27 img { height: 230px; }
}
@media (max-width: 1100px) {
  .ai-auto-sales-booster-for-woocommerce-inline-27 {
    width: calc(33% - 14px); /* 3 columns */
    min-width: 200px;
  }
  .ai-auto-sales-booster-for-woocommerce-inline-27 img { height: 220px; }
}
@media (max-width: 800px) {
  .ai-auto-sales-booster-for-woocommerce-inline-27 {
    width: calc(49% - 12px); /* 2 columns */
    min-width: auto;
  }
  .ai-auto-sales-booster-for-woocommerce-inline-27 img { height: 200px; }
}
@media (max-width: 480px) {
  .ai-auto-sales-booster-for-woocommerce-inline-27 { width: 100%; }
  .ai-auto-sales-booster-for-woocommerce-inline-27 img { height: 170px; }
}

/* keep unchanged utilities */
.ai-auto-sales-booster-for-woocommerce-inline-29 { text-align:center; padding:10px; }
.ai-auto-sales-booster-for-woocommerce-inline-30 { margin:0; font-style:italic; color:#555; }

/* Safety: neutralize any injected background on wrapper */
.ai-auto-sales-booster-for-woocommerce-suggestion { background: transparent !important; }


/* product urgency */
.ai-auto-sales-booster-for-woocommerce-inline-31 {padding:10px; margin-top:10px; background:#fff8e1; border-left:5px solid orange;}
.ai-auto-sales-booster-for-woocommerce-inline-32 {margin:0;}
