/* fichier de style des éléments liés au rgpd */

/*********************/
/*   Bandeau RGPD    */
/*********************/

#rgpd-msg {
	position: fixed;
	top: 0;
	text-align: center;
	z-index: 9999;
	font-size: 15px;
}

/* partie contenant le titre du bandeau - #rgpd-msg > #rpgd-title */
/* partie contenant les boutons d'actions du bandeau - #rgpd-msg > #rpgd-actions */

/**************************************************************/
/*   modal gestion des cookies - page donnees personnelles    */
/**************************************************************/

/* container général */
.ck_switch_container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* section de gestion d'un cookie */
.ck_switch {
  flex-basis: 33.333%; /* prend au minimum 1/3 du container - au max 3 section */
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
  flex-grow: 1; /* prend la place restante si moins de 3 sections */
}

@media(max-width:1199px) {
  .ck_switch {
    flex-basis: 100%;
  }
}

/* titre contenant le bouton d'activation */
.ck_switch_header {
  display:flex;
  align-items: baseline;
  margin-top: 10px;
  margin-bottom: 15px;
}

/* titre reel */
.ck_switch_title {
  text-align: right;
  font-size: 15px;
  /* remove bootstrap defaults */
  margin-top: 0;
  margin-bottom: 0;
  flex-grow: 1;
}

/* bouton d'activation */
.ck_switch_btn {
  margin-left: 15px;
  width: calc(50% - 27.5px);
}

@media(max-width:1199px) {

  .ck_switch_btn {
    width: calc(50% - 27.5px); /* sert a centrer le titre au milieu */
  }
}
@media(min-width:1200px) {

  .ck_switch_btn {
    flex-basis: 25%;
  }
}

/* description du cookie */
.ck_switch_description {
  text-align: justify;
}

/* Matérial Switch (bouton d'activation) */

.material-switch > input[type="checkbox"] {
  display: none;
}

.material-switch > label {
  cursor: pointer;
  height: 0px;
  position: relative;
  width: 40px;
}

.material-switch > label::before {
  background: rgb(0, 0, 0);
  box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  content: '';
  height: 16px;
  margin-top: -8px;
  position:absolute;
  opacity: 0.3;
  transition: all 0.4s ease-in-out;
  width: 40px;
}
.material-switch > label::after {
  background: rgb(255, 255, 255);
  border-radius: 16px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
  content: '';
  height: 24px;
  left: -4px;
  margin-top: -8px;
  position: absolute;
  top: -4px;
  transition: all 0.3s ease-in-out;
  width: 24px;
}
.material-switch > input[type="checkbox"]:checked + label::before {
  background: inherit;
  opacity: 0.5;
}
.material-switch > input[type="checkbox"]:checked + label::after {
  background: inherit;
  left: 20px;
}