.site-chat-launcher {
  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 #ffffff80;
  border-radius: 24px;
  box-shadow: 0 4px 18px #0003;
}

.site-chat-launcher,
.site-chat-form button {
  background: #073d50;
  color: white;
  font: inherit;
  cursor: pointer;
}

#site-chat {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: white;
  color: #183d50;
  box-shadow: 0 16px 60px #0004;
}

#site-chat::backdrop { background: #073d5066; }
.site-chat-heading, .site-chat-messages, .site-chat-form, .site-chat-contact { padding: 12px 16px; }
.site-chat-heading { display: flex; align-items: center; justify-content: space-between; background: #f3f3ef; }
.site-chat-heading h2 { margin: 0; font-size: 1.2rem; }
.site-chat-close { width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 1.5rem; cursor: pointer; }
.site-chat-messages { min-height: 100px; max-height: 34dvh; overflow: auto; }
.site-chat-messages p { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: #f3f3ef; overflow-wrap: anywhere; white-space: pre-wrap; }
.site-chat-messages .site-chat-guest { background: #e6f1f5; margin-left: 20px; }
.site-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.site-chat-form label { grid-column: 1 / -1; }
.site-chat-form input, .site-chat-form button { min-height: 44px; border: 1px solid #6c8692; border-radius: 6px; padding: 8px 10px; font: inherit; }
.site-chat-form button:disabled { opacity: .65; cursor: wait; }
.site-chat-contact { margin: 0; font-size: .875rem; }
