.bw-footnote-marker {
  line-height: 0;
}

.bw-footnote-link {
  text-decoration: none;
  font-size: 0.8em;
  vertical-align: super;
  margin-left: 0.1em;
  font-weight: 700;
}

.bw-footnotes {
  margin-top: 1rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.bw-footnotes__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: var(--bw-footnotes-bg, #701d45);
  color: #fff;
  cursor: pointer;
  padding: 1.5rem;
  cursor: pointer;
  text-align: left;
  font-family: "Teodor Medium", Helvetica, Arial, Lucida, sans-serif;
  font-size: 24px;
}

.bw-footnotes__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.bw-footnotes__icon::before,
.bw-footnotes__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.bw-footnotes__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.bw-footnotes.is-open .bw-footnotes__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

.bw-footnotes__panel {
  padding: 0;
  background: #fff;
  font-size: 14px;
}

.bw-footnotes__list {
  margin: 0;
  padding: 1.5rem 0 !important;
  list-style: none;
  list-style-type: none !important;
}

.bw-footnotes__item {
  scroll-margin-top: 120px;
  margin-bottom: 0.85rem;
}

.bw-footnotes__number {
  /* font-weight: 700; */
  margin-right: 0.35rem;
}

.bw-footnotes__content a {
  word-break: break-word;
  text-decoration: underline;
}

.bw-footnotes__backlink {
  margin-left: 0.5rem;
  text-decoration: none;
}

.bw-footnotes__item.is-targeted {
  background: rgba(112, 29, 69, 0.08);
  border-radius: 6px;
  padding: 0.25rem 0.4rem;
}
