:root {
    --ax-cb-primary: #0066cc;
    --ax-cb-primary-hover: #0052a3;
    --ax-cb-secondary: #e6f0fa;
    --ax-cb-bg-light: #f8f9fa;
    --ax-cb-text-main: #2c3e50;
    --ax-cb-text-light: #6c757d;
    --ax-cb-white: #ffffff;
    --ax-cb-shadow: 0 10px 30px rgba(0,0,0,0.15);
    --ax-cb-shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
    --ax-cb-border: #e9ecef;
    --ax-cb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ax-cb-wrapper * { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--ax-cb-font); }
.hidden { display: none !important; }

.ax-cb-launcher {
    position: fixed; bottom: 25px; left: 20px; width: 60px; height: 60px;
    background-color: var(--ax-cb-primary); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: white; cursor: pointer;
    box-shadow: var(--ax-cb-shadow); z-index: 10000; border: none; transition: transform 0.3s;
}
.ax-cb-launcher:hover { transform: scale(1.1); }
.ax-cb-launcher svg { width: 28px; height: 28px; fill: currentColor; }

.ax-cb-container {
    position: fixed; bottom: 95px; left: 20px; width: 380px; height: 600px;
    max-height: calc(100vh - 120px); background-color: var(--ax-cb-white);
    border-radius: 16px; box-shadow: var(--ax-cb-shadow); display: flex;
    flex-direction: column; z-index: 10000; overflow: hidden;
}

.ax-cb-header {
    background-color: var(--ax-cb-primary); color: white; padding: 15px 20px;
    display: flex; align-items: center; gap: 12px;
}
.ax-cb-header-avatar {
    width: 40px; height: 40px; background-color: rgba(255,255,255,0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ax-cb-white);
}
.ax-cb-header-title h3 { font-size: 16px; font-weight: 600; }
.ax-cb-header-title p { font-size: 12px; opacity: 0.9; }

.ax-cb-disclaimer { background-color: #f1f3f5; padding: 8px 12px; font-size: 11px; text-align: center; border-bottom: 1px solid var(--ax-cb-border); }

.ax-cb-body { flex: 1; padding: 20px; overflow-y: auto; background-color: var(--ax-cb-bg-light); display: flex; flex-direction: column; gap: 15px; }

.ax-cb-msg { max-width: 85%; padding: 12px 16px; border-radius: 18px; font-size: 14px; line-height: 1.5; animation: axFadeIn 0.3s ease; }
@keyframes axFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.ax-cb-msg-bot { align-self: flex-start; background-color: var(--ax-cb-white); box-shadow: var(--ax-cb-shadow-sm); border-bottom-left-radius: 4px; }
.ax-cb-msg-user { align-self: flex-end; background-color: var(--ax-cb-primary); color: white; border-bottom-right-radius: 4px; }

.ax-cb-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ax-cb-btn {
    background-color: var(--ax-cb-white); border: 1px solid var(--ax-cb-primary);
    color: var(--ax-cb-primary); padding: 8px 14px; border-radius: 20px; font-size: 13px;
    cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.2s;
}
.ax-cb-btn:hover { background-color: var(--ax-cb-primary); color: white; }

.ax-cb-footer { padding: 15px; background: white; border-top: 1px solid var(--ax-cb-border); }
.ax-cb-input-group { display: flex; background: var(--ax-cb-bg-light); border-radius: 24px; padding: 5px 15px; border: 1px solid var(--ax-cb-border); }
.ax-cb-input { flex: 1; border: none; background: transparent; padding: 10px 0; outline: none; }
.ax-cb-send { background: none; border: none; color: var(--ax-cb-primary); cursor: pointer; }

.ax-cb-typing { display: flex; gap: 4px; padding: 10px; }
.ax-cb-dot { width: 6px; height: 6px; background: #ccc; border-radius: 50%; animation: bounce 1.4s infinite ease-in-out; }
.ax-cb-dot:nth-child(1) { animation-delay: -0.32s; }
.ax-cb-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

@media (max-width: 480px) { .ax-cb-container { width: calc(100% - 40px); height: 80vh; left: 20px; bottom: 85px; } }