.hello-bot {
    color: #172033;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
}

.hello-bot--floating {
    bottom: 24px;
    position: fixed;
    right: 24px;
    z-index: 99999;
}

.hello-bot__toggle {
    align-items: center;
    background: #116d5c;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(17, 109, 92, 0.28);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 24px;
    font-weight: 700;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.hello-bot__panel {
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(23, 32, 51, 0.18);
    display: flex;
    flex-direction: column;
    max-height: min(620px, calc(100vh - 48px));
    overflow: hidden;
    width: min(380px, calc(100vw - 32px));
}

.hello-bot__panel[hidden],
.hello-bot__toggle[hidden] {
    display: none !important;
}

.hello-bot__header {
    align-items: center;
    background: #116d5c;
    color: #fff;
    display: flex;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 14px;
}

.hello-bot__clear {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    margin-left: auto;
    padding: 4px 8px;
}

.hello-bot__close {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0 4px;
}

.hello-bot__messages {
    background: #f6f8fb;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 260px;
    overflow-y: auto;
    padding: 14px;
}

.hello-bot__message {
    border-radius: 8px;
    line-height: 1.45;
    max-width: 88%;
    padding: 10px 12px;
    white-space: pre-wrap;
}

.hello-bot__message--bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #dfe5ee;
}

.hello-bot__message--user {
    align-self: flex-end;
    background: #174b7a;
    color: #fff;
}

.hello-bot__form {
    background: #fff;
    border-top: 1px solid #d8dee8;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto;
    padding: 12px;
}

.hello-bot__form textarea {
    border: 1px solid #c8d0dd;
    border-radius: 6px;
    font: inherit;
    min-height: 44px;
    padding: 9px 10px;
    resize: vertical;
}

.hello-bot__form button {
    align-self: end;
    background: #116d5c;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    min-height: 44px;
    padding: 0 16px;
}

.hello-bot__form button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.hello-bot-post-types {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-sizing: border-box;
    display: grid;
    gap: 8px;
    max-width: 760px;
    padding: 14px;
}

.hello-bot-post-types__item {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 26px;
    position: relative;
}

.hello-bot-post-types__item label {
    cursor: pointer;
}

.hello-bot-source-checkbox {
    left: -9999px;
    position: absolute !important;
}

.hello-bot-source-toggle.is-selected {
    background: #116d5c;
    border-color: #116d5c;
    color: #fff;
}

.hello-bot-meta-key-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 980px;
}

.hello-bot-meta-key span {
    background: #eef2f7;
    border-radius: 999px;
    color: #384355;
    display: inline-block;
    font-size: 11px;
    line-height: 1;
    margin-left: 6px;
    padding: 3px 6px;
}

.hello-bot-meta-key.is-selected {
    border-color: #116d5c;
    color: #116d5c;
}

@media (max-width: 520px) {
    .hello-bot--floating {
        bottom: 16px;
        right: 16px;
    }

    .hello-bot__form {
        grid-template-columns: 1fr;
    }
}


.hello-bot-guidelines {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    margin: 0;
    max-width: 780px;
    overflow: auto;
    padding: 12px;
    white-space: pre-wrap;
}



.hello-bot__message a {
    color: #116d5c;
    font-weight: 700;
    text-decoration: underline;
}

