#uacb-root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    z-index: 999999;
    position: relative;
}
#uacb-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--uacb-accent, #2563eb);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    z-index: 999999;
}
#uacb-window {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 350px;
    max-width: calc(100vw - 48px);
    height: 460px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
}
#uacb-window.uacb-hidden {
    display: none !important;
}
#uacb-header {
    background: var(--uacb-accent, #2563eb);
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#uacb-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}
#uacb-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9fafb;
}
.uacb-msg {
    padding: 10px 14px;
    border-radius: 10px;
    max-width: 82%;
    font-size: 14px;
    line-height: 1.45;
    word-wrap: break-word;
}
.uacb-user {
    align-self: flex-end;
    background: var(--uacb-accent, #2563eb);
    color: #fff;
}
.uacb-bot {
    align-self: flex-start;
    background: #e5e7eb;
    color: #111827;
}
#uacb-form {
    display: flex;
    border-top: 1px solid #e5e7eb;
    padding: 8px;
    background: #fff;
}
#uacb-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
}
#uacb-send {
    margin-left: 8px;
    background: var(--uacb-accent, #2563eb);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 14px;
    font-weight: 600;
    cursor: pointer;
}
