.wfb-bot {
    --wfb-accent: rgb(131, 172, 43);
    --wfb-accent-dark: rgb(103, 139, 31);
    --wfb-border: #e5e1dc;
    --wfb-panel: #fff;
    --wfb-text: #23201d;
    --wfb-muted: #706a64;
    color: var(--wfb-text);
    font-family: inherit;
    line-height: 1.45;
    z-index: 99999;
}

.wfb-bot * {
    box-sizing: border-box;
}

.wfb-bot--floating {
    bottom: var(--wfb-bottom, 72px);
    position: fixed;
    right: var(--wfb-right, 22px);
}

.wfb-toggle {
    align-items: center;
    background: var(--wfb-accent);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    height: 48px;
    justify-content: center;
    min-height: 48px;
    padding: 0;
    position: relative;
    width: 48px;
}

.wfb-toggle:hover,
.wfb-toggle:focus {
    background: var(--wfb-accent-dark);
}

.wfb-toggle__icon {
    align-items: center;
    background: #fff;
    border-radius: 8px;
    display: inline-flex;
    gap: 5px;
    height: 24px;
    justify-content: center;
    position: relative;
    width: 28px;
}

.wfb-toggle__icon::after {
    background: var(--wfb-accent);
    border-radius: 999px;
    bottom: 6px;
    content: "";
    height: 3px;
    left: 10px;
    opacity: 0.45;
    position: absolute;
    right: 10px;
}

.wfb-robot-eye {
    background: var(--wfb-accent);
    border-radius: 50%;
    height: 5px;
    margin-top: -5px;
    width: 5px;
}

.wfb-help-mark {
    align-items: center;
    background: #fff;
    border: 2px solid var(--wfb-accent);
    border-radius: 50%;
    color: var(--wfb-accent);
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    height: 20px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: -5px;
    top: -5px;
    width: 20px;
}

.wfb-toggle__text {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.wfb-panel {
    background: var(--wfb-panel);
    border: 1px solid var(--wfb-border);
    border-radius: 8px;
    bottom: 62px;
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    max-height: min(620px, calc(100vh - 120px));
    overflow: hidden;
    position: absolute;
    right: 0;
    width: min(var(--wfb-panel-width, 340px), calc(100vw - 32px));
}

.wfb-bot--open .wfb-panel {
    display: flex;
}

.wfb-bot--inline {
    margin: 24px 0;
    max-width: var(--wfb-panel-width, 340px);
    position: relative;
}

.wfb-bot--inline .wfb-toggle {
    display: none;
}

.wfb-bot--inline .wfb-panel {
    bottom: auto;
    display: flex;
    max-height: none;
    position: relative;
    right: auto;
    width: 100%;
}

.wfb-header {
    align-items: center;
    background: #f7f3ef;
    border-bottom: 1px solid var(--wfb-border);
    display: flex;
    justify-content: space-between;
    min-height: 54px;
    padding: 14px 16px;
}

.wfb-close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--wfb-muted);
    cursor: pointer;
    display: inline-flex;
    font-size: 24px;
    height: 32px;
    justify-content: center;
    line-height: 1;
    width: 32px;
}

.wfb-close:hover,
.wfb-close:focus {
    background: rgba(0, 0, 0, 0.06);
    color: var(--wfb-text);
}

.wfb-messages {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    min-height: 190px;
    overflow-y: auto;
    padding: 16px;
}

.wfb-message {
    border-radius: 8px;
    font-size: 14px;
    max-width: 88%;
    padding: 10px 12px;
    word-break: break-word;
}

.wfb-message--bot {
    align-self: flex-start;
    background: #f3eee8;
}

.wfb-message--user {
    align-self: flex-end;
    background: var(--wfb-accent);
    color: #fff;
}

.wfb-suggestions {
    border-top: 1px solid var(--wfb-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
}

.wfb-suggestions button {
    background: #fff;
    border: 1px solid var(--wfb-border);
    border-radius: 999px;
    color: var(--wfb-text);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    padding: 7px 10px;
}

.wfb-suggestions button:hover,
.wfb-suggestions button:focus {
    border-color: var(--wfb-accent);
    color: var(--wfb-accent-dark);
}

@media (max-width: 480px) {
    .wfb-bot--floating {
        bottom: var(--wfb-bottom, 72px);
        left: auto;
        right: 14px;
    }

    .wfb-bot--floating .wfb-toggle {
        justify-content: center;
        width: 48px;
    }

    .wfb-bot--floating .wfb-panel {
        bottom: 62px;
        right: 0;
        width: min(var(--wfb-panel-width, 340px), calc(100vw - 28px));
    }

}
