/* =============================================================
   AXARA Global - Premium AI Chatbot Widget
   Design system tokens:
     --axcb-green:  #2e5339  (deep green)
     --axcb-gold:   #b8860b  (ochre/gold)
     --axcb-cream:  #f5f1e8  (background)
     --axcb-border: #e3ddd0
     --axcb-body:   #8c8579
   Font: Plus Jakarta Sans
   ============================================================= */

/* ── Variables ─────────────────────────────────────────────── */
#axcb-container {
  --axcb-green:    #2e5339;
  --axcb-gold:     #b8860b;
  --axcb-cream:    #faf8f5; /* slightly lighter cream for a cleaner look */
  --axcb-border:   #e8e4db; /* softer border */
  --axcb-body-c:   #8c8579;
  --axcb-surface:  #ffffff;
  --axcb-radius:   24px; /* smoother corners */
  --axcb-shadow:   0 20px 50px rgba(46,83,57,0.12), 0 4px 16px rgba(46,83,57,0.06); /* softer, premium shadow */
}

/* ── Core Container ────────────────────────────────────────── */
#axcb-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999999;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  /* Must have explicit dimensions so the toggle button (absolute-positioned child) is always visible */
  width: 80px;
  height: 82px;
}

#axcb-container * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Chat Label Pill ────────────────────────────────────────── */
#axcb-label {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--axcb-green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 1;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(46,83,57,0.30);
}

#axcb-container.axcb-open #axcb-label {
  opacity: 0;
  transform: translateX(-50%) scale(0.8);
}

/* ── Toggle Button ─────────────────────────────────────────── */
#axcb-toggle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--axcb-green);
  color: #fff;
  border: none;
  box-shadow: 0 8px 28px rgba(46,83,57,0.40);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: axcbFloat 4s ease-in-out infinite;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

#axcb-toggle:hover {
  animation: none;
  transform: translateX(-50%) scale(1.08) translateY(-3px);
  background: var(--axcb-gold);
  box-shadow: 0 14px 36px rgba(184,134,11,0.40);
}

/* Gold pulse ring */
#axcb-toggle::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--axcb-gold);
  opacity: 0;
  animation: axcbPulse 2.5s cubic-bezier(0.215,0.61,0.355,1) infinite;
  pointer-events: none;
}

#axcb-container.axcb-open #axcb-toggle {
  animation: none;
  transform: translateX(-50%);
  background: var(--axcb-gold);
  box-shadow: 0 8px 24px rgba(184,134,11,0.35);
}

#axcb-container.axcb-open #axcb-toggle::before { display: none; }

/* Button icon switching */
#axcb-toggle .axcb-icon-logo,
#axcb-toggle .axcb-icon-close {
  position: absolute;
  top: 50%;
  left: 50%;
  transition: all 0.35s cubic-bezier(0.25,0.8,0.25,1);
}

#axcb-toggle .axcb-icon-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(1);
  opacity: 1;
}

#axcb-toggle .axcb-icon-close {
  width: 22px;
  height: 22px;
  transform: translate(-50%,-50%) rotate(-90deg) scale(0);
  opacity: 0;
}

#axcb-container.axcb-open #axcb-toggle .axcb-icon-logo {
  transform: translate(-50%,-50%) rotate(90deg) scale(0);
  opacity: 0;
}

#axcb-container.axcb-open #axcb-toggle .axcb-icon-close {
  transform: translate(-50%,-50%) rotate(0) scale(1);
  opacity: 1;
}

/* ── Welcome Note Bubble ───────────────────────────────────── */
#axcb-note {
  position: absolute;
  bottom: 92px;
  right: -9px;
  width: 272px;
  background: var(--axcb-surface);
  border: 1px solid var(--axcb-border);
  border-top: 3px solid var(--axcb-gold);
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: 0 12px 40px rgba(46,83,57,0.12);
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  pointer-events: none;
  transition: all 0.32s cubic-bezier(0.16,1,0.3,1);
  z-index: 9999998;
}

#axcb-note::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 22px;
  width: 15px; height: 15px;
  background: var(--axcb-surface);
  border-right: 1px solid var(--axcb-border);
  border-bottom: 1px solid var(--axcb-border);
  transform: rotate(45deg);
}

#axcb-note.axcb-note-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.axcb-note-close {
  position: absolute;
  top: 8px; right: 10px;
  font-size: 12px;
  color: var(--axcb-body-c);
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.axcb-note-close:hover { color: var(--axcb-green); }

.axcb-note-body {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-right: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--axcb-green);
  font-weight: 600;
}

.axcb-note-icon { font-size: 18px; flex-shrink: 0; }

/* ── Chat Window ───────────────────────────────────────────── */
#axcb-window {
  position: absolute;
  bottom: 90px;
  right: -9px;
  width: 450px;
  height: 700px;
  max-height: 85vh;
  background: var(--axcb-cream);
  border-radius: var(--axcb-radius);
  box-shadow: var(--axcb-shadow);
  border: 1px solid var(--axcb-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  transform-origin: bottom right;
}

#axcb-container.axcb-open #axcb-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Minimized state */
#axcb-window.axcb-minimized {
  max-height: 56px;
  overflow: hidden;
}

/* ── Header ────────────────────────────────────────────────── */
#axcb-header {
  background: linear-gradient(135deg, var(--axcb-green), #1a3521);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 3px solid var(--axcb-gold);
}

.axcb-header-brand { display: flex; align-items: center; gap: 11px; }

.axcb-avatar {
  width: 46px;
  height: 46px;
  background: #ffffff;
  border-radius: 50%;
  border: 2px solid var(--axcb-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.axcb-header-info { display: flex; flex-direction: column; gap: 2px; }

.axcb-header-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.axcb-header-status {
  font-size: 11.5px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.axcb-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--axcb-gold);
  display: inline-block;
  animation: axcbStatusPulse 2s ease-in-out infinite;
}

/* typing bubble uses axcb-dot too, so override */
.axcb-typing-bubble .axcb-dot {
  background: var(--axcb-gold);
  animation: axcbTypingDot 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

.axcb-typing-bubble .axcb-dot:nth-child(2) { animation-delay: 0.2s; }
.axcb-typing-bubble .axcb-dot:nth-child(3) { animation-delay: 0.4s; }

.axcb-header-actions { display: flex; align-items: center; gap: 5px; }

.axcb-btn-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  outline: none;
}

.axcb-btn-icon svg { width: 15px; height: 15px; }

.axcb-btn-icon:hover {
  background: rgba(184,134,11,0.22);
  color: #fff;
  border-color: rgba(184,134,11,0.4);
}

/* ── Messages Area ─────────────────────────────────────────── */
#axcb-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
  background: var(--axcb-cream);
}

#axcb-messages::-webkit-scrollbar { width: 4px; }
#axcb-messages::-webkit-scrollbar-track { background: transparent; }
#axcb-messages::-webkit-scrollbar-thumb { background: var(--axcb-border); border-radius: 2px; }
#axcb-messages::-webkit-scrollbar-thumb:hover { background: var(--axcb-gold); }

/* ── Message Bubbles ───────────────────────────────────────── */
.axcb-msg {
  max-width: 94%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  animation: axcbMsgIn 0.28s cubic-bezier(0.16,1,0.3,1) forwards;
}

.axcb-msg.axcb-bot { align-self: flex-start; }
.axcb-msg.axcb-user { align-self: flex-end; }

@keyframes axcbMsgIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.axcb-bot-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.axcb-bot-avatar {
  width: 26px; height: 26px;
  background: #ffffff;
  border: 1px solid var(--axcb-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.axcb-bot-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--axcb-body-c);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.axcb-bubble {
  padding: 16px 24px !important;
  box-sizing: border-box !important;
  border-radius: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  word-wrap: break-word;
  height: auto !important;
  flex-shrink: 0;
}

.axcb-msg.axcb-bot .axcb-bubble {
  background: var(--axcb-surface);
  color: var(--axcb-green);
  border: 1px solid var(--axcb-border);
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 12px rgba(46,83,57,0.03);
}

.axcb-msg.axcb-bot .axcb-bubble strong,
.axcb-msg.axcb-bot .axcb-bubble b { color: var(--axcb-green); font-weight: 700; }

.axcb-msg.axcb-bot .axcb-bubble a { color: var(--axcb-gold); text-decoration: underline; font-weight: 600; }

.axcb-msg.axcb-user .axcb-bubble {
  background: var(--axcb-green);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(46,83,57,0.15);
}

.axcb-time {
  font-size: 10.5px;
  color: var(--axcb-body-c);
  padding: 0 4px;
}

.axcb-msg.axcb-user .axcb-time { text-align: right; }

/* ── Typing Indicator ──────────────────────────────────────── */
.axcb-typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 13px 16px !important;
}

@keyframes axcbTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* ── Quick-reply Chips ─────────────────────────────────────── */
.axcb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-self: flex-start;
  max-width: 100%;
  padding: 2px 0;
}

.axcb-chip {
  padding: 12px 20px !important;
  box-sizing: border-box !important;
  background: var(--axcb-surface);
  border: 1px solid var(--axcb-border);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--axcb-green);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
  white-space: normal;
  text-align: left;
  line-height: 1.5;
  height: auto !important;
  min-height: max-content;
  display: inline-block;
  animation: axcbMsgIn 0.3s cubic-bezier(0.16,1,0.3,1) both;
}

.axcb-chip:hover {
  background: var(--axcb-green);
  color: #fff;
  border-color: var(--axcb-green);
  box-shadow: 0 4px 12px rgba(46,83,57,0.15);
  transform: translateY(-1px);
}

/* ── Scroll-to-bottom button ───────────────────────────────── */
#axcb-scroll-down {
  position: absolute;
  bottom: 82px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--axcb-green);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(46,83,57,0.25);
  transition: all 0.2s ease;
  z-index: 10;
  font-family: inherit;
}

#axcb-scroll-down svg { width: 14px; height: 14px; }
#axcb-scroll-down:hover { background: var(--axcb-gold); }
.axcb-hidden { display: none !important; }

/* ── Autocomplete Dropdown ─────────────────────────────────── */
#axcb-autocomplete {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: var(--axcb-surface);
  border: 1px solid var(--axcb-border);
  border-top: 3px solid var(--axcb-gold);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 28px rgba(46,83,57,0.09);
  overflow: hidden;
  max-height: 230px;
  overflow-y: auto;
  z-index: 10;
  display: none;
}

#axcb-autocomplete.axcb-ac-open { display: block; }

.axcb-ac-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 13px;
  color: var(--axcb-green);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-weight: 500;
  text-align: left;
  width: 100%;
  border-bottom: 1px solid #f5f1e8;
  transition: background 0.15s ease;
  height: auto !important;
  min-height: max-content;
}

.axcb-ac-item:last-child { border-bottom: none; }
.axcb-ac-item:hover,
.axcb-ac-item.axcb-ac-active { background: #f5f1e8; color: var(--axcb-gold); }

.axcb-ac-icon { width: 14px; height: 14px; flex-shrink: 0; color: var(--axcb-body-c); }
.axcb-ac-text { flex: 1; }
.axcb-ac-text strong { color: var(--axcb-gold); font-weight: 700; }

.axcb-ac-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--axcb-body-c);
  background: #f5f1e8;
  border-radius: 6px;
  padding: 2px 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Input Wrapper ─────────────────────────────────────────── */
#axcb-input-wrap {
  padding: 11px 13px 9px;
  background: var(--axcb-surface);
  border-top: 1px solid var(--axcb-border);
  flex-shrink: 0;
  position: relative;
}

#axcb-input-row {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  background: var(--axcb-surface);
  border: 1px solid var(--axcb-border);
  border-radius: 20px;
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02) inset;
}

#axcb-input-row:focus-within {
  border-color: var(--axcb-gold);
  background: var(--axcb-surface);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.12);
}

#axcb-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--axcb-green);
  resize: none;
  min-height: 22px;
  max-height: 120px;
  outline: none;
  line-height: 1.55;
}

#axcb-input::placeholder { color: var(--axcb-body-c); font-weight: 400; }

#axcb-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--axcb-green);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  outline: none;
}

#axcb-send svg { width: 16px; height: 16px; }

#axcb-send:hover {
  background: var(--axcb-gold);
  transform: scale(1.06);
}

#axcb-footer-credit {
  text-align: center;
  font-size: 10.5px;
  color: var(--axcb-body-c);
  padding-top: 7px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

#axcb-footer-credit strong { color: var(--axcb-gold); font-weight: 700; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes axcbFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-5px); }
}

@keyframes axcbPulse {
  0%   { transform: scale(0.9); opacity: 0.9; }
  50%  { opacity: 0.4; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes axcbStatusPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 767px) {
  #axcb-container { bottom: 16px; right: 16px; width: 72px; height: 74px; }
  /* Make chat window full-screen on mobile to prevent Android keyboard squishing */
  #axcb-window { 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    right: 0 !important; 
    bottom: 0 !important; 
    width: 100vw !important; 
    height: 100% !important; 
    max-height: 100% !important; 
    border-radius: 0 !important; 
    margin: 0 !important;
  }
  /* Use dynamic viewport height if supported to perfectly handle mobile browsers */
  @supports (height: 100dvh) {
    #axcb-window { height: 100dvh !important; max-height: 100dvh !important; }
  }
  #axcb-toggle { width: 56px; height: 56px; }
  #axcb-label { font-size: 9px; padding: 2px 7px; }
  .axcb-chip { font-size: 12px; padding: 6px 11px; }
  /* Prevent iOS auto-zoom when typing by forcing font size to 16px */
  #axcb-input { font-size: 16px !important; }
  /* Hide the toggle button when chatbot window is open to avoid overlap with send button */
  #axcb-container.axcb-open #axcb-toggle {
    display: none !important;
  }
}


/* Feedback Controls */
.ax-feedback-controls {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  padding: 0 10px;
  justify-content: flex-end;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.ax-message-wrapper:hover .ax-feedback-controls,
.axcb-msg:hover .ax-feedback-controls {
  opacity: 1;
}
.ax-feedback-btn {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  font-size: 14px;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  
  opacity: 0.6;
}
.ax-feedback-btn:hover {
  background: rgba(0,0,0,0.05);
  
  opacity: 1;
}
.ax-feedback-btn.selected {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  
  opacity: 1;
  transform: scale(1.05);
}
.ax-feedback-btn:disabled:not(.selected) {
  opacity: 0.3;
  cursor: default;
}

.ax-feedback-btn:active { transform: scale(0.9); background: rgba(0,0,0,0.1); }


/* ========================================================
   Mobile & Responsive Adjustments
   ======================================================== */
@media (max-width: 768px) {
  #axcb-container {
    right: 15px !important;
    bottom: 15px !important;
  }
  #axcb-container.axcb-open {
    right: 15px !important;
    bottom: 15px !important;
  }
  #axcb-window {
    width: calc(100vw - 30px) !important;
    max-width: 400px;
    height: calc(100vh - 110px) !important;
    max-height: 650px;
    bottom: 80px !important;
    right: 0 !important;
  }
  #axcb-input {
    font-size: 16px !important; /* Prevent iOS zoom on focus */
  }
  .ax-feedback-btn {
    min-width: 36px;
    min-height: 36px;
  }
}


/* Suggestion Cards */
#axcb-container .ax-suggestions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  align-self: flex-start;
  width: 100%;
  max-width: 90%;
}

#axcb-container .ax-suggestion-card {
  background: rgba(255, 255, 255, 0.85);
  color: #2e5339; /* Brand navy color for text */
  border: 1px solid rgba(46, 83, 57, 0.08);
  padding: 12px 16px;
  border-radius: 12px;
  font-family: 'Rethink Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(46, 83, 57, 0.02);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(10px);
  animation: axFadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#axcb-container .ax-suggestion-card::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #b8860b;
  border-radius: 50%;
  margin-right: 10px;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

#axcb-container .ax-suggestion-card::after {
  content: "→";
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: #b8860b;
  opacity: 0.7;
  transition: all 0.3s ease;
  margin-left: auto;
}

#axcb-container .ax-suggestion-card:hover {
  background: linear-gradient(135deg, #2e5339 0%, #2e5339 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateX(4px) translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 83, 57, 0.15);
}

#axcb-container .ax-suggestion-card:hover::before {
  background-color: #ffffff;
}

#axcb-container .ax-suggestion-card:hover::after {
  color: #ffffff;
  opacity: 1;
  transform: translateX(4px);
}

#axcb-container .ax-suggestion-card:active {
  transform: translateX(2px) translateY(0);
}



/* Animations */
@keyframes axFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
  #axcb-container {
    right: 15px !important;
    bottom: 15px !important;
  }
  #axcb-container.axcb-open {
    right: 15px !important;
    bottom: 15px !important;
  }
  #axcb-window {
    width: calc(100vw - 30px) !important;
    max-width: 400px;
    height: calc(100vh - 110px) !important;
    max-height: 650px;
    bottom: 80px !important;
    right: 0 !important;
  }
  #axcb-textarea {
    font-size: 16px !important; /* Prevent iOS zoom on focus */
  }
  .ax-feedback-btn {
    min-width: 36px;
    min-height: 36px; /* slightly larger for mobile tap */
  }
}
