.conversation-launchers { position: fixed; right: 24px; bottom: max(22px,env(safe-area-inset-bottom)); z-index: 46; display: flex; gap: 10px; align-items: center; }
.conversation-launchers .floating-whatsapp { position: static; margin: 0; color: #226249; background: #f9fffc; border-color: #d4e5db; font-size: 12px; min-height: 50px; padding: 12px 17px; }
.conversation-launchers .floating-whatsapp svg,.chat-toggle svg,.chat-input-row svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chat-toggle { display: none; align-items: center; gap: 10px; min-height: 52px; padding: 14px 20px; border-radius: 50px; color: #fff; background: #342415; box-shadow: 0 10px 30px #221b2630,inset 0 1px #ffffff30; font-size: 12px; font-weight: 500; border: 1px solid #ffffff30; cursor: pointer; }
.chat-ready .chat-toggle { display: flex; }
.chat-toggle:hover { background: #4b3826; }
.chat-toggle[aria-expanded="true"] { background: #574a3e; }
.chat-panel { position: fixed; right: 24px; bottom: 88px; z-index: 60; width: min(414px,calc(100vw - 36px)); max-height: min(690px,calc(100dvh - 116px)); display: flex; flex-direction: column; background: #faf9f7; color: #292521; border-radius: 28px; border: 1px solid #fff; box-shadow: 0 22px 85px #14110e35; overflow: hidden; font-size: 13px; line-height: 1.65; }
.chat-panel[hidden] { display: none; }
.chat-header { display: flex; flex-shrink: 0; align-items: center; gap: 12px; padding: 20px; background: #f0ece6; border-bottom: 1px solid #e2ddd5; }
.chat-header>img { width: 42px; height: 42px; border-radius: 50%; }
.chat-header>div { flex: 1; }
.chat-header h2 { font-family: var(--font-interface); font-size: 15px; font-weight: 600; letter-spacing: -.03em; line-height: 1.4; }
.chat-header p { font-size: 10px; color: #73695e; margin-top: 4px; line-height: 1.4; }
.chat-close { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 27px; font-weight: 400; background: #fff9; color: #514436; line-height: 1; cursor: pointer; }
.chat-body { padding: 20px; overflow-y: auto; overscroll-behavior: contain; min-height: 70px; }
.chat-messages { display: flex; flex-direction: column; gap: 12px; }
.chat-message { padding: 13px 15px; border-radius: 18px 18px 18px 4px; background: #ede9e2; max-width: 94%; white-space: pre-line; overflow-wrap: anywhere; }
.chat-message p { margin: 0; }
.chat-message.is-user { align-self: flex-end; border-radius: 18px 18px 4px 18px; background: #3b504b; color: #fff; }
.chat-message-label { display: block; font-size: 9px; font-weight: 600; letter-spacing: .04em; margin-bottom: 5px; color: #77644f; }
.chat-message.is-user .chat-message-label { color: #d5e7e0; }
.chat-quote-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: #226249; color: #fff; font-size: 12px; font-weight: 600; text-align: center; white-space: normal; }
.chat-quote-button::after { content: '↗'; }
.chat-quote-button:hover { background: #194c38; }
.chat-quick-replies { margin-bottom: 12px; min-width: 0; }
.chat-prompt { margin: 0 0 7px; font-size: 10px; font-weight: 600; color: #776e64; }
.chat-suggestions { display: flex; gap: 7px; overflow-x: auto; overscroll-behavior-x: contain; padding: 3px 3px 7px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #c9c0b4 transparent; }
.chat-suggestions button { flex: 0 0 auto; scroll-snap-align: start; min-height: 40px; padding: 9px 12px; border: 1px solid #d9cfc2; background: #fff; color: #5a4936; border-radius: 30px; font-size: 11px; text-align: left; cursor: pointer; line-height: 1.5; white-space: nowrap; }
.chat-suggestions button:hover { background: #eee7dd; border-color: #a48c6f; }
.chat-form { flex-shrink: 0; padding: 12px 20px; border-top: 1px solid #e5dfd6; }
.chat-form label { display: block; font-size: 10px; font-weight: 600; margin-bottom: 7px; }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input { flex: 1; min-width: 0; padding: 11px 13px; border-radius: 12px; border: 1px solid #d8d1c7; background: #fff; color: #292521; font-size: 13px; outline-offset: 2px; }
.chat-input-row button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; padding: 10px 12px; min-height: 44px; border-radius: 12px; background: #3b504b; color: white; font-size: 11px; font-weight: 600; cursor: pointer; }
.chat-input-row button:hover { background: #263d35; }
.chat-input-row button svg { width: 17px; height: 17px; }
.chat-send-hint { margin-top: 6px; font-size: 9px; color: #776e64; }
.chat-handoff { flex-shrink: 0; padding: 0 20px 18px; }
.chat-whatsapp { width: 100%; min-height: 45px; padding: 11px 14px; background: #226249; color: #fff; border-radius: 14px; font-size: 12px; display: flex; justify-content: space-between; }
.chat-whatsapp:hover { background: #194c38; }
.chat-handoff>p { text-align: center; font-size: 9px; color: #776e64; margin-top: 7px; }
.chat-panel :focus-visible,.chat-toggle:focus-visible { outline: 2px solid #8b6a3f; outline-offset: 3px; }
@media(max-width:700px) {
  .conversation-launchers { right: 16px; bottom: max(16px,env(safe-area-inset-bottom)); gap: 8px; }
  .conversation-launchers .floating-whatsapp { padding: 13px; min-height: 50px; }
  .conversation-launchers .floating-whatsapp span { display: none; }
  .chat-toggle { padding: 13px 17px; min-height: 50px; font-size: 11px; }
  .chat-panel { right: 12px; bottom: 80px; width: min(414px,calc(100% - 24px)); max-height: calc(100dvh - 100px); border-radius: 24px; }
  .chat-header { padding: 15px; gap: 10px; }
  .chat-header h2 { font-size: 14px; }
  .chat-header p { font-size: 9px; }
  .chat-body { padding: 15px; }
  .chat-form { padding: 11px 15px; }
  .chat-input-row input { font-size: 16px; }
  .chat-handoff { padding: 0 15px 14px; }
}
@media(max-height:500px) {
  .chat-panel { top: 12px; bottom: 12px; max-height: calc(100dvh - 24px); }
  .chat-header { padding: 10px 15px; }
  .chat-header>img { width: 32px; height: 32px; }
  .chat-body { flex: 1; min-height: 0; padding: 12px 15px; }
  .chat-form { padding: 8px 15px; }
  .chat-quick-replies { margin-bottom: 6px; }
  .chat-quick-replies .chat-prompt,.chat-form>label,.chat-send-hint,.chat-handoff>p { display: none; }
  .chat-suggestions button { min-height: 36px; padding-block: 7px; }
  .chat-handoff { padding: 0 15px 10px; }
}
@media(forced-colors:active) { .chat-toggle,.chat-panel,.chat-suggestions button,.chat-message,.chat-whatsapp { border: 1px solid ButtonText; } }
