/* Styles pour les options de paiement */
.payment-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-wave {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn-wave:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-orange {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: #FF6600;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn-orange:hover {
    background: #E55500;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.3);
}

.btn-dexpay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: #FF6B35;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn-dexpay:hover {
    background: #E55A24;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn-dexpay i {
    font-size: 1.1em;
}

/* Supprimer les anciens styles Stripe */
.btn-stripe {
    display: none;
}

.btn-wave, .btn-orange {
    display: none;
}

/* Section de paiement intégrée */
.payment-section {
    display: none;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    margin: 20px 0;
}

.payment-section.show {
    display: block;
    animation: fadeInUp 0.6s ease;
}

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

.payment-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.payment-header {
    text-align: center;
    margin-bottom: 40px;
}

.payment-header h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.payment-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.dexpay-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.dexpay-logo i {
    font-size: 1.2rem;
}

.payment-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.payment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.payment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.payment-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.payment-form input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.payment-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.payment-amount-display {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    margin: 25px 0;
}

.payment-amount-display h4 {
    margin-bottom: 10px;
    color: #666;
    font-size: 1.1rem;
}

.payment-amount-display .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF6B35;
    margin: 10px 0;
}

.payment-info {
    margin-top: 15px;
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-info i {
    color: #FF6B35;
}

.payment-methods-info {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid #e0e0e0;
}

.payment-methods-info h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.methods-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.methods-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 25px;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e0e0e0;
}

.methods-list span i {
    color: #FF6B35;
    font-size: 1.1rem;
}

.payment-actions {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.btn-pay {
    flex: 2;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    border: none;
    padding: 18px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-cancel {
    flex: 1;
    background: #6c757d;
    color: white;
    border: none;
    padding: 18px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .payment-section {
        padding: 20px 0;
        margin: 10px 0;
    }
    
    .payment-container {
        padding: 25px;
        margin: 0 15px;
    }
    
    .payment-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .payment-amount-display .amount {
        font-size: 2rem;
    }
    
    .methods-list {
        justify-content: center;
    }
}
.qr-codes-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.qr-codes-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.qr-codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.qr-code-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qr-code-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #666;
}

.qr-code-label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.qr-code-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Payment Status Indicators */
.payment-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.payment-status.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.payment-status.completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.payment-status.failed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.payment-status.cancelled {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Payment Methods Grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.payment-method-card {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-method-card:hover {
    border-color: #007bff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.1);
}

.payment-method-card.selected {
    border-color: #007bff;
    background: #f8f9ff;
}

.payment-method-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #666;
}

.payment-method-card:hover .payment-method-icon {
    color: #007bff;
}

.payment-method-card.selected .payment-method-icon {
    color: #007bff;
}

.payment-method-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.payment-method-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Payment Form */
.payment-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
}

.payment-form-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.payment-amount-display {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.payment-amount-display .amount {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
}

.payment-amount-display .currency {
    font-size: 1.2rem;
    color: #666;
    margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-options {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-wave, .btn-orange {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .qr-codes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .payment-amount-display .amount {
        font-size: 1.5rem;
    }
}

/* Animation pour les boutons de paiement */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.btn-wave.pulse {
    animation: pulse 2s infinite;
}

/* Loading states */
.payment-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.payment-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Success animation */
.payment-success {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
