/**
 * WP AI Theme - Payment Styles
 */

/* Pulsante di acquisto */
.wpai-purchase-button-container {
    margin: 20px 0;
}

.wpai-purchase-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.wpai-purchase-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.wpai-purchase-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.2);
}

/* Modale di pagamento */
#wpai-payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

#wpai-payment-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
}

.wpai-payment-modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.wpai-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wpai-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1e293b;
}

.wpai-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: 0;
}

.wpai-modal-body {
    padding: 20px;
}

.wpai-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background-color: #f8fafc;
}

/* Informazioni prodotto */
.wpai-product-info {
    display: flex;
    margin-bottom: 20px;
}

.wpai-product-image {
    width: 120px;
    margin-right: 20px;
}

.wpai-product-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.wpai-product-details {
    flex: 1;
}

.wpai-product-details h4 {
    margin: 0 0 10px;
    font-size: 18px;
}

.wpai-product-price {
    font-size: 18px;
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 10px;
}

.wpai-product-description {
    font-size: 14px;
    color: #64748b;
}

/* Metodi di pagamento */
.wpai-payment-methods {
    margin-top: 20px;
}

.wpai-payment-methods h4 {
    margin: 0 0 15px;
    font-size: 16px;
}

.payment-method-option {
    margin-bottom: 10px;
}

.payment-method-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s;
}

.payment-method-option label:hover {
    background-color: #f8fafc;
}

.payment-method-option input[type="radio"] {
    margin-right: 10px;
}

.payment-method-option img {
    height: 24px;
    margin-right: 10px;
}

.payment-method-content {
    margin: 10px 0 20px;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 6px;
}

/* Pulsante di pagamento */
.wpai-payment-actions {
    margin-top: 20px;
    text-align: center;
}

.wpai-payment-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.wpai-payment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.wpai-payment-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.2);
}

/* Pagamento sicuro */
.wpai-secure-payment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #64748b;
}

.wpai-secure-payment .dashicons {
    margin-right: 5px;
    color: #10b981;
}

/* Contenuto già acquistato */
.wpai-already-purchased {
    padding: 10px 15px;
    background-color: #d1e7dd;
    color: #0f5132;
    border-radius: 6px;
    margin: 20px 0;
    font-weight: 500;
}

/* Messaggio di successo */
.wpai-payment-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.payment-success-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    text-align: center;
}

.payment-success-content .dashicons-yes-alt {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #10b981;
    margin-bottom: 20px;
}

.payment-success-content h3 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #1e293b;
}

.payment-success-content p {
    margin: 0 0 20px;
    font-size: 16px;
    color: #64748b;
}

.wpai-message-close {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6366f1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpai-message-close:hover {
    background-color: #4f46e5;
}

/* Responsive */
@media (max-width: 768px) {
    #wpai-payment-modal.active {
        padding-top: 20px;
    }
    
    .wpai-product-info {
        flex-direction: column;
    }
    
    .wpai-product-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .wpai-product-image img {
        max-width: 200px;
    }
} 