/* ── Floating WhatsApp chat ─────────────────────────────────────────── */
.nbwa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99990;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.nbwa .nbwa-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(9, 79, 47, .55), 0 2px 6px rgba(0, 0, 0, .16);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nbwa .nbwa-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(9, 79, 47, .6), 0 3px 8px rgba(0, 0, 0, .18); }
.nbwa .nbwa-fab:active { transform: translateY(0); }
.nbwa .nbwa-fab:focus-visible { outline: 3px solid #aecf45; outline-offset: 3px; }
.nbwa .nbwa-fab svg { width: 30px; height: 30px; display: block; }
.nbwa .nbwa-fab::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .45);
  animation: nbwa-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes nbwa-pulse {
  0% { transform: scale(.85); opacity: .8; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* backdrop */
.nbwa-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99991;
  background: rgba(8, 28, 20, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.nbwa.is-open .nbwa-backdrop { opacity: 1; visibility: visible; }

/* side panel */
.nbwa-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99992;
  display: flex;
  flex-direction: column;
  width: min(400px, 100vw);
  height: 100dvh;
  background: #fff;
  color: #0e1720;
  box-shadow: -20px 0 60px -30px rgba(8, 28, 20, .55);
  transform: translateX(105%);
  transition: transform .26s cubic-bezier(.32, .72, 0, 1);
}
.nbwa.is-open .nbwa-panel { transform: translateX(0); }

.nbwa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, #0b3d2c, #10543c);
  color: #fff;
  flex-shrink: 0;
}
.nbwa-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(174, 207, 69, .18);
  border: 1px solid rgba(174, 207, 69, .45);
  color: #aecf45;
  flex-shrink: 0;
}
.nbwa-avatar svg { width: 22px; height: 22px; }
.nbwa-head-txt { min-width: 0; }
.nbwa-head-txt b { display: block; font-size: 14.5px; letter-spacing: -.01em; }
.nbwa-head-txt small { display: block; margin-top: 2px; font-size: 11px; color: rgba(255, 255, 255, .72); }
.nbwa .nbwa-close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.nbwa .nbwa-close:hover { background: rgba(255, 255, 255, .2); }
.nbwa .nbwa-close:focus-visible { outline: 2px solid #aecf45; outline-offset: 2px; }

.nbwa-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.nbwa-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
  overflow-y: auto;
  flex: 1;
}
.nbwa-hello {
  margin: 0 0 2px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #5b6b62;
}
.nbwa-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7c8b82;
}
.nbwa .nbwa-input {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  padding: 12px 13px;
  border: 1px solid #dfe6dd;
  border-radius: 12px;
  background: #f8faf6;
  color: #0e1720;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.nbwa .nbwa-input::placeholder { color: #9aa89f; }
.nbwa .nbwa-input:focus {
  outline: none;
  background: #fff;
  border-color: #10543c;
  box-shadow: 0 0 0 4px rgba(16, 84, 60, .1);
}
.nbwa-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
  color: #8b9a90;
}
.nbwa-count { font-variant-numeric: tabular-nums; }

.nbwa-foot {
  padding: 0 18px 18px;
  flex-shrink: 0;
}
.nbwa .nbwa-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #0b3d2c;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px -16px rgba(11, 61, 44, .8);
  transition: background .15s ease, transform .15s ease;
}
.nbwa .nbwa-send:hover { background: #10543c; }
.nbwa .nbwa-send:active { transform: translateY(1px); }
.nbwa .nbwa-send:focus-visible { outline: 2px solid #aecf45; outline-offset: 2px; }
.nbwa .nbwa-send[disabled] { opacity: .65; cursor: default; }
.nbwa .nbwa-send svg { width: 17px; height: 17px; flex-shrink: 0; }
.nbwa-privacy {
  margin: 10px 0 0;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.5;
  color: #8b9a90;
}
.nbwa-privacy a { color: #147a58; text-decoration: underline; text-underline-offset: 2px; }

.nbwa-lock { overflow: hidden; }

@media (max-width: 560px) {
  .nbwa { right: 16px; bottom: 16px; }
  .nbwa .nbwa-fab { width: 54px; height: 54px; }
  .nbwa .nbwa-fab svg { width: 27px; height: 27px; }
  .nbwa-panel {
    top: auto;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: 88dvh;
    border-radius: 20px 20px 0 0;
    transform: translateY(105%);
    box-shadow: 0 -20px 60px -30px rgba(8, 28, 20, .55);
  }
  .nbwa.is-open .nbwa-panel { transform: translateY(0); }
  .nbwa-head { border-radius: 20px 20px 0 0; padding: 14px 16px; }
  .nbwa-body { padding: 16px; }
  .nbwa-foot { padding: 0 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .nbwa .nbwa-fab::after { animation: none; }
  .nbwa-panel,
  .nbwa-backdrop { transition: none; }
}
