/* BinYonSis Guest Support V2 — isolated homepage widget; no inherited theme dependency */
#bysGuestChat{
  --chat-ink:#102a43;--chat-muted:#5a6d80;--chat-blue:#174e84;
  --chat-soft:#f5f8fc;--chat-border:#dfe8f1;--chat-white:#ffffff;
  position:fixed;right:clamp(14px,2.5vw,30px);bottom:calc(18px + env(safe-area-inset-bottom,0px));
  z-index:1400;font-family:inherit;font-size:14px;line-height:1.5;color:var(--chat-ink);
  pointer-events:none;
}
#bysGuestChat *,#bysGuestChat *::before,#bysGuestChat *::after{box-sizing:border-box}
#bysGuestChat :is(button,textarea){font-family:inherit;letter-spacing:normal}
#bysGuestChat button{cursor:pointer}
#bysGuestChat :is(button,textarea):focus-visible{outline:3px solid #70baf2;outline-offset:3px}
#bysGuestChat button:disabled{cursor:not-allowed;opacity:.5}
#bysGuestChat > *,#bysGuestPanel{pointer-events:auto}
#bysGuestToggle{
  position:relative;display:flex;align-items:center;gap:12px;min-height:62px;
  padding:9px 20px 9px 9px;border:1px solid rgba(255,255,255,.36);border-radius:999px;
  background:linear-gradient(112deg,#143d6b,#1b5992);color:#fff!important;
  box-shadow:0 14px 38px rgba(12,40,71,.25),0 3px 8px rgba(12,40,71,.12);
  text-align:left;transition:transform .2s ease,box-shadow .2s ease;
}
#bysGuestToggle:hover{transform:translateY(-3px);box-shadow:0 19px 42px rgba(12,40,71,.32)}
#bysGuestToggle[aria-expanded="true"]{box-shadow:0 6px 18px rgba(12,40,71,.22)}
.bys-guest-launch-icon{
  display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;
  background:rgba(255,255,255,.16);color:#fff;
}
.bys-guest-launch-icon svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.bys-guest-launch-copy{display:flex;flex-direction:column;gap:1px}
.bys-guest-launch-copy strong{font-size:14px!important;line-height:1.3!important;color:#fff!important;font-weight:800}
.bys-guest-launch-copy small{font-size:11px;color:#e2f0ff}
.bys-guest-launch-indicator{width:8px;height:8px;border-radius:50%;background:#a7f3d0;box-shadow:0 0 0 3px rgba(167,243,208,.18);margin-left:3px}
#bysGuestPanel{
  position:absolute;right:0;bottom:calc(100% + 14px);
  display:flex;flex-direction:column;width:min(430px,calc(100vw - 28px));
  height:min(660px,calc(100dvh - 115px));min-height:360px;max-height:calc(100dvh - 84px);
  overflow:hidden;border:1px solid #d6e4ef;border-radius:22px;
  background:#fff!important;color:var(--chat-ink)!important;
  box-shadow:0 28px 90px rgba(9,35,64,.26),0 6px 20px rgba(9,35,64,.1);
  isolation:isolate;transform-origin:bottom right;
  animation:bysGuestAppear .21s cubic-bezier(.2,.8,.2,1) both;
}
#bysGuestPanel[hidden]{display:none!important}
@keyframes bysGuestAppear{from{opacity:0;transform:translateY(9px) scale(.975)}to{opacity:1;transform:translateY(0) scale(1)}}
#bysGuestPanel .bys-guest-head{
  position:relative;display:flex;align-items:center;gap:11px;flex:0 0 auto;
  padding:17px 17px 16px;background:linear-gradient(122deg,#103a67,#1c5c94)!important;color:#fff!important;
}
.bys-guest-brand{
  display:grid;place-items:center;flex:0 0 45px;width:45px;height:45px;
  border-radius:15px;background:#ffffff20;border:1px solid #ffffff30;color:#fff;font-size:21px;
}
.bys-guest-head-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
#bysGuestPanel .bys-guest-head-copy strong{font-size:15px!important;font-weight:850;color:#fff!important;line-height:1.35}
#bysGuestPanel .bys-guest-head-copy small{font-size:12px;color:#d7e8fb;line-height:1.4}
.bys-guest-header-actions{display:flex;align-items:center;gap:5px}
#bysGuestPanel .bys-guest-icon-button{
  display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;
  border:1px solid transparent;border-radius:11px;background:transparent;color:#ecf6ff;
  font-size:21px;line-height:1;transition:background .18s ease;
}
#bysGuestPanel .bys-guest-icon-button:hover{background:#ffffff23}
#bysGuestPanel .bys-guest-icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bys-guest-head-bottom{
  display:flex;align-items:center;gap:8px;padding:9px 17px;flex:0 0 auto;
  background:#edf5fc;border-bottom:1px solid #dce8f4;color:#35566f;font-size:11px;font-weight:650;
}
.bys-guest-head-bottom .bys-guest-status-dot{width:7px;height:7px;background:#219681;border-radius:50%}
#bysGuestMessages{
  display:flex;flex:1 1 auto;flex-direction:column;gap:15px;min-height:0;
  margin:0;padding:18px 15px 22px;background:var(--chat-soft);
  overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9d5e1 transparent;
}
#bysGuestMessages > *{flex-shrink:0}
.bys-guest-welcome{
  display:flex;flex-direction:column;gap:13px;
  padding:18px;border:1px solid #e5edf5;border-radius:17px;
  background:#fff;box-shadow:0 5px 19px #1d416f08;
}
.bys-guest-welcome-emoji{
  display:grid;place-items:center;width:44px;height:44px;border-radius:14px;
  background:linear-gradient(145deg,#e2effd,#f4f7fe);font-size:22px
}
#bysGuestPanel .bys-guest-welcome h3{margin:0;color:#123450!important;font-size:19px!important;line-height:1.2;font-weight:830}
#bysGuestPanel .bys-guest-welcome p{margin:0!important;color:#587088!important;font-size:13px;line-height:1.55}
.bys-guest-starters{display:flex;flex-direction:column;gap:8px}
#bysGuestPanel .bys-guest-starter{
  display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;
  width:100%;min-height:43px;padding:9px 11px;border:1px solid #dde9f4;border-radius:11px;
  background:#f7fbff;color:#174a77;font-size:13px;font-weight:700;
}
#bysGuestPanel .bys-guest-starter:hover{background:#eaf4ff;border-color:#a9cde9}
.bys-guest-starter span:last-child{color:#678dad;font-size:17px}
.bys-guest-row{display:flex;align-items:flex-end;gap:7px;max-width:95%;align-self:flex-start}
.bys-guest-row.mine{align-self:flex-end;justify-content:flex-end}
.bys-guest-avatar{
  display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;
  border:1px solid #d7e7f7;border-radius:10px;background:#e7f1fb;color:#145286;font-size:13px;font-weight:850;
}
#bysGuestPanel .bys-guest-message{
  min-width:0;max-width:100%;margin:0;padding:11px 13px;border:1px solid #e1e9f1;
  border-radius:15px 15px 15px 5px;background:#fff;color:#243a51;
  font-size:13px;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap;
  box-shadow:0 2px 7px #1d416f0a;
}
#bysGuestPanel .bys-guest-row.mine .bys-guest-message{
  background:#194e82;color:#fff;border-color:#194e82;border-radius:15px 15px 5px 15px;
}
.bys-guest-typing{display:inline-flex;align-items:center;gap:4px;min-height:20px}
.bys-guest-typing i{width:6px;height:6px;border-radius:50%;background:#738aa1;animation:bysGuestDots 1s infinite ease-in-out}
.bys-guest-typing i:nth-child(2){animation-delay:.16s}.bys-guest-typing i:nth-child(3){animation-delay:.32s}
@keyframes bysGuestDots{0%,60%,100%{opacity:.45;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.bys-guest-composer{flex:0 0 auto;background:#fff;border-top:1px solid #e7edf3}
#bysGuestForm{display:flex;align-items:flex-end;gap:8px;margin:0;padding:12px 13px 5px;border:0;background:#fff}
#bysGuestInput{
  display:block;flex:1;min-width:0;height:46px;min-height:46px;max-height:126px;
  resize:none;overflow-y:auto;margin:0;padding:11px 12px;border:1px solid #cbd9e6;border-radius:13px;
  background:#fff!important;color:#193149!important;font-size:13px;line-height:1.6;
  box-shadow:0 1px 2px #16345406;
}
#bysGuestInput::placeholder{color:#698094;opacity:1}
#bysGuestInput:focus{border-color:#5b9acf;box-shadow:0 0 0 3px #cfe7fb;outline:none}
#bysGuestPanel #bysGuestSend{
  display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;
  border:0;border-radius:13px;background:#1a5488;color:#fff;
  box-shadow:0 3px 8px #174e8420;transition:background .15s ease,transform .15s ease;
}
#bysGuestSend svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#bysGuestPanel #bysGuestSend:not(:disabled):hover{background:#246da9;transform:translateY(-1px)}
.bys-guest-composer-meta{
  display:flex;align-items:center;justify-content:space-between;gap:9px;
  padding:3px 16px 12px;background:#fff;color:#64778a;font-size:11px;
}
.bys-guest-composer-meta strong{font-weight:700;color:#4c6073;font-variant-numeric:tabular-nums}
#bysGuestCount[data-near="true"]{color:#b42336}
#bysGuestError{
  display:block;flex:0 0 auto;margin:0!important;padding:9px 14px!important;
  background:#fff1f2;color:#9e1b32!important;border-top:1px solid #ffced4;font-size:12px;
}
#bysGuestError[hidden]{display:none!important}
#bysGuestChat[data-busy="true"] #bysGuestSend{opacity:.55}
@media(max-width:640px){
 #bysGuestChat{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}
 #bysGuestToggle{padding:8px 15px 8px 8px;min-height:58px}
 .bys-guest-launch-icon{width:42px;height:42px;flex-basis:42px}
 #bysGuestPanel{
   position:fixed;top:calc(var(--bys-guest-viewport-offset,0px) + 10px);
   bottom:auto;left:10px;right:10px;width:auto;
   height:calc(var(--bys-guest-viewport-height,100dvh) - 20px - env(safe-area-inset-bottom,0px));
   max-height:none;min-height:0;border-radius:18px;transform-origin:center bottom;
 }
 #bysGuestMessages{padding:16px 12px}
 #bysGuestPanel .bys-guest-head{padding:14px}
 .bys-guest-welcome{padding:16px}
 .bys-guest-composer-meta{padding-bottom:10px}
}
@media(max-width:380px){.bys-guest-launch-copy small{display:none}#bysGuestToggle{min-height:54px}.bys-guest-brand{width:39px;height:39px;flex-basis:39px}}
@media(prefers-reduced-motion:reduce){
 #bysGuestPanel{animation:none}#bysGuestToggle,#bysGuestSend{transition:none!important}
 .bys-guest-typing i{animation:none}
}
#bysGuestChat .bys-guest-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
