#wp-aca-chat-root {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: auto;
    z-index: 99999;
}

.aca-chat {
    width: 320px;
    max-height: 50vh;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(0,0,0,.18);
    font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.aca-chat-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-height: 9999px;
    opacity: 1;
    transition: max-height .25s ease, opacity 0.2s ease;
    will-change: max-height, opacity;
}

.aca-chat.is-minimized .aca-chat-content {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.aca-chat.is-minimized {
    min-height: 40px;
    max-height: 40px;
    opacity: 0.1;
    transition: opacity 0.2s ease, max-height 0.2s ease;
}
.aca-chat.is-minimized:hover { opacity: 0.8; }



.aca-chat-header {
    padding: 10px 12px;
    background: #111;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aca-chat-log {
    padding: 10px;
    flex: 1;
    min-height: 100px;
    overflow-y: auto;
    background: #f7f7f7;
}

.aca-chat-row {
    display: flex;
    margin: 6px 0;
}

.aca-chat-row.user { justify-content: flex-end; }

.aca-chat-bubble {
    max-width: 75%;
    padding: 8px 10px;
    border-radius: 12px;
    background: #e9eefb;
}

.aca-chat-row.user .aca-chat-bubble {background: #d1f1d3; }

.aca-chat-form {
    display: flex;
    border-top: 1px solid #e9e9e9;
}

.aca-chat-input {
    flex: 1;
    padding: 10px;
    border: 0;
    outline: none;
}

.aca-chat-send {
    border: 0;
    padding: 0 14px;
    cursor: pointer;
    background: #111;
    color: #fff;
    font-weight: 600;
}

.aca-chat-minimize {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

.aca-chat-minimize:hover { opacity: .85; }

.aca-chat-bubble.typing {
  background: #e9eefb;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.aca-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7180b9;
  opacity: 0.6;
  animation: aca-bounce 1s infinite ease-in-out;
}

.aca-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.aca-typing-dot:nth-child(3) { animation-delay: 0.30s; }

@keyframes aca-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}