.website-chat { position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30; }
.website-chat [hidden] { display: none; }
.website-chat-panel { position: absolute; right: 0; bottom: calc(100% + 8px); width: min(365px, calc(100vw - 24px)); border: 1px solid #dce4ee; border-radius: 14px; background: #fff; color: #12234b; box-shadow: 0 12px 44px #06142b32; overflow: hidden; }
.website-chat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #e0e7f1; }
.website-chat-head h2 { font-size: 1rem; margin: 0; }
.website-chat-close { border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; color: inherit; }
.website-chat-log { max-height: min(40vh, 320px); overflow-y: auto; padding: 12px; min-height: 70px; }
.website-chat-message { margin: 0 0 8px; padding: 8px 10px; border-radius: 9px; background: #f0f4fa; color: #12234b; white-space: pre-line; overflow-wrap: anywhere; font-size: .875rem; line-height: 1.5; }
.website-chat-message.user { margin-left: 16%; background: #e5ebfa; }
.website-chat-message a { color: #163a87; text-decoration: underline; }
.website-chat-form { padding: 10px 12px; border-top: 1px solid #e0e7f1; }
.website-chat-form p { margin: 0 0 6px; color: #41516c; font-size: .75rem; }
.website-chat-form div { display: flex; gap: 6px; }
.website-chat-form input { min-width: 0; width: 100%; border: 1px solid #a7b6ce; border-radius: 7px; color: inherit; background: #fff; padding: 8px; font: inherit; font-size: 16px; }
