/* Chat Boot FeiraLabs */
.chat-toggle-btn-ai-feira {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 65px;
    height: 65px;
    background: #650db3;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 1000000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform .2s ease;
}

.chat-toggle-btn-ai-feira svg {
    fill: #fff;
    width: 38px;
}

.chat-toggle-btn-ai-feira:hover {
    transform: scale(1.05);
}
.chat-bubble-ai-feira {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 380px;
    height: 520px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    z-index: 9999999;
    overflow: hidden;
}

.chat-iframe-ai-feira {
    width: 100%;
    height: 100%;
    border: none;
}

.chat-bubble-ai-feira,
.chat-overlay-ai-feira {
    display: none;
}

/* Botão X */
.chat-close-btn-ai-feira {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    font-size: 22px;
    line-height: 28px;
    cursor: pointer;
    z-index: 10;
}

.chat-close-btn-ai-feira:hover {
    background: rgba(0,0,0,0.1);
}

/* =========================
    MOBILE FIRST – CHAT AI
========================= */
@media (max-width: 768px) {

    .chat-toggle-btn-ai-feira {
        bottom: 16px;
        left: 16px;
        width: 58px;
        height: 58px;
        z-index: 1000000;
    }
    
    #product .chat-toggle-btn-ai-feira {
        z-index: 10000000000;
    }

    .chat-toggle-btn-ai-feira svg {
        width: 34px;
    }

    .chat-bubble-ai-feira {
        bottom: 0;
        right: 0;
        width: 100vw;
        height: 100dvh; /* mobile moderno */
        border-radius: 0;
        box-shadow: none;
        z-index: 9999999;
    }

    .chat-iframe-ai-feira {
        height: 100%;
        width: 100%;
    }

    .chat-close-btn-ai-feira {
        top: 12px;
        left: 12px;
        width: 36px;
        height: 36px;
        font-size: 26px;
        line-height: 32px;
        background: rgba(0,0,0,0.08);
    }
}	        

/* =========================
    SAFETY – iOS SAFE AREA
========================= */
@supports (padding: env(safe-area-inset-bottom)) {
    .chat-toggle-btn-ai-feira {
        bottom: calc(16px + env(safe-area-inset-bottom));
        right: calc(16px + env(safe-area-inset-right));
    }
}
#checkout .chat-toggle-btn-ai-feira {
    display:none !important
}
/* Chat Boot FeiraLabs */ 
