/* Tokens browser pop-in is kind of incompatible with DSFR [href] rule. */
table.treetable tr span.indenter a {
  background-size: initial;
}

/* Some components need to be overriden for preview and builder. */
.pattern-preview .fr-skiplinks,
.layout-builder__section .fr-skiplinks {
  position: relative;
  transform: none;
}
.layout-builder__section .fr-enlarge-link a::before {
  position: relative;
}
.layout-builder__section .fr-download__detail {
  position: relative;
  pointer-events: auto;
}
.layout-builder__section .fr-modal {
  position: relative;
  visibility: visible;
  opacity: 1;
}
.layout-builder__section .fr-card * {
  order: unset;
}

/* Admin fix, header z index is in front of Drupal admin toolbar. */
/* Dsfr set to 750 and Drupal toolbar is 502 */
.fr-header {
  z-index: 501 !important;
}

/* Admin toolbar displacement fix */
.toolbar-vertical .fr-header .fr-modal > .fr-container {
  padding-top: var(--drupal-displace-offset-top, 2.5rem);
}
