/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
#file-preview-container {
    display: none;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px dashed #ccc;
    padding: 20px 10px 10px; /* Ajout de padding en haut */
    border-radius: 5px;
    background: #f9f9f9;
    text-align: center;
    max-width: 100%;
    position: relative; /* Permet au bouton de se positionner dessus */
    margin-left: auto;
    margin-right: auto;
}

#file-preview-container p {
    margin: 0px;
    font-size: 12px;
    display: flex;
    justify-content: left;
}

#previewCanvas {
    border: 1px solid #ddd;
    max-width: 200px;
    display: block;
    margin: auto;
    margin-top: 10px;
}

.preview-box {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
  }
  
  #previewCanva,
  #previewImage {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    border-radius: 5px;
  }

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



/*input#custom_upload{*/
/*    border: 1px solid;*/
/*    border-radius: 8px;*/
/*}*/

#remove-file {
    position: absolute;
    top: 2px;
    right: 0px;
    background: #353535 !important;
    color: white;
    border: none;
    padding: 3px 8px; /* Réduction de la taille du bouton */
    cursor: pointer;
    border-radius: 10%;
    font-size: 10px; /* Réduction de la taille du texte */
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/**
 * Border radius image box
 **/
.border-radius-5 .box-image {
	border-radius: 5px  !important;
}

.border-radius-10 .box-image {
	border-radius: 10px  !important;
}

.border-radius-15 .box-image {
	border-radius: 15px  !important;
}

.border-radius-20 .box-image {
	border-radius: 20px  !important;
}

.border-radius-25 .box-image {
	border-radius: 25px !important;
}

.p_livraison {
    margin-bottom: 0px !important;
    margin-top:0px; !important;
}

.product-short-description .short-descr-dtf{
    border: 2px solid #0EBDDE;
    padding: 15px;
    border-radius: 10px;
}

.custom-upload {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.custom-upload label {
    font-weight: bold;
    margin-bottom: 5px;
}

.custom-upload input[type="file"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    border: none;
    padding: 0;
    width: auto;
}

.custom-upload input[type="file"]::-webkit-file-upload-button {
    background-color: #4CAF50; /* Vert */
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.custom-upload input[type="file"]::-moz-file-upload-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}



/* Overlay de chargement en plein écran */
#loadingOverlay {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);

  /* Flexbox pour centrer verticalement et horizontalement */
  display: flex;
  flex-direction: column;     /* Empile spinner + texte en colonne */
  align-items: center;       /* Centre horizontalement */
  justify-content: center;   /* Centre verticalement */
}

/* Le spinner */
.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;  /* espace entre le spinner et le texte */
}

/* Le texte en dessous du spinner */
.loading-text {
  font-size: 16px;
  color: #333;
  text-align: center;
  margin: 0;
}

/* Animation du spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-progress {
  font-size: 14px;
  color: #333;
  text-align: center;
  margin-top: 10px;
}




@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}