.twai-floating-chatbot-component {
  --waigo-ink: #0b315a;
  --waigo-deep: #064a91;
  --waigo-blue: #1687e8;
  --waigo-blue-dark: #0865bd;
  --waigo-blue-soft: #eaf5ff;
  --waigo-cyan: #8ed8ff;
  --waigo-line: rgba(29, 116, 194, 0.20);
  --waigo-soft: #f4faff;
  --waigo-white: #ffffff;
  --waigo-muted: #5b7691;
  --waigo-shadow: 0 26px 72px rgba(8, 74, 145, 0.24);
  color-scheme: light;
  display: contents;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.twai-floating-chatbot-component,
.twai-floating-chatbot-component * {
  box-sizing: border-box;
}

.twai-floating-chatbot-component [hidden] {
  display: none !important;
}

.twai-floating-chatbot-component button,
.twai-floating-chatbot-component input,
.twai-floating-chatbot-component a {
  font: inherit;
}

.twai-floating-chatbot-component .twai-chatbot-launcher {
  position: fixed !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  top: auto !important;
  left: auto !important;
  z-index: 2147483000 !important;
  width: 60px !important;
  height: 60px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #0a69c2 0%, #1687e8 100%) !important;
  color: #fff !important;
  box-shadow: 0 20px 52px rgba(8, 101, 189, 0.34) !important;
  backdrop-filter: blur(18px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

.twai-floating-chatbot-component .twai-chatbot-launcher:hover {
  transform: translateY(-3px) scale(1.04) !important;
  border-color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 24px 62px rgba(8, 101, 189, 0.42) !important;
}

.twai-floating-chatbot-component .twai-chatbot-launcher:active {
  transform: translateY(0) scale(0.98) !important;
}

.twai-floating-chatbot-component .twai-chatbot-launcher:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.55) !important;
  outline-offset: 3px !important;
}

.twai-floating-chatbot-component .twai-chatbot-tool-icon {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border: 0 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  pointer-events: none !important;
}

/* The uploaded logo is painted on the stable avatar shell as well as the img.
   This prevents a blank/white frame while the image element is loading. */
html.has-site-logo .twai-floating-chatbot-component .twai-chatbot-launcher.waigo-logo-background,
html.has-site-logo .twai-floating-chatbot-component .twai-chatbot-avatar-wrap.waigo-logo-background,
html.has-site-logo .twai-floating-chatbot-component .admin-support-message-avatar.waigo-logo-background {
  background-color: transparent !important;
  background-image: var(--travelwai-site-logo, none) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
}

/* Do not draw a white placeholder when no uploaded logo is available yet. */
html:not(.has-site-logo) .twai-floating-chatbot-component .twai-chatbot-avatar-wrap.waigo-logo-background,
html:not(.has-site-logo) .twai-floating-chatbot-component .admin-support-message-avatar.waigo-logo-background {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.twai-floating-chatbot-component .twai-chatbot-view {
  position: fixed !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: max(92px, calc(env(safe-area-inset-bottom) + 82px)) !important;
  top: auto;
  left: auto;
  z-index: 2147482999 !important;
  width: min(390px, calc(100vw - 28px)) !important;
  height: min(650px, calc(100dvh - 118px)) !important;
  min-height: 430px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid rgba(29, 116, 194, 0.24) !important;
  border-radius: 24px !important;
  background: #f7fbff !important;
  box-shadow: var(--waigo-shadow) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.97);
  transform-origin: right bottom;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease !important;
  isolation: isolate;
}

.twai-floating-chatbot-component .twai-chatbot-view.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.twai-floating-chatbot-component .twai-chatbot-view.is-dragging {
  transition: none !important;
  user-select: none;
  box-shadow: 0 34px 92px rgba(8, 74, 145, 0.34) !important;
}

.twai-floating-chatbot-component .twai-chatbot-header {
  position: relative;
  min-height: 72px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 !important;
  padding: 12px 12px 12px 10px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13) !important;
  background:
    radial-gradient(circle at 16% -20%, rgba(255, 255, 255, 0.30), transparent 42%),
    linear-gradient(135deg, #075fb4 0%, #1182df 55%, #32a7ef 100%) !important;
  color: #fff !important;
  backdrop-filter: blur(20px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.25) !important;
  cursor: grab;
}

.twai-floating-chatbot-component .twai-chatbot-view.is-dragging .twai-chatbot-header {
  cursor: grabbing;
}

.twai-floating-chatbot-component .twai-chatbot-header::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  pointer-events: none;
}

.twai-floating-chatbot-component .twai-chatbot-user-info {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.twai-floating-chatbot-component .twai-chatbot-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.twai-floating-chatbot-component .twai-chatbot-avatar {
  width: 46px !important;
  height: 46px !important;
  display: block !important;
  border: 2px solid rgba(255, 255, 255, 0.92) !important;
  border-radius: 50% !important;
  background: transparent !important;
  object-fit: cover !important;
  object-position: center !important;
}

.twai-floating-chatbot-component .twai-chatbot-online-dot {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.16);
}

.twai-floating-chatbot-component .twai-chatbot-user-details {
  min-width: 0;
  flex: 1 1 auto;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.twai-floating-chatbot-component .twai-chatbot-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
}

.twai-floating-chatbot-component .twai-chatbot-title-row h3 {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  color: #fff !important;
  font-size: 1.02rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.twai-floating-chatbot-component .twai-chatbot-user-details p {
  margin: 4px 0 0 !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.twai-floating-chatbot-component .twai-chatbot-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-left: auto;
}

.twai-floating-chatbot-component .twai-chatbot-icon-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease !important;
}

.twai-floating-chatbot-component .twai-chatbot-icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.68) !important;
  background: rgba(255, 255, 255, 0.24) !important;
  transform: translateY(-1px);
}

.twai-floating-chatbot-component .twai-chatbot-close-btn:hover {
  border-color: rgba(255, 255, 255, 0.68) !important;
  background: rgba(255, 255, 255, 0.24) !important;
}

.twai-floating-chatbot-component .twai-chatbot-icon-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78) !important;
  outline-offset: 2px !important;
}

.twai-floating-chatbot-component .twai-chatbot-icon-btn svg,
.twai-floating-chatbot-component .twai-chatbot-attach-btn svg,
.twai-floating-chatbot-component .twai-chatbot-send-btn svg {
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2px !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  pointer-events: none !important;
}

.twai-floating-chatbot-component .twai-chatbot-body {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f3f9ff !important;
}

.twai-floating-chatbot-component .twai-chatbot-messages {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0 !important;
  padding: 18px 14px 16px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(22, 135, 232, 0.12), transparent 36%),
    linear-gradient(180deg, #f7fbff 0%, #eaf5ff 100%) !important;
  overscroll-behavior: contain;
  scrollbar-color: #9fc8ea transparent;
  scrollbar-width: thin;
}

.twai-floating-chatbot-component .twai-chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.twai-floating-chatbot-component .twai-chatbot-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #9fc8ea;
}

.twai-floating-chatbot-component .admin-support-message-row {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
}

.twai-floating-chatbot-component .admin-support-message-row.sent {
  justify-content: flex-end;
}

.twai-floating-chatbot-component .admin-support-message-row.received {
  justify-content: flex-start;
}

.twai-floating-chatbot-component .admin-support-message-avatar {
  width: 31px !important;
  height: 31px !important;
  flex: 0 0 31px !important;
  overflow: hidden;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(29, 116, 194, 0.18) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #0a5aa8 !important;
  box-shadow: 0 4px 12px rgba(8, 74, 145, 0.10) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
}

.twai-floating-chatbot-component .admin-support-message-avatar img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.twai-floating-chatbot-component .admin-support-message-bubble {
  max-width: 82%;
  min-width: 82px;
  margin: 0 !important;
  padding: 10px 12px 8px !important;
  overflow-wrap: anywhere;
  border: 1px solid rgba(29, 116, 194, 0.18) !important;
  border-radius: 18px 18px 18px 6px !important;
  background: rgba(247, 251, 255, 0.98) !important;
  color: #153b5e !important;
  box-shadow: 0 7px 20px rgba(8, 74, 145, 0.075) !important;
}

.twai-floating-chatbot-component .admin-support-message-row.sent .admin-support-message-bubble {
  border-color: rgba(14, 116, 205, 0.24) !important;
  border-radius: 18px 18px 6px 18px !important;
  background: linear-gradient(135deg, var(--waigo-blue-dark), var(--waigo-blue)) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(7, 91, 184, 0.22) !important;
}

.twai-floating-chatbot-component .admin-support-message-sender {
  margin: 0 0 4px !important;
  color: #0b66b6 !important;
  font-size: 0.67rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

.twai-floating-chatbot-component .admin-support-message-row.sent .admin-support-message-sender {
  color: rgba(255, 255, 255, 0.78) !important;
}

.twai-floating-chatbot-component .admin-support-message-text {
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  white-space: pre-wrap;
}

.twai-floating-chatbot-component .admin-support-message-time {
  margin: 6px 0 0 !important;
  color: #6d91b3 !important;
  font-size: 0.61rem !important;
  font-weight: 650 !important;
  line-height: 1.1 !important;
  text-align: right;
}

.twai-floating-chatbot-component .admin-support-message-row.sent .admin-support-message-time {
  color: rgba(255, 255, 255, 0.66) !important;
}

.twai-floating-chatbot-component .admin-support-message-media-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.twai-floating-chatbot-component .admin-support-message-image {
  width: 100% !important;
  max-height: 180px !important;
  display: block !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: #ddecf8 !important;
  object-fit: cover !important;
  box-shadow: 0 5px 16px rgba(8, 74, 145, 0.13) !important;
}

.twai-floating-chatbot-component .twai-chatbot-input-area {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 11px 12px 10px !important;
  border: 0 !important;
  border-top: 1px solid rgba(29, 116, 194, 0.18) !important;
  background: rgba(247, 251, 255, 0.98) !important;
  box-shadow: 0 -8px 26px rgba(8, 74, 145, 0.045) !important;
}

.twai-floating-chatbot-component .twai-chatbot-suggestions {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  margin: 0 0 9px !important;
  padding: 0 0 2px !important;
  scrollbar-width: none;
}

.twai-floating-chatbot-component .twai-chatbot-suggestions::-webkit-scrollbar {
  display: none;
}

.twai-floating-chatbot-component .twai-chatbot-suggestion {
  min-height: 31px !important;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(14, 116, 205, 0.16) !important;
  border-radius: 999px !important;
  background: #eaf5ff !important;
  color: #0a63b3 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-size: 0.71rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

.twai-floating-chatbot-component .twai-chatbot-suggestion:hover,
.twai-floating-chatbot-component .twai-chatbot-suggestion:focus-visible {
  border-color: rgba(14, 116, 205, 0.34) !important;
  background: #dcefff !important;
  color: #07589f !important;
  outline: none !important;
}

.twai-floating-chatbot-component .twai-chatbot-suggestion:disabled {
  opacity: 0.5 !important;
  cursor: wait !important;
}

.twai-floating-chatbot-component .twai-chatbot-input-shell {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 !important;
  padding: 5px 5px 5px 7px !important;
  border: 1px solid #afd2ef !important;
  border-radius: 16px !important;
  background: #f8fcff !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}

.twai-floating-chatbot-component .twai-chatbot-input-shell:focus-within {
  border-color: #1687e8 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(22, 135, 232, 0.14) !important;
}

.twai-floating-chatbot-component .twai-chatbot-input-shell input {
  min-width: 0 !important;
  width: auto !important;
  height: 38px !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #153b5e !important;
  box-shadow: none !important;
  font-size: 0.88rem !important;
  line-height: normal !important;
  text-align: left !important;
  vertical-align: middle !important;
}

.twai-floating-chatbot-component .twai-chatbot-input-shell input::placeholder {
  color: #6d91b3 !important;
  opacity: 1 !important;
}

.twai-floating-chatbot-component .twai-chatbot-attach-btn,
.twai-floating-chatbot-component .twai-chatbot-send-btn {
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
}

.twai-floating-chatbot-component .twai-chatbot-attach-btn {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #1979ca !important;
  box-shadow: none !important;
}

.twai-floating-chatbot-component .twai-chatbot-attach-btn:hover {
  background: #e2f1ff !important;
  color: #075fae !important;
}

.twai-floating-chatbot-component .twai-chatbot-send-btn {
  width: 39px !important;
  height: 39px !important;
  flex: 0 0 39px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--waigo-blue-dark), var(--waigo-blue)) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(8, 101, 189, 0.24) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.twai-floating-chatbot-component .twai-chatbot-send-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 11px 22px rgba(8, 101, 189, 0.32) !important;
}

.twai-floating-chatbot-component .twai-chatbot-send-btn:disabled {
  opacity: 0.58 !important;
  cursor: wait !important;
  transform: none !important;
}

.twai-floating-chatbot-component .twai-chatbot-send-btn.is-loading svg {
  display: none !important;
}

.twai-floating-chatbot-component .twai-chatbot-send-btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: twai-floating-chatbot-spin 0.75s linear infinite;
}

.twai-floating-chatbot-component .twai-chatbot-image-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  margin: 0 0 9px !important;
  padding: 8px !important;
  border: 1px solid #b9d7ef !important;
  border-radius: 14px !important;
  background: #edf7ff !important;
}

.twai-floating-chatbot-component .twai-chatbot-media-preview-item {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 7px;
  padding: 6px !important;
  border: 1px solid rgba(29, 116, 194, 0.18) !important;
  border-radius: 11px !important;
  background: #fff !important;
}

.twai-floating-chatbot-component .twai-chatbot-media-preview-item img,
.twai-floating-chatbot-component .twai-chatbot-media-preview-item video {
  width: 48px !important;
  height: 48px !important;
  display: block !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #ddecf8 !important;
  object-fit: cover !important;
}

.twai-floating-chatbot-component .twai-chatbot-media-preview-item strong {
  min-width: 0;
  overflow: hidden;
  color: #214b70 !important;
  font-size: 0.7rem !important;
  font-weight: 750 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.twai-floating-chatbot-component .twai-chatbot-media-preview-item button {
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #fee2e2 !important;
  color: #b91c1c !important;
  cursor: pointer !important;
}

.twai-floating-chatbot-component .twai-chatbot-media-preview-item button:hover {
  background: #fecaca !important;
}

.twai-floating-chatbot-component .twai-chatbot-media-preview-item button svg {
  width: 15px !important;
  height: 15px !important;
}

.twai-floating-chatbot-component .support-admin-status {
  margin: 7px 2px 0 !important;
  color: #5b7691 !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.twai-floating-chatbot-component .twai-chatbot-open-messaging {
  display: block !important;
  width: max-content;
  margin: 7px auto 0 !important;
  padding: 0 !important;
  color: #0b69bd !important;
  background: transparent !important;
  text-align: center !important;
  text-decoration: none !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.twai-floating-chatbot-component .twai-chatbot-open-messaging:hover {
  color: #07589f !important;
  text-decoration: underline !important;
}


html[data-travelwai-theme="dark"] .twai-floating-chatbot-component,
html[data-travelwai-theme="dark"] .twai-floating-chatbot-component * {
  color-scheme: light !important;
}

@keyframes twai-floating-chatbot-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .twai-floating-chatbot-component .twai-chatbot-launcher {
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    width: 54px !important;
    height: 54px !important;
  }

  .twai-floating-chatbot-component .twai-chatbot-view {
    right: max(9px, env(safe-area-inset-right)) !important;
    bottom: max(72px, calc(env(safe-area-inset-bottom) + 66px)) !important;
    width: calc(100vw - 18px) !important;
    height: min(76dvh, 640px) !important;
    min-height: 390px;
    border-radius: 20px !important;
  }

  .twai-floating-chatbot-component .twai-chatbot-header {
    min-height: 66px;
    gap: 8px;
    padding: 10px 9px 10px 8px !important;
  }

  .twai-floating-chatbot-component .twai-chatbot-avatar-wrap,
  .twai-floating-chatbot-component .twai-chatbot-avatar {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
  }

  .twai-floating-chatbot-component .twai-chatbot-icon-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  .twai-floating-chatbot-component .twai-chatbot-messages {
    padding: 15px 10px 13px !important;
  }

  .twai-floating-chatbot-component .admin-support-message-bubble {
    max-width: 84%;
  }

  .twai-floating-chatbot-component .twai-chatbot-input-area {
    padding: 9px 9px 8px !important;
  }

  .twai-floating-chatbot-component .twai-chatbot-image-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .twai-floating-chatbot-component .twai-chatbot-user-info {
    gap: 7px;
  }

  .twai-floating-chatbot-component .twai-chatbot-header-actions {
    gap: 5px;
  }

  .twai-floating-chatbot-component .twai-chatbot-title-row h3 {
    font-size: 0.96rem !important;
  }
}


.twai-floating-chatbot-component .twai-chatbot-translate-btn {
  min-width: 58px !important;
  width: auto !important;
  height: 34px !important;
  flex: 0 0 58px !important;
  margin: 0 !important;
  padding: 0 9px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid rgba(124, 58, 237, .24) !important;
  border-radius: 11px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
  box-shadow: 0 6px 15px rgba(109, 40, 217, .18) !important;
  cursor: pointer !important;
}

.twai-floating-chatbot-component .twai-chatbot-translate-btn span {
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.twai-floating-chatbot-component .twai-chatbot-translate-btn:disabled {
  opacity: .38 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.twai-floating-chatbot-component .twai-chatbot-translate-btn.is-translated {
  background: linear-gradient(135deg, #059669, #0ea5e9) !important;
}

.twai-floating-chatbot-component .twai-chatbot-translate-btn.is-loading span {
  font-size: 0 !important;
}

.twai-floating-chatbot-component .twai-chatbot-translate-btn.is-loading::after {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, .42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: twai-chat-translate-spin .75s linear infinite;
}


.twai-floating-chatbot-component .admin-support-message-bubble .ai-message-translation {
  display: block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(15, 23, 42, .14);
  font-size: .88em;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  opacity: .88;
}

.twai-floating-chatbot-component .admin-support-message-row.sent .ai-message-translation {
  border-top-color: rgba(255, 255, 255, .28);
}

@keyframes twai-chat-translate-spin {
  to { transform: rotate(360deg); }
}


.twai-floating-chatbot-component .twai-chatbot-title-row,
.conversation-name-row {
  position: relative;
}

.waigo-style-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  color: currentColor;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.waigo-style-picker-button:hover,
.waigo-style-picker-button[aria-expanded="true"] {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
}

.waigo-style-picker-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.waigo-style-menu {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 9px);
  left: 0;
  min-width: 190px;
  max-width: min(280px, calc(100vw - 32px));
  padding: 7px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.22);
  color: #172033;
  text-align: left;
}

.waigo-style-menu[hidden] {
  display: none !important;
}

.waigo-style-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 9px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #26334d;
  font: inherit;
  font-size: .85rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: left !important;
  cursor: pointer;
}

.waigo-style-option > span:last-child {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.waigo-style-option:hover,
.waigo-style-option.is-selected {
  background: #eef5ff;
  color: #1757b8;
}

.waigo-style-option:disabled {
  opacity: .55;
  cursor: wait;
}

.waigo-style-option-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border-radius: 50%;
  background: #e8eef8;
  color: #1757b8;
  font-size: .72rem;
  font-weight: 900;
}

.conversation-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.conversation-name-row .waigo-style-picker-button {
  border-color: #d7e3f4;
  background: #f3f7fd;
  color: #2b65ad;
}

.conversation-name-row .waigo-style-picker-button:hover,
.conversation-name-row .waigo-style-picker-button[aria-expanded="true"] {
  background: #e5f0ff;
  border-color: #b8d2f2;
}

.conversation-name-row .waigo-style-menu {
  top: calc(100% + 8px);
}


.waigo-style-menu {
  max-height: min(320px, calc(100vh - 120px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.waigo-style-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 9px;
  background: rgba(255, 255, 255, .16);
  color: currentColor;
  cursor: pointer;
}

.waigo-style-store-button:hover { background: rgba(255, 255, 255, .28); }
.waigo-style-store-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9px; stroke-linecap: round; stroke-linejoin: round; }
.conversation-name-row .waigo-style-store-button { border-color: #d7e3f4; background: #f3f7fd; color: #2b65ad; }
.conversation-name-row .waigo-style-store-button:hover { background: #e5f0ff; border-color: #b8d2f2; }
.waigo-style-picker-button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.waigo-style-option.is-locked { opacity: .56; }

.waigo-style-store-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 12, 24, .58);
  backdrop-filter: blur(8px);
}
.waigo-style-store-modal[hidden] { display: none !important; }
.waigo-style-store-card {
  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 20px;
  background: #fff;
  color: #172033;
  box-shadow: 0 26px 70px rgba(2, 8, 23, .34);
}
.waigo-style-store-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #e7edf6;
  background: rgba(255,255,255,.96);
}
.waigo-style-store-head strong { font-size: 1rem; }
.waigo-style-store-head button,
.waigo-style-payment-back {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: #eef3fb;
  color: #24334c;
  font-size: 1.2rem;
  cursor: pointer;
}
.waigo-style-store-list { display: grid; gap: 10px; padding: 14px; }
.waigo-style-store-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid #e3eaf4;
  border-radius: 14px;
  background: #f9fbfe;
}
.waigo-style-store-item > div { display: grid; gap: 4px; min-width: 0; }
.waigo-style-store-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waigo-style-store-item span { color: #64748b; font-size: .82rem; }
.waigo-style-store-item button,
.waigo-style-payment > button:last-child {
  min-width: 76px;
  padding: 9px 13px;
  border: 0;
  border-radius: 10px;
  background: #1769d2;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.waigo-style-store-item button:disabled,
.waigo-style-payment > button:last-child:disabled { background: #dbe3ee; color: #75839a; cursor: wait; }
.waigo-style-access-state { font-weight: 800; color: #168251 !important; }
.waigo-style-payment { display: grid; justify-items: center; gap: 12px; padding: 18px; }
.waigo-style-payment-back { justify-self: start; }
.waigo-style-payment img { width: min(280px, 80vw); border-radius: 14px; }
.waigo-style-payment > div { display: grid; gap: 6px; text-align: center; }
.waigo-style-payment > div span:first-child { color: #172033; font-size: 1.05rem; font-weight: 900; }
body.waigo-style-store-open { overflow: hidden; }

@media (max-width: 420px) {
  .twai-floating-chatbot-component .twai-chatbot-input-shell {
    gap: 5px;
  }

  .twai-floating-chatbot-component .twai-chatbot-translate-btn {
    min-width: 52px !important;
    flex-basis: 52px !important;
    padding-inline: 7px !important;
  }
}

/* Loading icon is also the stop control while WaiGo is generating. */
.twai-floating-chatbot-component .twai-chatbot-send-btn.is-loading.is-ai-stop {
  cursor: pointer !important;
  opacity: 1 !important;
  transform: none !important;
}

.twai-floating-chatbot-component .twai-chatbot-send-btn.is-loading.is-ai-stop:hover::after,
.twai-floating-chatbot-component .twai-chatbot-send-btn.is-loading.is-ai-stop:focus-visible::after {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  animation: none;
}

.twai-floating-chatbot-component .twai-chatbot-send-btn.is-stopping {
  cursor: wait !important;
  opacity: 0.72 !important;
}

/* chatbot-logo-color-v3 */
