/* FBBT Divider Line - scoped, only affects this module */

/* Settings */
.fbbt-divider-line {
  --fbbt-divider-color: rgba(0, 0, 0, 0.25);
  --fbbt-divider-shift: -12px; /* desktop: moves the line left into the gap between columns */
}

/* Mobile: horizontal line, 10px space above and below */
.fbbt-divider-line {
  display: block;
  margin: 10px 0;
  padding: 0;
  border: 0;
}

.fbbt-divider-line__bar {
  display: block;
  width: 100%;
  height: 0;
  border: 0;
  border-top: 1px solid var(--fbbt-divider-color);
}

/* Hidden label so the editor does not treat the module as empty */
.fbbt-divider-line__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Desktop: takes no space; hidden in older browsers that cannot position it */
@media (min-width: 768px) {
  .fbbt-divider-line {
    display: none;
  }
}

/* Desktop: vertical line at the column's left edge, 100% of the row height, centred */
@supports selector(:has(*)) {
  @media (min-width: 768px) {
    .row-fluid:has(> .dnd-column .fbbt-divider-line) {
      position: relative;
    }

    .row-fluid:has(> .dnd-column .fbbt-divider-line) .fbbt-divider-line {
      display: flex;
      justify-content: flex-start;
      height: 0;
      margin: 0;
    }

    .row-fluid:has(> .dnd-column .fbbt-divider-line) .fbbt-divider-line__bar {
      position: absolute;
      top: 0%;
      width: 0;
      height: 100%;
      border-top: 0;
      border-left: 1px solid var(--fbbt-divider-color);
      transform: translateX(var(--fbbt-divider-shift));
    }
  }
}