.setb2br-native-switch,
.setb2br-link {
  margin: 0 0 1rem;
}
.setb2br-native-switch .btn,
.setb2br-link .btn {
  white-space: normal;
}
.setb2br-hidden-field {
  display: none !important;
}

/* Separación visual entre el selector B2B y el comienzo del formulario. */
.setb2br-toggle-block {
  margin-bottom: 28px !important;
}

/* Evita que el tema añada un hueco grande entre nacimiento y empresa. */
.setb2br-birthday-anchor {
  margin-bottom: 0 !important;
}
.setb2br-after-birthday {
  margin-top: 0 !important;
}

/* Oculta exclusivamente los wrappers vacíos de consentimientos y del selector
   que PrestaShop genera dentro del formulario B2B. Los checkboxes reales,
   situados al final del formulario, permanecen visibles. */
#customer-form.setb2br-b2b-registration-form > div .form-group.row.optin,
#customer-form.setb2br-b2b-registration-form > div .form-group.row.customer_privacy,
#customer-form.setb2br-b2b-registration-form > div .form-group.row.newsletter,
#customer-form.setb2br-b2b-registration-form > div .form-group.row.psgdpr,
#customer-form.setb2br-b2b-registration-form > div .form-group.row.setb2b_is_professional {
  display: none !important;
}

/* Elementos opcionales desactivados desde la configuración del módulo. */
.setb2br-setting-hidden {
  display: none !important;
}



/* Los bloques de consentimiento deben ocupar todo el ancho disponible,
   igual que el mensaje introductorio B2B. */
.setb2br-b2b-registration-form .setb2br-consent-fullwidth {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  box-sizing: border-box;
  grid-column: 1 / -1;
}

.setb2br-b2b-registration-form .setb2br-consent-fullwidth > * {
  max-width: 100%;
  box-sizing: border-box;
}

.setb2br-b2b-registration-form .setb2br-intro-message {
  margin: 0 0 12px;
}


/* Alineación consistente de los consentimientos cuando el tema separa la
   casilla de su etiqueta de texto (caso del check de condiciones). */
.setb2br-b2b-registration-form .setb2br-consent-inline-label {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  cursor: pointer;
}

.setb2br-b2b-registration-form .setb2br-consent-inline-label > input[type="checkbox"] {
  flex: 0 0 16px !important;
  width: 16px !important;
  min-width: 16px !important;
  margin: 3px 0 0 !important;
  float: none !important;
}

.setb2br-b2b-registration-form .setb2br-consent-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

.setb2br-b2b-registration-form .setb2br-consent-checkbox-holder {
  flex: 0 0 16px !important;
  width: 16px !important;
  min-width: 16px !important;
  margin: 3px 0 0 !important;
  padding: 0 !important;
}

.setb2br-b2b-registration-form .setb2br-consent-checkbox-holder input[type="checkbox"] {
  display: block !important;
  float: none !important;
  width: 16px !important;
  min-width: 16px !important;
  margin: 0 !important;
}

.setb2br-b2b-registration-form .setb2br-consent-text-label {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  cursor: pointer !important;
}


/* Los checks desactivados deben permanecer ocultos incluso cuando las reglas
   de alineación del tema fuerzan display:flex!important en sus etiquetas. */
.setb2br-b2b-registration-form .setb2br-consent-inline-label.setb2br-setting-hidden,
.setb2br-b2b-registration-form label.setb2br-setting-hidden {
  display: none !important;
}
