.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;  /* Initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.popup {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 90%;
    margin: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.popup h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1a1a1a;
    line-height: 1.3;
}

.popup p {
    margin: 0 0 25px 0;
    color: #4a4a4a;
    font-size: 16px;
    line-height: 1.5;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Style for single button */
.buttons:has(.button:only-child) .button {
    min-width: 200px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 160px;
    line-height: 1;
}

.button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: -2px;
    vertical-align: middle;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.close {
    margin: 0;
    color: #666;
    font-size: 0.8em;
}

.close span {
    color: #2196F3;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.close span:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .popup {
        padding: 25px 20px;
    }
    
    .buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .button {
        width: 100%;
        justify-content: center;
    }
    
    /* Adjust single button width on mobile */
    .buttons:has(.button:only-child) .button {
        min-width: 100%;
    }
} 