.deb-whatsapp-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #fff;
  background: #25d366;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(14, 37, 52, .24);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.deb-whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.deb-whatsapp-float__label {
  position: absolute;
  right: 66px;
  padding: 7px 10px;
  color: #fff;
  background: #193a59;
  border-radius: 7px;
  box-shadow: 0 5px 16px rgba(14, 37, 52, .2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity .18s ease, transform .18s ease;
}

.deb-whatsapp-float:hover,
.deb-whatsapp-float:focus-visible {
  color: #fff;
  background: #1ebe5d;
  box-shadow: 0 10px 28px rgba(14, 37, 52, .3);
  transform: translateY(-2px);
}

.deb-whatsapp-float:hover .deb-whatsapp-float__label,
.deb-whatsapp-float:focus-visible .deb-whatsapp-float__label {
  opacity: 1;
  transform: translateX(0);
}

.deb-whatsapp-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

body:has(yc-drawer[data-hidden="false"]) .deb-whatsapp-float {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(.9);
}

@media (max-width: 767px) {
  .deb-whatsapp-float {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }

  .deb-whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .deb-whatsapp-float__label {
    display: none;
  }

  body:has(yc-section .cart .summary .box .subtotal .total-box) .deb-whatsapp-float,
  body:has(.single-product:not([data-prevent-sticky]) yc-product-info .buy-button .actions[data-sticky]) .deb-whatsapp-float,
  body:has(.single-product:not([data-prevent-sticky]) yc-product-info .buy-button > yc-product-form) .deb-whatsapp-float {
    bottom: calc(112px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .deb-whatsapp-float,
  .deb-whatsapp-float__label {
    transition: none;
  }
}
