.gxa {
  --gxa-dark: #062A27;
  --gxa-teal: #1FA89D;
  --gxa-accent: #154844;
  --gxa-bg: #ffffff;
  --gxa-soft: #eef7f6;
  --gxa-text: #10201f;
  --gxa-muted: #5b6b6a;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--gxa-text);
}
.gxa *, .gxa *::before, .gxa *::after { box-sizing: border-box; }

.gxa-launcher {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; margin-left: auto; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--gxa-teal); color: #fff;
  box-shadow: 0 6px 20px rgba(6, 42, 39, .35);
  transition: transform .15s ease;
}
.gxa-launcher:hover { transform: scale(1.06); }
.gxa-launcher:focus-visible, .gxa button:focus-visible, .gxa textarea:focus-visible, .gxa input:focus-visible, .gxa a:focus-visible {
  outline: 3px solid #f5c400; outline-offset: 2px;
}
.gxa-launcher.gxa-has-mascot { width: 96px; height: 96px; background: transparent; box-shadow: none; border-radius: 0; }
.gxa-launcher img { width: 96px; height: 96px; display: block; filter: drop-shadow(0 4px 8px rgba(6, 42, 39, .35)); }

.gxa-panel {
  position: absolute; right: 0; bottom: 108px;
  width: 370px; height: min(600px, calc(100vh - 140px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--gxa-bg); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(6, 42, 39, .28);
}
.gxa-panel[hidden] { display: none; }

.gxa-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 16px; background: var(--gxa-dark); color: #fff;
}
.gxa-title { display: flex; flex-direction: column; }
.gxa-title strong { font-size: 16px; color: #fff; }
.gxa-preview { font-size: 11px; color: #f5c400; }
.gxa-close {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}

.gxa-msgs { flex: 1; overflow-y: auto; padding: 14px; background: var(--gxa-soft); display: flex; flex-direction: column; gap: 10px; }
.gxa-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; word-wrap: break-word; }
.gxa-msg p { margin: 0 0 6px; }
.gxa-msg p:last-child { margin: 0; }
.gxa-msg ul { margin: 4px 0 6px; padding-left: 18px; }
.gxa-msg a { color: var(--gxa-accent); font-weight: 600; text-decoration: underline; }
.gxa-user { align-self: flex-end; background: var(--gxa-teal); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.gxa-bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }

.gxa-typing span {
  display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%;
  background: var(--gxa-muted); animation: gxa-dot 1s infinite ease-in-out;
}
.gxa-typing span:nth-child(2) { animation-delay: .15s; }
.gxa-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes gxa-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.gxa-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; background: var(--gxa-soft); }
.gxa-chips:not(:empty) { padding-bottom: 10px; }
.gxa-chip {
  border: 1px solid var(--gxa-teal); background: #fff; color: var(--gxa-accent);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.gxa-chip:hover { background: var(--gxa-teal); color: #fff; }

.gxa-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid #dde7e6; background: #fff; }
.gxa-input textarea {
  flex: 1; resize: none; max-height: 110px; min-height: 40px;
  border: 1px solid #c9d6d5; border-radius: 10px; padding: 9px 11px; font: inherit; color: var(--gxa-text); background: #fff;
}
.gxa-input button {
  width: 42px; height: 42px; flex: none; border: 0; border-radius: 10px;
  background: var(--gxa-dark); color: #fff; font-size: 16px; cursor: pointer;
}

.gxa-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gxa-btn {
  display: inline-block; border: 0; border-radius: 8px; padding: 8px 14px;
  background: var(--gxa-dark); color: #fff !important; font: inherit; font-weight: 600; text-decoration: none !important; cursor: pointer;
}
.gxa-btn:disabled { opacity: .6; cursor: wait; }
.gxa-msg .gxa-btn { margin-top: 8px; }
.gxa-wa { background: #1f9e55; }
.gxa-ghost { background: transparent; color: var(--gxa-accent) !important; border: 1px solid #c9d6d5; }

.gxa-form { width: 88%; }
.gxa-form label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--gxa-muted); }
.gxa-form input, .gxa-form textarea {
  display: block; width: 100%; margin-top: 3px; padding: 8px 10px;
  border: 1px solid #c9d6d5; border-radius: 8px; font: inherit; color: var(--gxa-text); background: #fff;
}
.gxa-hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; }

/* "Let's talk" speech bubble above the mascot's head */
.gxa-bubble {
  position: absolute; right: 0; bottom: 104px; display: flex; align-items: flex-start; gap: 4px;
  white-space: nowrap; animation: gxa-pop .4s ease-out .8s both;
}
.gxa-open .gxa-bubble, .gxa-bubble[hidden] { display: none; }
.gxa-bubble-text {
  position: relative; padding: 9px 14px; border-radius: 18px 18px 4px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 14px rgba(6, 42, 39, .25);
}
.gxa-bubble-text::after { /* tail pointing down at the mascot */
  content: ""; position: absolute; right: 22px; bottom: -9px; width: 14px; height: 14px;
  background: #fff; border-right: 2px solid var(--gxa-teal); border-bottom: 2px solid var(--gxa-teal);
  transform: rotate(45deg);
}
.gxa-bubble-x { width: 22px; height: 22px; border-radius: 50%; font-size: 14px; line-height: 1; cursor: pointer; }
@keyframes gxa-pop { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }

/*
 * The site theme (Hello Elementor) paints every <button> pink (#c36) on hover/focus.
 * Pin each widget button's own look in all states so theme rules can't leak in.
 */
.gxa button, .gxa button:hover, .gxa button:focus, .gxa button:active { text-decoration: none !important; text-transform: none !important; letter-spacing: normal !important; min-height: 0 !important; }
.gxa .gxa-launcher.gxa-has-mascot, .gxa .gxa-launcher.gxa-has-mascot:hover, .gxa .gxa-launcher.gxa-has-mascot:focus, .gxa .gxa-launcher.gxa-has-mascot:active { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.gxa .gxa-launcher:not(.gxa-has-mascot), .gxa .gxa-launcher:not(.gxa-has-mascot):hover, .gxa .gxa-launcher:not(.gxa-has-mascot):focus { background: var(--gxa-teal) !important; color: #fff !important; border: 0 !important; padding: 0 !important; }
.gxa .gxa-close, .gxa .gxa-close:hover, .gxa .gxa-close:focus { background: rgba(255, 255, 255, .12) !important; color: #fff !important; border: 0 !important; padding: 0 !important; }
.gxa .gxa-input button, .gxa .gxa-input button:hover, .gxa .gxa-input button:focus { background: var(--gxa-dark) !important; color: #fff !important; border: 0 !important; padding: 0 !important; }
.gxa .gxa-chip, .gxa .gxa-chip:focus { background: #fff !important; color: var(--gxa-accent) !important; border: 1px solid var(--gxa-teal) !important; padding: 6px 12px !important; }
.gxa .gxa-chip:hover { background: var(--gxa-teal) !important; color: #fff !important; }
.gxa .gxa-btn, .gxa .gxa-btn:hover, .gxa .gxa-btn:focus { background: var(--gxa-dark) !important; color: #fff !important; border: 0 !important; padding: 8px 14px !important; }
.gxa .gxa-wa, .gxa .gxa-wa:hover, .gxa .gxa-wa:focus { background: #1f9e55 !important; }
.gxa .gxa-ghost, .gxa .gxa-ghost:hover, .gxa .gxa-ghost:focus { background: transparent !important; color: var(--gxa-accent) !important; border: 1px solid #c9d6d5 !important; }
.gxa .gxa-bubble-text, .gxa .gxa-bubble-text:hover, .gxa .gxa-bubble-text:focus { background: #fff !important; color: var(--gxa-dark) !important; border: 2px solid var(--gxa-teal) !important; }
.gxa .gxa-bubble-x, .gxa .gxa-bubble-x:hover, .gxa .gxa-bubble-x:focus { background: var(--gxa-dark) !important; color: #fff !important; border: 0 !important; padding: 0 !important; }

@media (max-width: 480px) {
  .gxa-bubble { bottom: 88px; }
  .gxa-bubble-text { font-size: 13px; padding: 7px 11px; }
  .gxa { right: 12px; bottom: 12px; }
  .gxa.gxa-open { left: 0; right: 0; bottom: 0; }
  .gxa.gxa-open .gxa-launcher { display: none; }
  .gxa-panel { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; }
  .gxa-launcher.gxa-has-mascot, .gxa-launcher img { width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .gxa-launcher, .gxa-typing span { transition: none; animation: none; }
}
