/* Style pour la fenêtre modale */
#assiste-moi-tcf-div {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.modal {
    display: none; /* Par défaut, masqué */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.codes-container {
    margin-top: 20px;
}

.code-item {
    margin-bottom: 15px;
}

.modal-buttons {
    margin-top: 20px;
    text-align: center;
}

.modal-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin: 10px;
}

.modal-button:hover {
    background-color: #45a049;
}

.whatsapp-share-button {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.whatsapp-share-button:hover {
    background-color: #1ebe57;
}


#paymentModal .modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

#paymentModal #phone-number {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.payment-button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.payment-button:hover {
    background-color: #45a049;
}

#payment-message {
    color: #333;
    margin-top: 10px;
}


/* CSS pour le loader */
.loader {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles pour masquer le texte du bouton lorsque le loader est actif */
.button-text {
    display: inline-block;
}

.button-loading .button-text {
    display: none;
}

.button-loading .loader {
    display: inline-block;
}


.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-controls button {
    width: 40px;
    height: 40px;
    font-size: 20px;
    text-align: center;
    margin: 0 5px;
}

#donation_beneficiaries {
    width: 60px;
    text-align: center;
}

.total-amount {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

#additional-fields {
    margin-top: 20px;
}

#payment-buttons {
    margin-top: 20px;
}

.payment-button {
    margin-top: 10px;
    padding: 10px 20px;
}


form {
    width: 100%;
    margin-top: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-controls button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

#donation_beneficiaries {
    text-align: center;
    width: 60px;
    margin: 0 0.5rem;
}

.total-amount p {
    font-weight: bold;
}

.anonymous-option {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Grilles pour les grands écrans */
@media (min-width: 768px) {
    .form-row {
        display: flex;
        justify-content: space-between;
    }

    .form-group {
        width: 48%;
    }

    /* Ajuster la taille des boutons de paiement */
    #payment-buttons {
        display: flex;
        justify-content: space-between;
    }

    #payment-buttons button {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}
/* Sur petits écrans */
@media (max-width: 767px) {
    .form-row {
        display: block;
    }

    .form-group {
        width: 100%;
    }

    #payment-buttons {
        display: flex;
        flex-direction: column;
    }

    #payment-buttons button {
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0.5rem;
    }
}