/**
 * Plan Selection Popup Styles
 */

/* Change Plan Button */
.change-plan-button {
    background-color: #f8f9fa !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-plan-button:hover {
    background-color: #e9ecef !important;
}

.change-plan-row {
    text-align: right;
    padding-top: 10px !important;
}

/* Plan Selection Popup */
#plan-selection-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
}

.plan-selection-popup-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

.plan-selection-popup-content h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
    text-align: center;
}

.close-popup {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    font-weight: bold;
}

.close-popup:hover {
    color: #333;
}

.plan-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.plan-option {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.plan-option:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.plan-option h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.plan-price {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 15px;
    font-weight: bold;
}

.plan-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.select-plan-button {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-plan-button:hover {
    background-color: #5a6ecc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Body class when popup is open */
body.plan-popup-open {
    overflow: hidden;
}

/* Loading state */
.plan-option.loading {
    opacity: 0.7;
    pointer-events: none;
}

.plan-option.loading .select-plan-button {
    background-color: #ccc;
}

/* Hover effect for plan options */
.plan-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #667eea;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .plan-options {
        flex-direction: column;
    }
    
    .plan-option {
        max-width: 100%;
    }
    
    .plan-selection-popup-content {
        width: 95%;
        padding: 15px;
        margin: 30px auto;
    }
}
