.wa-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: 60px;
  height: 60px;
  border: 0;
  background: #1f6b4a;
  color: #f4fff8;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgb(20 24 22 / 0.28);
}

.wa-launcher:hover { background: #18563c; }

.wa-launcher[aria-expanded="true"] { background: #1a1a18; }

.wa-panel {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 80;
  width: min(380px, calc(100vw - 24px));
  height: min(560px, calc(100dvh - 120px));
  display: none;
  grid-template-rows: 56px 1fr auto;
  background: #ece5dd;
  border: 1px solid rgb(26 26 24 / 0.12);
  box-shadow: 0 18px 50px rgb(20 24 22 / 0.22);
}

.wa-panel.is-open { display: grid; }

.wa-head {
  background: #075e54;
  color: #f4fff8;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-weight: 600;
}

.wa-head img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  background: #f4f2ed;
}

.wa-head small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.85;
}

.wa-log {
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-msg {
  max-width: 82%;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.wa-msg.is-bot {
  align-self: flex-start;
  background: #fff;
  color: #1a1a18;
}

.wa-msg.is-me {
  align-self: flex-end;
  background: #dcf8c6;
  color: #1a1a18;
}

.wa-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 8px;
}

.wa-opts button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #075e54;
  background: #fff;
  color: #075e54;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.wa-opts button:hover { background: #e7f5f2; }

.wa-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #f0f0f0;
}

.wa-form input {
  flex: 1;
  min-height: 44px;
  border: 0;
  padding: 0 12px;
  font: inherit;
}

.wa-form button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: #1f6b4a;
  color: #f4fff8;
  cursor: pointer;
  font-weight: 600;
}

.wa-form button:hover { background: #18563c; }

.wa-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wa-extra {
  padding: 0 12px 10px;
}

.wa-extra a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 12px;
  background: #1f6b4a;
  color: #f4fff8;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 480px) {
  .wa-panel {
    right: 8px;
    left: 8px;
    width: auto;
    bottom: 84px;
  }
}
