/* Przycisk wyzwalający popup */
.newsletter-popup-trigger {
    background-color: purple !important;
    font-family: "Poppins", Sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: white !important;
    border-radius: 50px 50px 50px 50px !important;
    padding: 1em 1em 1em 1em !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    margin: 20px 0 !important;
}

.newsletter-popup-trigger:hover {
    background-color: #00b56d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 154, 93, 0.3);
}

.newsletter-popup-trigger:active {
    transform: translateY(0);
    background-color: #008550;
}

/* Overlay popup */
.newsletter-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-popup-overlay.active {
    display: flex;
    opacity: 1;
}

/* Kontener popup */
.newsletter-popup-container {
    background: white;
    border-radius: 12px;
    position: relative;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Przycisk zamknięcia */
.newsletter-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.newsletter-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.newsletter-popup-close span {
    font-size: 28px;
    line-height: 1;
    color: #333;
}

/* Zawartość popup */
.newsletter-popup-content {
    padding: 40px 30px 30px;
}

/* Responsywność */
@media (max-width: 768px) {
    .newsletter-popup-container {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .newsletter-popup-content {
        padding: 35px 20px 20px;
    }
    
    .newsletter-popup-trigger {
        width: 100%;
        padding: 15px 25px;
    }
}

/* Scrollbar dla popup */
.newsletter-popup-container::-webkit-scrollbar {
    width: 8px;
}

.newsletter-popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}

.newsletter-popup-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.newsletter-popup-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Zapobieganie scrollowaniu body gdy popup jest otwarty */
body.newsletter-popup-open {
    overflow: hidden;
}
