/* Préférences FR/EN sur ordinateur, sans modifier les options affichées par Complianz. */
@media (min-width: 769px) {
  html:is([lang|="fr"],[lang|="en"]) #cmplz-cookiebanner-container .cmplz-cookiebanner:has(.cmplz-categories) {
    justify-items: stretch;
    align-content: start;
    overflow-y: auto;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }
  html:is([lang|="fr"],[lang|="en"]) #cmplz-cookiebanner-container .cmplz-body:has(.cmplz-categories) {
    box-sizing: border-box; justify-self: stretch; min-width: 0; max-width: 100%;
    margin-inline: 0; height: auto; max-height: none; overflow: visible;
  }
  html:is([lang|="fr"],[lang|="en"]) #cmplz-cookiebanner-container .cmplz-categories {
    align-self: start; justify-self: stretch;
    box-sizing: border-box; width: 100%; min-width: 0;
    max-height: min(45vh, 25rem) !important;
    overflow-y: auto !important;
    margin-inline: 0 !important;
    padding-inline: 2px;
  }
  html:is([lang|="fr"],[lang|="en"]) #cmplz-cookiebanner-container .cmplz-category {
    box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0;
    margin-inline: 0 !important; text-align: start;
  }
  html:is([lang|="fr"],[lang|="en"]) #cmplz-cookiebanner-container .cmplz-category-header {
    box-sizing: border-box; min-width: 0; max-width: 100%;
    padding-inline: .65rem; justify-content: start;
  }
  html:is([lang|="fr"],[lang|="en"]) #cmplz-cookiebanner-container :is(.cmplz-category-title,.cmplz-description) {
    min-width: 0; white-space: normal; overflow-wrap: anywhere;
    text-indent: 0; text-align: start;
  }
}

/* Conserver le texte intégral dans la largeur du bandeau, FR et EN. */
#cmplz-cookiebanner-container .cmplz-cookiebanner {
  grid-template-columns: minmax(0, 1fr);
}
#cmplz-cookiebanner-container .cmplz-cookiebanner :is(.cmplz-body,.cmplz-message) {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-indent: 0;
  height: auto !important;
  max-height: none !important;
}
