
.pbb-chat {
    bottom: 24px;
    font-family: system-ui,sans-serif;
    position: fixed;
    right: 24px;
    z-index: 1000
}

.pbb-chat__fab {
    background: #cf8a00;
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 24px #00000040;
    color: #fff;
    cursor: pointer;
    display: grid;
    height: 64px;
    place-items: center;
    width: 64px
}

.pbb-chat__fab-icon {
    height: 26px;
    width: 26px
}

.pbb-chat__overlay {
    align-items: flex-end;
    background: #00000059;
    bottom: 80px;
    display: flex;
    height: 100vh;
    justify-content: flex-end;
    position: absolute;
    right: 0;
    width: 100vw
}

.pbb-chat__panel {
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 360px
}

.pbb-chat__header {
    align-items: center;
    background: #cf8a00;
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 12px 14px
}

.pbb-chat__brand {
    align-items: center;
    display: flex;
    gap: 8px
}

.pbb-chat__logo {
    border-radius: 50%;
    height: 28px;
    width: 28px
}

.pbb-chat__close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 27px;
    padding: unset;
}

.pbb-chat__form-wrap {
    padding: 16px
}

.pbb-chat__welcome {
    color: #111;
    font-size: 14px;
    margin-bottom: 12px
}

.pbb-chat__form input,.pbb-chat__form textarea {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 10px 12px;
    width: 100%;
    font-family: unset;
}

.pbb-chat__form input:focus,.pbb-chat__form textarea:focus {
    background: #fff;
    border-color: #cf8a00;
    outline: none
}

.pbb-chat__submit {
    background: #cf8a00;
    border: none;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    padding: 10px;
    width: 100%;
    font-size: 19px;
    gap: 0px 10px;
}

.pbb-chat__chat {
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
    height: 460px
}

.pbb-chat__msgs {
    flex: 1;
    overflow-y: auto;
    padding: 10px
}

.pbb-chat__msg {
    display: flex;
    margin: 6px 0
}

.pbb-chat__msg.is-user {
    justify-content: flex-end
}

.pbb-chat__msg.is-bot {
    justify-content: flex-start
}

.pbb-chat__bubble {
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 75%;
    padding: 8px 12px
}

.pbb-chat__msg.is-user .pbb-chat__bubble {
    background: #cf8a00;
    border-bottom-right-radius: 6px;
    color: #fff
}

.pbb-chat__msg.is-bot .pbb-chat__bubble {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 6px;
    color: #111
}

.pbb-chat__typing {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    gap: 4px;
    padding: 6px 10px
}

.pbb-chat__typing span {
    animation: typing 1.2s ease-in-out infinite;
    background: #9ca3af;
    border-radius: 50%;
    height: 6px;
    width: 6px
}

.pbb-chat__typing span:nth-child(2) {
    animation-delay: .2s
}

.pbb-chat__typing span:nth-child(3) {
    animation-delay: .4s
}

@keyframes typing {
    0%,80%,to {
        opacity: .3;
        transform: translateY(0)
    }

    40% {
        opacity: 1;
        transform: translateY(-3px)
    }
}

.pbb-chat__composer {
    align-items: center;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    padding: 10px
}

.pbb-chat__composer input {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    flex: 1;
    padding: 10px 12px
}

.pbb-chat__send {
    background: #111827;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    height: 34px;
    width: 34px
}

.pbb-fade-enter-active,.pbb-fade-leave-active {
    transition: opacity .2s ease
}

.pbb-fade-enter-from,.pbb-fade-leave-to {
    opacity: 0
}

button.pbb-chat__fab {
    position: relative
}

button.pbb-chat__fab:before {
    animation: ripple 2s infinite;
    background: #ffd70066;
    border-radius: 50%;
    content: "";
    height: 100%;
    left: 50%;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    z-index: -1
}

@keyframes ripple {
    0% {
        height: 100%;
        opacity: .6;
        width: 100%
    }

    to {
        height: 200%;
        opacity: 0;
        width: 200%
    }
}

@media (max-width: 990px) {
    .pbb-chat {
        bottom:100px
    }
}