/* Styles d'impression spÃ©cifiques */
.btn-payment {
    width: 50%;
    font-size: 24px;
    color: black;
}

/* Style de base - texte cachÃ© */
.bspayment-form-group small {
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.8em;
    color: #006f04;
    font-weight: bold;
    height: 3em;
}

/* Afficher au survol du conteneur parent */
.bspayment-form-group:hover small,
/* Ou au survol direct de l'icÃ´ne */
.bspayment-form-group .icon:hover + small {
    display: block;
    opacity: 1;
}

.form-group.terms {
    width: fit-content;
}

#terms_gen {
    float: left;
    margin-right: 10px;
}

#bspayment-form {
    display: flex;
    width: 75%;
    margin: 0 auto;
    padding: 20px;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: space-between;
}
div#bspayment-controls {
    display: flex;
    width: 100%;
}
#bspayment-form .btn-pay, #bspayment-form .btn-clear {
    display: flex;
    width: 40%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.g-recaptcha {
    margin: 15px 0;
    min-height: 78px;
    transition: all 0.3s;
}
.recaptcha-container {
	/* margin: 20px 0; */
}
.error-message {
	color: #dc3545;
	font-size: 0.875em;
	margin-top: 5px;
	display: none;
}
.is-invalid {
	border-color: #dc3545 !important;
}
/* Style de base qui s'adapte aux différentes langues */
.form-container {
    direction: ltr; /* Par défaut */
}

/* Adaptation pour les langues RTL (arabe, hébreu) */
[dir="rtl"] .form-container {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .g-recaptcha {
    direction: ltr; /* reCAPTCHA doit rester LTR */
    text-align: left;
    float: right;
}

@media print {
    body * {
        visibility: hidden;
    }
    #satim-payment-response, #satim-payment-response * {
        visibility: visible;
    }
    #satim-payment-response {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .no-print, .satim-actions {
        display: none !important;
    }
}

/* Styles normaux */

.satim-payment-response {
    width: 75%;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: Arial, sans-serif;
}

.satim-header {
    text-align: center;
    margin-bottom: 30px;
}

.satim-logo {
	width: 120px;
    height: auto;
}

.satim-result {
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.satim-result.success {
    background-color: #e8f5e9;
    border-left: 5px solid #4caf50;
}

.satim-result.rejected {
    background-color: #ffebee;
    border-left: 5px solid #f44336;
}

.satim-result.error {
    background-color: #ffcccc;
    border-left: 5px solid #ff0000;
}

.status-icon {
    font-size: 40px;
    margin-right: 20px;
}

.status-icon .icon-checkmark {
    color: #4caf50;
}

.status-icon .icon-blocked {
    color: #f44336;
}

.status-icon .icon-warning {
    color: #ffc107;
}

.satim-details {
    margin-bottom: 30px;
}

.satim-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.satim-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.satim-footer p {
    float: left;
}
.cib-logo {
    height: 30px;
    margin-top: 15px;
}

/* Conteneur principal */
table, .satim-payment-response {
    width: 75%;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.75);
}
table, tr, td {
	border: hidden !important;
}

/* En-tête */
.satim-header {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

/* Résultat */
.satim-result {
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 4px;
}

.satim-result.success {
    background-color: #dff0d8;
    color: #3c763d;
}

/* Détails de transaction */
.satim-details {
    margin-bottom: 20px;
}

.satim-details table {
    width: 100%;
    border-collapse: collapse;
}

.satim-details th, 
.satim-details td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

/* Boutons d'action */
.satim-actions {
    text-align: center;
    margin: 20px 0;
}

.satim-actions form, .satim-actions .btn, .satim-actions a {
    display: flex;
    background: #00aa81 !important;
    margin: 5px;
	width: 100%;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.satim-actions form {
    border-radius: 8px;
}

/* Pied de page */
.satim-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.cib-logo {
    max-width: 150px;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 640px) {
    .satim-payment-response {
        /* margin: 10px; */
        /* padding: 15px; */
    }
    
    .satim-actions .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

/* view model email*/
/* Modal principale */
#emailModal.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    overflow-y: auto;
	margin: 0;
}

/* Contenu de la modal */
#emailModal .modal-dialog {
    max-width: 500px;
    margin: 30px auto;
    position: relative;
    width: auto;
}

#emailModal .modal-content {
    position: relative;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    background-clip: padding-box;
    outline: 0;
}

/* En-tÃªte de la modal */
#emailModal .modal-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    min-height: 16.42857143px;
    background: #f8f8f8;
    border-radius: 6px 6px 0 0;
}

#emailModal .modal-title {
    margin: 0;
    line-height: 1.42857143;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

#emailModal .close {
    float: right;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.2;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

#emailModal .close:hover {
    opacity: 0.5;
}

/* Corps de la modal */
#emailModal .modal-body {
    position: relative;
    padding: 20px;
}

#emailModal .form-group {
    margin-bottom: 15px;
}

#emailModal label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
    color: #555;
}

#emailModal .form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

#emailModal .form-control:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

/* Pied de page de la modal */
#emailModal .modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
    background: #f8f8f8;
    border-radius: 0 0 6px 6px;
    display: flex;
}

#emailModal .btn {
    display: inline-block;
    padding: 10px 5px !important;!i;!;
    margin: 0 5px !important;!i;!;
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
}

#emailModal .btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

#emailModal .btn-default:hover {
    background-color: #e6e6e6;
    border-color: #adadad;
}

#emailModal .btn-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

#emailModal .btn-primary:hover {
    background-color: #286090;
    border-color: #204d74;
}

/* Animation */
#emailModal.fade .modal-dialog {
    transform: translate(0, -25%);
    transition: transform 0.3s ease-out;
}

#emailModal.in .modal-dialog {
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 768px) {
    #emailModal .modal-dialog {
        width: 90%;
        margin: 30px auto;
    }
    
    #emailModal .modal-content {
        box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 480px) {
    #emailModal .modal-footer {
        text-align: center;
    }
    
    #emailModal .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    #emailModal .btn:last-child {
        margin-bottom: 0;
    }
}

/* message dialog send by email */
#emailResultMessage {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

#background {
    background: url(../../../images/bg/payment-bg.jpg) !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}
.tab_payment {
    background: rgb(255 255 255 / 75%) !important;
}
h1.item-page-title {
    color: #ffff00;
}
#header-w #header {
    background: rgb(190 205 192 / 75%);
}
#footer-w {
	background: rgb(255 255 255 / 75%);
}
#bspayment-form label, #bspayment-form input, #bspayment-form button {
    font-weight: bold !important;
}