.layout-main-wrapper + .site-footer:has(.block-whatsapp-button) {
  z-index: 20;
}

.block-whatsapp-button {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 10;
  margin: 0 !important;
  width: fit-content !important;
}

.block-whatsapp-button .contextual {
  top: -20px;
}

.block-whatsapp-button .open .contextual-links {
  display: flex;
}

.whatsapp-button__image {
  height: auto;
}

.whatsapp-button__image,
.whatsapp-button__bubble {
  transition: 0.3s ease-out all;
}

.whatsapp-button__link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  text-decoration: none;
}

.whatsapp-button__link:is(:hover,
:focus) img {
  transform: scale(1.2);
}

.whatsapp-button__bubble,
.whatsapp-button__bubble::after {
  background-color: rgba(247, 247, 247, 0.98);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.whatsapp-button__bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .5rem 1rem;
  margin-right: 1.25rem;
  font-weight: 600;
  font-size: .75rem;
  line-height: 1.5rem;
  border-radius: 8px 0 0 8px;
  overflow: visible;
  color: #333;
}

.whatsapp-button__bubble::after {
  --wb__arrow-width: 1.3rem;
  content: '';
  position: absolute;
  top: 0;
  right: calc(var(--wb__arrow-width) * -1);
  width: var(--wb__arrow-width);
  height: 100%;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

@media (max-width: 768px) {
  .whatsapp-button__bubble {
    padding: .25rem .5rem;
    font-size: .65rem;
    margin-right: .75rem;
  }

  .whatsapp-button__bubble::after {
    --wb__arrow-width: 1rem;
  }
}
