.tabs-vertical {
  position: relative;
  background-color: $gray-bluish-light;
  padding: 48px $half-gutter;
  margin: 80px 0;

  &.tabs-vertical--background-white {
    background-color: $white;
  }

  @include sm {
    padding: 32px $gutter-mobile;
    margin: 50px 0;
  }

  &__wrapper {
    max-width: $max-width;
    margin: 0 auto;
  }

  &__content {
    margin-left: calc(100% / 12);
    padding: 0 $half-gutter;
    width: calc(100% / 12 * 10);

    @include sm {
      margin-left: 0;
      width: 100%;
      padding: 0;
    }
  }

  &__header {
    margin-bottom: 40px;

    @include sm {
      margin-bottom: 24px;
    }

    h2 {
      color: $primary-color;
      margin: 0;
      padding-left: 16px;

      @include sm {
        font-size: 2.6rem;
        line-height: 3rem;
        text-align: left;
        padding-left: 0;
      }
    }
  }

  &__tab-container {
    display: flex;
    width: 100%;

    @include sm {
      flex-direction: column;
    }
  }

  &__tab-control {
    width: 100%;
    max-width: 205px;

    @include sm {
      max-width: 100%;
      position: relative;
      box-shadow: none;
    }

    ul {
      display: flex;
      flex-direction: column;
      margin: 0 #{-$half-gutter};
    }

    li {
      min-height: 48px;
      width: 100%;
      padding: 0 $half-gutter;
      margin-bottom: 8px;

      a {
        position: relative;
        display: flex;
        align-items: center;
        font-size: 1.6rem;
        line-height: 2.4rem;
        font-weight: 400;
        letter-spacing: 0.23px;
        padding: 16px;
        overflow: hidden;
        border-bottom-left-radius: 8px;
        border-top-left-radius: 8px;
        color: $primary-color;
        background-color: $gray-bluish;
        transition: all 250ms ease-out;

        &:hover {
          background-color: $white;

          .tabs-vertical--background-white & {
            background-color: $gray-bluish-light;
          }
        }

        &.js-active {
          color: $medium-color;
          background-color: $white;
          font-weight: 700;

          .tabs-vertical--background-white & {
            background-color: $gray-bluish-light;
          }

          &:after {
            opacity: 1;
            transform: translateY(0);
          }
        }
      }
    }

    &.tabs-vertical__tab-control--mobile {
      position: relative;
      width: 100%;
      overflow: hidden;

      ul {
        display: flex;
        flex-direction: row;
      }

      li {
        margin-bottom: 0;
        padding: 0;
        width: auto;

        a {
          border-bottom-left-radius: 0;
          border-top-left-radius: 8px;
          border-top-right-radius: 8px;
          padding: 12px 16px;
        }
      }
    }

    &--mobile {
      display: none;

      @include sm {
        display: block;
      }
    }

    &--desktop {
      @include sm {
        display: none;
      }
    }
  }

  &__nav-next, &__nav-prev {
    position: absolute;
    top: 0;
    width: 48px;
    height: 48px;
    display: block;
    border: none;
    outline: none;
    background-color: $gray-bluish;
    padding: 0;
    z-index: 1;
    transition: opacity 250ms ease-out;

    &.swiper-button-disabled {
      opacity: 0;
      pointer-events: none;
    }

    &::before {
      content: '';
      position: absolute;
      top: 18px;
      display: block;
      width: 12px;
      height: 12px;
      border-right: 2px solid $primary-color;
      border-bottom: 2px solid $primary-color;
    }

    &::after {
      content: '';
      position: absolute;
      top: 0;
      pointer-events: none;
      width: 48px;
      height: 48px;
      background: linear-gradient(90deg, rgba(220, 228, 237, 0.00) 0%, #DCE4ED 100%);
    }
  }

  &__nav-next {
    right: 0;

    &::before {
      right: 20px;
      transform: rotate(-45deg);
    }

    &::after {
      left: -48px;
      background: linear-gradient(90deg, rgba(220, 228, 237, 0.00) 0%, #DCE4ED 100%);
    }
  }

  &__nav-prev {
    left: 0;

    &::before {
      left: 20px;
      transform: rotate(135deg);
    }

    &::after {
      left: 48px;
      background: linear-gradient(-90deg, rgba(220, 228, 237, 0.00) 0%, #DCE4ED 100%);
    }
  }

  &__view {
    flex: 1;
    padding: 32px 16px;
    background-color: $white;
    position: relative;
    transition: height 250ms ease-out;

    .tabs-vertical--background-white & {
      background-color: $gray-bluish-light;
    }

    @include sm {
      min-height: 400px;
    }
  }

  &__card {
    position: absolute;
    top: 40px;
    opacity: 0;
    transition: opacity 250ms ease-out;
    pointer-events: none;
    width: calc(100% - 80px);

    @include sm {
      top: 24px;
      width: 100%;
    }

    &.js-active {
      width: 100%;
      top: 0;
      position: relative;
      opacity: 1;
      pointer-events: all;
    }
  }

  &__card-image {
    @include image-aspect-ratio(100%, 60%);

    padding-bottom: 22px;
  }

  &__card-text {
    width: 100%;

    h3 {
      font-size: 2.6rem;
      line-height: 3rem;
      color: $primary-color;
      font-weight: 700;
      margin: 0;

      @include sm {
        font-size: 2.1rem;
        line-height: 2.9rem;
      }
    }

    .std-button {
      padding: 0 24px;
      margin-top: 16px;

      @include sm {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
      }
    }
  }
}
