/* ISOG Receptionist. Everything is scoped under .isoga so the theme cannot reach in, or out. */
.isoga {
  --isoga-teal: #0f5c5b;
  --isoga-teal-dark: #0a4241;
  --isoga-gold: #db9e30;
  --isoga-gold-soft: #f4e8cd;
  --isoga-ink: #15110e;
  --isoga-muted: #5c6664;
  --isoga-line: #dfe5e4;
  --isoga-bg: #ffffff;
  --isoga-bot: #f1f5f4;
  --isoga-wa: #1f8f4e;
  position: fixed;
  right: 20px;
  /* Sits above the site's existing WhatsApp chat bubble in the corner. */
  bottom: 88px;
  z-index: 2147483000;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--isoga-ink);
  -webkit-font-smoothing: antialiased;
}
.isoga *, .isoga *::before, .isoga *::after { box-sizing: border-box; }
.isoga button, .isoga textarea { font: inherit; color: inherit; margin: 0; text-transform: none; letter-spacing: normal; box-shadow: none; }
.isoga svg { width: 20px; height: 20px; flex: none; display: block; }
.isoga [hidden] { display: none !important; }

/* Launcher */
.isoga .isoga-launcher {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
  padding: 12px 18px 12px 14px;
  border: 0; border-radius: 999px;
  background: var(--isoga-teal); color: #fff;
  font-weight: 600; font-size: 15px; line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(10, 66, 65, .28);
  transition: background .15s ease, transform .15s ease;
}
.isoga .isoga-launcher:hover { background: var(--isoga-teal-dark); }
.isoga .isoga-launcher:active { transform: scale(.97); }
.isoga .isoga-launcher:focus-visible { outline: 3px solid var(--isoga-gold); outline-offset: 3px; }
.isoga.isoga-open .isoga-launcher { display: none; }

/* Panel */
.isoga .isoga-panel {
  display: flex; flex-direction: column;
  width: 380px; height: min(620px, calc(100vh - 108px));
  background: var(--isoga-bg);
  border: 1px solid var(--isoga-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(21, 17, 14, .22);
}

.isoga .isoga-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 14px 16px;
  background: var(--isoga-teal); color: #fff;
  border-bottom: 3px solid var(--isoga-gold);
}
.isoga .isoga-badge {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--isoga-gold-soft); color: var(--isoga-teal-dark);
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.isoga .isoga-titles { flex: 1; min-width: 0; }
.isoga .isoga-title { font-weight: 700; font-size: 16px; line-height: 1.2; }
.isoga .isoga-sub { font-size: 12.5px; opacity: .85; margin-top: 2px; }
.isoga .isoga-close {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 8px; padding: 0;
  background: transparent; color: #fff; cursor: pointer;
}
.isoga .isoga-close:hover { background: rgba(255, 255, 255, .14); }
.isoga .isoga-close:focus-visible { outline: 2px solid var(--isoga-gold); outline-offset: 1px; }

/* Conversation */
.isoga .isoga-log {
  flex: 1; overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex; flex-direction: column; gap: 10px;
  overscroll-behavior: contain;
}
.isoga .isoga-msg { display: flex; flex-direction: column; max-width: 88%; }
.isoga .isoga-bot { align-self: flex-start; }
.isoga .isoga-me { align-self: flex-end; align-items: flex-end; }
.isoga .isoga-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  word-wrap: break-word; overflow-wrap: anywhere;
}
.isoga .isoga-bot .isoga-bubble { background: var(--isoga-bot); border-bottom-left-radius: 4px; }
.isoga .isoga-me .isoga-bubble { background: var(--isoga-teal); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.isoga .isoga-bubble p { margin: 0 0 6px; padding: 0; font-size: inherit; line-height: inherit; color: inherit; }
.isoga .isoga-bubble p:last-child { margin-bottom: 0; }
.isoga .isoga-bubble ul { margin: 4px 0 6px; padding: 0 0 0 18px; list-style: disc; }
.isoga .isoga-bubble li { margin: 2px 0; padding: 0; }
.isoga .isoga-bubble strong { font-weight: 700; color: var(--isoga-teal-dark); }
.isoga .isoga-me .isoga-bubble strong { color: #fff; }
.isoga .isoga-bubble a { color: var(--isoga-teal); text-decoration: underline; text-underline-offset: 2px; }

.isoga .isoga-wa, .isoga .isoga-human {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.isoga .isoga-wa {
  margin-top: 8px; padding: 9px 14px;
  border-radius: 999px;
  background: var(--isoga-wa); color: #fff;
  font-weight: 600; font-size: 14px;
}
.isoga .isoga-wa:hover { filter: brightness(.94); color: #fff; }

/* Typing dots */
.isoga .isoga-typing { display: flex; gap: 4px; padding: 13px 14px; }
.isoga .isoga-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--isoga-muted); opacity: .4; animation: isoga-dot 1.2s infinite ease-in-out; }
.isoga .isoga-typing i:nth-child(2) { animation-delay: .15s; }
.isoga .isoga-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes isoga-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .isoga .isoga-typing i { animation: none; opacity: .6; } }

/* Suggestions */
.isoga .isoga-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 10px; }
.isoga .isoga-chip {
  padding: 6px 11px;
  border: 1px solid var(--isoga-line); border-radius: 999px;
  background: #fff; color: var(--isoga-teal);
  font-size: 13px; line-height: 1.2; font-weight: 500;
  cursor: pointer;
}
.isoga .isoga-chip:hover { border-color: var(--isoga-teal); background: #f7faf9; }

/* After the first message the buttons stay as one scrolling row. */
.isoga .isoga-chips.isoga-compact { flex-wrap: nowrap; overflow-x: auto; padding-top: 8px; border-top: 1px solid var(--isoga-line); scrollbar-width: none; }
.isoga .isoga-chips.isoga-compact::-webkit-scrollbar { display: none; }
.isoga .isoga-chips.isoga-compact .isoga-chip { flex: none; white-space: nowrap; }

/* Input */
.isoga .isoga-form {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--isoga-line);
}
.isoga .isoga-input {
  flex: 1; min-height: 42px; max-height: 120px;
  padding: 10px 12px;
  border: 1px solid var(--isoga-line); border-radius: 10px;
  background: #fff;
  font-size: 15px; line-height: 1.35;
  resize: none; outline: none;
}
.isoga .isoga-input:focus { border-color: var(--isoga-teal); box-shadow: 0 0 0 3px rgba(15, 92, 91, .14); }
.isoga .isoga-input:disabled { background: #f4f6f6; color: var(--isoga-muted); }
.isoga .isoga-send {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 10px; padding: 0;
  background: var(--isoga-teal); color: #fff; cursor: pointer;
}
.isoga .isoga-send:hover { background: var(--isoga-teal-dark); }
.isoga .isoga-send:disabled { background: #a9bdbc; cursor: default; }

/* Footer */
.isoga .isoga-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 14px 12px;
}
.isoga .isoga-human { color: var(--isoga-wa); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.isoga .isoga-human svg { width: 18px; height: 18px; }
.isoga .isoga-human:hover { text-decoration: underline; color: var(--isoga-wa); }
.isoga .isoga-note { font-size: 11.5px; color: var(--isoga-muted); text-align: right; line-height: 1.3; }

/* Phones: the panel takes the screen */
@media (max-width: 480px) {
  .isoga { right: 16px; bottom: 84px; }
  .isoga.isoga-open { inset: 0; right: 0; bottom: 0; }
  .isoga .isoga-panel { width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .isoga .isoga-input { font-size: 16px; } /* stops iOS zooming in */
  .isoga .isoga-launcher span { display: none; }
  .isoga .isoga-launcher { padding: 14px; }
}

/* The theme gives every button a gold "slide" effect with !important (class sc_button_hover_slide_left).
   These win it back for the chat box only. */
.isoga button.isoga-launcher, .isoga button.isoga-send { background: var(--isoga-teal) !important; color: #fff !important; border: 0 !important; background-image: none !important; }
.isoga button.isoga-launcher:hover, .isoga button.isoga-send:hover { background: var(--isoga-teal-dark) !important; }
.isoga button.isoga-send:disabled { background: #a9bdbc !important; }
.isoga button.isoga-close { background: transparent !important; color: #fff !important; border: 0 !important; background-image: none !important; }
.isoga button.isoga-close:hover { background: rgba(255, 255, 255, .14) !important; }
.isoga button.isoga-chip { background: #fff !important; color: var(--isoga-teal) !important; border: 1px solid var(--isoga-line) !important; background-image: none !important; }
.isoga button.isoga-chip:hover { background: #f7faf9 !important; border-color: var(--isoga-teal) !important; }
.isoga button::before, .isoga button::after { content: none !important; display: none !important; }
