/* payment-modal.css - Compact Razorpay Payment Modal Styles */

/* Razorpay Payment Modal - Ultra Compact Version */
#paymentModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 10px;
}

.payment-modal-content {
    background: white;
    width: 100%;
    max-width: 380px;
    padding: 18px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.form-group {
    margin-bottom: 4px;
}

.compact-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 4px 0;
}

.compact-input-group label {
    width: 115px;
    font-size: 0.82rem;
    color: #555;
    font-weight: 500;
    flex-shrink: 0;
}

.payment-modal-content input,
.payment-modal-content select {
    flex: 1;
    padding: 7px 9px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    box-sizing: border-box;
    transition: border 0.2s ease;
    height: 34px;
    min-height: 34px;
}

.payment-modal-content input:focus,
.payment-modal-content select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.08);
}

.payment-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #888;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    padding: 0;
    font-weight: bold;
}

.payment-close:hover {
    background: #f5f5f5;
    color: #333;
}

#finalPrice {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
    font-weight: 500;
    color: #333;
    border: 1px solid #e9ecef;
    font-size: 0.85rem;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 4px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
}

.price-line.total {
    font-weight: 600;
    font-size: 0.95rem;
    color: #4CAF50;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed #ccc;
}

.payment-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
    height: 40px;
}

.payment-btn:hover {
    background: linear-gradient(45deg, #45a049, #3d8b40);
    box-shadow: 0 3px 6px rgba(76, 175, 80, 0.2);
}

.payment-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Buy Button Styles */
.buy-button {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 5px;
    width: 100%;
    font-weight: 600;
    height: 30px;
    line-height: 1;
}

.buy-button:hover {
    background: linear-gradient(45deg, #1976D2, #1565C0);
    box-shadow: 0 2px 5px rgba(33, 150, 243, 0.15);
}

.price-tag {
    position: relative;
}

.button-group {
    display: flex;
    gap: 5px;
    margin-top: 6px;
}

.button-group .trial-button {
    flex: 1;
    height: 30px;
    font-size: 0.82rem;
    padding: 6px 8px;
}

.button-group .buy-button {
    flex: 1;
}

/* Add-on info in modal */
.addon-info {
    background: #f0f8ff;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 3px solid #4CAF50;
    font-size: 0.82rem;
}

.addon-info .name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    font-size: 0.85rem;
}

.addon-info .price {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Responsive adjustments for the modal */
@media (max-width: 480px) {
    .payment-modal-content {
        max-width: 320px;
        padding: 14px;
    }
    
    .compact-input-group {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 8px;
    }
    
    .compact-input-group label {
        width: 100%;
        margin-bottom: 3px;
        font-size: 0.78rem;
    }
    
    .payment-modal-content input,
    .payment-modal-content select {
        width: 100%;
        font-size: 0.82rem;
        height: 32px;
    }
    
    .payment-btn {
        font-size: 0.9rem;
        padding: 9px;
        height: 38px;
    }
    
    .addon-info {
        font-size: 0.78rem;
        padding: 5px 8px;
    }
    
    #finalPrice {
        padding: 8px;
        font-size: 0.82rem;
    }
    
    .buy-button {
        font-size: 0.78rem;
        padding: 5px 8px;
        height: 28px;
    }
}

@media (max-width: 350px) {
    .payment-modal-content {
        max-width: 280px;
        padding: 12px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 4px;
    }
    
    .button-group .trial-button,
    .button-group .buy-button {
        width: 100%;
    }
}

/* Custom scrollbar for modal */
.payment-modal-content::-webkit-scrollbar {
    width: 5px;
}

.payment-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.payment-modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.payment-modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}