/* Chat Widget CSS */
#acs-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#acs-chat-bubble {
    width: 60px;
    height: 60px;
    background-color: #0073aa;
    /* WordPress Blue */
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

#acs-chat-bubble:hover {
    transform: scale(1.1);
}

#acs-chat-bubble .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

#acs-chat-window {
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
    transition: all 0.3s ease;
}

#acs-chat-header {
    background-color: #0073aa;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#acs-chat-header h3 {
    margin: 0;
    font-size: 16px;
    color: white;
}

.acs-header-actions {
    display: flex;
    align-items: center;
}

#acs-close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    margin-left: 10px;
}

#acs-support-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px 10px;
    margin-right: 10px;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 500;
}

#acs-support-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

#acs-support-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
    margin-right: 5px;
}

#acs-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.acs-message {
    margin-bottom: 12px;
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.acs-user-msg {
    background-color: #0073aa;
    color: white;
    align-self: flex-end;
    /* Note: Requires parent flex column and align-items? No, messages div is block. Need flex or specific float/margin */
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.acs-ai-msg {
    background-color: #e5e5ea;
    color: black;
    align-self: flex-start;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.acs-support-msg {
    background-color: #ffeeba;
    color: #856404;
    align-self: flex-start;
    margin-right: auto;
    border-bottom-left-radius: 4px;
    border: 1px solid #ffeeba;
}

/* Avatar styling if used */
.acs-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

#acs-chat-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    background-color: white;
    display: flex;
}

#acs-user-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    outline: none;
}

#acs-send-btn {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 20px;
    cursor: pointer;
}

#acs-send-btn:hover {
    background-color: #005177;
}

/* Predefined options */
.acs-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.acs-option-btn {
    background-color: white;
    border: 1px solid #0073aa;
    color: #0073aa;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.acs-option-btn:hover {
    background-color: #eff6ff;
}

/* Loader */
.acs-typing-indicator {
    padding: 10px;
    font-style: italic;
    color: #888;
    font-size: 12px;
}