.spayo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Increased opacity for a more dimmed/darker background */
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.spayo-popup-overlay.show {
    opacity: 1;
}

.spayo-popup-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    padding: 40px 40px 40px 40px;
    border-radius: 16px;
    background-color: #FFFFFF;
    color: #1E293B;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.spayo-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    font-weight: 300;
    z-index: 10;
}

.spayo-popup-close:hover {
    color: #1E293B;
    transform: scale(1.1);
}

.spayo-popup-close:focus {
    outline: 2px solid #4338CA;
    outline-offset: 2px;
    border-radius: 4px;
}

.spayo-popup-title {
    margin: 10px 0 16px 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: #0F172A;
    text-align: center;
    padding: 0 30px;
}

.spayo-popup-description {
    margin: 0 0 28px 0;
    font-size: 17px; /* Slightly larger for readability */
    line-height: 1.6;
    color: #0F172A; /* Much darker text color for better contrast */
    font-weight: 500; /* Medium weight makes it "thicker" without being full bold */
    text-align: center;
}

.spayo-popup-description p {
    margin: 0 0 16px 0;
}

.spayo-popup-description p:last-child {
    margin-bottom: 0;
}

/* Resetting styles */
.spayo-popup-description ul,
.spayo-popup-description ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.spayo-popup-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 16px 36px;
    background: linear-gradient(135deg, #4338CA, #7E22CE);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: none;
    cursor: pointer;
    text-align: center;
}

.spayo-popup-button:hover {
    opacity: 0.95;
    box-shadow: 0 20px 25px -5px rgba(67, 56, 202, 0.3), 0 10px 10px -5px rgba(67, 56, 202, 0.2);
    transform: translateY(-2px);
    /* Forces bright yellow text on hover, overriding any theme inheritance */
    color: #FFFF00 !important; 
}

.spayo-popup-button:focus {
    outline: 2px solid #4338CA;
    outline-offset: 2px;
}

/* Animation */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.spayo-popup-content.zoomIn {
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile Optimization */
@media (max-width: 600px) {
    .spayo-popup-content {
        padding: 40px 24px 32px 24px;
        max-width: 92%;
    }
    
    .spayo-popup-close {
        top: 8px;
        right: 8px;
    }

    .spayo-popup-title {
        font-size: 24px;
        padding: 0 25px;
    }

    .spayo-popup-description {
        font-size: 16px;
    }

    .spayo-popup-button {
        width: 100%;
    }
}