/* Floating contact control, independent of cart and checkout controls. */
#myshop-whatsapp-contact{
  position:fixed;right:calc(20px + env(safe-area-inset-right,0px));
  bottom:calc(var(--myshop-whatsapp-offset,20px) + env(safe-area-inset-bottom,0px));
  z-index:999;display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:54px;max-width:calc(100vw - 32px);padding:11px 17px;
  border:1px solid #8fa18b;border-radius:999px;background:#364b3c;color:#fff;
  box-shadow:0 5px 20px #0003;text-decoration:none;font-family:inherit;
  font-size:15px;font-weight:700;line-height:1.3;white-space:nowrap;
  transition:background-color .16s,border-color .16s,box-shadow .16s;
  -webkit-tap-highlight-color:transparent;
}
#myshop-whatsapp-contact:visited{color:#fff}
#myshop-whatsapp-contact:hover{background:#263b2d;color:#fff;text-decoration:none;box-shadow:0 7px 24px #0004}
#myshop-whatsapp-contact:focus-visible{outline:3px solid #8fa18b;outline-offset:4px;color:#fff;text-decoration:none}
#myshop-whatsapp-contact .myshop-whatsapp-contact__icon{display:block;flex:0 0 29px;width:29px;height:29px;color:#fbfaf4}
#myshop-whatsapp-contact .myshop-whatsapp-contact__label{display:block;color:inherit}
body.modal-open #myshop-whatsapp-contact,body.st-menu-open #myshop-whatsapp-contact,
body:has(.st-menu-open) #myshop-whatsapp-contact,#myshop-whatsapp-contact[data-obstructed]{visibility:hidden;pointer-events:none}
@media(max-width:575px){
  #myshop-whatsapp-contact{right:calc(16px + env(safe-area-inset-right,0px));min-height:52px;padding:10px 15px;gap:8px;font-size:14px}
  #myshop-whatsapp-contact .myshop-whatsapp-contact__icon{flex-basis:28px;width:28px;height:28px}
}
@media(prefers-reduced-motion:reduce){#myshop-whatsapp-contact{transition:none}}
@media print{#myshop-whatsapp-contact{display:none}}

/* MyShopCasa: keep the six mobile filters clear while the native panel is open. */
@media (max-width: 767px) {
  body#category:has(#_mobile_search_filters[style*="display: block"]) #myshop-whatsapp-contact,
  body#category:has(#_mobile_search_filters[style*="display:block"]) #myshop-whatsapp-contact {
    visibility: hidden;
    pointer-events: none;
  }
}
