.bls-chatbot {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1055;
    font-family: "Roboto Condensed", Arial, sans-serif;
}

.bls-chatbot-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 0;
    border-radius: 999px;
    background: #1b242b;
    color: #fff;
    padding: .75rem 1rem;
    font-weight: 700;
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .25);
}

.bls-chatbot-toggle:focus-visible,
.bls-chatbot-panel button:focus-visible,
.bls-chatbot-panel a:focus-visible {
    outline: 3px solid rgba(72, 181, 89, .45);
    outline-offset: 2px;
}

.bls-chatbot-toggle-icon {
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #48b559;
    color: #fff;
    font-family: "Oswald", Arial, sans-serif;
}

.bls-chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 4rem;
    width: min(24rem, calc(100vw - 2rem));
    overflow: hidden;
    border: 1px solid #d3dbe2;
    border-radius: .5rem;
    background: #fff;
}

.bls-chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    background: #1b242b;
    color: #fff;
    padding: .875rem 1rem;
}

.bls-chatbot-header strong {
    display: block;
    font-family: "Oswald", Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.bls-chatbot-header span {
    display: block;
    color: #d7dee4;
    font-size: .875rem;
}

.bls-chatbot-body {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-height: min(27rem, calc(100vh - 13rem));
    overflow-y: auto;
    padding: 1rem;
    background: #f4f7f9;
}

.bls-chatbot-message {
    max-width: 88%;
    border-radius: .5rem;
    padding: .75rem .875rem;
    line-height: 1.35;
}

.bls-chatbot-message.bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #dce3e8;
    color: #17222a;
}

.bls-chatbot-message.user {
    align-self: flex-end;
    background: #48b559;
    color: #fff;
}

.bls-chatbot-message strong {
    display: block;
    margin-bottom: .25rem;
    font-family: "Oswald", Arial, sans-serif;
    text-transform: uppercase;
}

.bls-chatbot-footer {
    border-top: 1px solid #dce3e8;
    background: #fff;
    padding: .875rem;
}

.bls-chatbot-options {
    display: grid;
    gap: .5rem;
}

.bls-chatbot-option {
    width: 100%;
    border: 1px solid #6b7883;
    border-radius: .35rem;
    background: #fff;
    color: #17222a;
    padding: .65rem .75rem;
    text-align: left;
    font-weight: 700;
}

.bls-chatbot-option:hover,
.bls-chatbot-option:focus {
    border-color: #48b559;
    color: #0f7b28;
}

.bls-chatbot-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: .35rem;
    background: #48b559;
    color: #fff;
    padding: .75rem 1rem;
    font-weight: 700;
    text-decoration: none;
}

.bls-chatbot-cta:hover,
.bls-chatbot-cta:focus {
    color: #fff;
    background: #389a48;
}

.bls-chatbot-secondary {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: .5rem;
    color: #43515c;
    font-weight: 700;
    text-decoration: none;
}

.bls-chatbot-typing {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-bottom: .75rem;
    color: #5c6872;
    font-size: .875rem;
}

.bls-chatbot-typing span {
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: #7b8790;
    animation: bls-chat-pulse 1s infinite ease-in-out;
}

.bls-chatbot-typing span:nth-child(2) {
    animation-delay: .12s;
}

.bls-chatbot-typing span:nth-child(3) {
    animation-delay: .24s;
}

@keyframes bls-chat-pulse {
    0%, 80%, 100% { opacity: .35; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-2px); }
}

@media (max-width: 575.98px) {
    .bls-chatbot {
        right: .75rem;
        bottom: .75rem;
        left: .75rem;
    }

    .bls-chatbot-toggle {
        margin-left: auto;
    }

    .bls-chatbot-panel {
        right: 0;
        left: 0;
        bottom: 4rem;
        width: 100%;
    }
}
