/* Octa Light assistant — everything scoped under #octa-assistant so the site CSS is not affected. */
#octa-assistant {
  --oa-brand: #467793;
  --oa-brand-dark: #3a6580;
  --oa-brand-light: #9fc8df;
  --oa-bg: #ffffff;
  --oa-soft: #f6f6f6;
  --oa-line: #e3e3e3;
  --oa-text: #3a3a3a;
  --oa-muted: #7c7c7c;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 990; /* below the site's lightbox (999) */
  font-family: "gothic_r", "Century Gothic", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--oa-text);
  text-align: left;
}
#octa-assistant *,
#octa-assistant *::before,
#octa-assistant *::after { box-sizing: border-box; }
#octa-assistant button { font-family: inherit; cursor: pointer; margin: 0; }
#octa-assistant p { margin: 0 0 6px; padding: 0; }
#octa-assistant p:last-child { margin-bottom: 0; }
#octa-assistant svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* bubble */
#octa-assistant .oa-bubble {
  position: relative;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--oa-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: background .15s, transform .15s;
}
#octa-assistant .oa-bubble:hover { background: var(--oa-brand-dark); transform: scale(1.05); }
#octa-assistant .oa-bubble:focus-visible { outline: 3px solid var(--oa-brand-light); outline-offset: 2px; }
#octa-assistant .oa-bubble svg { width: 26px; height: 26px; }
#octa-assistant .oa-ico-chat { fill: currentColor; stroke: none; }
#octa-assistant .oa-ico-close { display: none; }
#octa-assistant.oa-is-open .oa-ico-chat { display: none; }
#octa-assistant.oa-is-open .oa-ico-close { display: block; }

/* panel */
#octa-assistant .oa-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 360px;
  height: 540px;
  max-height: calc(100vh - 110px);
  background: var(--oa-bg);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#octa-assistant .oa-panel[hidden] { display: none; }

#octa-assistant .oa-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 10px 12px 16px;
  background: var(--oa-brand);
  color: #fff;
  flex: 0 0 auto;
}
#octa-assistant .oa-titles { flex: 1 1 auto; min-width: 0; }
#octa-assistant .oa-title { font-family: "gothic_b", "Century Gothic", Arial, sans-serif; font-size: 16px; font-weight: bold; }
#octa-assistant .oa-subtitle { font-size: 12px; opacity: .85; }
#octa-assistant .oa-head-btn {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: transparent; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
#octa-assistant .oa-head-btn:hover { background: rgba(255, 255, 255, .18); }
#octa-assistant .oa-head-btn svg { width: 18px; height: 18px; }

/* messages */
#octa-assistant .oa-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 12px;
  background: var(--oa-soft);
  -webkit-overflow-scrolling: touch;
}
#octa-assistant .oa-msg {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
#octa-assistant .oa-bot { background: #fff; border: 1px solid var(--oa-line); border-bottom-left-radius: 4px; }
#octa-assistant .oa-user { background: var(--oa-brand); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; white-space: pre-wrap; }
#octa-assistant .oa-contact { color: var(--oa-brand); font-weight: bold; }

#octa-assistant .oa-links { list-style: none; margin: 8px 0 0; padding: 0; }
#octa-assistant .oa-links li { margin: 0 0 4px; padding: 0; background: none; }
#octa-assistant .oa-links li::before { content: none; }
#octa-assistant .oa-links a { color: var(--oa-brand); text-decoration: underline; }
#octa-assistant .oa-links a:hover { color: var(--oa-brand-dark); }
#octa-assistant .oa-links a::before { content: "\2192\00a0"; text-decoration: none; display: inline-block; }

#octa-assistant .oa-action {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: var(--oa-brand);
  color: #fff;
  font-size: 13px;
}
#octa-assistant .oa-action:hover { background: var(--oa-brand-dark); }

#octa-assistant .oa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
#octa-assistant .oa-chips-label { width: 100%; font-size: 12px; color: var(--oa-muted); }
#octa-assistant .oa-chip {
  padding: 5px 11px;
  border: 1px solid var(--oa-brand);
  border-radius: 16px;
  background: #fff;
  color: var(--oa-brand);
  font-size: 13px;
  line-height: 1.3;
}
#octa-assistant .oa-chip:hover { background: var(--oa-brand); color: #fff; }

/* input */
#octa-assistant .oa-form {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid var(--oa-line);
  background: #fff;
  margin: 0;
  flex: 0 0 auto;
}
#octa-assistant .oa-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--oa-line);
  border-radius: 20px;
  font: inherit;
  font-size: 16px; /* prevents zoom on iOS */
  color: var(--oa-text);
  background: #fff;
  box-shadow: none;
  margin: 0;
}
#octa-assistant .oa-input:focus { outline: none; border-color: var(--oa-brand); }
#octa-assistant .oa-send {
  width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 50%;
  background: var(--oa-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
#octa-assistant .oa-send:hover { background: var(--oa-brand-dark); }
#octa-assistant .oa-send svg { fill: currentColor; stroke: none; width: 18px; height: 18px; }

/* phones: panel takes the whole screen */
@media (max-width: 480px) {
  #octa-assistant { right: 14px; bottom: 14px; }
  #octa-assistant.oa-is-open { left: 0; right: 0; top: 0; bottom: 0; }
  #octa-assistant.oa-is-open .oa-panel {
    position: fixed; left: 0; right: 0; top: 0; bottom: 0;
    width: auto; height: auto; max-height: none; border-radius: 0;
  }
  #octa-assistant.oa-is-open .oa-bubble { display: none; }
}

@media print { #octa-assistant { display: none; } }
