.sfx-ai-chatbot {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100000;
    font-family: "Proxima Nova", sans-serif;
}

.sfx-ai-chatbot__toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #F16920;
    border: none;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.sfx-ai-chatbot__toggle:hover {
    transform: scale(1.06);
}

.sfx-ai-chatbot__toggle svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.sfx-ai-chatbot__toggle .sfx-ai-chatbot__icon-close {
    display: none;
}

.sfx-ai-chatbot.is-open .sfx-ai-chatbot__icon-chat {
    display: none;
}

.sfx-ai-chatbot.is-open .sfx-ai-chatbot__icon-close {
    display: block;
}

.sfx-ai-chatbot__panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: 360px;
    max-width: calc(100vw - 48px);
    height: 520px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 16px 16px 16px 16px;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.sfx-ai-chatbot__header {
    background: #F16920;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sfx-ai-chatbot__title {
    font-family: "WorkSans Bold", sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.sfx-ai-chatbot__subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 2px 0 0 0;
}

.sfx-ai-chatbot__messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f7f7f8;
}

.sfx-ai-chatbot__message {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 16px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.sfx-ai-chatbot__message--assistant {
    align-self: flex-start;
    background: #fff;
    color: #2b2b2b;
    border: 1px solid #ececec;
    border-bottom-left-radius: 4px;
}

.sfx-ai-chatbot__message--user {
    align-self: flex-end;
    background: #F16920;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.sfx-ai-chatbot__message--error {
    align-self: flex-start;
    background: #fdeceb;
    color: #a8321f;
    border: 1px solid #f3c3bd;
    border-bottom-left-radius: 4px;
}

.sfx-ai-chatbot__typing {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
}

.sfx-ai-chatbot__typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9c9c9;
    animation: sfx-ai-chatbot-bounce 1.2s infinite ease-in-out;
}

.sfx-ai-chatbot__typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.sfx-ai-chatbot__typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes sfx-ai-chatbot-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.sfx-ai-chatbot__form {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #ececec;
    background: #fff;
}

.sfx-ai-chatbot__input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.sfx-ai-chatbot__input:focus {
    border-color: #F16920;
}

.sfx-ai-chatbot__send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #F16920;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.sfx-ai-chatbot__send:hover {
    background: #d9591a;
}

.sfx-ai-chatbot__send:disabled {
    background: #f3b48f;
    cursor: not-allowed;
}

.sfx-ai-chatbot__send svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

@media (max-width: 480px) {
    .sfx-ai-chatbot {
        right: 16px;
        bottom: 16px;
    }

    .sfx-ai-chatbot__panel {
        width: calc(100vw - 32px);
        height: calc(100vh - 120px);
    }
}
