:root {
  --jy-contact-right: 28px;
  --jy-contact-bottom: 22px;
  --jy-contact-size: 56px;
  --jy-contact-gap: 16px;
}

.jy-whatsapp-root,
.wa-widget {
  position: fixed !important;
  right: var(--jy-contact-right) !important;
  left: auto !important;
  bottom: var(--jy-contact-bottom) !important;
  z-index: 10018 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
}

.jy-whatsapp-link,
.wa-widget .wa-btn {
  width: var(--jy-contact-size) !important;
  height: var(--jy-contact-size) !important;
  min-width: var(--jy-contact-size) !important;
  min-height: var(--jy-contact-size) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #25d366 !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  text-decoration: none !important;
  box-shadow: 0 5px 18px rgba(16, 117, 54, 0.38) !important;
  transition: transform 160ms ease, box-shadow 160ms ease !important;
}

.jy-whatsapp-link:hover,
.wa-widget .wa-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(16, 117, 54, 0.48) !important;
}

.jy-whatsapp-link:focus-visible,
.wa-widget .wa-btn:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px !important;
}

.jy-whatsapp-link svg,
.wa-widget .wa-btn svg {
  width: 29px !important;
  height: 29px !important;
  display: block !important;
  fill: currentColor !important;
}

.jy-whatsapp-label,
.wa-widget .wa-label {
  max-width: 150px !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  background: #171717 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

.jy-ai-root {
  right: var(--jy-contact-right) !important;
  left: auto !important;
  bottom: 117px !important;
  z-index: 10020 !important;
  display: block !important;
}

.jy-ai-root[dir="rtl"],
html[dir="rtl"] .jy-ai-root {
  right: auto !important;
  left: var(--jy-contact-right) !important;
}

html[dir="rtl"] .jy-whatsapp-root,
html[dir="rtl"] .wa-widget,
html[lang^="ar"] .jy-whatsapp-root,
.jy-whatsapp-root[dir="rtl"] {
  right: auto !important;
  left: var(--jy-contact-right) !important;
}

body:has(.jy-ai-panel.is-open) .jy-whatsapp-root,
body:has(.jy-ai-panel.is-open) .wa-widget,
body:has([data-jy-global-product-menu].is-open) .jy-whatsapp-root,
body:has([data-jy-global-product-menu].is-open) .wa-widget,
body:has([data-jy-global-product-menu].is-open) .jy-ai-root,
body:has(.mob-nav.open) .jy-whatsapp-root,
body:has(.mob-nav.open) .wa-widget,
body:has(.mob-nav.open) .jy-ai-root {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 600px) {
  :root {
    --jy-contact-right: 18px;
    --jy-contact-bottom: 18px;
    --jy-contact-size: 50px;
  }

  .jy-whatsapp-label,
  .wa-widget .wa-label {
    display: none !important;
  }

  .jy-ai-root,
  .jy-ai-root[dir="rtl"],
  html[dir="rtl"] .jy-ai-root {
    right: var(--jy-contact-right) !important;
    left: auto !important;
    bottom: 82px !important;
  }

  html[dir="rtl"] .jy-whatsapp-root,
  html[dir="rtl"] .wa-widget,
  html[lang^="ar"] .jy-whatsapp-root,
  .jy-whatsapp-root[dir="rtl"] {
    right: var(--jy-contact-right) !important;
    left: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jy-whatsapp-link,
  .wa-widget .wa-btn {
    animation: none !important;
    transition: none !important;
  }
}
