.product_form-label {
    color: #363636 !important;
}

.product_form-submit {
    border-radius: 5px;
    background-color: #ffd64f;
    padding: 14px 18px;
    border: 0;
    font-weight: 700;
    cursor: pointer;
    color: #212121;
    display: flex;
    align-items: center;
}

.product_form-submit .loader-edit-carte {
    display: none;
}

.product_form-submit.loading .loader-edit-carte {
    display: block;
    margin-left: 9px;

}

#carte_versement-product_form {
    margin-top: 18px;
}

.loader-edit-carte {
    border: 3px solid #fff;
    border-radius: 50%;
    border-top: 3px solid transparent;
    width: 15px;
    height: 15px;
    -webkit-animation: spin 2s linear infinite;
    /* Safari */
    animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.button-cart-container {
    margin-top: 9px;
    display: flex;
}

#edit-preview-button {
    margin-right: 9px;
}

/* Carte de versement */
.product_form-field-container {
    margin-bottom: 18px;
}

.product_form-input-container {
    display: flex;
    align-items: center;
}

.product_form-input-container .product_form-label {
    width: 160px;
    text-align: end;
    margin-right: 18px;
}

.product_form-input-container .product_form-input,
.product_form-input-container .product_form-select {
    width: auto !important;
    flex: 1 !important;
}

.product_form-description-label {
    margin-left: 178px;
}



.annuler_commande,
.valider_commande {
    width: fit-content;
    position: relative;
    display: inline-block;
}

.annuler_commande_modal,
.valider_commande_modal {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    z-index: 10;
    background-color: #fff;
    box-shadow: 0 8px 24px 0 rgba(149, 157, 165, 0.2);
    width: max-content;
    height: max-content;
    border-radius: 5px;
    padding: 14px;
}

.annuler_commande_modal_form,
.valider_commande_modal_form {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.annuler_commande_modal_button,
.valider_commande_modal_button {
    border-radius: 5px;
    background-color: #ffd64f;
    padding: 8px;
    border: 0;
    cursor: pointer;
    color: #212121;
    display: flex;
    align-items: center;
}

.annuler_commande_modal_input,
.valider_commande_modal_input {
    border-radius: 5px;
    background-color: #ffd64f;
    padding: 8px;
    border: 0;
    cursor: pointer;
    color: #212121;
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.message_form {
    width: 100%;
    padding: 15px;
}

.message_form.success {
    color: #11b76b;
    background-color: #e6f6ed;
    border-radius: 5px;
    border: 1px solid #11b76b;
}

.message_form.error {
    color: #f44336;
    background-color: #ffebee;
    border-radius: 5px;
    border: 1px solid #f44336;
}

.actions-button-container i {
    color: #666;
    transition: all 0.25s ease-in-out;
}

.actions-button-container i:hover {
    color: #333;
}

.actions-button-container .modifier_utilisateur,
.actions-button-container .regenerate_token_utilisateur {
    margin-right: 10px;
}

.deleteIcon:hover {
    color: #ec4e4e !important;
}

.editIcon {
    color: inherit;
}

.editIcon:hover {
    color: #ffd64f;
}

.checkIcon:hover {
    color: #11b76b;
}

.product_form-section {
    margin-top: 12px;
}

.product_form-section .product_form-label {
    margin-top: 8px;
}

.normal-product-validation-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-preview-image-container {
    overflow: visible;
}

#product-generated-preview-image {
    box-shadow: 0 8px 24px 0 rgba(149, 157, 165, 0.2);
}

.product-image-table {
    box-shadow: 0 8px 24px 0 rgba(149, 157, 165, 0.2);
}

.product-preview-container {
    display: flex;
    gap: 18px;
    margin: 32px 0;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper {
    width: 100%;
    height: 500px !important;
    margin-left: auto;
    margin-right: auto;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}

.main-slider {
    flex: 1;
    width: 100%;
    height: 100%;
}

.thumbnail-slider {
    flex: 0.3;
    box-sizing: border-box;
}

.thumbnail-slider .swiper-slide {
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.thumbnail-slider .swiper-slide.swiper-slide-thumb-active {
    opacity: 1;
}

.swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
    border-radius: 5px !important;
    border: 1px solid #ccc !important;
    background-color: var(--background-color)
}

.main-slider img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
    border-radius: 5px !important;
    border: 1px solid #ccc !important;
    background-color: var(--background-color)
}

/* Bouton "Voir image existante" - Style moderne dashboard */
.view-existing-image-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    margin-left: 12px;
    margin-bottom: 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-width: 36px;
    height: 36px;
    position: relative;
}

.view-existing-image-btn:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #212529;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.view-existing-image-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.view-existing-image-btn:focus {
    outline: 2px solid #4d90fe;
    outline-offset: 2px;
}

.view-existing-image-btn .fa-pen {
    font-size: 14px;
    color: inherit;
}

/* Container pour input file et bouton sur la même ligne */
.image-file-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.image-file-input-container .image-file-input {
    flex: 1;
    min-width: 0;
}

/* Style pour les champs image dans les formulaires */
.product_form-input-container .image-file-input-container {
    flex: 1;
}

.product_form-input-container .image-file-input-container .image-file-input {
    width: 100%;
}

.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.image-preview-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.image-preview-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.image-preview-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.image-preview-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.image-preview-modal-body {
    padding: 20px;
}

.image-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin-bottom: 15px;
}

/* Styles spécifiques pour les boutons de contrôle du cropper - surcharge des styles inline */
.image-preview-modal-body .cropper-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 15px !important;
    padding: 10px !important;
    background-color: #f8f9fa !important;
    border-radius: 6px !important;
    border: 1px solid #e9ecef !important;
}

.image-preview-modal-body .cropper-zoom-out,
.image-preview-modal-body .cropper-zoom-in,
.image-preview-modal-body .cropper-reset {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    color: #495057 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    min-width: 100px !important;
    margin: 0 5px !important;
}

.image-preview-modal-body .cropper-zoom-out:hover,
.image-preview-modal-body .cropper-zoom-in:hover,
.image-preview-modal-body .cropper-reset:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #212529 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px) !important;
}

.image-preview-modal-body .cropper-zoom-out:active,
.image-preview-modal-body .cropper-zoom-in:active,
.image-preview-modal-body .cropper-reset:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) !important;
}

.image-preview-modal-body .cropper-zoom-out:focus,
.image-preview-modal-body .cropper-zoom-in:focus,
.image-preview-modal-body .cropper-reset:focus {
    outline: 2px solid #4d90fe !important;
    outline-offset: 2px !important;
}

.image-preview-modal-body .cropper-zoom-out .fa-magnifying-glass-minus,
.image-preview-modal-body .cropper-zoom-in .fa-magnifying-glass-plus,
.image-preview-modal-body .cropper-reset .fa-rotate-left {
    margin-right: 6px !important;
    font-size: 14px !important;
}

.image-preview-modal-body .cropper-zoom-out {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
}

.image-preview-modal-body .cropper-zoom-in {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
}

.image-preview-modal-body .cropper-reset {
    background-color: #fff3cd !important;
    border-color: #ffeaa7 !important;
    color: #856404 !important;
}

.image-preview-modal-body .cropper-reset:hover {
    background-color: #ffeaa7 !important;
    border-color: #ffd43b !important;
    color: #664d03 !important;
}

.image-preview-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
}

.image-preview-btn-cancel,
.image-preview-btn-ok {
    padding: 8px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.image-preview-btn-cancel {
    background-color: #f0f0f0;
    color: #333;
}

.image-preview-btn-ok {
    background-color: #007cba;
    color: white;
}

.image-preview-btn-cancel:hover {
    background-color: #e0e0e0;
}

.image-preview-btn-ok:hover {
    background-color: #006ba1;
}

/* Styles pour les contrôles du cropper */
.cropper-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.cropper-zoom-out,
.cropper-zoom-in,
.cropper-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    min-width: 100px;
}

.cropper-zoom-out:hover,
.cropper-zoom-in:hover,
.cropper-reset:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.cropper-zoom-out:active,
.cropper-zoom-in:active,
.cropper-reset:active {
    transform: translateY(0);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.cropper-zoom-out:focus,
.cropper-zoom-in:focus,
.cropper-reset:focus {
    outline: 2px solid #4d90fe;
    outline-offset: 2px;
}

.cropper-zoom-out .fa-magnifying-glass-minus,
.cropper-zoom-in .fa-magnifying-glass-plus,
.cropper-reset .fa-rotate-left {
    margin-right: 6px;
    font-size: 14px;
}

.cropper-zoom-out {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.cropper-zoom-in {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.cropper-reset {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.cropper-reset:hover {
    background-color: #ffeaa7;
    border-color: #ffd43b;
    color: #664d03;
}

/* Styles pour le container du cropper */
.cropper-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.cropper-container img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
}

/* Amélioration de la modal pour le cropper */
.image-preview-modal-body {
    padding: 20px;
    background-color: #f8f9fa;
}

.image-preview-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin-bottom: 15px;
}