.sales-chat-launch {
  position: fixed;
  z-index: 10;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--action);
  color: var(--action-text);
  box-shadow: 0 5px 24px #0b192c35;
  font-weight: 700;
  cursor: pointer;
}
#sales-chat {
  position: fixed;
  inset: auto max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) auto;
  z-index: 30;
  margin: 0;
  box-sizing: border-box;
  width: min(400px, calc(100% - 24px));
  max-height: min(620px, calc(100dvh - 100px));
  overflow-y: auto;
  box-shadow: 0 10px 35px #0b192c40;
}
.sales-chat-head, .sales-chat-form div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.sales-chat-head h2 { font-size: 1.35rem; margin: 0; }
.sales-chat-head p { font-size: .85rem; }
.sales-chat-log {
  max-height: min(240px, 35dvh);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block: 15px;
}
.sales-chat-message {
  align-self: flex-start;
  max-width: 95%;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.sales-chat-message.is-visitor {
  align-self: flex-end;
  background: var(--action);
  color: var(--action-text);
}
.sales-chat-message a { display: block; margin-top: 4px; color: var(--brand); font-weight: 700; }
.sales-chat-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
#sales-chat button, #condicoes [data-open-sales-chat] {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.sales-chat-form input {
  flex: 1;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
}
.sales-chat-form label { display: block; font-weight: 700; margin-bottom: 4px; }
#sales-chat .sales-chat-form button { background: var(--action); color: var(--action-text); }
.sales-chat-email { display: inline-block; margin-top: 13px; color: var(--brand); font-size: .9rem; }
body.sales-page > footer { padding-bottom: 78px; }
