@import '../../_global/styles/mixins';
@import '../../_global/styles/vars';

h1 + .a-z {
  margin-top: 30px;

  @media(max-width: 767px) {
    margin-top: 0;
  }
}

.a-z .letters {
  position: sticky;
  top: var(--header-height);
  background-color: var(--theme-color-white);
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  overflow: hidden;
  margin: 0 0 0 -2px;
  padding: 10px 0 0;
  z-index: 2;
  box-shadow: 0 -2px 0 0 var(--theme-color-white);

  @media(min-width: 1000px) {
    top: 101px;
  }

  &.not-sticky {
    position: relative;
    top: auto;
  }

  li {
    position: relative;
    display: block;
    padding: 0 0 0 2px;
    margin: 6px 0 0;

    @media(max-width: 439px) {
      flex: 1 1 10%;
      max-width: 10%;
    }

    &.disabled {
      //display: none;
      pointer-events: none;

      .letter {
        color: var(--theme-color-primary-dimmed-02);
      }
    }

    &:after {
      content: none;
    }

    &:last-child:before {
      content: "";
      position: absolute;
      display: block;
      height: 2px;
      width: 1000px;
      left: 100%;
      bottom: 0;
      background-color: var(--theme-color-primary-dimmed-02);
    }

    &.active .letter {
      color: var(--theme-color-white);

      &:hover {
        color: var(--theme-color-white);
      }

      &:before {
        height: 100%;
        background-color: var(--theme-color-primary);
      }
    }
  }

  .letter {
    position: relative;
    display: block;
    text-decoration: none;
    font-family: "Korb", sans-serif;
    font-size: 28px;
    width: 26px;
    text-align: center;
    transition: 0.3s ease;
    z-index: 1;
    background-color: transparent;
    margin: 0;
    padding: 0;
    @include focus-visible;

    @media(max-width: 439px) {
      width: 100%;
    }

    &:before {
      content: "";
      position: absolute;
      display: block;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background-color: var(--theme-color-primary-dimmed-02);
      transition: 0.3s ease;
      z-index: -1;
    }

    &:hover {
      color: var(--theme-color-primary);

      &:before {
        background-color: var(--theme-color-primary);
      }
    }
  }

  span.letter {
    color: var(--theme-color-primary-dimmed-01);
  }
}

.letter-content {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: height 0.3s $easeOutQuad;

  .a-z-content-wrapper {
    position: absolute;
    top: 0.5em;
    @include hide;
    transform: translate3d(0, 0, 0) scale(0.95);
    transform-origin: center 100px;
    width: 100%;

    &.current {
      position: relative;
      @include show(0.4s);
      transform: translate3d(0, 0, 0) scale(1);
      order: 1;
      z-index: 1;
    }

    &:not(.current) {
      height: 0;
    }
  }
}

.a-z{
  .faq-heading{
    margin-top: 10px !important;
  }
}
.a-z-list{
  .responsiveContainer {
    padding-bottom: 10px !important;
  }
}
