.chatbot-wrapper {
    position: fixed;
    bottom: 0;
    right: 20px;
    z-index: 99999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chatbot-window {
    min-width: 400px;
    width: 40vw;
    height: 80vh;
    background: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.chatbot-wrapper.is-open .chatbot-window {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chatbot-wrapper.is-open .chatbot-tab-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.chatbot-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: #f97316;
    color: #fff;
    padding: 16px 20px;
}

.chatbot-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chatbot-iframe {
    width: 100%;
    flex-grow: 1;
    border: none;
}

.chatbot-tab-btn {
    background-color: #f97316;
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 4px 4px 0 #9a3412;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chatbot-tab-btn:hover {
    background-color: #ea580c;
    box-shadow: 6px 6px 0 #7c2d12;
}

.chatbot-tab-btn:active {
    background-color: #c2410c;
    box-shadow: 2px 2px 0 #7c2d12;
}

@media screen and (max-width: 768px) {
    .chatbot-wrapper {
        left: 0;
        right: auto;
        align-items: flex-start;
    }

    .chatbot-tab-btn {
        padding: 14px 20px;
        font-size: 16px;
        gap: 8px;
    }
    
    .chatbot-tab-btn svg {
        width: 22px;
        height: 22px;
    }

    .chatbot-window {
        width: 100vw;
        height: 100dvh;
        margin-bottom: 0;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
        bottom: auto;
        right: auto;
        z-index: 10000;
    }
}