#sl-eta-chat-root{
  --sl-eta-accent:#0f8f92;
  --sl-eta-navy:#0b2e54;
  --sl-eta-border:#dce7ee;
  --sl-eta-soft:#f5f9fb;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:999999;
  color:#102b4e
}
#sl-eta-chat-root *{box-sizing:border-box}
html.sl-eta-chat-page-locked,body.sl-eta-chat-page-locked{overflow:hidden!important;overscroll-behavior:none}

.sl-eta-chat-launcher{
  position:relative;border:0;background:var(--sl-eta-accent);color:#fff;border-radius:999px;
  min-height:58px;padding:0 20px;display:flex;align-items:center;gap:10px;font-weight:700;font-size:15px;
  box-shadow:0 12px 35px rgba(5,35,64,.25);cursor:pointer;transition:transform .18s ease,filter .18s ease
}
.sl-eta-chat-launcher:hover{filter:brightness(.97);transform:translateY(-1px)}
.sl-eta-chat-launcher-icon{
  width:22px;height:19px;border:2px solid currentColor;border-radius:9px;display:inline-block;position:relative
}
.sl-eta-chat-launcher-icon:after{
  content:"";position:absolute;width:7px;height:7px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;
  left:3px;bottom:-5px;transform:skew(-24deg);background:var(--sl-eta-accent)
}
.sl-eta-chat-launcher.sl-eta-open{display:none}
.sl-eta-chat-badge{
  position:absolute;right:-2px;top:-4px;background:#e53935;color:#fff;width:22px;height:22px;border-radius:50%;
  font-size:12px;line-height:18px;text-align:center;border:2px solid #fff;font-weight:800
}

.sl-eta-chat-window{
  width:min(390px,calc(100vw - 28px));height:min(630px,calc(100vh - 40px));background:#fff;border-radius:20px;
  overflow:hidden;box-shadow:0 22px 60px rgba(7,35,62,.3);border:1px solid var(--sl-eta-border);
  display:flex;flex-direction:column
}
.sl-eta-chat-window[hidden]{display:none!important}

.sl-eta-chat-header{
  flex:0 0 auto;padding:15px 16px;background:linear-gradient(135deg,var(--sl-eta-navy),var(--sl-eta-accent));
  color:#fff;display:flex;align-items:center;gap:11px
}
.sl-eta-chat-avatar{
  width:42px;height:42px;border-radius:13px;background:#fff;color:var(--sl-eta-accent);
  display:grid;place-items:center;font-size:23px;font-weight:900;flex:0 0 auto
}
.sl-eta-chat-header>div:nth-child(2){flex:1;min-width:0}
.sl-eta-chat-header strong{display:block;font-size:16px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sl-eta-chat-header small{display:flex;align-items:center;gap:6px;margin-top:3px;opacity:.95;font-size:12px}
.sl-eta-status-dot{display:inline-block;width:8px;height:8px;background:#61e39d;border-radius:50%;flex:0 0 auto}
.sl-eta-status-dot.offline{background:#ffcc66}
.sl-eta-chat-close{
  width:42px;height:42px;border:0;background:rgba(255,255,255,.09);border-radius:12px;color:#fff;
  font-size:28px;cursor:pointer;line-height:1;display:grid;place-items:center;padding:0;flex:0 0 auto
}

.sl-eta-chat-body{
  flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;background:var(--sl-eta-soft);
  padding:15px;overscroll-behavior:contain
}
.sl-eta-chat-messages{display:flex;flex-direction:column;gap:9px}
.sl-eta-chat-msg{max-width:86%;margin-bottom:9px}
.sl-eta-chat-msg>div{padding:11px 13px;border-radius:14px;line-height:1.45;font-size:14px;overflow-wrap:anywhere}
.sl-eta-chat-msg small{display:block;font-size:10px;color:#7a8a9e;margin:4px 3px 0}
.sl-eta-chat-msg-agent{align-self:flex-start}
.sl-eta-chat-msg-agent>div{background:#fff;border:1px solid var(--sl-eta-border);border-bottom-left-radius:4px}
.sl-eta-chat-msg-visitor{align-self:flex-end;margin-left:auto}
.sl-eta-chat-msg-visitor>div{background:var(--sl-eta-accent);color:#fff;border-bottom-right-radius:4px}
.sl-eta-chat-msg-visitor small{text-align:right}

.sl-eta-chat-contact{display:grid;gap:8px;margin:12px 0 15px}
.sl-eta-chat-contact input{
  width:100%;height:42px;border:1px solid #c9d7e1;border-radius:11px;padding:0 12px;
  font:inherit;font-size:14px;background:#fff;color:#183b62;outline:none
}
.sl-eta-chat-contact input:focus{border-color:var(--sl-eta-accent);box-shadow:0 0 0 3px rgba(15,143,146,.12)}
.sl-eta-chat-contact-sent{display:none}

.sl-eta-chat-offline-notice{
  background:#fff7dd;border:1px solid #f1dc93;color:#5d521f;border-radius:10px;padding:9px 10px;
  margin:0 0 12px;font-size:12px;line-height:1.4
}
.sl-eta-chat-typing{font-size:12px;color:#61758c;margin:7px 0}
.sl-eta-chat-privacy{
  flex:0 0 auto;font-size:11px;line-height:1.4;color:#35666b;background:#edf9f8;
  border-top:1px solid #cbeae7;padding:9px 12px
}

.sl-eta-chat-form{
  flex:0 0 auto;display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #e3ebf0;align-items:flex-end
}
.sl-eta-chat-input{
  flex:1;resize:none;min-height:44px;max-height:112px;border:1px solid #cad8e2;border-radius:13px;
  padding:11px 12px;font:inherit;font-size:16px;line-height:1.35;outline:none;color:#183b62;background:#fff
}
.sl-eta-chat-input:focus{border-color:var(--sl-eta-accent);box-shadow:0 0 0 3px rgba(15,143,146,.12)}
.sl-eta-chat-form button{
  flex:0 0 46px;width:46px;height:46px;border:0;border-radius:13px;background:var(--sl-eta-accent);
  color:#fff;font-size:18px;cursor:pointer;display:grid;place-items:center
}

@media(max-width:600px){
  #sl-eta-chat-root{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}
  .sl-eta-chat-launcher{
    width:58px;height:58px;min-height:58px;padding:0;justify-content:center;box-shadow:0 10px 30px rgba(5,35,64,.28)
  }
  .sl-eta-chat-launcher-text{display:none}
  .sl-eta-chat-launcher-icon{width:23px;height:20px}

  .sl-eta-chat-window{
    position:fixed;left:0;right:0;top:var(--sl-eta-mobile-top,0px);bottom:auto;
    width:100vw;max-width:none;height:var(--sl-eta-mobile-height,100dvh);max-height:none;
    border:0;border-radius:0;box-shadow:none;z-index:1000000;background:#fff
  }

  .sl-eta-chat-header{
    padding:calc(10px + env(safe-area-inset-top)) 12px 10px;
    min-height:70px
  }
  .sl-eta-chat-avatar{width:38px;height:38px;border-radius:11px;font-size:21px}
  .sl-eta-chat-header strong{font-size:15px}
  .sl-eta-chat-header small{font-size:11px}
  .sl-eta-chat-close{width:44px;height:44px;border-radius:12px;font-size:28px}

  .sl-eta-chat-body{padding:12px;min-height:0;flex:1 1 auto}
  .sl-eta-chat-msg{max-width:90%;margin-bottom:8px}
  .sl-eta-chat-msg>div{font-size:14px;padding:10px 12px;border-radius:13px}

  .sl-eta-chat-contact{gap:8px;margin:10px 0 12px}
  .sl-eta-chat-contact input{height:46px;font-size:16px;border-radius:12px}

  .sl-eta-chat-offline-notice{font-size:11px;margin-bottom:10px}
  .sl-eta-chat-privacy{font-size:10.5px;padding:7px 11px}

  .sl-eta-chat-form{
    padding:9px 10px calc(9px + env(safe-area-inset-bottom));gap:8px;position:relative;background:#fff
  }
  .sl-eta-chat-input{min-height:46px;max-height:96px;font-size:16px;border-radius:13px}
  .sl-eta-chat-form button{width:48px;height:48px;flex-basis:48px;border-radius:13px;font-size:19px}
}

@media(max-width:360px){
  .sl-eta-chat-header{gap:8px}
  .sl-eta-chat-avatar{width:36px;height:36px}
  .sl-eta-chat-header strong{font-size:14px}
  .sl-eta-chat-header small{font-size:10px}
  .sl-eta-chat-body{padding:10px}
  .sl-eta-chat-msg{max-width:92%}
  .sl-eta-chat-privacy{font-size:10px}
}
