/****** Les ckeckbox produits ********/

#cdogf-label-remplacement {
	margin-bottom: 25px;
	font-style: italic;
}

/* Le label contenant la checkbox */
.cdogf-label-conteneur {
	display: inline-block;
	position: relative;
	padding-left: 2em;
	margin-bottom: 25px;
	cursor: pointer;
	font-size: 1em;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
  }
  
  /* Cache la checkbox par défaut du navigateur */
  .cdogf-label-conteneur input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
  }
  
  /* Crée la checkbox customisée*/
  .cdogf-checkbox, .cdogf-checkbox-secondaire {
	position: absolute;
	top: 0;
	left: 0;
	height: 1.5em;
	width: 1.5em;
	background-color: #eee;
	border-radius: 0.5em;
  }
  
  /* Quand la souris passe dessus, ajoute un fond gris */
  .cdogf-label-conteneur:hover input ~ .cdogf-checkbox, .cdogf-label-conteneur:hover input ~ .cdogf-checkbox-secondaire {
	background-color: #ccc;
  }
  
  /* Quand la checkbox est checké, colore le fond */
  .cdogf-label-conteneur input:checked ~ .cdogf-checkbox {
	background-color: #298D36;
  }

  /* Quand le checkbox "Pas de panier mixte" est checké, colore le fond */
  .cdogf-label-conteneur input:checked ~ .cdogf-checkbox-secondaire {
	background-color: var( --e-global-color-accent ) !important;
  }

.cdogf-conteneur-quantite {
    visibility: hidden;
    display: inline-block;
    margin-left: 0.5em;
}

.cdogf-conteneur-produit-option div
{
    display: inline-block;
}

/* Cache l'input nombre par défaut du navigateur */
.cdogf-conteneur-quantite input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.numbertxt {
    margin: 1em;
}

.cdogf-bouton-quantite {
	background-color: #F79646 !important;
    border: none !important;
    color: white !important;
    text-align: center !important;
    padding: 5px 12px !important;
}

/************ Change the radio button ********/

.cdogf-conteneur-radio {
	display: block;
	position: relative;
	padding-left: 35px;
	cursor: pointer;
	-webkit-user-select:none;
	-moz-user-select:none;
	-ms-user-select:none;
	user-select: none;
}

/* Hide the browser's default radio button ***/
.cdogf-conteneur-radio input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

/* Create the custom radio button */
.cdogf-checkmark {
	position: absolute;
	top: 0;
	left: 0;
	height: 25px;
	width: 25px;
	background-color: #eee;
	border-radius: 50%;
}

/* On mouse-over, add a background color */
.cdogf-conteneur-radio:hover input ~.cdogf-checkmark {
	background-color: #ccc;
}

/* When the radio button is checked, add a background */
.cdogf-conteneur-radio input:checked ~.cdogf-checkmark {
	background-color: #FA5F4B;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.cdogf-checkmark:after {
	content : "";
	position: absolute;
	display: none;
}

/* Show the indicator (dot/circle) when checked */
.cdogf-conteneur-radio input:checked ~.cdogf-checkmark:after {
	display: block;
}

/* Style the indicator (dot/circle) */
.cdogf-conteneur-radio .cdogf-checkmark:after {
	top: 9px;
	left: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
}

/******* Les inputs *******/

.cdogf-complete-input 
{
	margin: 1em;
}

.cdogf-label-input
{
	text-transform: uppercase;
	font-size: 12px;
}

.cdogf-input-text {
	padding: 0.5em 0;
	border: none;
	border-bottom: 1px solid #ccc;
	width: 100%;
	font-size: 1em;
	background-color: transparent;
}

.cdogf-input-select {
	padding: 0.5em 0;
	border: none;
	border-bottom: 1px solid #ccc;
	width: auto;
	font-size: 1em;
	margin: 1em;
	background-color: transparent;
	color: #000;
	min-width: 70px;
}

.cdogf-conteneur-inline {
	display: flex;
	justify-content: center;
	align-items: center;
}

/****** Les boutons *******/

.cdogf-button {
	background-color : var( --e-global-color-accent ) !important;
	font-family : var( --e-global-typography-accent-font-family ), Sans-serif !important;
	font-weight : var( --e-global-typography-accent-font-weight ) !important;
	color : #fff !important;
	border: none !important;
	display: block !important;
	margin: auto !important;
}

.cdogf-button:hover {
	color : #fff !important;
}

.cdogf-a-button {
	background-color : var( --e-global-color-accent ) !important;
	font-family : var( --e-global-typography-accent-font-family ), Sans-serif !important;
	font-weight : var( --e-global-typography-accent-font-weight ) !important;
	color : #fff !important;
	border: none !important;
	border-radius: 3px;
	text-align: center;
	display: inline-block !important;
	padding: .5rem 1rem;
}

/***** Blocs *****/

.cdogf-center-block {
	text-align: center;
}

.cdogf-background-h2 {
	background-color: #019D90;
	border-radius: 25px;
	text-align: center;
	color: #fff;
	padding: 10px;
}

.cdogf-background-h3 {
	background-color: var( --e-global-color-accent );
	border-radius: 25px;
	text-align: center;
	color: #fff;
	padding: 10px;
	width: 70%;
	margin-left: auto;
	margin-right: auto;
}

#cdogf-conteneur-prix-total {
	background-color: #019D90;
	position: sticky;
	bottom: 0;
	height: auto;
	width: auto;
	padding: 0.5em;
	border-radius: 3px;
	font-weight: bold;
	font-size: 1.2em;
	color: white;
	text-align: center;
}

/* Styles pour la popup */
.popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Empêche tout débordement */
	z-index: 1000;
}

/* Contenu de la popup */
.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 95vw;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden; /* Empêche le débordement horizontal */
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    box-sizing: border-box; /* Évite que le padding agrandisse la popup */
    word-wrap: break-word; /* Coupe les mots trop longs */
    white-space: normal; /* S'assure que le texte ne force pas un débordement */
}

/* Bouton de fermeture */
.close-popup {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 25px;
    cursor: pointer;
}

/* Média query pour les appareils mobiles */
/* Ajustement pour les petits écrans */
@media (max-width: 768px) {
    #cdogf-conteneur-prix-total {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 500;
		padding:0;
    }

	.popup-content {
		bottom: 5%;
		left: 5%; /* Centre horizontalement */
		transform: translateX(-5%); /* Déplace de la moitié de sa largeur pour rester centré */
		padding: 5%;
	}
}

.cdogf-alert-text {
	background-color: #F66358;
	color: #fff;
	padding: 5px 15px;
	border-radius: 25px;
	display: block;
	margin-bottom: 10px;
}