.sb-chatbot {
    bottom: 1.5rem;
    font-family: "Manrope", sans-serif;
    position: fixed;
    right: 1.5rem;
    width: min(24rem, calc(100vw - 2rem));
    z-index: 60;
}

.sb-chatbot *,
.sb-chatbot *::before,
.sb-chatbot *::after {
    box-sizing: border-box;
}

.sb-chatbot__teaser {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(47, 107, 83, 0.18);
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px rgba(23, 53, 47, 0.12);
    color: #17352f;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding: 0.85rem 1rem;
}

.sb-chatbot__teaser.is-hidden {
    display: none;
}

.sb-chatbot__teaser-text {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.sb-chatbot__teaser-close,
.sb-chatbot__panel-close {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    color: #2f6b53;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.15rem;
    height: 2rem;
    justify-content: center;
    padding: 0;
    width: 2rem;
}

.sb-chatbot__launcher {
    align-items: center;
    background: linear-gradient(135deg, #17352f 0%, #2f6b53 100%);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(23, 53, 47, 0.2);
    color: #f5efe4;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 800;
    gap: 0.65rem;
    justify-content: center;
    margin-left: auto;
    min-height: 3.5rem;
    padding: 0.95rem 1.15rem;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.sb-chatbot__launcher:hover,
.sb-chatbot__launcher:focus-visible {
    box-shadow: 0 22px 46px rgba(23, 53, 47, 0.25);
    transform: translateY(-1px);
}

.sb-chatbot__launcher-badge {
    align-items: center;
    background: rgba(245, 239, 228, 0.18);
    border-radius: 999px;
    display: inline-flex;
    font-size: 1rem;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.sb-chatbot__panel {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(47, 107, 83, 0.18);
    border-radius: 1.75rem;
    box-shadow: 0 28px 70px rgba(23, 53, 47, 0.18);
    margin-top: 0.85rem;
    max-height: min(44rem, calc(100vh - 7rem));
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(0.75rem) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
}

.sb-chatbot.is-open .sb-chatbot__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.sb-chatbot__panel-header {
    align-items: flex-start;
    background: linear-gradient(135deg, #f8f3ea 0%, #edf5ef 100%);
    border-bottom: 1px solid rgba(47, 107, 83, 0.12);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.1rem 0.95rem;
}

.sb-chatbot__eyebrow {
    color: #2f6b53;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.sb-chatbot__title {
    color: #17352f;
    font-family: "Fraunces", serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.sb-chatbot__subtitle {
    color: #456257;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0.35rem 0 0;
}

.sb-chatbot__messages {
    background: linear-gradient(180deg, rgba(248, 243, 234, 0.8) 0%, rgba(255, 255, 255, 0) 24%);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: min(24rem, calc(100vh - 22rem));
    overflow-y: auto;
    padding: 1rem 1.1rem 0.75rem;
}

.sb-chatbot__message {
    display: flex;
}

.sb-chatbot__message--assistant {
    justify-content: flex-start;
}

.sb-chatbot__message--user {
    justify-content: flex-end;
}

.sb-chatbot__bubble {
    border-radius: 1.3rem;
    max-width: 88%;
    padding: 0.9rem 1rem;
}

.sb-chatbot__message--assistant .sb-chatbot__bubble {
    background: #edf5ef;
    border: 1px solid rgba(47, 107, 83, 0.1);
    color: #17352f;
}

.sb-chatbot__message--user .sb-chatbot__bubble {
    background: #17352f;
    color: #f8f3ea;
}

.sb-chatbot__bubble p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.sb-chatbot__bubble p + p {
    margin-top: 0.55rem;
}

.sb-chatbot__typing {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
    min-height: 1.2rem;
}

.sb-chatbot__typing-dot {
    animation: sb-chatbot-bounce 1s infinite ease-in-out;
    background: #2f6b53;
    border-radius: 999px;
    height: 0.45rem;
    opacity: 0.55;
    width: 0.45rem;
}

.sb-chatbot__typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.sb-chatbot__typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

.sb-chatbot__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0 1.1rem 0.9rem;
}

.sb-chatbot__suggestion {
    appearance: none;
    background: #f5efe4;
    border: 1px solid rgba(47, 107, 83, 0.16);
    border-radius: 999px;
    color: #17352f;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    padding: 0.55rem 0.8rem;
    transition: background-color 160ms ease, transform 160ms ease;
}

.sb-chatbot__suggestion:hover,
.sb-chatbot__suggestion:focus-visible {
    background: #edf5ef;
    transform: translateY(-1px);
}

.sb-chatbot__form {
    border-top: 1px solid rgba(47, 107, 83, 0.1);
    padding: 1rem 1.1rem 1.1rem;
}

.sb-chatbot__input-row {
    align-items: center;
    display: flex;
    gap: 0.7rem;
}

.sb-chatbot__input {
    background: #f7fbf8;
    border: 1px solid rgba(47, 107, 83, 0.16);
    border-radius: 1rem;
    color: #17352f;
    flex: 1;
    font: inherit;
    min-height: 3rem;
    padding: 0.8rem 0.95rem;
}

.sb-chatbot__input:focus {
    border-color: rgba(47, 107, 83, 0.5);
    box-shadow: 0 0 0 3px rgba(47, 107, 83, 0.12);
    outline: none;
}

.sb-chatbot__send {
    appearance: none;
    background: #e4d4bb;
    border: 0;
    border-radius: 999px;
    color: #17352f;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.sb-chatbot__send:disabled,
.sb-chatbot__input:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.sb-chatbot__note {
    color: #567368;
    font-size: 0.74rem;
    line-height: 1.5;
    margin: 0.7rem 0 0;
}

@keyframes sb-chatbot-bounce {
    0%, 80%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-0.18rem);
    }
}

@media (max-width: 640px) {
    .sb-chatbot {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        width: auto;
    }

    .sb-chatbot__launcher {
        width: 100%;
    }

    .sb-chatbot__panel {
        max-height: calc(100vh - 8rem);
    }

    .sb-chatbot__messages {
        max-height: calc(100vh - 25rem);
    }

    .sb-chatbot__bubble {
        max-width: 94%;
    }

    .sb-chatbot__input-row {
        flex-direction: column;
    }

    .sb-chatbot__send {
        width: 100%;
    }
}
