.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: #0787a3;
  color: #fff;
  box-shadow: 0 8px 24px rgba(20, 45, 61, .22);
  font-size: 1.45rem;
  cursor: pointer;
}
.chat-launcher:hover,
.chat-launcher:focus-visible { background: #08758e; color: #fff; }
.chat-launcher[hidden],
.chat-panel[hidden] { display: none !important; }
.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 1051;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 28px));
  height: min(540px, calc(100dvh - 120px));
  min-height: 390px;
  overflow: hidden;
  background: #f7f9fb;
  border: 1px solid #e0e7ec;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(20, 45, 61, .24);
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 74px;
  padding: .85rem 1rem;
  background: #0787a3;
  color: #fff;
}
.chat-avatar {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  font-size: 1.2rem;
}
.chat-heading { min-width: 0; flex: 1; }
.chat-title { display: block; font-size: .98rem; font-weight: 700; line-height: 1.25; }
.chat-status { display: flex; align-items: center; gap: .35rem; margin-top: .15rem; color: rgba(255,255,255,.87); font-size: .72rem; }
.chat-status::before { width: 8px; height: 8px; border-radius: 50%; background: #55df83; content: ""; }
.chat-close {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}
.chat-close:hover { background: rgba(255,255,255,.14); }
.chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .8rem;
  overflow-y: auto;
  padding: 1rem;
}
.chat-message {
  max-width: 90%;
  padding: .7rem .8rem;
  border: 1px solid #dfe6eb;
  border-radius: 15px 15px 15px 4px;
  background: #fff;
  color: #263b49;
  font-size: .88rem;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.chat-message a { color: #08758e; font-weight: 600; text-decoration: underline; }
.chat-message-user {
  align-self: flex-end;
  border-color: #d6edf2;
  border-radius: 15px 15px 4px 15px;
  background: #e9f6f8;
}
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .65rem 1rem .8rem;
  border-top: 1px solid #e1e7eb;
  background: #f7f9fb;
}
.chat-suggestion {
  padding: .42rem .75rem;
  border: 1px solid #aab5bb;
  border-radius: 999px;
  background: #fff;
  color: #08758e;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}
.chat-suggestion:hover { border-color: #0787a3; background: #eff9fa; }
.chat-whatsapp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0 .8rem;
  padding: .62rem .8rem;
  border-radius: 6px;
  background: #168b52;
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
}
.chat-whatsapp-link:hover,
.chat-whatsapp-link:focus-visible { background: #117443; color: #fff; }
.chat-form {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem .8rem;
  border-top: 1px solid #dfe6eb;
  background: #fff;
}
.chat-input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 .85rem;
  border: 1px solid #75c4d3;
  border-radius: 999px;
  color: #263b49;
  font: inherit;
  font-size: .86rem;
}
.chat-input:focus { border-color: #0787a3; outline: 2px solid rgba(7,135,163,.16); }
.chat-send {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #0787a3;
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
}
.chat-send:hover { background: #08758e; }
.chat-disclaimer {
  margin: 0;
  padding: 0 .9rem .55rem;
  background: #fff;
  color: #71808a;
  font-size: .68rem;
  text-align: center;
}
[data-chat-open],
.chat-panel,
.chat-launcher { display: none !important; }
@media (max-width: 575.98px) {
  .chat-panel { right: 14px; bottom: 78px; width: calc(100vw - 28px); height: min(540px, calc(100dvh - 100px)); }
  .chat-launcher { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}
