/* Delta WA Chat Builder - WhatsApp-like */
.delta-wa-chat{ position: relative; z-index: 999999; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

.dwac-fab{
  position: fixed;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-weight: 600;
  letter-spacing: .2px;
}
.dwac-fab:hover{ filter: brightness(.98); }
.dwac-fab:active{ transform: translateY(1px); }
.dwac-pos-right{ right: 22px; }
.dwac-pos-left{ left: 22px; }
.dwac-fab-icon{ font-size: 18px; line-height: 1; }
.dwac-fab-icon .dwac-icon-img{ width: 18px; height: 18px; display:block; }

.dwac-reset-icon img{ display:block; width:18px; height:18px; }
.dwac-fab-text{ font-size: 14px; }

.dwac-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 18px;
}
.dwac-modal.dwac-open{ display: flex; }

.dwac-window{
  width: min(390px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 24px));
  background: #0b141a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
}

.dwac-header{
  background: #202c33;
  color: #e9edef;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  position: relative;
}
.dwac-close{
  position: absolute;
  right: 10px;
  top: 8px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #e9edef;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dwac-close:hover{ background: transparent; filter: brightness(1.05); }

.dwac-avatar{
  width: 38px; height: 38px;
  border-radius: 999px;
  background: #111b21;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.08);
}
.dwac-avatar img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.dwac-headtxt{ display: flex; flex-direction: column; line-height: 1.1; }
.dwac-name{ font-weight: 700; font-size: 14px; }
.dwac-status{ font-size: 12px; opacity: .85; }

.dwac-body{
  flex: 1 1 auto;
  padding: 14px 12px;
  overflow: auto;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.04), rgba(255,255,255,0) 35%),
    #0b141a;
}
.dwac-msgrow{ display: flex; margin: 8px 0; }
.dwac-msgrow.bot{ justify-content: flex-start; }
.dwac-msgrow.user{ justify-content: flex-end; }

.dwac-bubble{
  max-width: 82%;
  padding: 10px 10px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.dwac-msgrow.bot .dwac-bubble{
  background: #202c33;
  color: #e9edef;
  border-top-left-radius: 6px;
}
.dwac-msgrow.user .dwac-bubble{
  background: #005c4b;
  color: #e9edef;
  border-top-right-radius: 6px;
}
.dwac-time{
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: .65;
  text-align: right;
}

.dwac-choices{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.dwac-choice{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #e9edef;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
}
.dwac-choice:hover{ background: rgba(255,255,255,.09); }

.dwac-typing{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dwac-dots{
  display: inline-flex;
  gap: 4px;
}
.dwac-dots i{
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(233,237,239,.65);
  display: inline-block;
  animation: dwacBlink 1.1s infinite ease-in-out;
}
.dwac-dots i:nth-child(2){ animation-delay: .15s; }
.dwac-dots i:nth-child(3){ animation-delay: .3s; }
@keyframes dwacBlink{
  0%, 80%, 100%{ opacity: .25; transform: translateY(0); }
  40%{ opacity: 1; transform: translateY(-2px); }
}

.dwac-footer{
  background: #111b21;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.dwac-reset{
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: #202c33;
  color: rgba(233,237,239,.9);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.dwac-reset:hover{ filter: brightness(1.05); }
.dwac-reset-icon{ display:inline-flex; align-items:center; justify-content:center; font-size: 16px; }
.dwac-reset-icon img{ width: 18px; height: 18px; display:block; }

.dwac-inputrow{
  display: flex;
  gap: 8px;
  align-items: center;
}
.dwac-input{
  flex: 1 1 auto;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: #202c33;
  color: #e9edef;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}
.dwac-send{
  border-radius: 999px;
  border: 0;
  background: #00a884;
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}
.dwac-send:disabled{ opacity: .55; cursor: not-allowed; }


.dwac-hidden{ display: none !important; }
.dwac-error{ color: #ffb4b4; font-size: 12.5px; margin-top: 8px; }
