/* Prefixo exclusivo para isolar o widget */
.my-widget {
    font-family: Arial, sans-serif;
}

/* Botão flutuante */
.my-widget .widget-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-widget .widget-button .circle {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #fdf497, #fd5949, #d6249f, #285AEB);
    background-size: 300% 300%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    animation: gradient-shift 3s ease-in-out infinite;
}

.my-widget .widget-button .circle img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 2;
}

/* Stories Container */
.my-widget .stories-container {
    position: fixed;
    left: -400px;
    bottom: 100px;
    width: 300px;
    height: 500px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease-in-out;
    z-index: 999;
}

.my-widget .stories-container.active {
    left: 20px;
}

/* Controles */
.my-widget .controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.my-widget .control-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 16px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-widget .control-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Story */
.my-widget .story {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.my-widget .story video {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.my-widget .progress-bar {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #e1306c, #c13584, #f58529, #f7a040);
    position: absolute;
    top: 0;
    left: 0;
}

.my-widget .progress {
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    width: 0;
    transition: width 0.1s linear;
}

/* Footer do WhatsApp */
.my-widget .whatsapp-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #25D366;
    padding: 10px;
    text-align: center;
}

.my-widget .whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

/* Animação do botão flutuante */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}