.wa-widget {
  --wa-teal: #006b7b;
  position: fixed;
  inset-inline-end: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  color: #082c45;
}

.wa-widget button,
.wa-widget a {
  font: inherit;
  cursor: pointer;
}

.wa-widget .wa-launch,
.wa-widget .wa-close,
.wa-widget .wa-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--wa-teal);
  color: #fff;
}

.wa-widget .wa-launch {
  width: 56px;
  height: 56px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 20px #082c4540;
}

.wa-panel {
  position: absolute;
  inset-inline-end: 0;
  bottom: calc(100% + 12px);
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100dvh - 110px - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  background: #edf7f8;
  border: 1px solid #cce2e6;
  border-radius: 20px;
  box-shadow: 0 10px 32px #082c4533;
}

.wa-widget .wa-header {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--wa-teal);
  color: #fff;
}

.wa-header strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wa-widget .wa-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.wa-widget .wa-greeting {
  width: fit-content;
  margin: 16px 14px 12px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 14px;
}

.wa-widget .wa-start {
  min-height: 44px;
  margin: 0 14px 16px;
  padding: 8px 18px;
  border-radius: 24px;
  font-weight: 700;
  text-decoration: none;
}

a.floating[hidden],
.floating a[hidden] {
  display: none !important;
}

@media (max-width: 780px) {
  body:has(.wa-widget) div.floating {
    inset-inline-end: 82px;
    max-width: calc(100vw - 188px);
  }
}
