/* Newsletter Popup Mobile Optimization */

/* Back to top button positioning (avoid overlap with dark mode) */
.back-to-top {
    bottom: 85px !important;
    right: 20px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 75px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }
}

/* Newsletter popup mobile specific */
@media (max-width: 480px) {
    .newsletter-popup {
        bottom: 5px !important;
        left: 5px !important;
        right: 5px !important;
        padding: 18px !important;
        border-radius: 12px !important;
        max-width: calc(100vw - 10px) !important;
    }
    
    .newsletter-icon {
        font-size: 35px !important;
        margin-bottom: 12px !important;
    }
    
    .newsletter-title {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    .newsletter-text {
        font-size: 13px !important;
        margin-bottom: 15px !important;
    }
    
    .newsletter-input {
        padding: 11px 12px !important;
        font-size: 14px !important;
    }
    
    .newsletter-btn {
        padding: 11px 18px !important;
        font-size: 15px !important;
    }
    
    .newsletter-close {
        font-size: 24px !important;
        top: 8px !important;
        right: 12px !important;
    }
}

/* Ensure newsletter doesn't overlap with buttons */
@media (max-width: 768px) {
    body {
        padding-bottom: 0 !important;
    }
    
    /* Adjust if both popups visible */
    .newsletter-popup {
        margin-bottom: 0;
    }
    
    /* Exit intent popup mobile fix */
    #exitIntentOverlay {
        z-index: 10001 !important;
    }
    
    #exitIntentOverlay > div {
        max-width: 90% !important;
        padding: 30px 20px !important;
        margin: 20px !important;
    }
    
    #exitIntentOverlay h2 {
        font-size: 24px !important;
    }
    
    #exitIntentOverlay p {
        font-size: 16px !important;
    }
    
    #exitIntentOverlay .btn {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
    }
}

/* Success message styling */
#newsletterMessage {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

