.wa-widget,
.wa-widget * {
  box-sizing: border-box;
}

.wa-widget {
  --wa-brand: #25d366;
  --wa-accent: #80f52b;
  position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  font-family: "Manrope", sans-serif;
}

.wa-widget__dock {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.wa-widget__hint {
  padding: 10px 14px;
  border: 1px solid #303830;
  border-radius: 999px;
  background: #191d19;
  box-shadow: 0 12px 30px rgb(0 0 0 / 24%);
  color: #f7f9f7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.wa-widget.is-open .wa-widget__hint {
  opacity: 0;
  transform: translateX(8px);
}

.wa-widget__launcher {
  display: grid;
  width: 60px;
  height: 60px;
  flex: none;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 32%);
  border-radius: 50%;
  background: var(--wa-brand);
  box-shadow: 0 14px 38px rgb(0 0 0 / 35%), 0 4px 16px rgb(37 211 102 / 22%);
  color: #fff;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.wa-widget__launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgb(0 0 0 / 40%), 0 6px 20px rgb(37 211 102 / 28%);
}

.wa-widget__launcher:active {
  transform: translateY(0) scale(.97);
}

.wa-widget__launcher svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.wa-widget__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 15px);
  width: min(368px, calc(100vw - 32px));
  max-height: calc(100dvh - 112px - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  border: 1px solid #303830;
  border-radius: 22px;
  background: #151a16;
  box-shadow: 0 24px 70px rgb(0 0 0 / 50%), 0 3px 18px rgb(0 0 0 / 20%);
  color: #f7f9f7;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}

.wa-widget.is-open .wa-widget__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.wa-widget__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 20px;
  border-bottom: 1px solid #303830;
  background: #1c241d;
}

.wa-widget__brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border-radius: 13px;
  background: var(--wa-brand);
  color: #fff;
}

.wa-widget__brand-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.wa-widget__identity {
  min-width: 0;
  flex: 1;
}

.wa-widget__identity strong,
.wa-widget__identity span {
  display: block;
}

.wa-widget__identity strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.25;
}

.wa-widget__identity span {
  margin-top: 3px;
  color: #a4ada5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wa-widget__close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid #384238;
  border-radius: 11px;
  background: #232923;
  color: #cbd4cb;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.wa-widget__close:hover {
  background: #303830;
  color: #fff;
}

.wa-widget__close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.wa-widget__content {
  padding: 24px 22px 22px;
}

.wa-widget__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--wa-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.wa-widget__eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.wa-widget__content h2 {
  margin: 13px 0 10px;
  color: #f7f9f7;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 23px;
  line-height: 1.2;
}

.wa-widget__message {
  margin: 0;
  color: #c7d0c8;
  font-size: 14px;
  line-height: 1.7;
}

.wa-widget__cta {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--wa-accent);
  color: #080a09;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.wa-widget__cta:hover {
  background: #98ff43;
  color: #080a09;
  transform: translateY(-2px);
}

.wa-widget__cta svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
}

.wa-widget button:focus-visible,
.wa-widget a:focus-visible {
  outline: 3px solid #f7f9f7;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .wa-widget {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .wa-widget__hint {
    display: none;
  }

  .wa-widget__launcher {
    width: 56px;
    height: 56px;
  }

  .wa-widget__panel {
    bottom: calc(100% + 13px);
    width: min(354px, calc(100vw - 32px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-widget *,
  .wa-widget *::before,
  .wa-widget *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
