.yl-whatsapp-launcher {
  position: fixed;
  right: calc(22px + env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 1500;
  display: grid;
  width: 56px;
  height: 56px;
  padding: 0;
  place-items: center;
  border: 1px solid #178a43;
  border-radius: 50%;
  background: #25d366;
  color: #042513;
  box-shadow: 0 6px 20px #01040b66;
  cursor: pointer;
}

.yl-whatsapp-launcher:hover {
  background: #46e580;
}

body:has(.cc-modal-overlay, .kvc-panel.kvc-on, [aria-modal="true"], .nav-drawer.open, .blog-nav-drawer:not([hidden]), .nav-links.active) .yl-whatsapp-launcher {
  display: none;
}

@media (max-width: 768px) {
  .yl-whatsapp-launcher {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  body:has(.cc-banner) .yl-whatsapp-launcher {
    display: none;
  }
}

.yl-whatsapp-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: clamp(18px, 5vw, 28px);
  overflow: auto;
  border: 1px solid #3a586f;
  border-radius: 18px;
  background: #0d1c33;
  color: #f7fbff;
  box-shadow: 0 24px 64px #01040b66;
}

.yl-whatsapp-dialog::backdrop {
  background: #01040bbf;
}

.yl-whatsapp-dialog h2 {
  margin: 0 0 8px;
  color: inherit;
  font-size: 24px;
  line-height: 1.2;
}

.yl-whatsapp-dialog p {
  margin: 0;
  color: #d3deeb;
  font-size: 15px;
  line-height: 1.55;
}

.yl-whatsapp-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 164px), 1fr));
  gap: 12px;
  margin-top: 22px;
}

.yl-whatsapp-actions button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #758ba2;
  border-radius: 10px;
  background: transparent;
  color: #f7fbff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.yl-whatsapp-actions button:hover {
  background: #1f3753;
}

.yl-whatsapp-actions [data-whatsapp-confirm] {
  border-color: #25d366;
  background: #25d366;
  color: #042513;
}

.yl-whatsapp-actions [data-whatsapp-confirm]:hover {
  background: #46e580;
}

.yl-whatsapp-launcher:focus-visible,
.yl-whatsapp-actions button:focus-visible {
  outline: 2px solid #7debff;
  outline-offset: 3px;
}
