/**
 * Dosbit WhatsApp Multi-Agent — Frontend Styles v1.0.2
 */
.db-whatsapp-container *,
.db-whatsapp-container *::before,
.db-whatsapp-container *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.db-whatsapp-container .dashicons,
.db-whatsapp-container .dashicons::before {
  font-family: dashicons !important;
}
.db-whatsapp-container {
  position: fixed;
  bottom: 24px;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.db-position-right { right: 24px; }
.db-position-left  { left: 24px; align-items: flex-start; }
@keyframes db-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.db-whatsapp-container.db-visible {
  animation: db-fade-up .4s cubic-bezier(.16, 1, .3, 1) both;
}
.db-card {
  width: 100%;
  max-width: 380px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: scale(.93) translateY(10px);
  transform-origin: bottom right;
  pointer-events: none;
  visibility: hidden;
  max-height: 0;
  transition: opacity .25s cubic-bezier(.4, 0, .2, 1),
              transform .25s cubic-bezier(.4, 0, .2, 1),
              visibility .25s,
              max-height .25s cubic-bezier(.4, 0, .2, 1);
}
.db-position-left .db-card {
  transform-origin: bottom left;
}
.db-card.db-card--open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
  visibility: visible;
  max-height: 680px;
}
.db-header {
  background-color: #075e54;
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.db-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.db-header-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.db-header-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  letter-spacing: .1px;
}
.db-header-close {
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity .15s, background .15s;
  color: white;
}
.db-header-close:hover,
.db-header-close:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, .15);
  outline: none;
}
.db-header-close .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
  line-height: 1;
  color: white;
}
.db-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: 520px;
  scrollbar-width: thin;
  scrollbar-color: #d0d3d6 transparent;
}
.db-body::-webkit-scrollbar       { width: 4px; }
.db-body::-webkit-scrollbar-track { background: transparent; }
.db-body::-webkit-scrollbar-thumb { background: #d0d3d6; border-radius: 4px; }
.db-bubble-welcome {
  background-color: #e9edef;
  padding: 12px 16px;
  border-radius: 14px;
  border-top-left-radius: 2px;
  color: #4a4a4a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.db-bubble-input {
  background-color: #e9edef;
  padding: 16px;
  border-radius: 18px;
  border-top-right-radius: 2px;
  min-height: 80px;
}
.db-bubble-input textarea {
  width: 100%;
  border: none !important;
  background: transparent;
  resize: none;
  outline: none !important;
  box-shadow: none !important;
  color: #111b21;
  font-size: 15px;
  line-height: 1.5;
  min-height: 48px;
  max-height: 120px;
  overflow-y: auto;
  display: block;
}
.db-bubble-input textarea::placeholder {
  color: #667781;
}
.db-bubble-input textarea:focus {
  outline: none !important;
  box-shadow: none !important;
}
.db-instruction {
  text-align: center;
  color: #8696a0;
  font-size: 12px;
  font-weight: 600;
  margin: -4px 0 4px;
  line-height: 1.4;
  transition: color .2s;
}
.db-agents-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.db-agent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  text-align: left;
}
.db-agent-item:hover,
.db-agent-item:focus-visible,
.db-agent-item--active {
  background: rgba(37, 211, 102, .08);
}
.db-agent-item:focus-visible {
  box-shadow: 0 0 0 2px #25D366;
}
.db-card--open .db-agent-item {
  animation: db-agent-in .28s cubic-bezier(.16, 1, .3, 1) both;
}
.db-card--open .db-agent-item:nth-child(1) { animation-delay: .05s; }
.db-card--open .db-agent-item:nth-child(2) { animation-delay: .10s; }
.db-card--open .db-agent-item:nth-child(3) { animation-delay: .15s; }
.db-card--open .db-agent-item:nth-child(4) { animation-delay: .20s; }
.db-card--open .db-agent-item:nth-child(5) { animation-delay: .25s; }
@keyframes db-agent-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.db-agent-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0;
}
.db-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.db-avatar .db-avatar-icon {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}
.db-avatar--photo .db-avatar-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.db-agent-text {
  min-width: 0;
}
.db-agent-text h4 {
  font-size: 17px;
  color: #111b21;
  margin-bottom: 2px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.db-agent-text p {
  font-size: 14px;
  color: #8696a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.db-send-btn {
  width: 40px;
  height: 40px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .12);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, transform .15s;
  padding: 0;
}
.db-send-btn:hover    { background: #128C7E; }
.db-send-btn:active   { transform: scale(.92); }
.db-agent-item:hover .db-send-btn { transform: scale(1.08); }
.db-send-btn img {
  width: 20px;
  height: 20px;
  display: block;
}
.db-fab-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .42);
  transition: transform .2s, background .2s, box-shadow .2s;
  padding: 0;
  flex-shrink: 0;
}
.db-fab-btn:hover,
.db-fab-btn:focus-visible {
  transform: scale(1.08);
  background: #128C7E;
  box-shadow: 0 8px 28px rgba(37, 211, 102, .55);
  outline: none;
}
.db-fab-btn:active { transform: scale(.95); }
.db-fab-icon {
  width: 34px;
  height: 34px;
  display: block;
  transition: transform .2s;
}
.db-fab-btn:hover .db-fab-icon { transform: rotate(-8deg) scale(1.05); }
.db-fab-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid #25D366;
  opacity: 0;
  pointer-events: none;
  animation: db-fab-pulse 2.8s ease-out infinite;
}
@keyframes db-fab-pulse {
  0%        { transform: scale(.85); opacity: .65; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}
.db-fab-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f44336;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  pointer-events: none;
}
.db-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
@media (max-width: 480px) {
  .db-whatsapp-container { bottom: 16px; }
  .db-position-right { right: 16px; }
  .db-position-left  { left: 16px; }
  .db-card { max-width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .db-whatsapp-container.db-visible,
  .db-card--open .db-agent-item,
  .db-fab-pulse { animation: none; }
  .db-card,
  .db-fab-btn,
  .db-send-btn,
  .db-header-close,
  .db-agent-item { transition: none; }
}