.geist-chatbot {
    --geist-accent: #202b25;
    --geist-paper: #fff;
    bottom: 22px;
    font-family: inherit;
    position: fixed;
    right: 22px;
    z-index: 999;
}

.geist-chatbot__launcher {
    align-items: center;
    background: var(--geist-accent);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-weight: 600;
    gap: 8px;
    padding: 13px 18px;
}

.geist-chatbot__panel {
    background: var(--geist-paper);
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 18px;
    bottom: 62px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, .22);
    display: flex;
    flex-direction: column;
    max-height: min(650px, calc(100vh - 110px));
    overflow: hidden;
    position: absolute;
    right: 0;
    width: min(390px, calc(100vw - 30px));
}

.geist-chatbot__panel[hidden] {
    display: none;
}

.geist-chatbot__header {
    align-items: center;
    background: var(--geist-accent);
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 16px 18px;
}

.geist-chatbot__close {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    padding: 0;
}

.geist-chatbot__messages {
    background: #f6f5f1;
    display: flex;
    flex: 1 1 350px;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 16px;
}

.geist-chatbot__message {
    border-radius: 14px;
    line-height: 1.45;
    max-width: 86%;
    padding: 10px 13px;
    white-space: pre-wrap;
}

.geist-chatbot__message--bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
}

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

.geist-chatbot__sources {
    border-top: 1px solid rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 9px;
    padding-top: 7px;
}

.geist-chatbot__sources a {
    color: #315f48;
    font-size: 12px;
    text-decoration: underline;
}

.geist-chatbot__form {
    display: flex;
    gap: 8px;
    padding: 12px;
}

.geist-chatbot__form textarea {
    border: 1px solid #ccc;
    border-radius: 10px;
    flex: 1;
    min-height: 44px;
    padding: 10px;
    resize: none;
}

.geist-chatbot__form button {
    background: var(--geist-accent);
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    padding: 0 14px;
}

.geist-chatbot__notice {
    color: #666;
    padding: 0 12px 10px;
    text-align: center;
}

.geist-chatbot__sr-only {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

@media (max-width: 520px) {
    .geist-chatbot {
        bottom: 12px;
        right: 12px;
    }

    .geist-chatbot__panel {
        bottom: 58px;
    }
}
