.chat-launcher { position: fixed; bottom: 22px; right: 22px; z-index: 190; border: 0; border-radius: 999px; padding: 15px 21px; background: var(--navy); color: white; box-shadow: 0 8px 28px #102c5038; font-weight: 750; cursor: pointer; }
.customer-chat { position: fixed; inset: auto 20px 20px auto; width: min(460px, calc(100vw - 32px)); height: min(760px, calc(100dvh - 40px)); max-height: calc(100dvh - 40px); margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: white; box-shadow: var(--shadow-lg); }
.customer-chat::backdrop { background: #102c503d; }
.chat-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: var(--navy); color: white; }
.chat-header h2 { font-size: 19px; margin: 0; color: white; letter-spacing: -.02em; }
.chat-header p { font-size: 13px; margin: 2px 0 0; color: #dceeff; }
.chat-close { border: 1px solid #ffffff55; background: transparent; color: white; border-radius: 50%; width: 40px; height: 40px; font-size: 24px; cursor: pointer; }
.chat-scroll { flex: 1; min-height: 0; overflow: auto; padding: 18px; overscroll-behavior: contain; }
.chat-history { display: grid; gap: 14px; }
.chat-message { padding: 13px 15px; border-radius: 16px 16px 16px 4px; background: #f0f6fd; font-size: 15px; overflow-wrap: anywhere; }
.chat-message p { margin: 4px 0 0; }
.chat-message-visitor { background: var(--navy); color: white; margin-left: 30px; border-radius: 16px 16px 4px 16px; }
.chat-speaker { font-size: 12px; font-weight: 800; }
.chat-message a, .chat-notice a, .chat-lead-form a { text-decoration: underline; }
.chat-products { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.chat-products button { border: 1px solid #c6d9ef; border-radius: 999px; padding: 8px 12px; background: white; font-size: 13px; color: var(--navy); cursor: pointer; }
.chat-products button:hover { background: var(--sky); }
.chat-handoff { width: 100%; margin-top: 14px; }
.chat-notice { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.chat-composer { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
.chat-composer input { width: 100%; min-width: 0; border: 1px solid #bdcddd; padding: 11px 12px; border-radius: 12px; font-size: 16px; }
.chat-composer button { padding: 10px 14px; border: 0; border-radius: 12px; background: var(--blue-dark); color: white; cursor: pointer; }
.chat-lead-form { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.chat-lead-form h3 { color: var(--navy); margin: 0; }
.chat-lead-form > label { display: grid; gap: 5px; margin: 12px 0; font-size: 14px; font-weight: 650; }
.chat-lead-form input:not([type=checkbox]), .chat-lead-form select, .chat-lead-form textarea { width: 100%; border: 1px solid #bdcddd; border-radius: 10px; padding: 10px; font-size: 16px; }
.chat-lead-form .chat-consent { display: flex; align-items: flex-start; font-weight: 400; gap: 10px; }
.chat-consent input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; }
.chat-form-status { font-size: 14px; color: var(--navy); }
.chat-back { display: block; border: 0; background: none; padding: 12px 0; color: var(--blue-dark); cursor: pointer; }
.chat-honeypot { display: none !important; }
button:disabled { opacity: .65; cursor: default; }
@media (max-width: 520px) {
  .customer-chat { inset: auto 8px 8px; width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .chat-launcher { bottom: 16px; right: 14px; }
}
