.wvm-cd-chat-root {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wvm-cd-chat-launcher {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
}

.wvm-cd-chat-panel {
    width: min(360px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 100px));
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
}

.wvm-cd-chat-panel[hidden] {
    display: none;
}

.wvm-cd-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.wvm-cd-chat-title {
    font-size: 15px;
}

.wvm-cd-chat-close {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.wvm-cd-chat-messages {
    max-height: 360px;
    overflow-y: auto;
    padding: 14px;
    background: #f8fafc;
}

.wvm-cd-chat-message {
    max-width: 88%;
    margin: 0 0 10px;
    padding: 9px 11px;
    border-radius: 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.45;
}

.wvm-cd-chat-message-assistant {
    margin-right: auto;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.wvm-cd-chat-message-visitor {
    margin-left: auto;
    background: #111827;
    color: #fff;
}

.wvm-cd-chat-body {
    padding: 12px 14px;
}

.wvm-cd-chat-status {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.wvm-cd-chat-composer,
.wvm-cd-chat-qualification {
    display: grid;
    gap: 10px;
}

.wvm-cd-chat-question {
    display: grid;
    gap: 5px;
}

.wvm-cd-chat-question-label {
    font-size: 12px;
    font-weight: 600;
}

.wvm-cd-chat-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 9px 10px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 14px;
}

textarea.wvm-cd-chat-input {
    resize: vertical;
}

.wvm-cd-chat-send {
    justify-self: end;
    border: 0;
    border-radius: 9px;
    padding: 9px 14px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.wvm-cd-chat-send:disabled {
    opacity: .55;
    cursor: default;
}

.wvm-cd-chat-footer {
    padding: 0 14px 12px;
    color: #94a3b8;
    font-size: 10px;
    text-align: right;
}

@media (max-width: 480px) {
    .wvm-cd-chat-root {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .wvm-cd-chat-panel {
        width: 100%;
    }

    .wvm-cd-chat-launcher {
        float: right;
    }
}
