/* =========================================================
   GG AI Chat — Stylesheet
   Description: Floating ChatGPT-style widget for WordPress
   ========================================================= */

   #gg-ai-button {
    position: fixed;
    bottom: 20px;
    right: 25px;
    background: var(--gg-ai-chatbot-plugin-accent);  
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
    font-family: var(--gg-body-font);
}

#gg-ai-button:hover {
    background: var(--gg-ai-chatbot-plugin-accent-hover);  
}

/* ---------------------------------------------------------
   Chat Box Container
   --------------------------------------------------------- */
#gg-ai-box {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 320px;
    max-height: 450px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 9999;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.gg-chat-header {
    background: var(--gg-ai-chatbot-plugin-accent);    
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--gg-body-font);
}

#gg-close {
    cursor: pointer;
}

/* ---------------------------------------------------------
   Messages
   --------------------------------------------------------- */
.gg-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    font-family: var(--gg-body-font);
}

.msg {
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    line-height: 1.4;
}

.msg.user {
    background: #E7F3FF;
    align-self: flex-end;
}

.msg.bot {
    background: #F7F7F7;
}

.msg.error {
    background: #FFDADA;
    color: #900;
}

/* ---------------------------------------------------------
   Input Area
   --------------------------------------------------------- */
.gg-chat-input {
    display: flex;
    border-top: 1px solid #ddd;
}

.gg-chat-input input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    outline: none;
    font-family: var(--gg-body-font);
}

.gg-chat-input button {
    background: var(--gg-ai-chatbot-plugin-accent);
    color: #fff;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    transition: background 0.3s;
    font-family: var(--gg-body-font);
}

.gg-chat-input button:hover {
    background: var(--gg-ai-chatbot-plugin-accent-hover);
}
