.deepwbotcarousel-container {
  position: relative;
  width: 100%;
  /* max-width: 260px; Card width (200px) + padding (30px * 2) */
  margin: 10px auto;
  overflow: hidden;
  font-family: system-ui, sans-serif;
}

.deepwbotcarousel {
  display: flex;
  transition: transform 0.3s ease;
  gap: 16px;
  padding: 0 30px; /* Partial visibility for side cards */
}

/* Card */
.deepwbotcarousel-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-right: 0px;
  flex: 0 0 100%;
  background: var(--br-assistant-message-sec-bg, #f8fafc);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.deepwbot-select-order {
  align-self: flex-start;
  border: none;
  background: var(--br-assistant-message-btn-bg);
  color: var(--br-assistant-message-btn-text, #fff);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.deepwbot-select-order:hover {
  transform: translateY(-2px);
}

.deepwbotcarousel-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.deepwbotcarousel-item img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: contain;
}

.deepwbotcarousel-item div {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.deepwbotcarousel-item .name {
  color: var(--br-assistant-message-text-color, #1e293b);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deepwbotcarousel-item .stock {
  color: var(--br-assistant-message-sec-text-color, #16a34a);
  font-size: 11px;
  font-weight: 500;
}

/* out-of-stock state */
.deepwbotcarousel-item .stock.out {
  color: var(--br-danger, #dc2625);
}

/* inline action button */
.deepwbotcarousel-item button {
  background: var(--br-assistant-message-btn-bg);
  color: var(--br-assistant-message-btn-text, #ffffff);
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  margin-top: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease;
}

/* disabled state */
.deepwbotcarousel-item button:disabled {
  background: var(--br-suggestions-border, #d1d5db);
  cursor: not-allowed;
  opacity: 0.9;
}

.deepwbotcarousel-item button:hover:not(:disabled) {
  transform: translateY(-2px);
}

/* prev / next nav buttons */
.deepwbotcarousel-prev,
.deepwbotcarousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--br-assistant-message-btn-bg);
  color: var(--br-assistant-message-btn-text, #fff);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 10; /* Ensure buttons stay on top */
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.deepwbotcarousel-prev { left: 6px; }
.deepwbotcarousel-next { right: 6px; }

/* At the start/end of the list — fade and disable instead of disappearing,
 * so the control stays visible as a landmark rather than jumping the layout. */
.deepwbotcarousel-prev:disabled,
.deepwbotcarousel-next:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 600px) {
  .deepwbotcarousel-container {
    max-width: 210px; /* Smaller card (150px) + padding (30px * 2) */
  }

  .deepwbotcarousel-item {
    flex: 0 0 150px;
  }
}


.deepwbot-language-switcher {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  margin-right: 5px;
}

.deepwbot-language-switcher button,
.deepwbot-language-switcher select {
  margin: 0;
  border: none;
  border-radius: 6px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.deepwbot-language-dropdown {
  padding-right: 10px;
  appearance: none;
  color: var(--br-header-lang-button-text-color);
  border: none;
}

.deepwbot-language-dropdown:focus,
.deepwbot-language-dropdown:hover {
  outline: none;
  transform: scale(1.05);
  transition: all 0.18s ease;
}

.deepwbot-min-button,
.deepwbot-max-button,
.deepwbot-close-button {
  background: none;
  color: inherit;
  border: none;
}

.deepwbot-min-button {
  color: var(--br-header-controls-color);
  font-size: 25px;
}

.deepwbot-max-button {
  width: 28px;
}
.deepwbot-max-button span {
  color: var(--br-header-controls-color);
}

.deepwbot-close-button {
  color: var(--br-header-controls-color, red);
  font-size: 28px;
}

/* ---- hover / active ---- */
.deepwbot-language-switcher button:hover,
.deepwbot-language-switcher select:hover {
  transform: translateY(-1px);
}

.deepwbot-language-switcher button:active,
.deepwbot-language-switcher select:active {
  transform: translateY(0);
}

.deepwbot-title {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 15px;
  font-weight: bold;
  color: var(--br-header-title-color);
}

#deepwbot-chatSubTitle {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--br-header-subtitle-color);
}

.deepwbot-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

h5.mb-0 {
  color: var(--br-send-btn-text);
}

.deepwbot-ask-ai-button {
  background: var(--br-ask-btn-bg);
  color: var(--br-ask-btn-text);
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-size: 16px;
}
.deepwbot-ask-ai-button .askBTN {
  margin-left: 8px;
}
.deepwbot-ask-ai-button .icon-speech-bubbles {
  color: var(--br-ask-btn-text);
}

.deepwbot-ask-ai-button:hover {
  transform: translateY(-2px);
}

.deepwbot-chat-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 420px;
  max-width: 95vw;
  height: 600px;
  max-height: 80vh;
  background: var(--br-chat-body-bg);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Suggestions container */
.deepwbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px 3px 20px;
  max-width: 100%;
  overflow-x: auto;
  background: transparent;
}

@media (max-width: 480px) {
  .deepwbot-suggestions {
    flex-wrap: nowrap;
    gap: 6px;
  }
}

.deepwbot-suggestion-button {
  background-color: var(--br-suggestions-bg);
  color: var(--br-suggestions-text);
  border: 1px solid var(--br-suggestions-border);
  border-radius: 20px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.deepwbot-suggestion-button:hover {
  background-color: var(--br-suggestions-hover-bg);
  transform: scale(1.02);
  color: var(--br-suggestions-hover-text);
}

.deepwbot-suggestion-button:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--br-suggestions-hover-bg);
}

.deepwbot-suggestion-button:active {
  transform: scale(0.95);
}

.deepwbot-chat-header {
  padding: 3px 10px;
  height: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  background: var(--br-header-bg);
  color: var(--br-header-title-color);
  border-radius: 12px 12px 0 0;
  justify-content: space-between;
  border-bottom: 1px solid var(--br-header-subtitle-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 15px;
}

.deepwbot-chat-header .deepwbot-title img {
  width: 35px;
  height: 35px;
  background: var(--br-header-icon-bg);
  border-radius: 50%;
  margin-right: 8px;
  margin-bottom: 10px;
  object-fit: contain;
}

.deepwbot-chat-header .deepwbot-title {
  display: flex;
  align-items: center;
}

.deepwbot-chatSubTitle {
  display: block;
  color: var(--br-header-subtitle-color);
  font-size: 10.5px;
  font-weight: 400;
}

.deepwbot-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background-color: var(--br-chat-body-bg);
  display: flex;
  flex-direction: column;
}

.deepwbot-chat-messages {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.deepwbot-message-container {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.deepwbot-user-message {
  justify-content: flex-end;
}

.deepwbot-user-message img {
  order: 1;
  background: transparent;
}

.deepwbot-assistant-message {
  flex-direction: row;
  justify-content: flex-start;
}

.deepwbot-message-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 10px;
  background: transparent;
}

.deepwbot-message {
  padding: 10px 15px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
}

/* USER MESSAGE BUBBLE */
.deepwbot-message-user {
  background: var(--br-user-message-bg);
  color: var(--br-user-message-text-color);
  border-radius: 10px 10px 0 10px;
  margin-left: 0%;
  border: 1px solid var(--br-user-message-border);
}

/* ASSISTANT MESSAGE BUBBLE */
.deepwbot-message-assistant {
  background-color: var(--br-assistant-message-bg);
  color: var(--br-assistant-message-text-color);
  border: 1px solid var(--br-assistant-message-border);
  border-radius: 10px 10px 10px 0;
  font-size: 12px;
  font-weight: 400;
  position: relative;
}

.deepwbot-has-voice-toggle {
  padding-bottom: 22px;
}

.deepwbot-voice-toggle {
  position: absolute;
  bottom: 4px;
  right: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 2px;
  opacity: 0.6;
}

.deepwbot-voice-toggle:hover {
  opacity: 1;
}

/* IMAGE / AVATAR */
.deepwbot-message-image {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: contain;
  background: var(--br-header-icon-bg);
}

.deepwbot-message-error {
  background: var(--br-danger, #dc3545);
  color: var(--br-danger-text, #ffffff);
  align-self: flex-start;
}

.deepwbot-assistant-container {
  display: flex;
  align-items: center;
}

.deepwbot-assistant-container .deepwbot-message-assistant {
  margin-right: 10px;
}

/* FOOTER / CHAT INPUT */
.deepwbot-chat-footer-container {
  background: var(--br-chat-body-secondary-bg);
}

/* Menu Styles */
.deepwbot-menu-button {
  pointer-events: auto;
  margin-right: 8px;
  background: var(--br-input-bg);
  border: none;
  color: var(--br-input-text-color);
  font-size: 18px;
  width: 35px;
  height: 35px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Popup / Panel */
.deepwbot-popup-menu-full {
  width: auto;
  max-width: none;
  border-top: 1px solid var(--br-menu-text);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background: var(--br-menu-bg);
  box-shadow: 0 -8px 30px rgba(2,6,23,0.12);
  z-index: 90;
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 180ms;
  display: flex;
  flex-direction: column;
  max-height: 55%;
  overflow: auto;
  pointer-events: auto;
  padding-bottom: 8px;
  position: absolute;
  bottom: 0px;
  width: 100%;
}

.deepwbot-popup-menu-full.show {
  transform: translateY(0);
  opacity: 1;
  position: absolute;
  bottom: 0px;
  width: 100%;
}

.deepwbot-popup-header {
  padding: 12px 14px;
  // border-bottom: 1px solid var(--br-suggestions-border);
  display: flex;
  align-items: center;
  justify-content: end;
}

.deepwbot-popup-header #menuCloseBtn {
  border: none;
  color: var(--br-menu-text);
  border-radius: 50%;
  background: transparent;
}

.deepwbot-popup-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  justify-content: center;
  gap: 3px;
}

.icon-spacing {
  margin-left: 10px;
}

/* menu items */
.deepwbot-menu-item {
  padding: 6px;
  text-align: left;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  color: var(--br-menu-text);

}
.deepwbot-menu-item span {
  color: var(--br-menu-text);
}
.deepwbot-menu-item:hover {
  background: var(--br-menu-hover-bg);
}

/* helpers */
.deepwbot-d-none { display: none; }

/* small-screen tweak */
@media (max-width: 480px) {
  .deepwbot-popup-menu-full {
    left: 8px;
    right: 8px;
    bottom: 64px;
    max-height: 70%;
  }
}

#watermark {
  text-align: center;
  padding-bottom: 5px;
  font-size: 10px;
  color: var(--br-header-subtitle-color);
  font-family: Arial, sans-serif;
  width: 100%;
  display: flex;
  justify-content: center;
}

.deepwbot-chat-footer {
  padding: 10px;
  display: flex;
  align-items: flex-end;
}

.deepwbot-input-container {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: var(--br-input-container-bg);
  border-radius: 20px;
  padding: 2px 10px 4px 10px;
}

.deepwbot-chat-input {
  flex: 1;
  border: 1px solid var(--br-border-color, var(--br-input-text-color, #ddd));
  border-radius: 12px;
  box-shadow: 0px 4px 10px 0px rgba(223, 223, 223, 0.37);
  background: var(--br-input-bg);
  color: var(--br-input-text-color);
  resize: none;
  max-height: 100px;
  overflow-y: auto;
  padding: 8px;
  font-size: 12px;
}

.deepwbot-chat-input:focus {
  outline: none;
  border-radius: 20px;
  box-shadow: 0 0 0 3px var(--br-send-button-bg, rgba(77,150,104,0.2));
}

.deepwbot-chat-input::placeholder {
  font-family: sans-serif;
}

.deepwbot-send-button {
  background-color: var(--br-send-button-bg);
  box-shadow: 0px 3.05px 9.14px 0px rgba(13, 10, 44, 0.06);
  color: var(--br-send-btn-text);
  border: none;
  border-radius: 12px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.deepwbot-send-button:hover {
  transform: scale(1.05);
}

.deepwbot-mic-button {
  background-color: var(--br-input-bg);
  box-shadow: 0px 3.05px 9.14px 0px rgba(13, 10, 44, 0.06);
  color: var(--br-input-text-color);
  border: none;
  border-radius: 12px;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.deepwbot-mic-button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.deepwbot-mic-button:hover {
  transform: scale(1.05);
}

.deepwbot-mic-button.recording {
  background-color: #ef4444;
  color: #fff;
  animation: deepwbot-mic-pulse 1.4s infinite;
}

@keyframes deepwbot-mic-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.deepwbot-spinner-border {
  width: 25px;
  height: 25px;
  border-width: 3px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .deepwbot-chat-window {
    width: 95%;
    right: 2.5%;
    bottom: 10px;
  }
}

.deepwbot-d-none {
  display: none;
}

.deepwbot-chat-window.deepwbot-d-none {
  opacity: 0;
  transform: translateY(20px);
}

/* Responsive styles */
@media (max-width: 576px) {
  .deepwbot-context-button {
    width: calc(50% - 10px);
    height: 70px;
    font-size: 12px;
  }

  .deepwbot-ask-ai-button {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Improved message formatting */
.deepwbot-message:not(.deepwbot-message-user) {
  line-height: 1.4;
  font-size: 13px;
  color: var(--br-assistant-message-sec-text-color);
}

.deepwbot-message p {
  margin: 8px 0;
}

.deepwbot-message h4 {
  color: var(--br-assistant-message-text-color);
  margin: 12px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.deepwbot-message div.deepwbot-feature-block {
  margin: 8px 0;
  padding: 8px;
  background-color: var(--br-input-container-bg);
  border-radius: 6px;
}

.deepwbot-message div.deepwbot-benefits {
  margin-top: 12px;
  padding-left: 15px;
  border-left: 3px solid var(--br-assistant-message-sec-text-color);
}

.deepwbot-message .deepwbot-paragraph {
  margin: 8px 0;
  line-height: 1.5;
}

.deepwbot-list-number {
  display: inline-block;
  min-width: 1.8em;
  color: var(--br-assistant-message-sec-text-color);
  font-weight: 600;
}

.deepwbot-list-bullet {
  display: inline-block;
  width: 1.2em;
  color: var(--br-assistant-message-sec-text-color);
  font-weight: 700;
}

.deepwbot-message strong,
.deepwbot-message b, 
.deepwbot-message h1, 
.deepwbot-message h2, 
.deepwbot-message h3 {
  font-weight: 600;
  color: var(--br-assistant-message-text-color);
}

.deepwbot-product-item {
  margin-bottom: 12px;
  font-weight: 500;
}

.deepwbot-detail-item {
  margin-left: 20px;
  margin-bottom: 4px;
}

.deepwbot-detail-label {
  font-weight: 600;
  color: var(--br-assistant-message-text-color);
}

.deepwbot-list-number {
  font-weight: 600;
  color: var(--br-send-button-bg);
}

.deepwbot-list-bullet {
  color: var(--br-assistant-message-text-color);
  margin-right: 8px;
}

.chatWindow::-webkit-scrollbar-track {
  background: transparent; /* Remove track background */
}

.chatWindow::-webkit-scrollbar-thumb {
  background-color: var(--br-user-message-bg, var(--br-user-message-border)); /* Scroll thumb color */
  border-radius: 4px;                 /* Rounded corners */
  border: 2px solid transparent;      /* Optional: add some padding around thumb */
}
