#acs-root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; position: fixed; z-index: 999999; }

/* 1. Launcher */
.acs-launcher {
    width: 60px; height: 60px; border-radius: 50%; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s;
    background-size: cover; background-position: center;
}
.acs-launcher:hover { transform: scale(1.1); }
.acs-launcher svg { width: 32px; height: 32px; fill: white; }

/* 2. Window */
.acs-window {
    position: absolute; bottom: 80px; width: 380px; height: 600px;
    background: #f4f4f4; border-radius: 12px; box-shadow: 0 5px 40px rgba(0,0,0,0.2);
    display: none; flex-direction: column; overflow: hidden;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from {opacity:0; transform:translateY(20px);} to {opacity:1; transform:translateY(0);} }

/* 3. Home View */
.acs-home-header {
    background: var(--brand-color); color: white; padding: 30px 20px;
    border-top-left-radius: 12px; border-top-right-radius: 12px;
}
.acs-home-header h1 { margin: 0; font-size: 26px; font-weight: 700; }
.acs-home-header p { margin: 8px 0 0; opacity: 0.9; font-size: 15px; }

.acs-home-body { padding: 20px; }
.acs-card {
    background: white; border-radius: 8px; padding: 16px; margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    transition: transform 0.2s;
}
.acs-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.acs-card-title { font-weight: 600; font-size: 16px; color: #333; display: block; }
.acs-card-sub { font-size: 13px; color: #666; margin-top: 4px; display: block; }

/* 4. Chat View */
.acs-chat { display: none; flex-direction: column; height: 100%; background: white; }
.acs-chat-header {
    background: var(--brand-color); padding: 15px 20px; color: white;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.acs-back-btn { cursor: pointer; font-size: 20px; margin-right: 15px; }
.acs-agent-info { display: flex; align-items: center; }
.acs-agent-avatar {
    width: 36px; height: 36px; background: white; color: var(--brand-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: bold; margin-right: 10px; font-size: 16px;
}

.acs-messages { flex: 1; padding: 20px; overflow-y: auto; background: #fff; }
.acs-msg { max-width: 80%; padding: 12px 16px; margin-bottom: 10px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.acs-msg.bot { background: #f0f0f0; color: #333; border-bottom-left-radius: 2px; }
.acs-msg.user { background: var(--brand-color); color: white; margin-left: auto; border-bottom-right-radius: 2px; }

.acs-input-area { padding: 15px; border-top: 1px solid #eee; display: flex; align-items: center; }
.acs-input-area input { flex: 1; border: none; font-size: 15px; padding: 10px; outline: none; }
.acs-branding { text-align: center; font-size: 11px; color: #ccc; padding: 8px; background: #fff; }
.acs-branding a { color: #bbb; text-decoration: none; }