/*
EazyDocs Footnotes
*/
.ezd-footnote-footer {
  display: flex;
  flex-wrap: wrap;

  /* Styling based on data-column value */
  &[data-column="1"] {
    > div {
      flex: 1 1 100%;
    }
  }

  &[data-column="2"] {
    > div {
      flex: 1 1 50%;
    }
  }

  &[data-column="3"] {
    > div {
      flex: 1 1 33.33%;
    }
  }

  &[data-column="4"] {
    > div {
      flex: 1 1 25%;
    }

  }

  /* Adjust for smaller screens (responsive design) */
  @media (max-width: 768px) {
    > div {
      flex: 1 1 100%;
    }


    &[data-column="2"] {
      > div {
        flex: 1 1 100%;
      }
    }

    &[data-column="3"] {
      > div {
        flex: 1 1 100%;
      }
    }
    &[data-column="4"] {
      > div {
        flex: 1 1 100%;
      }
    }
  }

  div {
    display: flex;
    break-inside: avoid;
    word-break: break-all;
    position: relative;
    padding: 5px;
    font-size: 14px;
    gap: 5px;
    align-items: baseline;
    scroll-margin-top: 100px;
    box-sizing: border-box;

    .ezd-note-indicator {
      text-decoration: none;
      svg {
        position: relative;
        top: -5px;
      }
    }

    &.ezd-footnote-texts {
      display: block;

      b, strong {
        font-weight: bold;
        font-size: 14px;
        color: #1d2746;
        padding-top: 0;
        margin-bottom: 8px;
        display: block;
      }

      img {
        display: block;
      }
    }

    .ezd-footnotes-serial {
      width: max-content;
    }

    .ezd-footnote-texts {
      h2 {
        display: block;
      }

      &:first-letter {
        text-transform: capitalize;
      }
    }

    &:target {
      outline: none;
      background-color: var(--ezd-color-10);
      padding: 5px 10px;
      border-radius: 4px;
      margin: 0;
    }

    &:target {
      strong {
        color: var(--ezd_brand_color);
      }
    }

    a {
      word-break: break-all;
      &:hover {
        text-decoration-thickness: 1px;
      }
    }
  }
  
  img {
    margin: 5px 0;
  }

  &.mt-30 {
    margin-top: 30px;
  }

  &.collapsed {
    display: none;
  }
}

.ezd-footnotes-link-item {
  transition: all 1s ease;
  position: relative;
  text-decoration: none !important;
  display: inline-block;
  top: -6px;

  > i {
    font-style: normal;
    color: var(--ezd_brand_color);
    cursor: pointer;
    position: relative;
    font-size: 14px;
  }

  span.ezd-footnote-content {
    z-index: -1;
    opacity: 0;
    position: absolute;
    top: 100%;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
    display: inline-block;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    word-break: break-all;
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15);
    width: 300px;
    background: var(--bs-white);
    color: var(--black_800);
    box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.3), 0 0 1px 1px rgba(0, 0, 0, 0.05);
    border: 0;
    transform: translate(-54%, 0%);
    font-size: 14px;
    line-height: 26px;
    margin: 15px 0 0;
    padding: 25px;
    box-sizing: border-box;

    b, strong {
      font-weight: bold;
      font-size: 14px;
      color: #1d2746;
      padding-top: 0;
      margin-bottom: 8px;
      display: block;
    }

    img {
      margin: 10px 0;
      display: block;
    }

    &::before {
      content: "";
      position: absolute;
      top: -6px;
      left: 0;
      right: 0;
      margin: auto;
      width: 0;
      height: 0;
      border-left: 7px solid transparent;
      border-right: 7px solid transparent;
      border-bottom: 7px solid transparent;
      border-top: 7px solid transparent;
      transform: rotate(224deg);
      box-shadow: 1px 1px 0 rgb(110 108 108 / 25%);
      background: var(--bs-white);
      border-top-right-radius: 2px;
    }

    a {
      text-decoration: none;
      color: var(--ezd_brand_color);

      &:hover {
        text-decoration: none;
      }
    }
  }

  .ezd-footnote-content {
    input {
      max-width: 100%;
    }
  }

  &:hover {
    span.ezd-footnote-content {
      z-index: 9;
      opacity: 1;
      transition: all 1s ease;
    }
  }

  &:target i {
    border: 2px solid var(--ezd_brand_color);
    outline-offset: 0;
    letter-spacing: -.5px;
    padding: 0 0 1px 2px;
  }
}

.ezd-footnote-title {
  display: none;
  font-size: 20px;
  margin: 40px 0 10px;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  align-items: center;

  .cite-count {
    font-size: 14px;
  }

  span {
    display: inline-flex;
    align-items: center;

    i {
      font-size: 31px;
      margin: -5px 0 0 -8px;
    }

    &.ezd-plus-minus {
      margin-right: 6px;
    }

  }

  &.collapsed {
    span {
      i {
        &.icon_minus-box {
          display: none;
        }

        &.icon_plus-box {
          display: block;
        }
      }

    }
  }

  &.expanded {
    span {
      i {
        &.icon_minus-box {
          display: block;
        }

        &.icon_plus-box {
          display: none;
        }
      }
    }
  }
}

/* Login form styles moved to eazydocs-pro: assets/scss/_login-popup.scss */