.floating-wa {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 19px 6px 6px;
  border: 0;
  background: #25d366;
  color: #102d1d;
  box-shadow: 0 8px 26px #10193538;
  transition: transform .24s ease, box-shadow .24s ease;
}

.floating-wa:hover, .floating-wa:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px #10193550;
}

.floating-wa svg {
  display: block;
  width: 48px;
  height: 48px;
  padding: 10px;
  color: #087e43;
  background: #fff;
  border: 2px solid #c6f2d5;
  border-radius: 50%;
  flex-shrink: 0;
}

.wa-icon {
  position: relative;
  flex: none;
}

.wa-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  body:not(.paused) .wa-icon::after {
    animation: wa-icon-pulse 2s ease-out infinite;
  }
}

@keyframes wa-icon-pulse {
  from { transform: scale(1); opacity: .9; }
  to { transform: scale(1.45); opacity: 0; }
}

.floating-wa .wa-caption, .floating-wa:hover .wa-caption {
  display: grid;
  gap: 1px;
  max-width: none;
  line-height: 1.18;
  white-space: nowrap;
}

.wa-caption small {
  font: 700 10px/1.2 'Source Code Pro', monospace;
  letter-spacing: .09em;
}

.wa-caption strong { font: 700 15px/1.2 Ubuntu, sans-serif; }

body:has(.wa-dialog[open]) { overflow: hidden; }
.wa-dialog {
  position: fixed;
  width: min(510px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: clamp(19px, 5vw, 29px);
  border: 0;
  border-top: 5px solid #25d366;
  border-radius: 14px;
  background: #20294c;
  color: #f5f2ea;
  box-shadow: 0 24px 65px #090d25a0;
  overflow: auto;
  overscroll-behavior: contain;
}

.wa-dialog::backdrop { background: #101327b8; backdrop-filter: blur(4px); }
.wa-close {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 29px;
  cursor: pointer;
}

.wa-kicker { margin: 0 30px 9px 0; color: #ff8e75; font: 700 11px/1.4 'Source Code Pro', monospace; letter-spacing: .09em; }
.wa-dialog h2 { margin: 0 20px 9px 0; font-size: clamp(25px, 5vw, 32px); letter-spacing: -.04em; }
.wa-intro { margin: 0 0 16px; opacity: .9; font-size: 14px; }
.wa-form { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.wa-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wa-form label { display: grid; gap: 5px; margin: 0; font-size: 13px; }
.wa-form :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 9px 10px;
  border: 1px solid #f5f2ea65;
  border-radius: 5px;
  background: #f5f2ea0c;
  color: inherit;
  font-size: 16px;
}
.wa-form select option { color: #20294c; background: #f5f2ea; }
.wa-submit { min-height: 48px; border: 0; border-radius: 6px; background: #25d366; color: #102d1d; font: 700 15px Ubuntu, sans-serif; cursor: pointer; }
.wa-submit:hover { background: #55e485; }
.wa-note { margin: 0; opacity: .9; font-size: 12px; line-height: 1.4; }
.wa-note a { text-decoration: underline; }

@media (max-width: 760px) {
  .floating-wa { padding: 5px 13px 5px 5px; right: max(12px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .floating-wa svg { width: 40px; height: 40px; padding: 8px; }
  .wa-caption strong { font-size: 13px; }
}
@media (max-width: 390px) {
  .wa-fields { grid-template-columns: 1fr; }
  .floating-wa { gap: 7px; padding-right: 10px; }
  .wa-caption strong { font-size: 12px; }
}
