.bmf-chat-launcher {
    position: fixed;
    right: 30px;
    bottom: 60px;
    z-index: 99990;
    border: 0;
    border-radius: 999px;
    padding: 14px 19px;
    background: #123b72;
    color: #fff;
    font: 600 15px Arial, sans-serif;
    box-shadow: 0 8px 28px #0003;
    cursor: pointer
}

.bmf-chat-panel {
    position: fixed;
    right: 22px;
    bottom: 82px;
    z-index: 99991;
    display: none;
    flex-direction: column;
    width: min(380px, calc(100vw - 24px));
    height: min(620px, calc(100vh - 100px));
    overflow: hidden;
    border: 1px solid #dce3ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 55px #001a3d30;
    font-family: Arial, sans-serif;
    color: #17243a
}

.bmf-chat-panel.is-open {
    display: flex
}

.bmf-chat-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px;
    background: #123b72;
    color: #fff
}

.bmf-chat-plane {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff24;
    font-size: 22px
}

.bmf-chat-brand {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px
}

.bmf-chat-brand strong {
    font-size: 15px
}

.bmf-chat-brand span {
    font-size: 12px;
    opacity: .85
}

.bmf-chat-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 29px;
    cursor: pointer
}

.bmf-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f7f9fc
}

.bmf-message {
    display: flex;
    margin: 0 0 12px
}

.bmf-message-user {
    justify-content: flex-end
}

.bmf-message-bubble {
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.bmf-message-user .bmf-message-bubble {
    background: #123b72;
    color: #fff;
    border-color: #123b72
}

.bmf-chat-start,
.bmf-chat-options,
.bmf-chat-composer {
    padding: 13px 14px;
    border-top: 1px solid #e8edf3;
    background: #fff
}

.bmf-primary-btn,
.bmf-human-btn {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 12px;
    background: #123b72;
    color: #fff;
    font-weight: 700;
    cursor: pointer
}

.bmf-options-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700
}

.bmf-option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.bmf-option-btn {
    min-height: 42px;
    padding: 9px 8px;
    border: 1px solid #dbe4ef;
    border-radius: 9px;
    background: #fff;
    color: #18365f;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer
}

.bmf-option-btn:hover {
    border-color: #123b72;
    background: #f1f6ff
}

.bmf-option-wide {
    grid-column: 1/-1
}

.bmf-selected-category {
    margin: 0 0 8px;
    color: #123b72;
    font-size: 12px;
    font-weight: 700
}

.bmf-chat-form {
    display: flex;
    gap: 8px
}

.bmf-chat-form input {
    min-width: 0;
    flex: 1;
    border: 1px solid #d5deea;
    border-radius: 10px;
    padding: 11px;
    font-size: 13px
}

.bmf-chat-form button {
    width: 43px;
    border: 0;
    border-radius: 10px;
    background: #123b72;
    color: #fff;
    font-size: 20px;
    cursor: pointer
}

.bmf-change-category {
    margin: 8px 0;
    border: 0;
    padding: 3px 0;
    background: transparent;
    color: #123b72;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer
}

.bmf-chat-note {
    margin: 6px 0 10px;
    color: #6b7788;
    font-size: 10px;
    line-height: 1.4
}

.bmf-chat-panel [hidden] {
    display: none !important
}

@media(max-width:480px) {
    .bmf-chat-launcher {
        right: 14px;
        bottom: 14px
    }

    .bmf-chat-panel {
        right: 10px;
        bottom: 72px;
        width: calc(100vw - 20px);
        height: min(650px, calc(100vh - 90px))
    }
}

@media(max-width:768px) {
    .bmf-chat-launcher {
        bottom: 60px;
        right: 30px;
    }
}