.toiver-chat{--toiver-chat-color:#2563eb;--toiver-chat-bottom:max(20px,env(safe-area-inset-bottom));position:fixed;bottom:var(--toiver-chat-bottom);z-index:95;font-family:inherit;color:#0f172a;line-height:1.4}.toiver-chat--right{right:20px}.toiver-chat--left{left:20px}.toiver-chat *{box-sizing:border-box}.toiver-chat button,.toiver-chat input,.toiver-chat textarea{font:inherit}.toiver-chat__panel{position:absolute;bottom:76px;width:min(410px,calc(100vw - 32px));height:min(670px,calc(100vh - 120px));display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(148,163,184,.28);border-radius:28px;background:#fff;box-shadow:0 30px 90px rgba(15,23,42,.2),0 6px 24px rgba(15,23,42,.08);opacity:0;visibility:hidden;transform:translateY(14px) scale(.97);transform-origin:bottom right;transition:opacity .22s ease,transform .22s ease,visibility .22s}.toiver-chat--right .toiver-chat__panel{right:0}.toiver-chat--left .toiver-chat__panel{left:0;transform-origin:bottom left}.toiver-chat.is-open .toiver-chat__panel{opacity:1;visibility:visible;transform:translateY(0) scale(1)}.toiver-chat__header{min-height:82px;padding:16px 17px 15px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(135deg,#0f172a 0%,#172554 100%);color:#fff}.toiver-chat__identity{display:flex;align-items:center;min-width:0;gap:12px}.toiver-chat__avatar-wrap{position:relative;width:46px;height:46px;display:grid;place-items:center;flex:0 0 auto;border-radius:16px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.12);overflow:visible}.toiver-chat__avatar{width:100%;height:100%;object-fit:contain;padding:7px;border-radius:16px;background:#fff}.toiver-chat__avatar-wrap>i{font-size:20px}.toiver-chat__online{position:absolute;right:-2px;bottom:-2px;width:13px;height:13px;border-radius:50%;background:#22c55e;border:3px solid #172554}.toiver-chat__heading{min-width:0;display:flex;flex-direction:column}.toiver-chat__heading strong{font-size:15px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toiver-chat__heading small{margin-top:2px;font-size:11px;color:rgba(255,255,255,.58);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toiver-chat__header-actions{display:flex;gap:6px}.toiver-chat__icon-button{width:36px;height:36px;border:0;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.08);color:#fff;cursor:pointer;transition:.18s}.toiver-chat__icon-button:hover{background:rgba(255,255,255,.16)}.toiver-chat__body{position:relative;min-height:0;flex:1;overflow-y:auto;padding:16px 14px 12px;background:linear-gradient(180deg,#f8fafc 0%,#f1f5f9 100%);scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}.toiver-chat__date{display:flex;align-items:center;gap:8px;margin:0 0 12px;color:#94a3b8;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.toiver-chat__date:before,.toiver-chat__date:after{content:"";height:1px;flex:1;background:#e2e8f0}.toiver-chat__messages{display:flex;flex-direction:column;gap:11px}.toiver-chat__message{max-width:86%;animation:toiverChatPop .18s ease both}.toiver-chat__message--user{align-self:flex-end}.toiver-chat__message--assistant{align-self:flex-start}.toiver-chat__bubble{padding:11px 13px;border-radius:18px;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.toiver-chat__message--user .toiver-chat__bubble{border-bottom-right-radius:5px;background:var(--toiver-chat-color);color:#fff;box-shadow:0 7px 20px color-mix(in srgb,var(--toiver-chat-color) 22%,transparent)}.toiver-chat__message--assistant .toiver-chat__bubble{border-bottom-left-radius:5px;background:#fff;color:#334155;border:1px solid rgba(226,232,240,.9);box-shadow:0 4px 14px rgba(15,23,42,.055)}.toiver-chat__bubble a{color:inherit;font-weight:800;text-decoration:underline;text-underline-offset:2px}.toiver-chat__message-meta{display:flex;align-items:center;gap:7px;margin:5px 5px 0;font-size:9px;color:#94a3b8}.toiver-chat__message--user .toiver-chat__message-meta{justify-content:flex-end}.toiver-chat__source{padding:2px 6px;border-radius:999px;background:#e2e8f0;color:#64748b;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.toiver-chat__actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.toiver-chat__action{border:1px solid color-mix(in srgb,var(--toiver-chat-color) 24%,#dbeafe);border-radius:999px;background:#fff;padding:7px 10px;color:var(--toiver-chat-color);font-size:11px;font-weight:900;text-decoration:none;cursor:pointer;transition:.16s}.toiver-chat__action:hover{background:color-mix(in srgb,var(--toiver-chat-color) 7%,#fff);transform:translateY(-1px)}.toiver-chat__rating{display:flex;align-items:center;gap:4px;margin-top:6px}.toiver-chat__rating span{margin-right:2px;color:#94a3b8;font-size:9px}.toiver-chat__rating button{width:26px;height:26px;border:0;border-radius:9px;background:#fff;color:#94a3b8;box-shadow:0 2px 8px rgba(15,23,42,.06);cursor:pointer}.toiver-chat__rating button:hover,.toiver-chat__rating button.is-selected{color:var(--toiver-chat-color);background:color-mix(in srgb,var(--toiver-chat-color) 8%,#fff)}.toiver-chat__typing{width:max-content;max-width:85%;display:flex;align-items:center;gap:4px;margin-top:10px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:17px 17px 17px 5px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.05)}.toiver-chat__typing[hidden]{display:none}.toiver-chat__typing span{width:6px;height:6px;border-radius:50%;background:#94a3b8;animation:toiverTyping 1.1s infinite ease-in-out}.toiver-chat__typing span:nth-child(2){animation-delay:.13s}.toiver-chat__typing span:nth-child(3){animation-delay:.26s}.toiver-chat__typing em{margin-left:5px;color:#94a3b8;font-size:9px;font-style:normal}.toiver-chat__quick{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.toiver-chat__quick button{display:inline-flex;align-items:center;gap:6px;border:1px solid #dbe3ee;border-radius:999px;background:rgba(255,255,255,.84);padding:8px 11px;color:#475569;font-size:11px;font-weight:850;cursor:pointer;transition:.16s}.toiver-chat__quick button:hover{border-color:color-mix(in srgb,var(--toiver-chat-color) 40%,#dbe3ee);color:var(--toiver-chat-color);transform:translateY(-1px)}.toiver-chat__lead{position:absolute;inset:82px 0 0;z-index:5;overflow-y:auto;padding:18px;background:#fff}.toiver-chat__lead[hidden]{display:none}.toiver-chat__lead-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.toiver-chat__lead-head strong{font-size:17px;font-weight:950}.toiver-chat__lead-head p{margin:5px 0 0;color:#64748b;font-size:12px;line-height:1.55}.toiver-chat__lead-head button{width:34px;height:34px;border:0;border-radius:11px;background:#f1f5f9;color:#64748b;cursor:pointer}.toiver-chat__lead form{display:grid;gap:10px;margin-top:17px}.toiver-chat__lead input,.toiver-chat__lead textarea{width:100%;border:1px solid #dbe3ee;border-radius:14px;background:#f8fafc;padding:11px 12px;color:#0f172a;font-size:12px;outline:none;resize:none}.toiver-chat__lead input:focus,.toiver-chat__lead textarea:focus{border-color:var(--toiver-chat-color);background:#fff;box-shadow:0 0 0 3px color-mix(in srgb,var(--toiver-chat-color) 12%,transparent)}.toiver-chat__lead-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.toiver-chat__consent{display:flex;align-items:flex-start;gap:8px;color:#64748b;font-size:9px;line-height:1.45}.toiver-chat__consent input{width:14px;height:14px;margin-top:1px;padding:0;flex:0 0 auto}.toiver-chat__lead-submit{min-height:43px;border:0;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:8px;background:var(--toiver-chat-color);color:#fff;font-size:12px;font-weight:900;cursor:pointer}.toiver-chat__form-status{min-height:16px;margin:0;color:#64748b;font-size:10px;text-align:center}.toiver-chat__footer{border-top:1px solid #e2e8f0;background:#fff;padding:9px 11px 10px}.toiver-chat__contact-row{display:flex;align-items:center;gap:6px;padding:0 2px 8px}.toiver-chat__contact-row[hidden]{display:none}.toiver-chat__contact-row a,.toiver-chat__contact-row button{border:0;border-radius:999px;background:#f1f5f9;padding:6px 9px;color:#64748b;font-size:9px;font-weight:850;text-decoration:none;cursor:pointer}.toiver-chat__contact-row a:hover,.toiver-chat__contact-row button:hover{color:var(--toiver-chat-color)}.toiver-chat__composer{display:flex;align-items:flex-end;gap:8px;border:1px solid #dbe3ee;border-radius:18px;background:#f8fafc;padding:5px 5px 5px 12px;transition:.18s}.toiver-chat__composer:focus-within{border-color:color-mix(in srgb,var(--toiver-chat-color) 55%,#dbe3ee);background:#fff;box-shadow:0 0 0 3px color-mix(in srgb,var(--toiver-chat-color) 9%,transparent)}.toiver-chat__composer textarea{min-height:36px;max-height:100px;flex:1;border:0;background:transparent;padding:8px 0;color:#0f172a;font-size:12px;line-height:1.4;outline:none;resize:none}.toiver-chat__composer button{width:38px;height:38px;flex:0 0 auto;border:0;border-radius:13px;background:var(--toiver-chat-color);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 7px 18px color-mix(in srgb,var(--toiver-chat-color) 23%,transparent)}.toiver-chat__composer button:disabled{opacity:.45;cursor:not-allowed}.toiver-chat__privacy{margin:6px 4px 0;color:#94a3b8;font-size:8px;line-height:1.35;text-align:center}.toiver-chat__launcher{display:flex;align-items:center;gap:10px;margin-left:auto;border:0;background:transparent;padding:0;cursor:pointer}.toiver-chat--left .toiver-chat__launcher{margin-right:auto;margin-left:0;flex-direction:row-reverse}.toiver-chat__launcher-label{max-width:220px;border:1px solid rgba(226,232,240,.9);border-radius:14px;background:#fff;padding:9px 12px;color:#334155;font-size:11px;font-weight:900;box-shadow:0 8px 26px rgba(15,23,42,.12);animation:toiverLabelIn .35s ease both}.toiver-chat__launcher-circle{position:relative;width:60px;height:60px;border-radius:20px;display:grid;place-items:center;background:var(--toiver-chat-color);color:#fff;box-shadow:0 16px 36px color-mix(in srgb,var(--toiver-chat-color) 35%,transparent);transition:transform .18s ease,border-radius .18s ease}.toiver-chat__launcher:hover .toiver-chat__launcher-circle{transform:translateY(-2px) scale(1.02)}.toiver-chat.is-open .toiver-chat__launcher-circle{border-radius:50%;transform:rotate(0)}.toiver-chat__launcher-circle>i{font-size:23px}.toiver-chat__launcher-circle b{position:absolute;right:-4px;top:-5px;min-width:20px;height:20px;padding:0 5px;border:3px solid #fff;border-radius:999px;display:grid;place-items:center;background:#ef4444;color:#fff;font-size:8px}.toiver-chat__launcher-circle:after{content:"";position:absolute;inset:-6px;border:1px solid color-mix(in srgb,var(--toiver-chat-color) 35%,transparent);border-radius:25px;animation:toiverPulse 2.5s infinite}.toiver-chat.is-open .toiver-chat__launcher-circle:after{display:none}@keyframes toiverChatPop{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes toiverTyping{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-3px);opacity:1}}@keyframes toiverPulse{0%,100%{opacity:0;transform:scale(.95)}45%{opacity:.7}70%{opacity:0;transform:scale(1.17)}}@keyframes toiverLabelIn{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:translateX(0)}}@media(max-width:640px){.toiver-chat{right:12px!important;left:12px!important;bottom:max(12px,env(safe-area-inset-bottom));z-index:110}.toiver-chat__panel{position:fixed;inset:0;width:100%;height:100dvh;max-height:none;border:0;border-radius:0;transform:translateY(100%);transform-origin:center}.toiver-chat.is-open .toiver-chat__panel{transform:translateY(0)}.toiver-chat__header{padding-top:max(16px,env(safe-area-inset-top));min-height:78px}.toiver-chat__footer{padding-bottom:max(10px,env(safe-area-inset-bottom))}.toiver-chat__launcher-label{display:none}.toiver-chat__launcher-circle{width:56px;height:56px;border-radius:18px}.toiver-chat__lead{inset:78px 0 0}.toiver-chat__lead-grid{grid-template-columns:1fr}.toiver-chat__body{padding-left:12px;padding-right:12px}}@media(prefers-reduced-motion:reduce){.toiver-chat *{animation:none!important;transition:none!important}}@media print{.toiver-chat{display:none!important}}
