.event-chatbot-launcher-wrap {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-chatbot-launcher-teaser {
    max-width: min(240px, calc(100vw - 120px));
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.event-chatbot-launcher-teaser.is-hidden {
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
}

.event-chatbot-launcher {
    position: relative;
    right: auto;
    bottom: auto;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #6366f1;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-chatbot-launcher__icon {
    font-size: 26px;
    line-height: 1;
}

.event-chatbot-panel {
    position: fixed;
    right: 20px;
    bottom: 88px;
    z-index: 99991;
    width: min(400px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 120px));
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.event-chatbot-panel.is-open {
    display: flex;
}

.event-chatbot-panel__header {
    padding: 14px 16px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.event-chatbot-panel__header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.event-chatbot-panel__close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.9;
}

.event-chatbot-panel__messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f8fafc;
}

.event-chatbot-msg {
    margin-bottom: 10px;
    max-width: 92%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.event-chatbot-msg--assistant {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    border-bottom-left-radius: 4px;
}

.event-chatbot-msg--markdown {
    white-space: normal;
}

.event-chatbot-msg--markdown .event-chatbot-msg__body > :first-child {
    margin-top: 0;
}

.event-chatbot-msg--markdown .event-chatbot-msg__body > :last-child {
    margin-bottom: 0;
}

.event-chatbot-msg--markdown .event-chatbot-msg__body p {
    margin: 0 0 0.5em;
}

.event-chatbot-msg--markdown .event-chatbot-msg__body ul,
.event-chatbot-msg--markdown .event-chatbot-msg__body ol {
    margin: 0 0 0.5em;
    padding-left: 1.25em;
}

.event-chatbot-msg--markdown .event-chatbot-msg__body li {
    margin-bottom: 0.25em;
}

.event-chatbot-msg--markdown .event-chatbot-msg__body strong {
    font-weight: 600;
}

.event-chatbot-msg--markdown .event-chatbot-msg__body a {
    color: #4f46e5;
    text-decoration: underline;
}

.event-chatbot-msg--markdown .event-chatbot-msg__body a:hover {
    color: #4338ca;
}

.event-chatbot-msg--markdown .event-chatbot-msg__body code {
    font-size: 0.9em;
    background: #f1f5f9;
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.event-chatbot-msg--user {
    margin-left: auto;
    background: #6366f1;
    color: #fff;
    border-bottom-right-radius: 4px;
    white-space: pre-wrap;
}

.event-chatbot-panel__composer {
    border-top: 1px solid #e2e8f0;
    padding: 10px;
    display: flex;
    gap: 8px;
    background: #fff;
}

.event-chatbot-panel__composer textarea {
    flex: 1;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
}

.event-chatbot-panel__composer button {
    align-self: flex-end;
    border: none;
    background: #6366f1;
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
}

.event-chatbot-panel__composer button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.event-chatbot-typing {
    font-size: 12px;
    color: #64748b;
    padding: 0 14px 8px;
}

.event-chatbot-auth {
    border-top: 1px solid #e2e8f0;
    padding: 10px 12px;
    background: #fff;
}

.event-chatbot-auth__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 8px;
}

.event-chatbot-auth__title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.event-chatbot-auth__close {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
}

.event-chatbot-auth__close:hover {
    color: #334155;
}

.event-chatbot-auth__back {
    display: inline-block;
    margin-top: 2px;
    font-size: 12px;
    color: #4f46e5;
    text-decoration: underline;
    text-align: center;
}

.event-chatbot-auth__step {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-chatbot-auth__hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #64748b;
}

.event-chatbot-msg--markdown .event-chatbot-msg__body a {
    color: #4f46e5;
    text-decoration: underline;
    font-weight: 500;
}

.event-chatbot-msg--markdown .event-chatbot-msg__body a:hover {
    color: #4338ca;
}
