/* Styles pour l'intégration Stripe */
.card-element-container {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #fff;
    max-width: 100%;
    overflow: hidden;
}

#card-element {
    padding: 10px 0;
    font-size: 16px;
    width: 100%;
    min-height: 40px;
}

/* Amélioration de la responsivité des éléments Stripe */
.StripeElement {
    width: 100%;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px 0 #e6ebf1;
    -webkit-transition: box-shadow 150ms ease;
    transition: box-shadow 150ms ease;
}

.StripeElement--focus {
    box-shadow: 0 1px 3px 0 #cfd7df;
}

.StripeElement--invalid {
    border-color: #fa755a;
}

.StripeElement--webkit-autofill {
    background-color: #fefde5 !important;
}

/* Adaptation pour mobile */
@media (max-width: 768px) {
    #card-element {
        font-size: 14px;
    }
    
    .StripeElement {
        padding: 12px;
    }
}

.card-errors {
    color: #fa755a;
    margin-top: 10px;
    font-size: 14px;
    min-height: 20px;
}

.payment-error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    color: #d32f2f;
}

.payment-error i {
    margin-right: 8px;
}

/* Styles pour le bouton désactivé pendant le traitement */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    margin-right: 10px;
    animation: spin 1s infinite linear;
}

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