.chat-fab{position:fixed;right:20px;bottom:65px;z-index:1000;display:flex;flex-direction:column;align-items:flex-end;gap:14px}.chat-fab__backdrop{position:fixed;top:0;right:0;bottom:0;left:0;border:none;background:transparent;cursor:default;padding:0}.chat-fab__actions{display:flex;flex-direction:column;align-items:flex-end;gap:12px}.chat-fab__action{display:inline-flex;align-items:center;gap:10px;padding:0;border:none;background:none;text-decoration:none;cursor:pointer;opacity:0;transform:translateY(14px) scale(.8);pointer-events:none;transition:opacity .22s ease,transform .26s cubic-bezier(.16,1,.3,1)}.chat-fab.is-open .chat-fab__action{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}.chat-fab.is-open .chat-fab__action--whatsapp{transition-delay:.04s}.chat-fab.is-open .chat-fab__action--chat{transition-delay:.1s}.chat-fab__action-label{padding:6px 12px;font-size:13px;font-weight:600;white-space:nowrap;color:var(--rr-text, #0f172a);background:var(--rr-card, #ffffff);border:1px solid var(--rr-border, #e2e8f0);border-radius:var(--rr-radius-pill, 999px);box-shadow:0 4px 14px #0f172a29}.chat-fab__action-icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;color:#fff;box-shadow:0 6px 18px #00000038;transition:transform .16s ease}.chat-fab__action--chat .chat-fab__action-icon{background:var(--rr-accent, #8b5cf6)}.chat-fab__action--whatsapp .chat-fab__action-icon{background:#25d366;padding:11px}.chat-fab__action--whatsapp .chat-fab__action-icon img{width:100%;height:100%;display:block}.chat-fab__action:hover .chat-fab__action-icon{transform:scale(1.08)}.chat-fab__action:focus-visible{outline:none}.chat-fab__action:focus-visible .chat-fab__action-icon{outline:2px solid var(--rr-accent, #8b5cf6);outline-offset:3px}.chat-fab__main{position:relative;width:50px;height:50px;border:none;border-radius:50%;cursor:pointer;color:#fff;background:var(--rr-accent, #8b5cf6);transition:transform .2s ease,box-shadow .2s ease}.chat-fab__main:hover{transform:scale(1.06)}.chat-fab__main:active{transform:scale(.95)}.chat-fab__main:focus-visible{outline:2px solid var(--rr-accent, #8b5cf6);outline-offset:3px}.chat-fab__main-icon{position:absolute;top:50%;left:50%;transition:opacity .2s ease,transform .28s cubic-bezier(.16,1,.3,1)}.chat-fab__main-icon--default{opacity:1;transform:translate(-50%,-50%) rotate(0)}.chat-fab__main-icon--close{opacity:0;transform:translate(-50%,-50%) rotate(-90deg)}.chat-fab.is-open .chat-fab__main-icon--default{opacity:0;transform:translate(-50%,-50%) rotate(90deg)}.chat-fab.is-open .chat-fab__main-icon--close{opacity:1;transform:translate(-50%,-50%) rotate(0)}.chat-window{position:fixed;right:20px;bottom:20px;z-index:9999;width:380px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 40px);display:flex;flex-direction:column;overflow:hidden;background:var(--rr-card, #ffffff);border-radius:18px;box-shadow:0 24px 60px #0f172a47;animation:chat-window-in .24s cubic-bezier(.16,1,.3,1)}@keyframes chat-window-in{0%{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.chat-header{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;color:#fff;background:var(--rr-accent, #8b5cf6)}.chat-header__info{display:flex;flex-direction:column;gap:2px}.chat-header__title{font-size:15px;font-weight:700;letter-spacing:-.01em}.chat-header__status{display:inline-flex;align-items:center;gap:6px;font-size:12px;opacity:.85}.chat-header__status:before{content:"";width:7px;height:7px;border-radius:50%;background:#4ade80}.chat-header__close{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:none;border-radius:8px;color:#fff;background:#ffffff29;cursor:pointer;transition:background-color .18s ease}.chat-header__close:hover{background:#ffffff47}.chat-header__close:focus-visible{outline:2px solid #fff;outline-offset:1px}.chat-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:16px;background:var(--rr-bg, #f5f7fa);scrollbar-width:thin;scrollbar-color:rgba(15,23,42,.18) transparent}.chat-messages::-webkit-scrollbar{width:6px}.chat-messages::-webkit-scrollbar-thumb{background-color:#0f172a2e;border-radius:999px}body.dark .chat-messages::-webkit-scrollbar-thumb,html.dark .chat-messages::-webkit-scrollbar-thumb{background-color:#ffffff29}.chat-empty{margin:auto;text-align:center;font-size:14px;color:var(--rr-text-muted, #94a3b8)}.chat-msg{display:flex;flex-direction:column;gap:4px;max-width:85%;animation:chat-msg-in .2s ease}@keyframes chat-msg-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.chat-msg--mine{align-self:flex-end;align-items:flex-end}.chat-msg--support{align-self:flex-start;align-items:flex-start}.chat-msg__author{padding:0 4px;font-size:11px;font-weight:600;color:var(--rr-text-muted, #94a3b8)}.chat-msg__bubble{padding:9px 13px;font-size:14px;line-height:1.45;border-radius:14px;word-break:break-word;white-space:pre-wrap}.chat-msg--mine .chat-msg__bubble{color:#fff;background:var(--rr-accent, #8b5cf6);border-bottom-right-radius:4px}.chat-msg--support .chat-msg__bubble{color:var(--rr-text, #0f172a);background:var(--rr-card, #ffffff);border:1px solid var(--rr-border, #e2e8f0);border-bottom-left-radius:4px}.chat-msg__status{display:inline-flex;align-items:center;margin-left:6px;vertical-align:-2px;color:#ffffffb3}.chat-msg__status--sent{color:#ffffffeb}.chat-msg__retry{display:inline-flex;align-items:center;padding:0;border:none;background:none;color:#fecaca;cursor:pointer}.chat-msg__spin{animation:chat-spin .8s linear infinite}@keyframes chat-spin{to{transform:rotate(360deg)}}.chat-input{flex-shrink:0;display:flex;align-items:flex-end;gap:8px;padding:12px;background:var(--rr-card, #ffffff);border-top:1px solid var(--rr-border, #e2e8f0)}.chat-field{flex:1;min-width:0;height:40px;padding:0 14px;font-size:14px;color:var(--rr-text, #0f172a);background:var(--rr-bg, #f5f7fa);border:1px solid var(--rr-border, #e2e8f0);border-radius:10px;outline:none;transition:border-color .18s ease}.chat-field::-moz-placeholder{color:var(--rr-text-muted, #94a3b8)}.chat-field::placeholder{color:var(--rr-text-muted, #94a3b8)}.chat-field:focus{border-color:var(--rr-accent, #8b5cf6)}textarea.chat-field{box-sizing:border-box;min-height:40px;max-height:120px;padding:9px 14px;line-height:1.45;font-family:inherit;resize:none;overflow-y:hidden;scrollbar-width:thin}textarea.chat-field::-webkit-scrollbar{width:5px}textarea.chat-field::-webkit-scrollbar-thumb{background-color:#0f172a2e;border-radius:999px}body.dark textarea.chat-field::-webkit-scrollbar-thumb,html.dark textarea.chat-field::-webkit-scrollbar-thumb{background-color:#ffffff29}.chat-send{flex-shrink:0;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:10px;color:#fff;background:var(--rr-accent, #8b5cf6);cursor:pointer;transition:background-color .18s ease,transform .12s ease}.chat-send:hover:not(:disabled){background:var(--rr-accent-hover, #7c3aed)}.chat-send:active:not(:disabled){transform:scale(.92)}.chat-send:disabled{opacity:.5;cursor:not-allowed}.chat-send:focus-visible{outline:2px solid var(--rr-accent, #8b5cf6);outline-offset:2px}.chat-prechat{flex:1;display:flex;flex-direction:column;gap:10px;padding:28px 22px;background:var(--rr-bg, #f5f7fa)}.chat-prechat__icon{align-self:center;display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;margin-bottom:4px;color:var(--rr-accent, #8b5cf6);background:var(--rr-accent-soft, rgba(139, 92, 246, .14));border-radius:50%}.chat-prechat__title{margin:0;text-align:center;font-size:17px;font-weight:700;letter-spacing:-.01em;color:var(--rr-text, #0f172a)}.chat-prechat__label{margin:6px 0 0;font-size:13px;font-weight:600;color:var(--rr-text-soft, #475569)}.chat-prechat .chat-field{flex:0 0 auto;height:42px}.chat-prechat__error{margin:0;font-size:13px;color:#ef4444}.chat-btn{margin-top:4px;height:42px;border:none;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;transition:background-color .18s ease,transform .12s ease}.chat-btn--primary{color:#fff;background:var(--rr-accent, #8b5cf6)}.chat-btn--primary:hover:not(:disabled){background:var(--rr-accent-hover, #7c3aed)}.chat-btn--primary:active:not(:disabled){transform:scale(.98)}.chat-btn:disabled{opacity:.55;cursor:not-allowed}.chat-btn:focus-visible{outline:2px solid var(--rr-accent, #8b5cf6);outline-offset:2px}@media (max-width: 540px){.chat-fab{right:14px;bottom:14px}.chat-window{top:var(--chat-vv-offset, 0px);right:0;bottom:auto;left:0;width:100%;max-width:100%;height:var(--chat-vh, 100dvh);max-height:var(--chat-vh, 100dvh);border:none;border-radius:0}.chat-fab__main{width:45px;height:45px}.chat-field{font-size:16px}}@media (prefers-reduced-motion: reduce){.chat-window,.chat-msg{animation:none}.chat-msg__spin{animation-duration:1.6s}.chat-fab__main,.chat-fab__main-icon,.chat-fab__action,.chat-fab__action-icon,.chat-send,.chat-btn{transition:none}}
