/* Het icoon blijft rechtsonder in beeld, ook tijdens het scrollen. */
.chatbot {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.chatbot-icoon {
    display: grid;
    place-items: center;
    width: 3.75rem;
    height: 3.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #1f8a7a;
    color: #fff;
    box-shadow: 0 8px 20px rgba(20, 80, 74, 0.28);
    cursor: pointer;
}

.chatbot-icoon:hover,
.chatbot-icoon:focus-visible {
    background: #176b5f;
}

.chatbot-icoon svg {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
}

.chatbot-venster {
    display: flex;
    flex-direction: column;
    width: min(22rem, calc(100vw - 2.5rem));
    max-height: min(28rem, calc(100vh - 7rem));
    overflow: hidden;
    background: #fff;
    color: #17324d;
    border: 1px solid #d5ebe7;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(23, 50, 77, 0.16);
}

.chatbot-venster[hidden] {
    display: none !important;
}

.chatbot-venster-kop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #1f8a7a;
    color: #fff;
}

.chatbot-venster-kop h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.chatbot-acties {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.chatbot-nieuw {
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.4rem 0.65rem;
    white-space: nowrap;
    cursor: pointer;
}

.chatbot-nieuw:hover,
.chatbot-nieuw:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

.chatbot-sluiten {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.chatbot-berichten {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;
    overflow: auto;
}

.chatbot-berichten p {
    margin: 0;
    padding: 0.75rem 0.9rem;
    background: #f3faf8;
    border-radius: 12px;
    color: #0b1f33;
}

.chatbot-bericht-gebruiker {
    align-self: flex-end;
    max-width: 85%;
    background: #1f8a7a;
    color: #fff;
}

.chatbot-bericht-assistent,
.chatbot-laden {
    align-self: flex-start;
    max-width: 85%;
}

.chatbot-laden {
    font-weight: 600;
}

.chatbot-voorbeelden {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.chatbot-voorbeelden[hidden] {
    display: none !important;
}

.chatbot-voorbeeld {
    border: 1px solid #7d92a6;
    border-radius: 999px;
    background: #fff;
    color: #0b1f33;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
}

.chatbot-voorbeeld:hover,
.chatbot-voorbeeld:focus-visible {
    border-color: #1f8a7a;
    background: #fff;
}

.chatbot-formulier {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid #e6eef3;
}

.chatbot-formulier input {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d5ebe7;
    border-radius: 10px;
    font: inherit;
    color: #0b1f33;
    background: #fff;
}

.chatbot-formulier button {
    border: 0;
    border-radius: 10px;
    background: #1f8a7a;
    color: #fff;
    font: inherit;
    font-weight: 600;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
}

.chatbot-formulier button:hover {
    background: #176b5f;
}

.chatbot-formulier button:disabled,
.chatbot-formulier input:disabled {
    opacity: 0.65;
    cursor: default;
}

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

@media (max-width: 760px) {
    .chatbot {
        right: 1rem;
        bottom: 1rem;
    }
}
