/* FOMO by Digital Estúdio - Estilos das Notificações */

.fomo-notification {
    position: fixed !important;
    z-index: 999999 !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    padding: 16px !important;
    min-width: 300px !important;
    max-width: 400px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    border-left: 4px solid #C71E6B !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: none !important;
    border: 1px solid #e0e0e0 !important;
}

.fomo-notification:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2) !important;
}

.fomo-notification.fomo-show {
    display: block !important;
}

/* Posicionamento */
.fomo-notification.bottom-left {
    bottom: 20px !important;
    left: 20px !important;
}

.fomo-notification.bottom-right {
    bottom: 20px !important;
    right: 20px !important;
}

.fomo-notification.top-left {
    top: 20px !important;
    left: 20px !important;
}

.fomo-notification.top-right {
    top: 20px !important;
    right: 20px !important;
}

/* Conteúdo da notificação */
.fomo-notification-content {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

/* Remover avatar - não deve ser exibido */
.fomo-avatar {
    display: none !important;
}

.fomo-message {
    flex: 1 !important;
}

.fomo-buyer-info {
    display: flex !important;
    flex-direction:row!important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
}

.fomo-buyer-name {
    font-weight: 600 !important;
    color: #C71E6B !important;
    font-size: 14px !important;
}

.fomo-buyer-location {
    color: #666666 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

.fomo-text {
    color: #000000 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
}

.fomo-time {
    display: none !important; /* Não exibir tempo - apenas "acaba de comprar" */
}

.fomo-product {
    display: flex !important;
    align-items: center !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid #e9ecef !important;
    gap: 8px !important;
}

.fomo-product-image {
    width: 40px !important;
    height: 40px !important;
    border-radius: 4px !important;
    object-fit: cover !important;
    border: 1px solid #e0e0e0 !important;
}

.fomo-product-info {
    flex: 1 !important;
}

.fomo-product-name {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #000000 !important;
    margin-bottom: 2px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.fomo-product-price {
    font-size: 13px !important;
    color: #C71E6B !important;
    font-weight: 600 !important;
}

/* Botão de fechar - Sobrescrever Elementor */
.fomo-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: none !important;
    border: none !important;
    font-size: 18px !important;
    color: #999999 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: Arial, sans-serif !important;
    z-index: 10 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.fomo-close:hover {
    color: #C71E6B !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.fomo-close:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Sobrescrever específicamente elementos do Elementor */
.elementor-widget-container .fomo-close,
.elementor .fomo-close,
div[class*="elementor"] .fomo-close {
    font-size: 18px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 1 !important;
    background: none !important;
    border: none !important;
    color: #999999 !important;
}

/* Animações */
.fomo-notification.fomo-slide {
    animation: fomoSlideIn 0.5s ease-out !important;
}

.fomo-notification.fomo-slide.fomo-hide {
    animation: fomoSlideOut 0.3s ease-in !important;
}

.fomo-notification.fomo-fade {
    animation: fomoFadeIn 0.5s ease-out !important;
}

.fomo-notification.fomo-fade.fomo-hide {
    animation: fomoFadeOut 0.3s ease-in !important;
}

.fomo-notification.fomo-bounce {
    animation: fomoBounceIn 0.6s ease-out !important;
}

.fomo-notification.fomo-bounce.fomo-hide {
    animation: fomoBounceOut 0.4s ease-in !important;
}

/* Keyframes para animações */
@keyframes fomoSlideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fomoSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes fomoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fomoFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes fomoBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fomoBounceOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .fomo-notification {
        min-width: 280px !important;
        max-width: 320px !important;
        margin: 10px !important;
        padding: 14px !important;
    }
    
    .fomo-notification.bottom-left,
    .fomo-notification.bottom-right {
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
    }
    
    .fomo-notification.top-left,
    .fomo-notification.top-right {
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
    }

    .fomo-buyer-info {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 2px !important;
    }

    .fomo-buyer-name {
        font-size: 13px !important;
    }

    .fomo-buyer-location {
        font-size: 11px !important;
    }

    .fomo-text {
        font-size: 12px !important;
    }
}

/* Forçar estilos específicos para evitar conflitos */
.fomo-notification * {
    box-sizing: border-box !important;
}

.fomo-notification,
.fomo-notification * {
    font-style: normal !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Loading state */
.fomo-loading {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    border: 3px solid #f3f3f3 !important;
    border-top: 3px solid #C71E6B !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 