.table-of-content-container {
  font-family: var(--font-primary);
}

.table-of-content-container #ez-toc-container {
  width: 100% !important;
  background-color: #fff !important;
  border: 2px solid #bfc6d6 !important;
  border-radius: 8px !important;
  padding: 10px;

  @media (1024px < width) {
    padding: 20px;
  }
}

.table-of-content-container #ez-toc-container .ez-toc-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  position: relative;

  @media (1024px < width) {
    font-size: 20px;
  }

  &::before {
    content: '';
    position: relative;
    transform: translateY(12%);
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='23' viewBox='0 0 24 23' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.625 5.625H0V0H5.625V5.625ZM24 5.625H8.4375V0H24V5.625ZM5.625 14.0625H0V8.4375H5.625V14.0625ZM24 14.0625H8.4375V8.4375H24V14.0625ZM5.625 22.5H0V16.875H5.625V22.5ZM24 22.5H8.4375V16.875H24V22.5Z' fill='%231B1D1F'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-flex;
    align-items: center;
    width: 18px;
    height: 18px;
    margin-right: 8px;

    @media (1024px < width) {
      width: 20px;
      height: 20px;
      margin-right: 16px;
      transform: translateY(12%);
    }
  }
}

.table-of-content-container #ez-toc-container nav {
  margin-top: 20px;

  @media (1024px < width) {
    margin-top: 20px;
  }
}

.table-of-content-container #ez-toc-container nav li {
  font-size: 14px;

  @media (1024px < width) {
    font-size: 18px;
  }
}

.table-of-content-container #ez-toc-container .ez-toc-cssicon {
  border: none;
}

.table-of-content-container #ez-toc-container .ez-toc-cssicon .ez-toc-icon-toggle-span {
  width: 32px;
  aspect-ratio: 1 / 1;
  position: relative;

  & * {
    opacity: 0;
  }

  &::before {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.57 7.7025L13.3125 0.78375L12.5063 -3.52423e-08L6.58125 6.07875L0.8175 0.00374954L-3.40949e-08 0.779999L6.57 7.7025Z' fill='%231B1D1F'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-size: 14px 8px;
    background-position: center;
    width: 32px;
    aspect-ratio: 1 / 1;
    position: absolute;
    right: 0;
  }
}
