.wlcf-root {
  --wlcf-color: #25D366;
  position: fixed;
  z-index: 99999;
  bottom: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17211d;
}
.wlcf-right { right: 22px; }
.wlcf-left { left: 22px; }
.wlcf-button {
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: var(--wlcf-color);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.wlcf-size-small .wlcf-button { width: 52px; height: 52px; }
.wlcf-size-large .wlcf-button { width: 72px; height: 72px; }
.wlcf-button svg { width: 36px; height: 36px; }
.wlcf-button img { width: 60%; height: 60%; object-fit: contain; }
.wlcf-popup {
  position: absolute;
  bottom: 78px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 120px));
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
  overflow: hidden;
  display: none;
}
.wlcf-right .wlcf-popup { right: 0; }
.wlcf-left .wlcf-popup { left: 0; }
.wlcf-popup[aria-hidden="false"] { display: flex; flex-direction: column; }
.wlcf-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--wlcf-color);
  color: #fff;
}
.wlcf-header strong { display: block; font-size: 15px; }
.wlcf-header span { display: block; font-size: 12px; opacity: .88; }
.wlcf-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  display: grid;
  place-items: center;
  font-weight: 700;
  overflow: hidden;
  flex: 0 0 auto;
}
.wlcf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wlcf-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.wlcf-messages {
  padding: 14px;
  background: #eef7f1;
  overflow-y: auto;
  flex: 1 1 auto;
}
.wlcf-bubble {
  max-width: 86%;
  padding: 10px 12px;
  margin: 0 0 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.42;
  white-space: pre-wrap;
}
.wlcf-bubble.bot { background: #fff; border-top-left-radius: 2px; }
.wlcf-bubble.user {
  background: #dcf8c6;
  border-top-right-radius: 2px;
  margin-left: auto;
}
.wlcf-input-area {
  padding: 12px;
  background: #fff;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.wlcf-input-area input:not([type="checkbox"]),
.wlcf-input-area select {
  min-width: 0;
  flex: 1 1 180px;
  height: 40px;
  border: 1px solid #d7ded9;
  border-radius: 6px;
  padding: 0 10px;
}
.wlcf-send,
.wlcf-choices button {
  border: 0;
  border-radius: 6px;
  background: var(--wlcf-color);
  color: #fff;
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
}
.wlcf-choices,
.wlcf-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.wlcf-multi label,
.wlcf-consent {
  width: 100%;
  font-size: 13px;
}
.wlcf-dark .wlcf-popup,
.wlcf-dark .wlcf-input-area { background: #17211d; color: #f6fff9; }
.wlcf-dark .wlcf-messages { background: #101713; }
.wlcf-dark .wlcf-bubble.bot { background: #26332d; }
.wlcf-dark .wlcf-bubble.user { background: #1f6d43; color: #fff; }
@media (max-width: 480px) {
  .wlcf-root { right: 16px; left: 16px; bottom: 16px; }
  .wlcf-left, .wlcf-right { right: 16px; left: 16px; }
  .wlcf-button { margin-left: auto; }
  .wlcf-left .wlcf-button { margin-left: 0; }
  .wlcf-popup { width: 100%; bottom: 76px; }
}
