.hnc-chatbot {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 99999;
    font-family: Lato, Arial, sans-serif;
}

.hnc-chatbot__launcher {
    display: block;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 0;
    background: transparent url("chatbot-button.png") center / contain no-repeat;
    color: transparent;
    cursor: pointer;
    box-shadow: none;
    font-size: 0;
    line-height: 0;
}

.hnc-chatbot__launcher span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.hnc-chatbot__panel {
    position: absolute;
    right: 0;
    bottom: 50px;
    display: none;
    width: min(360px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid rgba(34, 70, 25, .16);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(24, 42, 15, .25);
}

.hnc-chatbot.is-open .hnc-chatbot__panel {
    display: block;
}

.hnc-chatbot__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #fff8d9;
    border-bottom: 3px solid #ff9138;
}

.hnc-chatbot__header strong,
.hnc-chatbot__header span {
    display: block;
}

.hnc-chatbot__header strong {
    color: #d71920;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    text-rendering: optimizeLegibility;
}

.hnc-chatbot__header span {
    margin-top: 3px;
    color: #40535a;
    font-size: 12px;
}

.hnc-chatbot__header button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #40535a;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    padding: 0;
}

.hnc-chatbot__messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 330px;
    max-height: min(48vh, 380px);
    padding: 16px;
    overflow-y: auto;
    background: #f7faf4;
}

.hnc-chatbot__message {
    max-width: 86%;
    padding: 10px 12px;
    border-radius: 8px;
    color: #263c42;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.hnc-chatbot__message--assistant {
    align-self: flex-start;
    background: #fff;
    border: 1px solid rgba(127, 179, 61, .22);
}

.hnc-chatbot__message--user {
    align-self: flex-end;
    background: #7fb33d;
    color: #fff;
}

.hnc-chatbot__message.is-typing {
    color: #6f8790;
    font-style: italic;
}

.hnc-chatbot__suggestions {
    display: flex;
    gap: 8px;
    padding: 10px 12px 0;
    overflow-x: auto;
    background: #fff;
}

.hnc-chatbot__suggestions button {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(127, 179, 61, .34);
    border-radius: 999px;
    background: #fff;
    color: #40535a;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.hnc-chatbot__form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px;
    background: #fff;
}

.hnc-chatbot__form textarea {
    min-height: 42px;
    max-height: 110px;
    resize: vertical;
    border: 1px solid rgba(64, 83, 90, .24);
    border-radius: 6px;
    padding: 10px;
    color: #263c42;
    font-size: 14px;
    line-height: 1.35;
}

.hnc-chatbot__form button {
    min-width: 62px;
    border: 0;
    border-radius: 6px;
    background: #d71920;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.hnc-chatbot__form.is-loading button {
    opacity: .65;
    cursor: progress;
}

@media (max-width: 544px) {
    .hnc-chatbot {
        right: 12px;
        bottom: 14px;
    }

    .hnc-chatbot__panel {
        right: -2px;
        bottom: 50px;
    }

    .hnc-chatbot__messages {
        height: 300px;
    }
}
