.pegaso-chat { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 1100; font-size: 15px; line-height: 1.5; color: var(--color-ink, #0f1f2b); }
.pegaso-chat [hidden] { display: none !important; }
.pegaso-chat button, .pegaso-chat textarea { font: inherit; }
.pegaso-chat button { cursor: pointer; }
.pegaso-chat button:focus-visible, .pegaso-chat textarea:focus-visible, .pegaso-chat a:focus-visible { outline: 3px solid #f2b84b; outline-offset: 3px; }
.pegaso-chat__launcher, .pegaso-chat__fallback { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 15px 22px; background: #064f5b; color: #fff; box-shadow: 0 8px 30px rgba(6,79,91,.25); font-weight: 700; text-decoration: none; }
.pegaso-chat__launcher:hover { background: #0a706f; }
.pegaso-chat__panel { width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100vh - 120px)); height: min(580px, calc(100dvh - 120px)); min-height: 260px; display: flex; flex-direction: column; margin-bottom: 12px; overflow: hidden; background: #fff; border: 1px solid #d6e6e3; border-radius: 20px; box-shadow: 0 16px 60px rgba(15,31,43,.22); }
.pegaso-chat__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: #064f5b; color: #fff; }
.pegaso-chat__header h2 { margin: 0; font-size: 18px; line-height: 1.4; color: #fff; }
.pegaso-chat__header p { margin: 3px 0 0; font-size: 12px; color: #d6f4ee; }
.pegaso-chat__close { flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: #fff; font-size: 28px !important; line-height: 1; }
.pegaso-chat__messages { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; overscroll-behavior: contain; padding: 18px; background: #f4f8f7; }
.pegaso-chat__message { flex-shrink: 0; max-width: 94%; border: 1px solid #dce8e5; border-radius: 14px 14px 14px 3px; padding: 11px 13px; background: #fff; overflow-wrap: anywhere; }
.pegaso-chat__message p { margin: 4px 0 0; white-space: pre-wrap; }
.pegaso-chat__author { display: block; font-size: 11px; font-weight: 700; color: #5e6e7d; }
.pegaso-chat__message--user { align-self: flex-end; background: #dcf7f3; border-color: #c3e9e3; border-radius: 14px 14px 3px 14px; }
.pegaso-chat__status { margin: 0; padding: 0 18px; color: #526573; font-size: 12px; }
.pegaso-chat__status:not(:empty) { padding-top: 10px; padding-bottom: 4px; }
.pegaso-chat__status--error { color: #a02c27; }
.pegaso-chat__form { display: flex; align-items: flex-end; gap: 8px; margin: 0; padding: 12px 14px 8px; }
.pegaso-chat__form textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 110px; resize: vertical; padding: 10px 12px; background: #fff; color: #0f1f2b; border: 1px solid #b9d0cb; border-radius: 10px; font-size: 16px; line-height: 1.4; }
.pegaso-chat__form button { border: 0; border-radius: 10px; background: #0a9088; color: #fff; padding: 12px 14px; font-weight: 700; }
.pegaso-chat__form button:disabled { cursor: wait; opacity: .6; }
.pegaso-chat__note { margin: 0; padding: 0 16px 14px; font-size: 11px; line-height: 1.5; color: #5e6e7d; }
.pegaso-chat__note a { color: #064f5b; }
@media (max-width: 600px) { .pegaso-chat { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); } .pegaso-chat__panel { height: min(540px, calc(100dvh - 100px)); } .pegaso-chat__launcher { margin-left: auto; padding: 13px 18px; } }