/* ==============================================
   VERGE POPUP - STYLES
   ============================================== */

.verge-popup-overlay {
    display: none ;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.verge-popup-overlay.active {
    display: flex;
}

.verge-popup-container {
    background: white;
    border-radius: 16px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: vergeSlideIn 0.3s ease-out;
}

@keyframes vergeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.verge-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    z-index: 10;
    line-height: 1;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.2s;
}

.verge-popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.verge-popup-content {
    padding: 50px 40px 40px;
}

.verge-popup-header {
    text-align: center;
    margin-bottom: 35px;
}

.verge-popup-product-image {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.verge-popup-header h2 {
    font-size: 15px;
    margin: 0;
    color: #2c6e6f;
    font-weight: 600;
}

.verge-popup-plans {
    margin-bottom: 30px;
}

.verge-plan-option {
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
}

.verge-plan-option:hover {
    border-color: #2c6e6f;
    background: #f8fafa;
    box-shadow: 0 2px 8px rgba(44, 110, 111, 0.1);
}

.verge-plan-option.selected {
    border-color: #2c6e6f;
    background: #e8f4f5;
    box-shadow: 0 4px 12px rgba(44, 110, 111, 0.15);
}

.verge-plan-info {
    flex: 1;
}

.verge-plan-name {
    font-size: 17px;
    font-weight: 600;
    color: #2c3d3e;
    margin-bottom: 6px;
}

.verge-plan-price {
    font-size: 24px;
    font-weight: 700;
    color: #2c6e6f;
}

.verge-plan-radio {
    width: 24px;
    height: 24px;
    border: 3px solid #2c6e6f;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.verge-plan-option.selected .verge-plan-radio {
    border-width: 2px;
}

.verge-plan-option.selected .verge-plan-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #2c6e6f;
    border-radius: 50%;
}

.verge-popup-submit {
    width: 100%;
    background: #2c6e6f;
    color: white;
    border: none;
    padding: 18px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verge-popup-submit:hover {
    background: #234f50;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 110, 111, 0.3);
}

.verge-popup-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.verge-popup-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .verge-popup-container {
        width: 95%;
    }
    
    .verge-popup-content {
        padding: 40px 25px 30px;
    }
}
