.sales-chat {
  position: fixed;
  z-index: 30;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  color: var(--cream);
  font: 400 .9rem/1.5 system-ui, sans-serif;
}
.sales-chat [hidden] { display: none; }
.sales-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + .6rem);
  display: flex;
  flex-direction: column;
  width: min(24rem, calc(100vw - 2rem));
  max-height: min(36rem, calc(100dvh - 5.5rem));
  background: #101d30;
  border: 1px solid #43506a;
  border-radius: 16px;
  overflow: auto;
  box-shadow: 0 12px 36px #0007;
}
.sales-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .8rem;
  border-bottom: 1px solid #43506a;
}
.sales-chat-header h2 { margin: 0; font: 700 1rem/1.4 system-ui, sans-serif; }
.sales-chat-log { min-height: 5rem; overflow: auto; padding: .75rem; }
.sales-chat-log p { margin: 0 0 .55rem; overflow-wrap: anywhere; }
.sales-chat-log .sales-chat-visitor { background: #243550; padding: .45rem .65rem; border-radius: 8px; }
.sales-chat-log a { display: block; color: var(--gold); margin-block: .45rem; }
.sales-chat-actions, .sales-chat-consent, .sales-chat-compose, .sales-chat-status { padding-inline: .75rem; }
.sales-chat-actions { display: flex; flex-wrap: wrap; gap: .35rem .75rem; }
.sales-chat button:not(.button) { color: var(--gold); background: transparent; border: 0; min-height: 44px; padding: 0 .15rem; cursor: pointer; }
.sales-chat-header button { min-width: 44px; font-size: 1.25rem; }
.sales-chat-consent { background: #243550; padding-block: .35rem; }
.sales-chat-consent p { margin: .3rem 0; }
.sales-chat-consent button + button { margin-left: .75rem; }
.sales-chat-status { color: var(--gold); }
.sales-chat-compose { padding-block: .4rem .75rem; }
.sales-chat-compose > div { display: flex; gap: .4rem; }
.sales-chat-compose input { flex: 1; min-width: 0; margin: 0; color: var(--cream); background: #16263e; border: 1px solid #64738b; }
.sales-chat :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
