/**
 * PayPal Integration Styles for Razen Creations
 */

/* PayPal Modal Styles */
.rez-paypal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.rez-paypal-modal-content {
    position: relative;
    background-color: var(--bg-2, #1d1d1d);
    color: var(--text-color, #fff);
    margin: 0 auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.rez-paypal-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color, #fff);
    transition: color 0.3s;
}

.rez-paypal-modal-close:hover {
    color: var(--color-1, #00b4ff);
}

.rez-paypal-modal-title {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    color: var(--color-1, #00b4ff);
    text-align: center;
}

.rez-paypal-modal-details {
    margin-bottom: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
}

.rez-paypal-plan-title,
.rez-paypal-plan-price {
    margin: 8px 0;
    font-size: 16px;
}

.rez-paypal-plan-price {
    font-weight: 600;
    color: var(--color-1, #00b4ff);
    font-size: 20px;
}

#paypal-button-container {
    margin: 20px 0;
    min-height: 100px;
}

.rez-paypal-notice {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: 20px;
}

/* Sandbox Button Styles (for testing) */
.rez-paypal-sandbox-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.rez-paypal-sandbox-button {
    background-color: #0070ba;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 300px;
}

.rez-paypal-sandbox-button:hover {
    background-color: #003087;
}

.rez-paypal-sandbox-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 0;
}

/* Payment Success Message */
.rez-paypal-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.5s;
}

.rez-paypal-success i {
    font-size: 50px;
    color: #00c851;
    margin-bottom: 15px;
}

.rez-paypal-success h4 {
    margin: 10px 0;
    font-size: 22px;
    color: var(--color-1, #00b4ff);
}

.rez-paypal-success p {
    margin: 5px 0;
}

.rez-paypal-close-button {
    margin-top: 20px;
    background-color: var(--color-1, #00b4ff);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rez-paypal-close-button:hover {
    background-color: var(--color-2, #ff4e50);
}

/* Processing Animation */
p.processing {
    text-align: center;
    font-size: 16px;
    margin: 20px 0;
    position: relative;
    padding-bottom: 30px;
}

p.processing:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-1, #00b4ff), var(--color-2, #ff4e50));
    animation: processing 1.5s infinite;
    border-radius: 2px;
}

@keyframes processing {
    0% { width: 0; opacity: 1; }
    50% { width: 50px; opacity: 0.5; }
    100% { width: 100px; opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .rez-paypal-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .rez-paypal-modal-title {
        font-size: 20px;
    }
}
