.vcai-widget {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    max-width: 860px;
    margin: 24px auto;
    padding: 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    font-family: inherit;
}

.vcai-header {
    background: linear-gradient(135deg, #1e40af, #2563eb, #38bdf8);
    color: #ffffff;
    padding: 22px 24px;
}

.vcai-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.vcai-subtitle {
    font-size: 14px;
    opacity: 0.95;
    margin-top: 6px;
}

.vcai-messages {
    padding: 20px;
    background: #f8fafc;
    min-height: 180px;
    max-height: 500px;
    overflow-y: auto;
}

.vcai-message {
    padding: 13px 15px;
    border-radius: 14px;
    margin-bottom: 12px;
    line-height: 1.55;
    font-size: 15px;
    white-space: pre-wrap;
}

.vcai-bot {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    margin-right: 40px;
}

.vcai-user {
    background: #2563eb;
    color: #ffffff;
    margin-left: 40px;
}

.vcai-loading {
    opacity: 0.75;
    font-style: italic;
}

.vcai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 20px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.vcai-suggestion {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 8px 13px;
    cursor: pointer;
    font-size: 13px;
}

.vcai-suggestion:hover {
    background: #dbeafe;
}

.vcai-form {
    padding: 18px 20px 20px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.vcai-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    resize: vertical;
    min-height: 88px;
    outline: none;
}

.vcai-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.vcai-submit {
    margin-top: 12px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 11px 18px;
    font-weight: 700;
    cursor: pointer;
}

.vcai-submit:hover {
    background: #1d4ed8;
}

.vcai-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.vcai-footnote {
    padding: 0 20px 18px;
    color: #64748b;
    font-size: 12px;
    background: #ffffff;
}

@media (max-width: 640px) {
    .vcai-widget {
        border-radius: 14px;
        margin: 16px 0;
    }

    .vcai-header {
        padding: 18px;
    }

    .vcai-messages {
        padding: 16px;
    }

    .vcai-bot {
        margin-right: 0;
    }

    .vcai-user {
        margin-left: 0;
    }
}