/* PayPal Payments Modal Styles */

.ppayments-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ppayments-fadeIn 0.3s ease;
}

@keyframes ppayments-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ppayments-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.ppayments-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: ppayments-slideUp 0.3s ease;
}

@keyframes ppayments-slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ppayments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ppayments-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.ppayments-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ppayments-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.ppayments-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 90px);
}

/* Purchase Summary */
.ppayments-summary {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #e1e5e9;
}

.summary-icon {
    font-size: 48px;
    animation: coin-bounce 2s ease-in-out infinite;
}

@keyframes coin-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.summary-details {
    flex: 1;
}

.summary-details h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.summary-label {
    font-size: 15px;
    color: #718096;
    font-weight: 500;
}

.summary-value {
    font-size: 16px;
    color: #2d3748;
    font-weight: 600;
}

/* PayPal Section */
.ppayments-paypal-section {
    margin-bottom: 25px;
}

.ppayments-paypal-section h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.payment-description {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
}

.paypal-button-container {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e1e5e9;
}

/* Loading State */
.ppayments-loading {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #e1e5e9;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ppayments-loading p {
    margin: 0;
    font-size: 16px;
    color: #718096;
    font-weight: 500;
}

/* Success State */
.ppayments-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: success-bounce 0.5s ease;
}

@keyframes success-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.ppayments-success h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 600;
    color: #48bb78;
}

.ppayments-success p {
    margin: 0 0 25px 0;
    font-size: 15px;
    color: #718096;
    line-height: 1.5;
}

.ppayments-success-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #48bb78;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ppayments-success-btn:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

/* Error State */
.ppayments-error {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: error-shake 0.5s ease;
}

@keyframes error-shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.ppayments-error h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 600;
    color: #f56565;
}

.ppayments-error p {
    margin: 0 0 25px 0;
    font-size: 15px;
    color: #718096;
    line-height: 1.5;
}

.ppayments-retry-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #667eea;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ppayments-retry-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Security Notice */
.ppayments-security-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    font-size: 13px;
    color: #166534;
    line-height: 1.4;
}

.ppayments-security-notice svg {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ppayments-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .ppayments-header {
        padding: 20px;
    }
    
    .ppayments-header h2 {
        font-size: 20px;
    }
    
    .ppayments-body {
        padding: 20px;
        max-height: calc(95vh - 70px);
    }
    
    .ppayments-summary {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .summary-icon {
        font-size: 40px;
    }
    
    .summary-item {
        flex-direction: column;
        gap: 5px;
    }
}

/* Hide scrollbar but keep functionality */
.ppayments-body::-webkit-scrollbar {
    width: 8px;
}

.ppayments-body::-webkit-scrollbar-track {
    background: transparent;
}

.ppayments-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.ppayments-body::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

