/* Tawjieh Floating Buttons V93 - clean fixed stack */
html body:not(.tawjeeh-floating-ready) .whatsapp-float,
html body:not(.tawjeeh-floating-ready) .tawjeeh-scroll-top,
html body:not(.tawjeeh-floating-ready) .jouri-ai-root{
  display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;
}
html body .whatsapp-float{
  position:fixed!important;left:22px!important;bottom:24px!important;z-index:99989!important;
  border:0!important;border-radius:50%!important;padding:0!important;color:#fff!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:48px!important;height:48px!important;background:linear-gradient(135deg,#25d366,#128c7e)!important;
  font-size:22px!important;font-weight:700!important;box-shadow:0 16px 34px rgba(18,140,126,.3)!important;
  text-decoration:none!important;pointer-events:auto!important;margin:0!important;transform:none!important;
}
html body .whatsapp-float svg{width:24px!important;height:24px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
html body .jouri-ai-root{left:22px!important;bottom:78px!important;z-index:99990!important;margin:0!important;transform:none!important}
html body .tawjieh-float-stack{
  position:fixed!important;left:22px!important;bottom:24px!important;z-index:2147483000!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-end!important;
  gap:6px!important;width:48px!important;pointer-events:none!important;direction:ltr!important;margin:0!important;transform:none!important;
}
html body .tawjieh-float-stack>.jouri-ai-root,
html body .tawjieh-float-stack>.whatsapp-float{
  position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  margin:0!important;transform:none!important;pointer-events:auto!important;flex:0 0 auto!important;
}
html body .tawjieh-float-stack>.jouri-ai-root,
html body .tawjieh-float-stack .jouri-ai-toggle,
html body .tawjieh-float-stack>.whatsapp-float{
  width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;max-height:48px!important;
}
@media(max-width:768px){
  html body .whatsapp-float{left:14px!important;bottom:calc(86px + env(safe-area-inset-bottom))!important;width:46px!important;height:46px!important}
  html body .jouri-ai-root{left:14px!important;bottom:calc(138px + env(safe-area-inset-bottom))!important}
  html body .tawjieh-float-stack{left:14px!important;bottom:calc(86px + env(safe-area-inset-bottom))!important;width:46px!important;gap:6px!important}
  html body .tawjieh-float-stack>.jouri-ai-root,
  html body .tawjieh-float-stack .jouri-ai-toggle,
  html body .tawjieh-float-stack>.whatsapp-float{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;max-width:46px!important;max-height:46px!important}
}
html body .tawjeeh-scroll-top{
  position:fixed!important;right:22px!important;left:auto!important;bottom:144px!important;z-index:100020!important;
  width:38px!important;height:38px!important;border:0!important;border-radius:14px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:#07192d!important;color:#fff!important;opacity:0!important;visibility:hidden!important;
  transform:translateY(8px)!important;transition:opacity .18s ease, visibility .18s ease, transform .18s ease!important;
  cursor:pointer!important;box-shadow:0 12px 24px rgba(7,25,45,.22)!important;pointer-events:none!important;touch-action:manipulation!important;
}
html body .tawjeeh-scroll-top.is-visible{opacity:.7!important;visibility:visible!important;transform:translateY(0)!important;pointer-events:auto!important}
html body .tawjeeh-scroll-top:hover{opacity:.92!important;transform:translateY(-2px)!important}
html body .tawjeeh-scroll-top svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.4!important;stroke-linecap:round!important;stroke-linejoin:round!important}
@media(max-width:768px){html body .tawjeeh-scroll-top{right:14px!important;left:auto!important;bottom:calc(144px + env(safe-area-inset-bottom))!important;width:36px!important;height:36px!important;border-radius:13px!important}}


/* V95 - Home page exact 6px gap clamp */
html body.tawjeeh-home-page .tawjieh-float-stack{gap:6px!important}
html body.tawjeeh-home-page .tawjieh-float-stack>.jouri-ai-root,
html body.tawjeeh-home-page .tawjieh-float-stack>.whatsapp-float{margin:0!important}
html body.tawjeeh-home-page .jouri-ai-root:not(.jouri-ai-stacked){bottom:78px!important}
html body.tawjeeh-home-page .whatsapp-float:not(.whatsapp-stacked){bottom:24px!important}
@media(max-width:768px){
  html body.tawjeeh-home-page .jouri-ai-root:not(.jouri-ai-stacked){bottom:calc(138px + env(safe-area-inset-bottom))!important}
  html body.tawjeeh-home-page .whatsapp-float:not(.whatsapp-stacked){bottom:calc(86px + env(safe-area-inset-bottom))!important}
}


/* V95 - exact home/main floating pair gap */
html body .tawjieh-float-stack,
html body.tawjeeh-home-page .tawjieh-float-stack{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  left:22px!important;
  bottom:24px!important;
  width:48px!important;
}
html body .tawjieh-float-stack>.jouri-ai-root,
html body .tawjieh-float-stack>.whatsapp-float{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  margin:0!important;
  transform:none!important;
  flex:0 0 auto!important;
}
html body .tawjieh-float-stack>.jouri-ai-root,
html body .tawjieh-float-stack .jouri-ai-toggle,
html body .tawjieh-float-stack>.whatsapp-float{
  width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;max-height:48px!important;
}
@media(max-width:768px){
  html body .tawjieh-float-stack,
  html body.tawjeeh-home-page .tawjieh-float-stack{left:14px!important;bottom:calc(86px + env(safe-area-inset-bottom))!important;width:46px!important;gap:6px!important}
  html body .tawjieh-float-stack>.jouri-ai-root,
  html body .tawjieh-float-stack .jouri-ai-toggle,
  html body .tawjieh-float-stack>.whatsapp-float{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;max-width:46px!important;max-height:46px!important}
}

/* V96 - home page visible compact pair: Jouri + WhatsApp */
html body.tawjeeh-home-page .tawjieh-float-stack{
  gap:0!important;
  row-gap:0!important;
}
html body.tawjeeh-home-page .tawjieh-float-stack>.jouri-ai-root,
html body.tawjeeh-home-page .tawjieh-float-stack>.whatsapp-float,
html body.tawjeeh-home-page .tawjieh-float-stack .jouri-ai-toggle{
  margin:0!important;
  transform:none!important;
  box-sizing:border-box!important;
}
html body.tawjeeh-home-page .jouri-ai-root:not(.jouri-ai-stacked){bottom:72px!important}
html body.tawjeeh-home-page .whatsapp-float:not(.whatsapp-stacked){bottom:24px!important}
@media(max-width:768px){
  html body.tawjeeh-home-page .tawjieh-float-stack{gap:0!important;row-gap:0!important}
  html body.tawjeeh-home-page .jouri-ai-root:not(.jouri-ai-stacked){bottom:calc(132px + env(safe-area-inset-bottom))!important}
  html body.tawjeeh-home-page .whatsapp-float:not(.whatsapp-stacked){bottom:calc(86px + env(safe-area-inset-bottom))!important}
}

/* V98 - Mobile Jouri footer leak hard fix */
html body:not(.tawjeeh-floating-ready) .jouri-ai-root,
html body:not(.tawjeeh-floating-ready) .tawjieh-float-stack{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
html body .jouri-ai-root{
  position:fixed!important;
  left:22px!important;
  right:auto!important;
  top:auto!important;
  bottom:78px!important;
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  min-height:48px!important;
  max-width:48px!important;
  max-height:48px!important;
  z-index:2147483000!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  transform:none!important;
  float:none!important;
  clear:none!important;
}
html body .jouri-ai-toggle,
html body .jouri-ai-toggle img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:cover!important;
  float:none!important;
  clear:none!important;
}
html body .tawjieh-float-stack>.jouri-ai-root{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  flex:0 0 auto!important;
}
@media(max-width:768px){
  html body .jouri-ai-root:not(.jouri-ai-stacked){
    left:14px!important;
    bottom:calc(150px + env(safe-area-inset-bottom))!important;
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
    max-width:46px!important;
    max-height:46px!important;
  }
  html body .tawjieh-float-stack{
    left:14px!important;
    bottom:calc(96px + env(safe-area-inset-bottom))!important;
    width:46px!important;
    gap:6px!important;
    row-gap:6px!important;
    overflow:visible!important;
  }
  html body .tawjieh-float-stack>.jouri-ai-root,
  html body .tawjieh-float-stack>.whatsapp-float,
  html body .tawjieh-float-stack .jouri-ai-toggle{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
    max-width:46px!important;
    max-height:46px!important;
    overflow:visible!important;
  }
  footer .jouri-ai-root,
  .site-footer .jouri-ai-root,
  .shared-footer .jouri-ai-root{
    position:fixed!important;
    left:14px!important;
    right:auto!important;
    top:auto!important;
    bottom:calc(150px + env(safe-area-inset-bottom))!important;
  }
}

/* V99 - prevent Jouri avatar flash in footer/body before JS stacking */
html body .jouri-ai-root.jouri-ai-prestack,
html body .jouri-ai-root:not(.jouri-ai-stacked):not(.is-open){display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
html body .tawjieh-float-stack>.jouri-ai-root,
html body .jouri-ai-root.jouri-ai-stacked{display:block!important;visibility:visible!important;opacity:1!important}
