/* Popup Overlay */
.newsletter-popup-69875 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999; /* Increased z-index for mobile overlap */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.newsletter-popup-69875.is-visible-69875 {
    opacity: 1;
    pointer-events: auto;
}

.newsletter-popup-overlay-69875 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Darker for better contrast */
    backdrop-filter: blur(4px);
}

/* Popup Content Box */
.newsletter-popup-content-69875 {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.4s ease;
    text-align: center;
    max-height: 85vh; /* Reduced slightly for mobile browsers */
    overflow-y: auto;
    box-sizing: border-box; /* Ensure padding doesn't overflow width */
}

.newsletter-popup-69875.is-visible-69875 .newsletter-popup-content-69875 {
    transform: translateY(0);
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .newsletter-popup-content-69875 {
        padding: 1.5rem;
        width: 95%; /* Wider on small screens */
    }
    
    .newsletter-title-69875 {
        font-size: 20px;
    }
    
    .categories-grid-69875 {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }
}

/* Close Button */
.newsletter-close-btn-69875 {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    padding: 5px; /* Bigger touch target */
}

.newsletter-close-btn-69875:hover {
    color: #000;
}

/* Typography */
.newsletter-title-69875 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    margin-top: 0;
}

.newsletter-desc-69875 {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Section Titles */
.newsletter-section-title-69875 {
    font-size: 16px;
    font-weight: 700;
    margin: 15px 0 10px;
    color: #333;
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Categories Grid */
.categories-label-69875 {
    text-align: left;
    font-weight: 600;
    margin-bottom: 10px;
    color: #444;
}

.categories-grid-69875 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
    text-align: left;
}

.category-checkbox-69875 {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.category-checkbox-69875 input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark-69875 {
    height: 18px;
    width: 18px;
    min-width: 18px; /* Prevent squishing */
    background-color: #eee;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    border: 1px solid #ccc;
    transition: all 0.2s;
}

.category-checkbox-69875:hover .checkmark-69875 {
    background-color: #ddd;
}

.category-checkbox-69875 input:checked ~ .checkmark-69875 {
    background-color: #2196F3;
    border-color: #2196F3;
}

.checkmark-69875:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.category-checkbox-69875 input:checked ~ .checkmark-69875:after {
    display: block;
}

/* Form Elements */
.newsletter-input-group-69875 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-email-input-69875 {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.newsletter-submit-btn-69875 {
    padding: 12px 24px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.newsletter-submit-btn-69875:hover {
    background-color: #0b7dda;
}

/* Footer Links */
.newsletter-footer-69875 {
    margin-top: 15px;
    font-size: 12px;
    color: #999;
}

.newsletter-link-69875 {
    color: #999;
    text-decoration: underline;
    cursor: pointer;
}

.newsletter-link-69875:hover {
    color: #666;
}

/* Success Message */
.success-icon-69875 {
    font-size: 48px;
    margin-bottom: 10px;
}

/* Tablet/Desktop Tweaks */
@media (min-width: 600px) {
    .newsletter-input-group-69875 {
        flex-direction: row;
    }
    
    .newsletter-submit-btn-69875 {
        width: auto;
    }
}
