.marketing-chatbot {
    position: fixed;
    inset-inline-end: 24px;
    bottom: 24px;
    z-index: 1080;
    font-family: inherit;
}

.marketing-chatbot-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 13px 18px;
    background: #17324d;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.marketing-chatbot-panel {
    position: absolute;
    inset-inline-end: 0;
    bottom: 64px;
    width: min(390px, calc(100vw - 32px));
    height: min(620px, calc(100vh - 120px));
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

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

.marketing-chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #eef1f4;
}

.marketing-chatbot-header strong,
.marketing-chatbot-header small {
    display: block;
}

.marketing-chatbot-header small {
    color: #6c757d;
    margin-top: 2px;
}

.marketing-chatbot-close {
    border: 0;
    background: transparent;
}

.marketing-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f7f9fb;
}

.marketing-chatbot-message {
    display: flex;
    margin-bottom: 12px;
}

.marketing-chatbot-message.user {
    justify-content: flex-start;
}

.marketing-chatbot-message.assistant {
    justify-content: flex-end;
}

.marketing-chatbot-bubble {
    max-width: 86%;
    white-space: pre-wrap;
    line-height: 1.65;
    padding: 10px 13px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e4e8ec;
}

.marketing-chatbot-message.user .marketing-chatbot-bubble {
    background: #17324d;
    color: #fff;
    border-color: #17324d;
}

.marketing-chatbot-message.loading .marketing-chatbot-bubble {
    opacity: .7;
}

.marketing-chatbot-suggestions {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 10px 12px;
    border-top: 1px solid #eef1f4;
    background: #fff;
}

.marketing-chatbot-suggestions button {
    flex: 0 0 auto;
    border: 1px solid #d9dee4;
    background: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .82rem;
}

.marketing-chatbot-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #eef1f4;
}

.marketing-chatbot-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d8dde3;
    border-radius: 12px;
    padding: 10px 12px;
}

.marketing-chatbot-form button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #17324d;
    color: #fff;
}

@media (max-width: 576px) {
    .marketing-chatbot {
        inset-inline-end: 14px;
        bottom: 14px;
    }

    .marketing-chatbot-panel {
        position: fixed;
        inset: 12px;
        width: auto;
        height: auto;
    }

    .marketing-chatbot-toggle span {
        display: none;
    }

    .marketing-chatbot-toggle {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
    }
}

.marketing-chatbot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 16px 14px;
}

.marketing-chatbot-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 10px;
    padding: 9px 14px;
    background: #17324d;
    color: #fff;
    font-weight: 700;
    font-size: .88rem;
}

.marketing-chatbot-action:hover {
    color: #fff;
    opacity: .92;
}

.marketing-chatbot-action.secondary {
    background: #fff;
    color: #17324d;
    border: 1px solid #cfd6dc;
}
