.gc-ai-chat-widget {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 99999;
    font-family: Arial, sans-serif;
}

.gc-ai-chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: #111;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.gc-ai-chat-window {
    display: none;
    position: absolute;
    left: 0;
    bottom: 72px;
    width: 360px;
    height: 520px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    border: 1px solid #e5e5e5;
}

.gc-ai-chat-window-open {
    display: flex;
    flex-direction: column;
}

.gc-ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    color: #fff;
    padding: 14px 16px;
}

.gc-ai-chat-header span {
    display: block;
    font-size: 12px;
    opacity: 0.75;
    margin-top: 2px;
}

.gc-ai-chat-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.gc-ai-chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    background: #f7f7f7;
}

.gc-ai-chat-message {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 14px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.gc-ai-chat-message-bot {
    background: #fff;
    color: #111;
    border: 1px solid #e5e5e5;
    margin-right: auto;
}

.gc-ai-chat-message-user {
    background: #111;
    color: #fff;
    margin-left: auto;
}

.gc-ai-chat-message-loading {
    background: #fff;
    color: #777;
    border: 1px solid #e5e5e5;
    margin-right: auto;
    font-style: italic;
}

.gc-ai-chat-message-error {
    background: #ffecec;
    color: #9b0000;
    border: 1px solid #ffb8b8;
    margin-right: auto;
}

.gc-ai-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
}

.gc-ai-chat-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}

.gc-ai-chat-form input:focus {
    border-color: #111;
}

.gc-ai-chat-form button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    border: none;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.gc-ai-chat-form button:disabled,
.gc-ai-chat-form input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .gc-ai-chat-widget {
        left: 14px;
        bottom: 14px;
    }

    .gc-ai-chat-window {
        width: calc(100vw - 28px);
        height: 70vh;
        left: 0;
        bottom: 72px;
    }
}
