/* Gexto Manga Chatbot — estilos del widget de chat */

.gmc-floating-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.gmc-toggle-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #1f2937;
    color: #fff;
    border: none;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}

.gmc-toggle-btn:hover {
    transform: scale(1.06);
}

.gmc-floating-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 340px;
    max-width: 90vw;
}

.gmc-chat-window {
    display: flex;
    flex-direction: column;
    height: 460px;
    max-height: 70vh;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e5e7eb;
}

.gmc-chat-embedded .gmc-chat-window {
    height: 520px;
    max-width: 480px;
    margin: 0 auto;
}

.gmc-chat-header {
    background: #1f2937;
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 15px;
}

.gmc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9fafb;
}

.gmc-msg {
    max-width: 85%;
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-line;
    word-wrap: break-word;
}

.gmc-msg-bot {
    background: #eef2ff;
    color: #1f2937;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.gmc-msg-user {
    background: #1f2937;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.gmc-msg-option {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #c7d2fe;
    color: #1f2937;
    padding: 8px 10px;
    border-radius: 8px;
    margin-top: 6px;
    cursor: pointer;
    font-size: 13px;
}

.gmc-msg-option:hover {
    background: #eef2ff;
}

.gmc-chat-form {
    display: flex;
    border-top: 1px solid #e5e7eb;
    padding: 10px;
    gap: 8px;
    background: #fff;
}

.gmc-chat-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
}

.gmc-chat-input:focus {
    border-color: #1f2937;
}

.gmc-chat-send {
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    cursor: pointer;
}

.gmc-chat-send:hover {
    background: #111827;
}

.gmc-typing {
    font-style: italic;
    color: #6b7280;
    font-size: 13px;
    align-self: flex-start;
}

@media (max-width: 480px) {
    .gmc-floating-panel {
        width: 92vw;
        right: -6px;
    }
}
