/* Colors and fonts follow Elementor Global Colors and Fonts when they exist. */
#itb-root {
  --itb-primary: var(--e-global-color-primary, #008037);
  --itb-dark: var(--e-global-color-secondary, #0A3321);
  --itb-text: var(--e-global-color-text, #1E2E26);
  --itb-accent: var(--e-global-color-accent, #7DD956);
  --itb-mist: var(--e-global-color-mist, #EFF7EC);
  --itb-white: #FFFFFF;
  --itb-body: var(--e-global-typography-text-font-family, "Figtree"), system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --itb-head: var(--e-global-typography-primary-font-family, "Sora"), system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-family: var(--itb-body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--itb-text);
}
#itb-root *, #itb-root *::before, #itb-root *::after { box-sizing: border-box; }
#itb-root [hidden] { display: none !important; }
#itb-root p { margin: 0; }
#itb-root button, #itb-root input {
  font: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; margin: 0;
}
#itb-root svg { display: block; width: 100%; height: 100%; }
#itb-root :focus-visible { outline: 3px solid var(--itb-accent); outline-offset: 2px; }

#itb-root .itb-launcher {
  position: fixed; z-index: 99999;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 88px; height: 88px; padding: 0; border: 0; border-radius: 20px;
  background: transparent; cursor: pointer;
  filter: drop-shadow(0 6px 12px rgba(10, 51, 33, .35));
  transition: transform .15s ease;
}
#itb-root .itb-launcher:hover { transform: translateY(-3px); background: transparent; }

#itb-root .itb-panel {
  position: fixed; z-index: 99999;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--itb-white); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(10, 51, 33, .3);
}
#itb-root .itb-head {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--itb-mist);
}
#itb-root .itb-avatar { flex: none; width: 46px; height: 46px; }
#itb-root .itb-titles { flex: 1 1 auto; min-width: 0; }
#itb-root .itb-title { font-family: var(--itb-head); font-size: 16px; font-weight: 600; line-height: 1.25; color: var(--itb-dark); }
#itb-root .itb-sub { font-size: 14px; line-height: 1.25; }
#itb-root .itb-langs { flex: none; display: flex; }
#itb-root .itb-lang {
  width: 32px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent;
  color: var(--itb-text); font-size: 14px; font-weight: 600; cursor: pointer;
}
#itb-root .itb-lang[aria-pressed="true"] { color: var(--itb-primary); text-decoration: underline; text-underline-offset: 3px; }
#itb-root .itb-close {
  flex: none; width: 44px; height: 44px; padding: 14px; border: 0; border-radius: 50%;
  background: transparent; color: var(--itb-text); cursor: pointer;
}
#itb-root .itb-close:hover { background: var(--itb-mist); color: var(--itb-text); }

#itb-root .itb-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 14px; }
#itb-root .itb-thread { display: flex; flex-direction: column; gap: 10px; }
#itb-root .itb-msg {
  max-width: 86%; padding: 10px 14px; white-space: pre-line; overflow-wrap: anywhere;
}
#itb-root .itb-bot { align-self: flex-start; background: var(--itb-mist); color: var(--itb-text); border-radius: 16px 16px 16px 4px; }
#itb-root .itb-me { align-self: flex-end; background: var(--itb-primary); color: var(--itb-white); border-radius: 16px 16px 4px 16px; }
#itb-root .itb-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
#itb-root .itb-chips:empty { display: none; }
#itb-root .itb-chip {
  min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--itb-primary); border-radius: 22px;
  background: var(--itb-white); color: var(--itb-primary); font-weight: 600; text-align: left; white-space: normal; cursor: pointer;
}
#itb-root .itb-chip:hover { background: var(--itb-primary); color: var(--itb-white); }
#itb-root .itb-wait { padding: 10px 0; font-weight: 600; color: var(--itb-primary); }

#itb-root .itb-form {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px 0; border-top: 1px solid var(--itb-mist);
}
#itb-root .itb-input {
  flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid var(--itb-text); border-radius: 23px;
  background: var(--itb-white); color: var(--itb-text); font-size: 16px;
}
#itb-root .itb-send {
  flex: none; width: 46px; height: 46px; padding: 14px; border: 0; border-radius: 50%;
  background: var(--itb-primary); color: var(--itb-white); cursor: pointer;
}
#itb-root .itb-send:hover { background: var(--itb-dark); color: var(--itb-white); }
#itb-root .itb-error { flex: none; padding: 8px 14px 0; font-size: 15px; font-weight: 600; color: var(--itb-dark); }
#itb-root .itb-note { flex: none; padding: 8px 14px 12px; font-size: 13px; line-height: 1.35; }
#itb-root .itb-policy { color: var(--itb-primary); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
#itb-root .itb-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%);
}

#itb-root .itb-nudge {
  position: fixed; z-index: 99999;
  right: calc(120px + env(safe-area-inset-right, 0px));
  bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: flex-start; gap: 2px; max-width: 260px;
  padding: 4px 4px 4px 0; background: var(--itb-white); border-radius: 16px 16px 4px 16px;
  box-shadow: 0 8px 28px rgba(10, 51, 33, .25);
  animation: itb-in .3s ease-out;
}
#itb-root .itb-nudge-text {
  flex: 1 1 auto; min-height: 44px; padding: 10px 6px 10px 16px; border: 0; background: transparent;
  color: var(--itb-text); font-size: 15px; font-weight: 600; line-height: 1.35; text-align: left; cursor: pointer;
}
#itb-root .itb-nudge-text:hover { color: var(--itb-primary); background: transparent; }
#itb-root .itb-nudge-close {
  flex: none; width: 36px; height: 36px; padding: 11px; border: 0; border-radius: 50%; background: transparent; color: var(--itb-text); cursor: pointer;
}
#itb-root .itb-nudge-close:hover { background: var(--itb-mist); color: var(--itb-text); }
@keyframes itb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  #itb-root .itb-nudge { right: calc(96px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 112px); }
  #itb-root .itb-launcher { width: 76px; height: 76px; right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  #itb-root .itb-panel {
    right: 0; bottom: 0; width: 100%; max-width: 100%;
    height: min(88dvh, 620px); max-height: 100dvh; border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #itb-root .itb-launcher { transition: none; }
  #itb-root .itb-nudge { animation: none; }
}
