.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 400px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card-hover);
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75em;
}

.chat-msg {
    padding: 0.4em 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85em;
    overflow-wrap: anywhere;
}

.chat-msg:last-child {
    border-bottom: none;
}

.chat-input {
    display: flex;
    padding: 0.5em;
    gap: 0.5em;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-alt);
}

.chat-input input {
    flex: 1;
    padding: 0.5em;
    font-size: 0.85em;
}

.chat-input button {
    padding: 0.5em 1em;
    font-family: inherit;
    font-size: 0.85em;
    font-weight: 500;
    color: white;
    background: linear-gradient(to right, var(--color-primary-light), var(--color-primary-dark));
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
