/* ============ QUOTE REQUEST PILL ============ */
.wpai-quote-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.wpai-quote-pill svg { display: block; }
/* WP AI Chatbot - Modern Monochrome Widget Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

#wp-ai-chatbot {
  --wpai-primary: #1a1a2e;
  --wpai-secondary: #374151;
  --wpai-bg: #ffffff;
  --wpai-bg-alt: #f7f8fa;
  --wpai-bg-subtle: #f1f3f5;
  --wpai-text: #1a1a2e;
  --wpai-text-muted: rgba(0,0,0,.45);
  --wpai-border: rgba(0,0,0,.1);
  --wpai-user-bubble-bg: #1a1a2e;
  --wpai-user-bubble-border: #1a1a2e;
  --wpai-glass: rgba(255,255,255,.92);
  --wpai-glass-border: rgba(0,0,0,.08);
  --wpai-ai-bubble-bg: #ffffff;
  --wpai-ai-bubble-border: rgba(0,0,0,.08);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  position: fixed;
  z-index: var(--wpai-z-index, 2147483647);
  bottom: var(--wpai-bottom-offset, 24px);
}

/* Dark theme */
#wp-ai-chatbot.wpai-theme-dark {
  --wpai-primary: #e5e7eb;
  --wpai-secondary: #9ca3af;
  --wpai-bg: #111118;
  --wpai-bg-alt: #16161f;
  --wpai-bg-subtle: #1c1c28;
  --wpai-text: #f0f0f5;
  --wpai-text-muted: rgba(255,255,255,.45);
  --wpai-border: rgba(255,255,255,.1);
  --wpai-user-bubble-bg: #e5e7eb;
  --wpai-user-bubble-border: #e5e7eb;
  --wpai-glass: rgba(17,17,24,.94);
  --wpai-glass-border: rgba(255,255,255,.08);
  --wpai-ai-bubble-bg: #1c1c28;
  --wpai-ai-bubble-border: rgba(255,255,255,.08);
}

/* Position classes */
#wp-ai-chatbot.wpai-pos-right { right: var(--wpai-side-offset, 24px); left: auto; }
#wp-ai-chatbot.wpai-pos-left  { left: var(--wpai-side-offset, 24px); right: auto; }

/* Embedded mode */
#wp-ai-chatbot.wpai-embedded {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
}

#wp-ai-chatbot.wpai-embedded .wpai-fab { display: none; }

#wp-ai-chatbot.wpai-embedded .wpai-panel {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
}

/* ============ FAB BUTTON ============ */
#wp-ai-chatbot .wpai-fab {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow:
    0 4px 20px rgba(0,0,0,.15),
    0 1px 4px rgba(0,0,0,.1);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}

#wp-ai-chatbot.wpai-fab-size-compact .wpai-fab { width: 46px; height: 46px; }
#wp-ai-chatbot.wpai-fab-size-large .wpai-fab { width: 66px; height: 66px; }
#wp-ai-chatbot.wpai-fab-layout-wide .wpai-fab { width: auto; min-width: 150px; height: 56px; padding: 0 18px; flex-direction: row; gap: 8px; border-radius: 16px; }
#wp-ai-chatbot.wpai-fab-layout-wide.wpai-fab-size-compact .wpai-fab { height: 48px; min-width: 136px; padding: 0 16px; }
#wp-ai-chatbot.wpai-fab-layout-wide.wpai-fab-size-large .wpai-fab { height: 64px; min-width: 170px; padding: 0 22px; }
#wp-ai-chatbot.wpai-fab-shape-circle .wpai-fab,
#wp-ai-chatbot.wpai-fab-shape-circle .wpai-fab-avatar { border-radius: 50%; }
#wp-ai-chatbot.wpai-fab-layout-wide.wpai-fab-shape-circle .wpai-fab { border-radius: 999px; }
#wp-ai-chatbot.wpai-no-pulse .wpai-fab-ring,
#wp-ai-chatbot.wpai-hide-ai-label .wpai-fab-ai-label { display: none; }
#wp-ai-chatbot.wpai-design-brand_color .wpai-fab,
#wp-ai-chatbot.wpai-design-brand_color .wpai-header,
#wp-ai-chatbot.wpai-design-brand_color .wpai-user .wpai-bubble,
#wp-ai-chatbot.wpai-design-brand_color .wpai-msg-avatar,
#wp-ai-chatbot.wpai-design-brand_color .wpai-send { background: var(--wpai-brand); }
#wp-ai-chatbot.wpai-design-modern_light .wpai-fab {
  background: #fff;
  color: #1a1a2e;
  border: 1px solid rgba(0,0,0,.12);
}
#wp-ai-chatbot.wpai-design-modern_colorful .wpai-fab {
  background: linear-gradient(135deg, var(--wpai-brand), #06b6d4);
  color: #fff;
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
}
#wp-ai-chatbot.wpai-design-soft_elegant .wpai-fab {
  background: #ffffff;
  color: var(--wpai-brand);
  border: 1px solid rgba(0,0,0,.10);
}

#wp-ai-chatbot.wpai-theme-dark .wpai-fab {
  background: #e5e7eb;
  color: #1a1a2e;
}

#wp-ai-chatbot.wpai-theme-dark.wpai-design-brand_color .wpai-fab {
  background: var(--wpai-brand);
  color: #fff;
}

#wp-ai-chatbot .wpai-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 8px 30px rgba(0,0,0,.2),
    0 2px 8px rgba(0,0,0,.12);
}

/* FAB icon */
#wp-ai-chatbot .wpai-fab-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

#wp-ai-chatbot.wpai-fab-layout-wide .wpai-fab-icon { flex-direction: row; gap: 8px; }
#wp-ai-chatbot.wpai-fab-layout-icon.wpai-hide-ai-label .wpai-fab-icon svg { width: 30px; height: 30px; }
#wp-ai-chatbot.wpai-fab-layout-icon.wpai-fab-size-compact.wpai-hide-ai-label .wpai-fab-icon svg { width: 26px; height: 26px; }
#wp-ai-chatbot.wpai-fab-layout-icon.wpai-fab-size-large.wpai-hide-ai-label .wpai-fab-icon svg { width: 34px; height: 34px; }

#wp-ai-chatbot .wpai-fab-ai-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  line-height: 1;
  text-transform: uppercase;
}

#wp-ai-chatbot .wpai-fab-cta-label { display: none; }
#wp-ai-chatbot.wpai-fab-layout-wide .wpai-fab-ai-label { display: none; }
#wp-ai-chatbot.wpai-fab-layout-wide .wpai-fab-cta-label {
  display: inline;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-fab-ai-label {
  color: #1a1a2e;
}

/* Legacy FAB label */
#wp-ai-chatbot .wpai-fab-label {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
}

/* Pulse ring animation around FAB */
#wp-ai-chatbot .wpai-fab-ring {
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  border: 2px solid rgba(26,26,46,.2);
  animation: wpai-ring-pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-fab-ring {
  border-color: rgba(229,231,235,.2);
}

@keyframes wpai-ring-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.08); }
}

/* Custom avatar in FAB */
#wp-ai-chatbot .wpai-fab-avatar {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

/* Hide FAB when open */
#wp-ai-chatbot.wpai-open .wpai-fab {
  transform: scale(0.8);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}

/* ============ PANEL ============ */
#wp-ai-chatbot .wpai-panel {
  position: absolute;
  bottom: 76px;
  width: 380px;
  max-width: min(380px, calc(100vw - 40px));
  background: var(--wpai-glass);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-radius: 16px;
  border: 1px solid var(--wpai-glass-border);
  box-shadow:
    0 20px 60px rgba(0,0,0,.12),
    0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1);
}

#wp-ai-chatbot.wpai-panel-size-compact .wpai-panel { width: 330px; max-width: min(330px, calc(100vw - 40px)); }
#wp-ai-chatbot.wpai-panel-size-wide .wpai-panel { width: 440px; max-width: min(440px, calc(100vw - 40px)); }
#wp-ai-chatbot.wpai-panel-radius-none .wpai-panel { border-radius: 0; }
#wp-ai-chatbot.wpai-panel-radius-normal .wpai-panel { border-radius: 16px; }
#wp-ai-chatbot.wpai-panel-radius-large .wpai-panel { border-radius: 22px; }
#wp-ai-chatbot.wpai-panel-radius-large .wpai-header { border-radius: 0; }
#wp-ai-chatbot.wpai-design-modern_light .wpai-panel { box-shadow: 0 16px 46px rgba(0,0,0,.10); }
#wp-ai-chatbot.wpai-design-modern_colorful .wpai-panel { box-shadow: 0 24px 70px rgba(0,0,0,.18); }
#wp-ai-chatbot.wpai-design-soft_elegant .wpai-panel { box-shadow: 0 18px 54px rgba(15,118,110,.14); }

#wp-ai-chatbot.wpai-pos-right .wpai-panel { right: 0; }
#wp-ai-chatbot.wpai-pos-left  .wpai-panel { left: 0; }

#wp-ai-chatbot.wpai-open .wpai-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ============ HEADER ============ */
#wp-ai-chatbot .wpai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #1a1a2e;
  position: relative;
}

#wp-ai-chatbot .wpai-panel > .wpai-header { flex-shrink: 0; }
#wp-ai-chatbot .wpai-panel > .wpai-inputbar { flex-shrink: 0; }

#wp-ai-chatbot.wpai-header-light .wpai-header {
  background: var(--wpai-bg);
  border-bottom: 1px solid var(--wpai-border);
}
#wp-ai-chatbot.wpai-header-light .wpai-title,
#wp-ai-chatbot.wpai-header-light .wpai-status,
#wp-ai-chatbot.wpai-header-light .wpai-close,
#wp-ai-chatbot.wpai-header-light .wpai-new-chat,
#wp-ai-chatbot.wpai-design-modern_light .wpai-fab-ai-label { color: var(--wpai-text); }
#wp-ai-chatbot.wpai-header-light .wpai-close,
#wp-ai-chatbot.wpai-header-light .wpai-new-chat,
#wp-ai-chatbot.wpai-header-light .wpai-avatar-placeholder { background: var(--wpai-bg-subtle); }
#wp-ai-chatbot.wpai-header-brand .wpai-header { background: var(--wpai-brand); }
#wp-ai-chatbot.wpai-design-modern_colorful.wpai-header-brand .wpai-header { background: linear-gradient(135deg, var(--wpai-brand), #06b6d4); }

#wp-ai-chatbot.wpai-theme-dark .wpai-header {
  background: #1c1c28;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

#wp-ai-chatbot .wpai-header-left {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}

#wp-ai-chatbot .wpai-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.15);
}

#wp-ai-chatbot .wpai-avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
}

#wp-ai-chatbot .wpai-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#wp-ai-chatbot .wpai-title {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  line-height: 1.2;
}

#wp-ai-chatbot .wpai-status {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}

#wp-ai-chatbot .wpai-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

#wp-ai-chatbot .wpai-close,
#wp-ai-chatbot .wpai-new-chat {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
  padding: 0;
}

#wp-ai-chatbot .wpai-close {
  font-size: 22px;
  font-weight: 300;
  line-height: 30px;
}

#wp-ai-chatbot .wpai-close:hover,
#wp-ai-chatbot .wpai-new-chat:hover {
  background: rgba(255,255,255,.2);
  transform: scale(1.08);
}

/* ============ DISCLAIMER ============ */
#wp-ai-chatbot .wpai-disclaimer {
  font-size: 10px;
  color: var(--wpai-text-muted);
  text-align: center;
  padding: 4px 12px 0;
  background: var(--wpai-bg);
}
#wp-ai-chatbot .wpai-disclaimer .wpai-privacy-link {
  color: var(--wpai-primary);
  text-decoration: underline;
}
#wp-ai-chatbot .wpai-disclaimer .wpai-privacy-link:hover { opacity: .85; }

/* ============ MESSAGES ============ */
#wp-ai-chatbot .wpai-messages {
  height: 440px;
  max-height: 65vh;
  padding: 16px 14px;
  overflow-y: auto;
  background: var(--wpai-bg-alt);
  scroll-behavior: smooth;
}

#wp-ai-chatbot.wpai-panel-size-compact .wpai-messages { height: 360px; }
#wp-ai-chatbot.wpai-panel-size-wide .wpai-messages { height: 480px; }

/* Custom scrollbar */
#wp-ai-chatbot .wpai-messages::-webkit-scrollbar {
  width: 4px;
}
#wp-ai-chatbot .wpai-messages::-webkit-scrollbar-track {
  background: transparent;
}
#wp-ai-chatbot .wpai-messages::-webkit-scrollbar-thumb {
  background: var(--wpai-border);
  border-radius: 4px;
}

#wp-ai-chatbot .wpai-msg-row {
  display: flex;
  margin: 8px 0;
  animation: wpai-msg-in .3s cubic-bezier(.22,1,.36,1);
}

@keyframes wpai-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

#wp-ai-chatbot .wpai-msg-row.wpai-user {
  justify-content: flex-end;
}

#wp-ai-chatbot .wpai-msg-row.wpai-ai {
  justify-content: flex-start;
  align-items: flex-end;
  gap: 8px;
}

/* AI message avatar */
#wp-ai-chatbot .wpai-msg-avatar {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 8px;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}

#wp-ai-chatbot.wpai-hide-msg-avatar .wpai-msg-avatar { display: none; }
#wp-ai-chatbot.wpai-hide-msg-avatar .wpai-msg-row.wpai-ai { gap: 0; }

#wp-ai-chatbot.wpai-theme-dark .wpai-msg-avatar {
  background: #2a2a3e;
  color: #e5e7eb;
}

#wp-ai-chatbot .wpai-msg-avatar .wpai-bot-svg {
  width: 16px;
  height: 16px;
}

#wp-ai-chatbot .wpai-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--wpai-text);
}

#wp-ai-chatbot .wpai-user .wpai-bubble {
  background: #1a1a2e;
  color: #fff;
  border-bottom-right-radius: 4px;
}

#wp-ai-chatbot.wpai-design-brand_color .wpai-user .wpai-bubble { background: var(--wpai-brand); border-color: var(--wpai-brand); }
#wp-ai-chatbot.wpai-design-modern_light .wpai-user .wpai-bubble { background: #243447; }
#wp-ai-chatbot.wpai-design-modern_colorful .wpai-user .wpai-bubble { background: linear-gradient(135deg, var(--wpai-brand), #06b6d4); border-color: transparent; }
#wp-ai-chatbot.wpai-design-soft_elegant .wpai-user .wpai-bubble { background: var(--wpai-brand); border-color: var(--wpai-brand); }

#wp-ai-chatbot.wpai-theme-dark .wpai-user .wpai-bubble {
  background: #e5e7eb;
  color: #1a1a2e;
}

#wp-ai-chatbot .wpai-ai .wpai-bubble {
  background: var(--wpai-ai-bubble-bg);
  border: 1px solid var(--wpai-ai-bubble-border);
  border-bottom-left-radius: 4px;
}

/* ============ SUGGESTED QUESTIONS (above input) ============ */
#wp-ai-chatbot .wpai-suggested-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  background: var(--wpai-bg);
  border-top: 1px solid var(--wpai-border);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#wp-ai-chatbot .wpai-suggested-bar::-webkit-scrollbar {
  display: none;
}

#wp-ai-chatbot .wpai-suggested-btn {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--wpai-border);
  background: var(--wpai-bg);
  color: var(--wpai-text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
  flex-shrink: 0;
}

#wp-ai-chatbot .wpai-suggested-btn:hover {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
  transform: translateY(-1px);
}

#wp-ai-chatbot.wpai-theme-dark .wpai-suggested-btn:hover {
  background: #e5e7eb;
  color: #1a1a2e;
  border-color: #e5e7eb;
}

#wp-ai-chatbot .wpai-suggested-btn:active {
  transform: translateY(0);
}

/* Legacy suggested in messages - still works as fallback */
#wp-ai-chatbot .wpai-suggested {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}

/* ============ INPUT BAR ============ */
#wp-ai-chatbot .wpai-inputbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--wpai-bg);
  border-top: 1px solid var(--wpai-border);
}

#wp-ai-chatbot .wpai-input {
  flex: 1;
  border: 1px solid var(--wpai-border);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 13.5px;
  outline: none;
  background: var(--wpai-bg-alt);
  color: var(--wpai-text);
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#wp-ai-chatbot .wpai-input::placeholder {
  color: var(--wpai-text-muted);
}

#wp-ai-chatbot .wpai-input:focus {
  border-color: #1a1a2e;
  box-shadow: 0 0 0 2px rgba(26,26,46,.08);
}

#wp-ai-chatbot.wpai-theme-dark .wpai-input:focus {
  border-color: #e5e7eb;
  box-shadow: 0 0 0 2px rgba(229,231,235,.08);
}

#wp-ai-chatbot .wpai-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#wp-ai-chatbot .wpai-send {
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  font-family: inherit;
  transition: all .2s ease;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-send {
  background: #e5e7eb;
  color: #1a1a2e;
}

#wp-ai-chatbot.wpai-theme-dark.wpai-design-brand_color .wpai-send {
  background: var(--wpai-brand);
  color: #fff;
}

#wp-ai-chatbot .wpai-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

#wp-ai-chatbot .wpai-send:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Composer "+" gomb és modulok menü */
#wp-ai-chatbot .wpai-modules-btn {
  border: 1px solid var(--wpai-border);
  background: var(--wpai-bg-alt);
  color: var(--wpai-text);
  cursor: pointer;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease;
}
#wp-ai-chatbot .wpai-modules-btn:hover {
  background: var(--wpai-bg);
  border-color: var(--wpai-text-muted);
}
#wp-ai-chatbot .wpai-modules-menu {
  position: relative;
  margin: 0 14px 6px 14px;
  background: var(--wpai-bg);
  border: 1px solid var(--wpai-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  padding: 6px;
  z-index: 5;
}
#wp-ai-chatbot .wpai-modules-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--wpai-text);
  cursor: pointer;
  font-family: inherit;
}
#wp-ai-chatbot .wpai-modules-menu-item:hover {
  background: var(--wpai-bg-alt);
}

/* ============ STREAMING CURSOR ============ */
#wp-ai-chatbot .wpai-bubble[data-streaming="1"]::after {
  content: "▋";
  animation: wpai-cursor-blink .8s step-end infinite;
  margin-left: 2px;
  color: var(--wpai-text-muted);
}

@keyframes wpai-cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============ TYPING INDICATOR ============ */
#wp-ai-chatbot .wpai-typing {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--wpai-bg);
  border-top: 1px solid var(--wpai-border);
}

#wp-ai-chatbot .wpai-typing.wpai-typing-visible { display: flex; }

#wp-ai-chatbot .wpai-typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wpai-text-muted);
  display: inline-block;
  animation: wpai-bounce 1.2s infinite ease-in-out;
}

#wp-ai-chatbot .wpai-typing-dot:nth-child(1) { animation-delay: 0s; }
#wp-ai-chatbot .wpai-typing-dot:nth-child(2) { animation-delay: .15s; }
#wp-ai-chatbot .wpai-typing-dot:nth-child(3) { animation-delay: .3s; }

@keyframes wpai-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

#wp-ai-chatbot .wpai-typing-label {
  margin-left: 4px;
  font-size: 11px;
  color: var(--wpai-text-muted);
}

/* ============ MARKDOWN ============ */
#wp-ai-chatbot .wpai-linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 4px 0 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: #1a1a2e;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-linkbtn {
  background: #e5e7eb;
  color: #1a1a2e;
}

#wp-ai-chatbot .wpai-linkbtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

#wp-ai-chatbot .wpai-bold { font-weight: 700; }
#wp-ai-chatbot .wpai-italic { font-style: italic; }

/* ============ WELCOME ============ */
#wp-ai-chatbot .wpai-welcome {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 8px;
  margin: 8px 0;
}

#wp-ai-chatbot .wpai-welcome .wpai-msg-avatar {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 8px;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-welcome .wpai-msg-avatar {
  background: #2a2a3e;
  color: #e5e7eb;
}

#wp-ai-chatbot .wpai-welcome .wpai-msg-avatar .wpai-bot-svg {
  width: 16px;
  height: 16px;
}

#wp-ai-chatbot .wpai-welcome-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  font-size: 13.5px;
  line-height: 1.55;
  background: var(--wpai-ai-bubble-bg);
  border: 1px solid var(--wpai-ai-bubble-border);
  color: var(--wpai-text);
}

/* ============ LOADING ============ */
#wp-ai-chatbot .wpai-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--wpai-text-muted);
  font-size: 12px;
}

#wp-ai-chatbot .wpai-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--wpai-border);
  border-top-color: #1a1a2e;
  border-radius: 50%;
  margin-right: 8px;
  animation: wpai-spin .7s linear infinite;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-loading::before {
  border-top-color: #e5e7eb;
}

@keyframes wpai-spin {
  to { transform: rotate(360deg); }
}

/* ============ RATING BUTTONS ============ */
#wp-ai-chatbot .wpai-rating {
  display: flex;
  gap: 2px;
  margin-top: 6px;
  justify-content: flex-end;
  opacity: 1;
}

#wp-ai-chatbot .wpai-rating-btn {
  background: none;
  border: none;
  border-radius: 4px;
  padding: 3px 5px;
  cursor: pointer;
  color: var(--wpai-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  font-size: 13px;
  line-height: 1;
  opacity: .5;
}

#wp-ai-chatbot .wpai-rating-btn:hover {
  opacity: 1;
  color: var(--wpai-text);
}

#wp-ai-chatbot .wpai-rating-btn.wpai-rating-active {
  opacity: 1;
  color: #22c55e;
}

#wp-ai-chatbot .wpai-rating-btn.wpai-rating-active.wpai-rating-down {
  color: #ef4444;
}

/* ============ CONVERSATION FEEDBACK ============ */
#wp-ai-chatbot .wpai-feedback {
  margin: 16px 0 8px;
  padding: 12px;
  background: var(--wpai-bg);
  border: 1px solid var(--wpai-border);
  border-radius: 12px;
  text-align: center;
}

#wp-ai-chatbot .wpai-feedback-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--wpai-text);
  margin-bottom: 8px;
}

#wp-ai-chatbot .wpai-feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

#wp-ai-chatbot .wpai-feedback-buttons .wpai-rating-btn {
  font-size: 18px;
  padding: 6px 12px;
}

#wp-ai-chatbot .wpai-feedback-text {
  width: 100%;
  border: 1px solid var(--wpai-border);
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-family: inherit;
  background: var(--wpai-bg-alt);
  color: var(--wpai-text);
  resize: none;
  outline: none;
  margin-bottom: 8px;
}

#wp-ai-chatbot .wpai-feedback-text:focus {
  border-color: #1a1a2e;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-feedback-text:focus {
  border-color: #e5e7eb;
}

#wp-ai-chatbot .wpai-feedback-submit {
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-feedback-submit {
  background: #e5e7eb;
  color: #1a1a2e;
}

#wp-ai-chatbot .wpai-feedback-submit:hover {
  transform: translateY(-1px);
}

#wp-ai-chatbot .wpai-feedback-thanks {
  font-size: 13px;
  color: var(--wpai-text);
  font-weight: 500;
  padding: 8px 0;
}

/* ============ MOBILE ============ */
@media (max-width: 520px) {
  #wp-ai-chatbot { bottom: var(--wpai-mobile-bottom-offset, 16px); }
  #wp-ai-chatbot.wpai-mobile-pos-left { left: var(--wpai-mobile-side-offset, 12px); right: auto; }
  #wp-ai-chatbot.wpai-mobile-pos-right { right: var(--wpai-mobile-side-offset, 12px); left: auto; }

  #wp-ai-chatbot .wpai-panel {
    width: auto;
    left: 0 !important;
    right: 0 !important;
    bottom: 78px;
    max-width: 100%;
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    display: flex;
    flex-direction: column;
  }

  #wp-ai-chatbot .wpai-messages {
    height: auto;
    max-height: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  #wp-ai-chatbot.wpai-mobile-optimized.wpai-open .wpai-panel {
    position: fixed;
    top: 0;
    left: 0 !important;
    right: 0 !important;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
  }

  #wp-ai-chatbot.wpai-mobile-optimized.wpai-open .wpai-messages {
    height: auto;
    max-height: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  #wp-ai-chatbot.wpai-mobile-optimized.wpai-open .wpai-inputbar {
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    flex-shrink: 0;
  }

  #wp-ai-chatbot.wpai-mobile-optimized.wpai-open .wpai-header {
    flex-shrink: 0;
  }

  #wp-ai-chatbot.wpai-mobile-optimized.wpai-open .wpai-input {
    font-size: 16px;
  }

  #wp-ai-chatbot.wpai-mobile-optimized.wpai-open .wpai-fab {
    display: none;
  }
}

/* Lock background scroll when mobile chat is open */
html.wpai-scroll-locked,
body.wpai-scroll-locked {
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}
body.wpai-scroll-locked {
  position: fixed;
  width: 100%;
}

/* ============ CHAT IMAGES ============ */
.wpai-chat-img {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
  display: block;
  cursor: pointer;
  transition: transform .2s ease;
}

.wpai-chat-img:hover {
  transform: scale(1.02);
}

/* ============ PROBLEM REPORT ============ */
#wp-ai-chatbot .wpai-report-link {
  text-align: center;
  padding: 4px 12px 6px;
  font-size: 10px;
  color: var(--wpai-text-muted);
  background: var(--wpai-bg);
}

#wp-ai-chatbot .wpai-report-trigger {
  color: var(--wpai-text);
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}

#wp-ai-chatbot .wpai-report-trigger:hover {
  text-decoration: underline;
}

#wp-ai-chatbot .wpai-report-form {
  padding: 8px 12px 10px;
  background: var(--wpai-bg);
  display: none;
}

#wp-ai-chatbot .wpai-report-form.wpai-report-visible {
  display: block;
}

#wp-ai-chatbot .wpai-report-textarea {
  width: 100%;
  border: 1px solid var(--wpai-border);
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-family: inherit;
  background: var(--wpai-bg-alt);
  color: var(--wpai-text);
  resize: none;
  outline: none;
  margin-bottom: 6px;
  min-height: 50px;
}

#wp-ai-chatbot .wpai-report-textarea:focus {
  border-color: #1a1a2e;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-report-textarea:focus {
  border-color: #e5e7eb;
}

#wp-ai-chatbot .wpai-report-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

#wp-ai-chatbot .wpai-report-send {
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-report-send {
  background: #e5e7eb;
  color: #1a1a2e;
}

#wp-ai-chatbot .wpai-report-send:hover {
  transform: translateY(-1px);
}

#wp-ai-chatbot .wpai-report-cancel {
  background: none;
  border: 1px solid var(--wpai-border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--wpai-text-muted);
  cursor: pointer;
}

#wp-ai-chatbot .wpai-report-thanks {
  text-align: center;
  padding: 4px 12px 6px;
  font-size: 10px;
  color: var(--wpai-text);
  font-weight: 500;
  background: var(--wpai-bg);
}

/* ============ CONTACT FORM CTA + MODAL ============ */
#wp-ai-chatbot .wpai-contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--wpai-primary);
  color: var(--wpai-bg);
  border: none;
  font: 600 12px/1 'Inter', sans-serif;
  cursor: pointer;
  transition: opacity .15s ease;
}
#wp-ai-chatbot .wpai-contact-cta:hover { opacity: .88; }
#wp-ai-chatbot .wpai-contact-cta svg { display: block; }

#wp-ai-chatbot .wpai-contact-fixed-btn {
  display: block;
  width: calc(100% - 24px);
  margin: 8px 12px 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--wpai-bg-alt);
  color: var(--wpai-text);
  border: 1px solid var(--wpai-border);
  font: 600 12px/1.2 'Inter', sans-serif;
  cursor: pointer;
  transition: background .15s ease;
}
#wp-ai-chatbot .wpai-contact-fixed-btn:hover { background: var(--wpai-bg-subtle); }

#wp-ai-chatbot .wpai-contact-modal {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 16px;
  animation: wpai-fade-in .15s ease;
}
@keyframes wpai-fade-in { from { opacity: 0; } to { opacity: 1; } }
#wp-ai-chatbot .wpai-contact-modal-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 100%;
  overflow-y: auto;
  background: var(--wpai-bg);
  color: var(--wpai-text);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
#wp-ai-chatbot .wpai-contact-modal-close {
  position: absolute;
  top: 6px; right: 8px;
  width: 28px; height: 28px;
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--wpai-text-muted);
  cursor: pointer;
}
#wp-ai-chatbot .wpai-contact-modal-title {
  font: 700 15px/1.3 'Inter', sans-serif;
  margin-bottom: 4px;
  padding-right: 28px;
}
#wp-ai-chatbot .wpai-contact-modal-intro {
  font-size: 12px;
  color: var(--wpai-text-muted);
  margin-bottom: 12px;
  line-height: 1.45;
}
#wp-ai-chatbot .wpai-contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#wp-ai-chatbot .wpai-contact-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#wp-ai-chatbot .wpai-contact-label {
  font: 600 11px/1.2 'Inter', sans-serif;
  color: var(--wpai-text);
}
#wp-ai-chatbot .wpai-contact-desc {
  font-size: 10px;
  color: var(--wpai-text-muted);
}
#wp-ai-chatbot .wpai-req { color: #dc2626; }
#wp-ai-chatbot .wpai-contact-field input,
#wp-ai-chatbot .wpai-contact-field textarea,
#wp-ai-chatbot .wpai-contact-field select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--wpai-border);
  background: var(--wpai-bg);
  color: var(--wpai-text);
  font: 400 13px/1.4 'Inter', sans-serif;
  box-sizing: border-box;
  resize: vertical;
}
#wp-ai-chatbot .wpai-contact-field input:focus,
#wp-ai-chatbot .wpai-contact-field textarea:focus,
#wp-ai-chatbot .wpai-contact-field select:focus {
  outline: none;
  border-color: var(--wpai-primary);
}
#wp-ai-chatbot .wpai-contact-submit {
  margin-top: 4px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: var(--wpai-primary);
  color: var(--wpai-bg);
  font: 600 13px/1 'Inter', sans-serif;
  cursor: pointer;
  transition: opacity .15s ease;
}
#wp-ai-chatbot .wpai-contact-submit:disabled { opacity: .6; cursor: default; }
#wp-ai-chatbot .wpai-contact-modal-status {
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
}
#wp-ai-chatbot .wpai-contact-modal-status.error { color: #dc2626; }
#wp-ai-chatbot .wpai-contact-modal-status.success { color: #059669; font-weight: 600; }

/* ── Termékajánló modul ───────────────────────────────────────────────── */
#wp-ai-chatbot .wpai-product-carousel {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-bottom: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
#wp-ai-chatbot .wpai-product-carousel::-webkit-scrollbar { height: 6px; }
#wp-ai-chatbot .wpai-product-carousel::-webkit-scrollbar-thumb {
  background: var(--wpai-border, #ddd);
  border-radius: 3px;
}
#wp-ai-chatbot .wpai-product-card {
  flex: 0 0 168px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--wpai-border, #e5e5e5);
  border-radius: 10px;
  overflow: hidden;
  background: var(--wpai-bg, #fff);
}
#wp-ai-chatbot .wpai-product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--wpai-muted, #f5f5f5) center/cover no-repeat;
}
#wp-ai-chatbot .wpai-product-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 10px;
  flex: 1;
}
#wp-ai-chatbot .wpai-product-title {
  font: 600 12px/1.3 'Inter', sans-serif;
  color: var(--wpai-text, #111);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}
#wp-ai-chatbot .wpai-product-price {
  font: 700 13px/1 'Inter', sans-serif;
  color: var(--wpai-text, #111);
}
#wp-ai-chatbot .wpai-product-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}
#wp-ai-chatbot .wpai-product-view,
#wp-ai-chatbot .wpai-product-cart {
  display: block;
  padding: 6px 10px;
  border: 1px solid var(--wpai-border, #ddd);
  border-radius: 6px;
  font: 600 11px/1.2 'Inter', sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--wpai-text, #111);
  transition: background .15s ease, opacity .15s ease;
}
#wp-ai-chatbot .wpai-product-view:hover,
#wp-ai-chatbot .wpai-product-cart:hover {
  background: var(--wpai-muted, #f5f5f5);
}
#wp-ai-chatbot .wpai-product-cart {
  background: var(--wpai-primary, #111);
  color: var(--wpai-bg, #fff);
  border-color: var(--wpai-primary, #111);
}
#wp-ai-chatbot .wpai-product-cart:hover {
  opacity: .85;
  background: var(--wpai-primary, #111);
  color: var(--wpai-bg, #fff);
}
#wp-ai-chatbot .wpai-product-cart:disabled {
  opacity: .6;
  cursor: default;
}

/* ── GDPR consent gate ──────────────────────────────────────────── */
#wp-ai-chatbot .wpai-gdpr-gate {
  position: absolute;
  inset: 0;
  top: 56px; /* a header alatt kezdődjön */
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  z-index: 20;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}
#wp-ai-chatbot .wpai-gdpr-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#wp-ai-chatbot .wpai-gdpr-title {
  font-weight: 600;
  font-size: 14px;
}
#wp-ai-chatbot .wpai-gdpr-intro {
  color: #334155;
}
#wp-ai-chatbot .wpai-gdpr-link {
  color: #0f172a;
  text-decoration: underline;
  font-weight: 500;
  font-size: 12.5px;
  align-self: flex-start;
}
#wp-ai-chatbot .wpai-gdpr-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: #1f2937;
  cursor: pointer;
  user-select: none;
}
#wp-ai-chatbot .wpai-gdpr-check input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
#wp-ai-chatbot .wpai-gdpr-accept {
  margin-top: 2px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: opacity .15s ease;
}
#wp-ai-chatbot .wpai-gdpr-accept:disabled {
  opacity: .45;
  cursor: not-allowed;
}
/* Dark téma */
#wp-ai-chatbot.wpai-theme-dark .wpai-gdpr-card {
  background: #0f172a;
  color: #f1f5f9;
  border-color: #1f2937;
}
#wp-ai-chatbot.wpai-theme-dark .wpai-gdpr-intro { color: #cbd5e1; }
#wp-ai-chatbot.wpai-theme-dark .wpai-gdpr-link { color: #f1f5f9; }
#wp-ai-chatbot.wpai-theme-dark .wpai-gdpr-check { color: #e2e8f0; }
#wp-ai-chatbot.wpai-theme-dark .wpai-gdpr-accept {
  background: #f1f5f9;
  color: #0f172a;
}

/* ============ TEASER BUBBLE (attention nudge) ============ */
#wp-ai-chatbot .wpai-teaser {
  position: absolute;
  bottom: calc(100% + 14px);
  max-width: 260px;
  min-width: 180px;
  padding: 12px 30px 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 30px -8px rgba(15,23,42,.18), 0 2px 6px rgba(15,23,42,.06);
  border: 1.5px solid rgba(15,23,42,.12);
  font: 500 13px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  opacity: 0;
  transform: translateY(8px) scale(.96);
  transition: opacity .25s ease, transform .28s cubic-bezier(.34,1.56,.64,1);
  pointer-events: auto;
  cursor: pointer;
  z-index: 1;
  backdrop-filter: saturate(140%);
}
#wp-ai-chatbot.wpai-pos-right .wpai-teaser { right: 0; }
#wp-ai-chatbot.wpai-pos-left .wpai-teaser { left: 0; }
#wp-ai-chatbot .wpai-teaser.wpai-teaser-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
#wp-ai-chatbot .wpai-teaser-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
  color: inherit;
  letter-spacing: -.01em;
}
#wp-ai-chatbot .wpai-teaser-msg {
  font-weight: 500;
  color: inherit;
  opacity: .85;
}
#wp-ai-chatbot .wpai-teaser-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: currentColor;
  opacity: .55;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
  transition: opacity .15s ease, background .15s ease;
}
#wp-ai-chatbot .wpai-teaser-close:hover { opacity: 1; background: rgba(0,0,0,.07); }
#wp-ai-chatbot .wpai-teaser-arrow {
  position: absolute;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-right: 1.5px solid rgba(15,23,42,.12);
  border-bottom: 1.5px solid rgba(15,23,42,.12);
  transform: rotate(45deg);
}
#wp-ai-chatbot.wpai-pos-right .wpai-teaser-arrow { right: 22px; }
#wp-ai-chatbot.wpai-pos-left .wpai-teaser-arrow { left: 22px; }

/* ===== Stílus variánsok ===== */
/* Outlined (alap): erős, lekerekített körvonal, fehér háttér */
#wp-ai-chatbot .wpai-teaser.wpai-teaser-outlined { background: #ffffff; }
#wp-ai-chatbot .wpai-teaser.wpai-teaser-outlined .wpai-teaser-arrow { background: #ffffff; }

/* Solid: márkaszín tömör, fehér szöveg */
#wp-ai-chatbot .wpai-teaser.wpai-teaser-solid {
  background: var(--wpai-primary, #1a1a2e);
  color: #ffffff;
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 12px 32px -10px rgba(15,23,42,.45), 0 2px 6px rgba(15,23,42,.18);
}
#wp-ai-chatbot .wpai-teaser.wpai-teaser-solid .wpai-teaser-arrow {
  background: var(--wpai-primary, #1a1a2e);
  border-right-color: rgba(255,255,255,.10);
  border-bottom-color: rgba(255,255,255,.10);
}
#wp-ai-chatbot .wpai-teaser.wpai-teaser-solid .wpai-teaser-close:hover { background: rgba(255,255,255,.12); }

/* Glass: frosted üveg */
#wp-ai-chatbot .wpai-teaser.wpai-teaser-glass {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 10px 32px -8px rgba(15,23,42,.22), inset 0 1px 0 rgba(255,255,255,.6);
}
#wp-ai-chatbot .wpai-teaser.wpai-teaser-glass .wpai-teaser-arrow {
  background: rgba(255,255,255,.72);
  border-right-color: rgba(255,255,255,.55);
  border-bottom-color: rgba(255,255,255,.55);
}

/* Minimal: csak vékony vonal, árnyék nélkül */
#wp-ai-chatbot .wpai-teaser.wpai-teaser-minimal {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.18);
  box-shadow: none;
  border-radius: 12px;
}
#wp-ai-chatbot .wpai-teaser.wpai-teaser-minimal .wpai-teaser-arrow {
  background: #ffffff;
  border-right-color: rgba(15,23,42,.18);
  border-bottom-color: rgba(15,23,42,.18);
}

/* Dark téma */
#wp-ai-chatbot.wpai-theme-dark .wpai-teaser {
  background: #1f2937;
  color: #f3f4f6;
  border-color: rgba(255,255,255,.12);
}
#wp-ai-chatbot.wpai-theme-dark .wpai-teaser-title { color: #f9fafb; }
#wp-ai-chatbot.wpai-theme-dark .wpai-teaser-msg { color: #d1d5db; opacity: 1; }
#wp-ai-chatbot.wpai-theme-dark .wpai-teaser-close { color: #d1d5db; }
#wp-ai-chatbot.wpai-theme-dark .wpai-teaser-close:hover { color: #f9fafb; background: rgba(255,255,255,.10); }
#wp-ai-chatbot.wpai-theme-dark .wpai-teaser-arrow {
  background: #1f2937;
  border-right-color: rgba(255,255,255,.12);
  border-bottom-color: rgba(255,255,255,.12);
}

@media (max-width: 480px) {
  #wp-ai-chatbot .wpai-teaser {
    max-width: 220px;
    font-size: 12px;
    padding: 8px 26px 8px 10px;
  }
}

/* Ha a chat nyitva van, ne látszódjon */
#wp-ai-chatbot.wpai-open .wpai-teaser { display: none; }

/* ============ PROAKTÍV BUBORÉK ============
 * A proaktív interakciós buborék a dashboard előnézet vizuális tokeneit
 * tükrözi: kisebb belső margó, teljes szöveg-opacitás és nem kattintható
 * a teljes felület (csak a gombok), ezért nincs "cursor: pointer".
 */
#wp-ai-chatbot .wpai-teaser.wpai-proactive-bubble {
  box-sizing: border-box;
  width: 300px;
  max-width: calc(100vw - 32px);
  padding: 12px 14px;
  min-width: 0;
  cursor: default;
}
#wp-ai-chatbot .wpai-teaser.wpai-proactive-bubble .wpai-teaser-msg {
  opacity: 1;
  padding-right: 22px;
  font-size: 14px;
  line-height: 1.4;
}
#wp-ai-chatbot .wpai-teaser.wpai-proactive-bubble .wpai-proactive-actions button {
  cursor: pointer;
}
@media (max-width: 480px) {
  #wp-ai-chatbot .wpai-teaser.wpai-proactive-bubble {
    width: 280px;
    max-width: calc(100vw - 24px);
    padding: 12px 14px;
  }
}
