.vex-web-chat,
.vex-web-chat * {
    box-sizing: border-box;
    font-family: inherit;
}
.vex-web-chat {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999999;
}
.vex-web-chat__bubble {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .28);
}
.vex-web-chat__bubble svg,
.vex-web-chat__message-form button svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}
.vex-web-chat__panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: min(380px, calc(100vw - 32px));
    height: min(600px, calc(100vh - 120px));
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 18px;
    background: #fff;
    color: #111827;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}
.vex-web-chat__header {
    min-height: 72px;
    padding: 16px 18px;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vex-web-chat__header strong,
.vex-web-chat__header span { display: block; }
.vex-web-chat__header span {
    margin-top: 3px;
    font-size: 12px;
    opacity: .78;
}
.vex-web-chat__close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.vex-web-chat__registration { padding: 24px; }
.vex-web-chat__registration p { margin: 0 0 18px; }
.vex-web-chat__registration-form label {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
}
.vex-web-chat__registration-form input {
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #111827;
}
.vex-web-chat__registration-form button {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.vex-web-chat__conversation {
    height: calc(100% - 72px);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
}
.vex-web-chat__messages {
    overflow-y: auto;
    padding: 18px 14px;
    background: #f8fafc;
}
.vex-web-chat__message {
    display: flex;
    margin: 8px 0;
}
.vex-web-chat__message--client { justify-content: flex-end; }
.vex-web-chat__message-bubble {
    max-width: 82%;
    padding: 10px 12px 7px;
    border-radius: 14px 14px 14px 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.vex-web-chat__message--client .vex-web-chat__message-bubble {
    border-radius: 14px 14px 4px 14px;
    border-color: #111827;
    background: #111827;
    color: #fff;
}
.vex-web-chat__message-bubble small {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    text-align: right;
    opacity: .62;
}
.vex-web-chat__attachment {
    display: block;
    margin-top: 8px;
}
.vex-web-chat__attachment img {
    display: block;
    max-width: 100%;
    border-radius: 9px;
}
.vex-web-chat__status {
    padding: 6px 14px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
}
.vex-web-chat__status.is-error { color: #b91c1c; }
.vex-web-chat__message-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}
.vex-web-chat__message-form textarea {
    width: 100%;
    max-height: 100px;
    resize: none;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #111827;
}
.vex-web-chat__message-form button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.vex-web-chat button:disabled {
    cursor: wait;
    opacity: .6;
}
@media (max-width: 600px) {
    .vex-web-chat {
        right: 14px;
        bottom: 14px;
    }
    .vex-web-chat__panel {
        position: fixed;
        inset: 12px;
        width: auto;
        height: auto;
        border-radius: 16px;
    }
}
