/* Style de base pour la bannière cookies */
.cbrgpd-banner {
    position: fixed;
    bottom: 20px!important;
    left: 20px;
    width: 500px; /* Largeur ajustable selon besoin */
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    text-align: left;
}
.cbrgpd-banner-content {
    max-width: 1000px;
	font-size:14px;
    margin: auto;
    text-align: center;
}
.cbrgpd-banner-actions {
    margin-top: 15px;
}
.cbrgpd-btn {
    padding: 10px 20px;
    border: none;
    margin: 0 5px;
    cursor: pointer;
}
.cbrgpd-more-info a {
    text-decoration: underline;
}

/* Styles pour la modal des préférences */
.cbrgpd-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}
.cbrgpd-modal-content div {
    align-items: baseline; /* aligne les éléments sur la ligne de base du texte */

}

.cbrgpd-modal-content input[type="checkbox"] {
    margin-top: 0;
    margin-right: 8px;
}

#cbrgpd-floating-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: white url(https://proqc.com/wp-content/uploads/dessert-sweet-cookie-bakery_1.svg) no-repeat center center;
    background-size: 40%;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out, background-color 0.2s, opacity 0.2s;
}

/* Effet hover */
#cbrgpd-floating-button:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Responsive : Augmente la marge bottom sur mobile */
@media screen and (max-width: 768px) {
    #cbrgpd-floating-button {
        bottom: 90px;
    }
}

/* Responsive : Ajustements sur mobile */
@media screen and (max-width: 768px) {
    .cbrgpd-banner {
        width: 250px;
        padding: 10px;
    }
    #cbrgpd-floating-button {
        bottom: 80px;
    }
#cbrgpd-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;  /* centre verticalement */
    justify-content: center; /* centre horizontalement */
}

/* Contenu de la modal */
#cbrgpd-modal .cbrgpd-modal-content {
    max-width: 90%;        /* Pour ne pas déborder sur mobile */
    max-height: 50vh;      /* Ne pas dépasser la moitié de la hauteur de l’écran */
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    overflow-y: auto;      /* Scroll quand le contenu dépasse */
    position: relative;    /* Si vous avez des éléments positionnés */
}
}
/* Conteneur global d’une catégorie */
.cookie-category {
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

/* Ligne principale : flèche, nom, checkbox sur une seule ligne */
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* un peu d’espace en bas */
}

/* La flèche à gauche */
.category-arrow {
  margin-right: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Le label (nom de la catégorie) prend l’espace au milieu */
.category-label {
  margin-right: auto;
  cursor: pointer; /* si vous voulez que cliquer sur le label coche la case */
}

/* La checkbox reste à droite */
.cookie-category-row input[type="checkbox"] {
  margin-left: 10px;
}

/* Détails cachés */
.cookie-category-details {
  margin-left: 25px; /* petit décalage visuel */
  color: #333;
}
/* Style de la modal */
#cbrgpd-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

/* Contenu de la modal avec hauteur fixe et scrollbar */
#cbrgpd-modal .cbrgpd-modal-content {
  position: relative;
  width: 600px;
  max-height: 80vh;  /* hauteur maximum à 80% de la fenêtre */
  margin: 80px auto;
  background: #fff;
  padding: 20px;
  overflow-y: auto;  /* affiche la scrollbar en cas de dépassement */
  border-radius: 5px;
}

/* Style des catégories dans la modal */
.cookie-category {
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.category-arrow {
  margin-right: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  background: none;
  border: none;
  padding: 0;
}
.category-label {
  margin-right: auto;
  cursor: pointer;
}
.cookie-category-row input[type="checkbox"] {
  margin-left: 10px;
}
.cookie-category-details {
  margin-left: 25px;
  color: #333;
}
.cookie-detail-table {
  width: 90%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size:10px;
}

.cookie-detail-table th,
.cookie-detail-table td {
    border: 1px solid #ccc !important;
    padding: 0.5em;
}

.cookie-table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* pour un défilement fluide sur iOS */
}