/* Genie Chatbot v1.2.0
   Clean, WordPress-safe, responsive stylesheet
*/

:root {
  --genie-orange: #ff6b18;
  --genie-orange-dark: #e6540b;
  --genie-navy: #111827;
  --genie-navy-2: #172338;
  --genie-ink: #172033;
  --genie-text: #475467;
  --genie-muted: #98a2b3;
  --genie-line: #e7ebf0;
  --genie-soft: #f5f7fa;
  --genie-white: #ffffff;
  --genie-radius: 22px;
  --genie-shadow: 0 20px 60px rgba(15, 23, 42, 0.24);
  --genie-font: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Scope all predictable sizing to Genie only. */
#gitbot-launcher,
#gitbot-launcher *,
#gitbot-panel,
#gitbot-panel * {
  box-sizing: border-box;
  font-family: var(--genie-font);
}

#gitbot-launcher button,
#gitbot-panel button,
#gitbot-panel input,
#gitbot-panel textarea {
  font: inherit;
}

#gitbot-panel img,
#gitbot-launcher img {
  display: block;
  max-width: none;
}

#gitbot-panel[hidden],
#gitbot-panel [hidden],
.gitbot-quick-replies[hidden],
.contact-support[hidden] {
  display: none !important;
}

/* Launcher */
#gitbot-launcher.gitbot-launcher {
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 2147483000;
  width: 76px;
  height: 76px;
  min-width: 76px;
  min-height: 76px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #263248, #151d2d 42%, #0c1220);
  box-shadow: 0 15px 40px rgba(15, 23, 42, .28), 0 0 35px rgba(255, 103, 28, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  isolation: isolate;
}

#gitbot-launcher .gitbot-launcher-core {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #101827;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#gitbot-launcher .gitbot-launcher-logo {
  position: static;
  display: block;

  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;

  margin: 0;
  padding: 0;

  object-fit: contain;
  object-position: center;

  transform: scale(1);
  transform-origin: 50% 50%;

  animation: genie-logo-breathe 2.8s ease-in-out infinite;
}

#gitbot-launcher .gitbot-launcher-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

#gitbot-launcher .orbit-one {
  width: 92px;
  height: 92px;
  border: 1px solid transparent;
  border-top-color: #ff7323;
  animation: genie-orbit 5s linear infinite;
}

#gitbot-launcher .orbit-two {
  width: 103px;
  height: 103px;
  border: 1px dashed rgba(255, 145, 82, .28);
  animation: genie-orbit 9s linear infinite reverse;
}

#gitbot-launcher .gitbot-launcher-status {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 5;
  width: 12px;
  height: 12px;
  border: 2px solid #111827;
  border-radius: 50%;
  background: #7ee35c;
}

#gitbot-launcher .gitbot-launcher-prompt {
  position: absolute;
  right: 88px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 218px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 103, 28, .16);
  border-radius: 14px;
  background: #fff;
  color: var(--genie-ink);
  box-shadow: 0 14px 35px rgba(15, 23, 42, .14);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  animation: genie-greeting 8s ease-in-out infinite;
}

#gitbot-launcher .prompt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--genie-orange); }
#gitbot-launcher .prompt-arrow { margin-left: auto; color: var(--genie-orange); }

/* Panel */
#gitbot-panel.gitbot-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: auto;
  top: auto;
  z-index: 2147483000;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: min(700px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--genie-radius);
  background: var(--genie-white);
  color: var(--genie-ink);
  box-shadow: var(--genie-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

#gitbot-panel.gitbot-minimized { height: auto; }
#gitbot-panel.gitbot-minimized .gitbot-conversation,
#gitbot-panel.gitbot-minimized .gitbot-input-area,
#gitbot-panel.gitbot-minimized .gitbot-footer,
#gitbot-panel.gitbot-minimized .contact-support { display: none !important; }

/* Header */
#gitbot-panel .gitbot-header {
  position: relative;
  isolation: isolate;
  flex: 0 0 100px;
  width: 100%;
  min-height: 100px;
  margin: 0;
  padding: 18px 20px;
  border: 0;
  background: linear-gradient(120deg, #101827, #17243a, #0b1220);
  background-size: 250% 100%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  animation: genie-header-flow 12s ease-in-out infinite;
}

#gitbot-panel .gitbot-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 125, 48, .16) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: genie-header-sweep 7s ease-in-out infinite;
}

#gitbot-panel .gitbot-header > * { position: relative; z-index: 1; }

#gitbot-panel .gitbot-brand {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

#gitbot-panel .gitbot-logo {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
}

#gitbot-panel .gitbot-brand-text { min-width: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
#gitbot-panel .gitbot-title { margin: 0; padding: 0; color: #fff; font-size: 22px; line-height: 1.2; font-weight: 750; text-align: left; }
#gitbot-panel .gitbot-subtitle { margin: 0; padding: 0; color: rgba(255,255,255,.86); font-size: 12px; line-height: 1.4; text-align: left; }

#gitbot-panel .gitbot-header-controls { flex: 0 0 auto; margin: 0; padding: 0; display: flex; align-items: center; gap: 7px; }
#gitbot-panel .gitbot-icon-btn {
  position: static;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  color: #fff;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
#gitbot-panel .gitbot-icon-btn:hover { background: rgba(255,255,255,.16); }

/* Conversation */
#gitbot-panel .gitbot-conversation {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 11px;
  scroll-behavior: smooth;
}

#gitbot-panel .gitbot-message-row { width: 100%; margin: 0; display: flex; align-items: flex-end; }
#gitbot-panel .gitbot-message-row-bot { justify-content: flex-start; }
#gitbot-panel .gitbot-message-row-visitor { justify-content: flex-end; }

#gitbot-panel .gitbot-message {
  max-width: 82%;
  margin: 0;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: normal;
}
#gitbot-panel .gitbot-message-bot { border: 1px solid #e5e9ef; border-bottom-left-radius: 5px; background: #f3f6f9; color: var(--genie-ink); }
#gitbot-panel .gitbot-message-visitor { border-bottom-right-radius: 5px; background: linear-gradient(135deg,#ff741f,#ff5710); color: #fff; }

/* Stable avatar contract: same geometry for normal and thinking states. */
#gitbot-panel .gitbot-message-avatar,
#gitbot-panel .gitbot-processing-avatar {
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  margin: 0 9px 0 0;
  padding: 0;
  border-radius: 50%;
  background: #111827;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gitbot-panel .gitbot-message-avatar-logo,
#gitbot-panel .gitbot-processing-avatar img {
  position: static;
  width: 23px;
  min-width: 23px;
  height: 23px;
  min-height: 23px;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
  animation: none;
}

#gitbot-panel .gitbot-processing-bubble {
  min-height: 42px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #e5e9ef;
  border-radius: 16px 16px 16px 5px;
  background: #f3f6f9;
  color: var(--genie-text);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
#gitbot-panel .gitbot-thinking-label { white-space: nowrap; }
#gitbot-panel .gitbot-processing-dots { display: inline-flex; align-items: center; gap: 4px; }
#gitbot-panel .gitbot-processing-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--genie-orange); animation: genie-dot 1.2s infinite; }
#gitbot-panel .gitbot-processing-dots span:nth-child(2) { animation-delay: .15s; }
#gitbot-panel .gitbot-processing-dots span:nth-child(3) { animation-delay: .3s; }

/* Structured responses */
#gitbot-panel .gitbot-response-line { margin: 0 0 7px; }
#gitbot-panel .gitbot-response-line:last-child { margin-bottom: 0; }
#gitbot-panel .gitbot-response-bullet { margin: 0 0 7px; display: grid; grid-template-columns: 12px 1fr; gap: 6px; }
#gitbot-panel .gitbot-response-bullet-marker { color: var(--genie-orange); font-weight: 800; }
#gitbot-panel .gitbot-response-bullet-content { min-width: 0; }

/* Quick replies and choices */
#gitbot-panel .gitbot-quick-replies,
#gitbot-panel .gitbot-service-chat-options,
#gitbot-panel .gitbot-service-followups { width: 100%; margin: 0; display: flex; flex-direction: column; gap: 8px; }

#gitbot-panel .gitbot-quick-reply,
#gitbot-panel .gitbot-service-chat-option {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--genie-line);
  border-radius: 13px;
  background: #fff;
  color: var(--genie-ink);
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}
#gitbot-panel .gitbot-quick-reply:hover,
#gitbot-panel .gitbot-service-chat-option:hover { border-color: #ffb68e; background: #fffaf7; transform: translateY(-1px); }
#gitbot-panel .quick-reply-icon { flex: 0 0 30px; width: 30px; height: 30px; margin: 0; border-radius: 9px; background: #fff3ec; color: var(--genie-orange); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
#gitbot-panel .quick-reply-text { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.35; font-weight: 650; }
#gitbot-panel .quick-reply-arrow { flex: 0 0 auto; color: var(--genie-orange); font-size: 18px; }
#gitbot-panel .gitbot-service-chat-heading { margin: 2px 0 3px; color: var(--genie-ink); font-size: 13px; line-height: 1.4; font-weight: 750; }

#gitbot-panel .gitbot-service-option,
#gitbot-panel .gitbot-skip-name,
#gitbot-panel .gitbot-retry-btn,
#gitbot-panel .gitbot-service-chat-back,
#gitbot-panel .gitbot-back-main-menu,
#gitbot-panel .gitbot-back-to-faqs {
  width: fit-content;
  max-width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid #ffd1bd;
  border-radius: 10px;
  background: #fff;
  color: #17233c;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}
#gitbot-panel .gitbot-skip-name { align-self: flex-end; min-height: 34px; padding: 6px 12px; color: var(--genie-orange-dark); }
#gitbot-panel .gitbot-back-main-menu { align-self: flex-start; margin-top: 2px; }

/* Service details */
#gitbot-panel .gitbot-service-details-bubble { width: auto; max-width: 92%; padding: 15px 16px; }
#gitbot-panel .gitbot-service-details-title { margin: 0 0 12px; color: var(--genie-ink); font-size: 16px; line-height: 1.35; }
#gitbot-panel .gitbot-service-detail-section { margin: 0; padding: 11px 0; border-top: 1px solid #e2e8f0; }
#gitbot-panel .gitbot-service-detail-section:first-of-type { padding-top: 0; border-top: 0; }
#gitbot-panel .gitbot-service-detail-section h4 { margin: 0 0 6px; color: var(--genie-ink); font-size: 13px; line-height: 1.35; }
#gitbot-panel .gitbot-service-detail-section p { margin: 0; color: #344054; font-size: 13px; line-height: 1.6; white-space: pre-line; }
#gitbot-panel .gitbot-service-chat-link { display: inline-flex; width: fit-content; max-width: 100%; padding: 9px 12px; border: 1px solid #ffb48c; border-radius: 10px; background: #fff; color: #c94b0a; font-size: 12px; line-height: 1.35; font-weight: 650; text-decoration: none; }

/* Sales/contact confirmation */
#gitbot-panel .gitbot-sales-success h3 { margin: 0 0 9px; color: var(--genie-ink); font-size: 16px; }
#gitbot-panel .gitbot-sales-success p { margin: 0 0 8px; }
#gitbot-panel .gitbot-sales-contact-heading { margin-top: 12px; font-weight: 750; }
#gitbot-panel .gitbot-sales-contact-link { color: var(--genie-orange-dark); text-decoration: none; font-weight: 700; }
#gitbot-panel .gitbot-sales-closing { margin-bottom: 0; font-weight: 700; }

/* Contact form */
#gitbot-panel .contact-support {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 0;
}
#gitbot-panel .contact-support h3 { margin: 0 0 7px; color: var(--genie-ink); font-size: 18px; }
#gitbot-panel .contact-intro { margin: 0 0 14px; color: var(--genie-text); font-size: 12px; line-height: 1.55; }
#gitbot-panel .contact-form { width: 100%; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
#gitbot-panel .contact-field { width: 100%; margin: 0; display: flex; flex-direction: column; gap: 5px; }
#gitbot-panel .contact-field label { margin: 0; color: var(--genie-ink); font-size: 12px; line-height: 1.35; font-weight: 650; }
#gitbot-panel .contact-field input,
#gitbot-panel .contact-field textarea {
  width: 100%;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid var(--genie-line);
  border-radius: 9px;
  background: #fff;
  color: var(--genie-ink);
  box-shadow: none;
  font-size: 13px;
  line-height: 1.4;
}
#gitbot-panel .contact-field textarea { min-height: 84px; resize: vertical; }
#gitbot-panel .contact-submit,
#gitbot-panel .contact-cancel { width: 100%; min-height: 44px; margin: 0; padding: 10px 14px; border-radius: 10px; box-shadow: none; cursor: pointer; font-weight: 700; }
#gitbot-panel .contact-submit { border: 0; background: linear-gradient(135deg,#ff7c2b,#ed570c); color: #fff; }
#gitbot-panel .contact-cancel { border: 1px solid var(--genie-line); background: #fff; color: var(--genie-ink); }
#gitbot-panel .contact-status { margin: 2px 0 0; color: var(--genie-text); font-size: 12px; line-height: 1.45; }
#gitbot-panel .contact-status:empty { display: none; }

/* Retry */
#gitbot-panel .gitbot-retry-container { width: 100%; display: flex; align-items: center; gap: 8px; }
#gitbot-panel .gitbot-retry-container .gitbot-message { flex: 1 1 auto; }

/* Input and footer */
#gitbot-panel .gitbot-input-area {
  flex: 0 0 auto;
  width: 100%;
  min-height: 70px;
  margin: 0;
  padding: 10px 13px;
  border: 0;
  border-top: 1px solid #f1e4dd;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
}
#gitbot-panel .gitbot-message-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 42px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid #f0ded3;
  border-radius: 22px;
  background: #fff;
  color: var(--genie-ink);
  box-shadow: none;
  outline: none;
  font-size: 13px;
}
#gitbot-panel .gitbot-message-input:focus { border-color: #ff9c67; box-shadow: 0 0 0 3px rgba(255,107,24,.08); }
#gitbot-panel .gitbot-send-btn {
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg,#ff7c2b,#f15b0c);
  color: #fff;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}
#gitbot-panel .gitbot-footer { flex: 0 0 auto; width: 100%; margin: 0; padding: 0 14px 12px; background: #fff; color: #a0a7ae; display: flex; justify-content: space-between; gap: 12px; font-size: 9px; line-height: 1.4; }

/* Focus and disabled */
#gitbot-launcher:focus-visible,
#gitbot-panel button:focus-visible,
#gitbot-panel input:focus-visible,
#gitbot-panel textarea:focus-visible,
#gitbot-panel a:focus-visible { outline: 2px solid var(--genie-orange); outline-offset: 2px; }
#gitbot-panel button:disabled,
#gitbot-panel input:disabled,
#gitbot-panel textarea:disabled { opacity: .55; cursor: not-allowed; }

.gitbot-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Tablet */
@media (max-width: 1024px) {
  #gitbot-panel.gitbot-panel { right: 18px; bottom: 18px; width: min(400px, calc(100vw - 36px)); height: min(680px, calc(100dvh - 36px)); max-height: calc(100dvh - 36px); }
  #gitbot-launcher.gitbot-launcher { right: 22px; bottom: 22px; }
}

/* Mobile */
@media (max-width: 600px) {
  #gitbot-launcher.gitbot-launcher {
      right: 18px;
      bottom: 18px;
      width: 68px;
      height: 68px;
      min-width: 68px;
      min-height: 68px;
    }

    #gitbot-launcher .gitbot-launcher-core {
      width: 50px;
      height: 50px;
    }

    #gitbot-launcher .gitbot-launcher-logo {
      width: 28px;
      height: 28px;
      min-width: 28px;
      min-height: 28px;
      max-width: 28px;
      max-height: 28px;
    }

    #gitbot-launcher .orbit-one {
      width: 82px;
      height: 82px;
    }

    #gitbot-launcher .orbit-two {
      width: 92px;
      height: 92px;
    }

    #gitbot-launcher .gitbot-launcher-prompt {
      display: none;
    }

  #gitbot-panel.gitbot-panel {
    left: 10px;
    right: 10px;
    top: max(10px, env(safe-area-inset-top));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    border-radius: 18px;
  }
  #gitbot-panel .gitbot-header { flex-basis: 86px; min-height: 86px; padding: 13px 14px; }
  #gitbot-panel .gitbot-logo { flex-basis: 42px; width: 42px; min-width: 42px; height: 42px; min-height: 42px; }
  #gitbot-panel .gitbot-title { font-size: 20px; }
  #gitbot-panel .gitbot-subtitle { font-size: 11px; }
  #gitbot-panel .gitbot-icon-btn { width: 32px; min-width: 32px; height: 32px; min-height: 32px; }
  #gitbot-panel .gitbot-conversation { padding: 14px 12px; gap: 10px; }
  #gitbot-panel .gitbot-message { max-width: calc(100% - 45px); padding: 10px 12px; font-size: 13px; }
  #gitbot-panel .gitbot-message-avatar,
  #gitbot-panel .gitbot-processing-avatar { flex-basis: 34px; width: 34px; min-width: 34px; height: 34px; min-height: 34px; margin-right: 7px; }
  #gitbot-panel .gitbot-message-avatar-logo,
  #gitbot-panel .gitbot-processing-avatar img { width: 22px; min-width: 22px; height: 22px; min-height: 22px; }
  #gitbot-panel .gitbot-input-area { min-height: 66px; padding: 9px 10px; }
  #gitbot-panel .gitbot-footer { padding: 0 11px 9px; }
  #gitbot-panel .contact-support { padding: 14px 12px; }
}

/* Very small mobile */
@media (max-width: 360px) {
  #gitbot-panel.gitbot-panel { left: 6px; right: 6px; top: max(6px, env(safe-area-inset-top)); bottom: max(6px, env(safe-area-inset-bottom)); border-radius: 14px; }
  #gitbot-panel .gitbot-header { padding: 12px 11px; }
  #gitbot-panel .gitbot-brand { gap: 9px; }
  #gitbot-panel .gitbot-subtitle { max-width: 145px; }
  #gitbot-panel .gitbot-conversation { padding: 12px 9px; }
  #gitbot-panel .gitbot-footer { font-size: 8px; }
}

/* Animations */
@keyframes genie-orbit { to { transform: rotate(360deg); } }
@keyframes genie-logo-breathe {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(255,115,35,.3));
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 8px rgba(255,115,35,.72));
    transform: scale(1.07);
  }
}
@keyframes genie-dot { 30% { transform: translateY(-4px); } 60%,100% { transform: none; } }
@keyframes genie-header-flow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes genie-header-sweep { 0%,15%,100% { background-position: 120% 0; opacity: 0; } 40%,60% { opacity: 1; } 80% { background-position: -20% 0; opacity: 0; } }
@keyframes genie-greeting { 0%,12%,78%,100% { opacity: 0; transform: translateY(-50%) translateX(8px); } 18%,70% { opacity: 1; transform: translateY(-50%) translateX(0); } }

@media (prefers-reduced-motion: reduce) {
  #gitbot-launcher *,
  #gitbot-panel *,
  #gitbot-panel *::before,
  #gitbot-panel *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   LAUNCHER INTERACTION
   ========================================================= */

/* Larger Genie flame while preserving the launcher dimensions */


/*
 * The prompt continues its automatic greeting cycle,
 * but stays visible whenever the visitor interacts
 * with the Genie launcher.
 */
#gitbot-launcher:hover .gitbot-launcher-prompt,
#gitbot-launcher:focus-visible .gitbot-launcher-prompt,
#gitbot-launcher:focus-within .gitbot-launcher-prompt {
  animation: none;
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* =========================================================
   FAQ CATEGORY + NAVIGATION SYSTEM
   ========================================================= */

#gitbot-panel .gitbot-service-followups {
  width: 100%;
  gap: 8px;
}

/* FAQ category and question cards */
#gitbot-panel .gitbot-nav-option {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 8px 11px;

  display: flex;
  align-items: center;
  gap: 10px;

  border: 1px solid #e8ebef;
  border-radius: 13px;

  background: #ffffff;
  color: var(--genie-ink);

  box-shadow: none;

  text-align: left;
  cursor: pointer;
}

#gitbot-panel .gitbot-nav-option:hover {
  border-color: #ffb68e;
  background: #fffaf7;
  transform: translateY(-1px);
}

/* FAQ category icon */
#gitbot-panel .gitbot-faq-icon {
  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  border-radius: 9px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #fff3ec;
  color: var(--genie-orange);

  font-size: 16px;
  line-height: 1;
  font-weight: 750;
}

/* FAQ label */
#gitbot-panel .gitbot-faq-label {
  flex: 1 1 auto;
  min-width: 0;

  color: var(--genie-ink);

  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
}

/* FAQ arrow */
#gitbot-panel .gitbot-faq-arrow {
  flex: 0 0 auto;

  color: var(--genie-orange);

  font-size: 18px;
  line-height: 1;
}

/* Questions are slightly more compact than categories */
#gitbot-panel .gitbot-faq-question {
  min-height: 46px;
}

/* Navigation is intentionally different from content cards */
#gitbot-panel .gitbot-faq-navigation,
#gitbot-panel .gitbot-back-main-menu,
#gitbot-panel .gitbot-service-chat-back {
  align-self: flex-start;

  width: auto;
  min-width: 0;
  min-height: 36px;

  margin: 4px 0 2px 0;
  padding: 7px 11px;

  border: 1px solid #ffd1bd;
  border-radius: 10px;

  background: #ffffff;
  color: #17233c;

  box-shadow: none;

  font-size: 12px;
  line-height: 1.3;
  font-weight: 650;

  text-align: left;
  cursor: pointer;
}

#gitbot-panel .gitbot-faq-navigation:hover,
#gitbot-panel .gitbot-back-main-menu:hover,
#gitbot-panel .gitbot-service-chat-back:hover {
  border-color: #ff9f70;
  background: #fff8f4;
}

/* Mobile alignment follows the smaller avatar column */
@media (max-width: 600px) {
  #gitbot-panel .gitbot-faq-navigation,
  #gitbot-panel .gitbot-back-main-menu,
  #gitbot-panel .gitbot-service-chat-back {
    margin-left: 41px;
  }

  #gitbot-panel .gitbot-nav-option {
    min-height: 48px;
    padding: 8px 10px;
  }
}
/* =========================================================
   CONTACT FORM - v1.2.0
   ========================================================= */

#gitbot-panel .genie-required {
  color: #dc2626;
  font-weight: 800;
}

#gitbot-panel .genie-optional {
  margin-left: 3px;
  color: #667085;
  font-size: 11px;
  font-weight: 500;
}

#gitbot-panel .contact-form {
  gap: 10px;
}

#gitbot-panel .contact-field {
  gap: 4px;
}

#gitbot-panel .contact-field input,
#gitbot-panel .contact-country-code {
  height: 42px;
  min-height: 42px;
}

#gitbot-panel .contact-field input,
#gitbot-panel .contact-field textarea,
#gitbot-panel .contact-country-code {
  padding: 9px 11px;

  border: 1px solid var(--genie-line);
  border-radius: 9px;

  background: #fff;
  color: var(--genie-ink);

  font-size: 13px;
  line-height: 1.4;

  outline: none;
}

#gitbot-panel .contact-field input:focus,
#gitbot-panel .contact-field textarea:focus,
#gitbot-panel .contact-country-code:focus {
  border-color: #ff9c67;
  box-shadow: 0 0 0 3px rgba(255, 107, 24, 0.08);
}

#gitbot-panel .contact-phone-row {
  width: 100%;

  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px;
}

#gitbot-panel .contact-country-code {
  width: 100%;
  cursor: pointer;
}

#gitbot-panel .contact-phone-input {
  width: 100%;
  min-width: 0;
}

#gitbot-panel .contact-field textarea {
  min-height: 80px;
  max-height: 130px;
  resize: vertical;
}

#gitbot-panel .contact-submit,
#gitbot-panel .contact-cancel {
  min-height: 42px;
  padding: 9px 13px;
}

@media (max-width: 360px) {
  #gitbot-panel .contact-phone-row {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 6px;
  }

  #gitbot-panel .contact-country-code,
  #gitbot-panel .contact-field input {
    font-size: 12px;
  }
}
/* WordPress theme isolation for Genie contact controls */
#gitbot-panel .contact-support .contact-form,
#gitbot-panel .contact-support .contact-field,
#gitbot-panel .contact-support .contact-phone-row {
  box-sizing: border-box;
}

#gitbot-panel .contact-support .contact-field input,
#gitbot-panel .contact-support .contact-country-code {
  box-sizing: border-box !important;

  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;

  margin: 0 !important;
  padding: 7px 10px !important;

  font-size: 12.5px !important;
  line-height: 1.25 !important;
}

#gitbot-panel .contact-support .contact-field textarea {
  box-sizing: border-box !important;

  min-height: 72px !important;
  max-height: 96px !important;

  margin: 0 !important;
  padding: 8px 10px !important;

  font-size: 12.5px !important;
  line-height: 1.4 !important;
}

#gitbot-panel .contact-support .contact-form {
  gap: 8px !important;
}

#gitbot-panel .contact-support .contact-field {
  gap: 3px !important;
}

#gitbot-panel .contact-support .contact-field label {
  margin: 0 !important;

  font-size: 12px !important;
  line-height: 1.3 !important;
}

#gitbot-panel .contact-support .contact-phone-row {
  display: grid !important;
  grid-template-columns: 132px minmax(0, 1fr) !important;
  gap: 7px !important;

  width: 100% !important;
  margin: 0 !important;
}

#gitbot-panel .contact-support .contact-country-code {
  width: 100% !important;
}

#gitbot-panel .contact-support .contact-phone-input {
  width: 100% !important;
  min-width: 0 !important;
}

#gitbot-panel .contact-support .contact-submit,
#gitbot-panel .contact-support .contact-cancel {
  box-sizing: border-box !important;

  min-height: 40px !important;
  margin: 0 !important;
  padding: 8px 12px !important;

  font-size: 12.5px !important;
  line-height: 1.3 !important;
}

@media (max-width: 360px) {
  #gitbot-panel .contact-support .contact-phone-row {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 6px !important;
  }
}

/* =========================================================
   FINAL CONTACT FORM REFINEMENT
   ========================================================= */

#gitbot-panel .contact-support,
#gitbot-panel .contact-support .contact-form,
#gitbot-panel .contact-support .contact-field {
  background: #ffffff !important;
  background-image: none !important;
}

#gitbot-panel .contact-support .contact-form,
#gitbot-panel .contact-support .contact-field {
  border: 0 !important;
  box-shadow: none !important;
}

#gitbot-panel .contact-support .contact-field::before,
#gitbot-panel .contact-support .contact-field::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
}

/* Give most of the row to the actual phone number. */
#gitbot-panel .contact-support .contact-phone-row {
  grid-template-columns: 78px minmax(0, 1fr) !important;
  gap: 7px !important;
}

#gitbot-panel .contact-support .contact-country-code {
  box-sizing: border-box !important;

  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;

  margin: 0 !important;
  padding: 7px 24px 7px 8px !important;

  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#gitbot-panel .contact-support .contact-phone-input {
  box-sizing: border-box !important;

  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

@media (max-width: 360px) {
  #gitbot-panel .contact-support .contact-phone-row {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  #gitbot-panel .contact-support .contact-country-code {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
  }
}
