[data-component-id="kackaamin:what_to_expect"] {
  display: flex;
  flex-direction: column;

  ul.tabs-nav {
    flex: 0 0 auto;
    display: flex;
    gap: 24px;
    padding: 20px 0 40px 0;
    flex-direction: row;
    flex-wrap: nowrap;
    position: sticky;
    white-space: nowrap;
    overflow-x: scroll;
    top: 0;
    z-index: 11;
    background-color: var(--theme-color);

    @container main (min-width: 768px) {
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
    }

     button.tab-link {
       &.is-active {
          background-color: var(--action-secondary-hover);
       }
     }
  }

  .tabs-content {
    flex: 1 1 auto;
  }
}

[data-component-id="kackaamin:what_to_expect"] .steps-content {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 20px;

  .step-video {
    grid-column: span 2;
    z-index: 10;
    background-color: var(--theme-color);
    position: sticky;
    top: var(--nav-h, 0);
  }

  .number-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: calc(var(--nav-h, 0) + var(--video-h, 0) + 20px);
    gap: 8px;

    button {
      background-color: var(--bg-secondary);
      border: 1px solid var(--bg-tertiary);
      color: var(--text-alternative);
      font-size: 18px;
      font-weight: 600;
      opacity: 0.3;
      flex-grow: 0;
      flex-shrink: 0;
      transition: opacity 0.2s ease, background-color 0.2s ease;

      &.is-active,
      &.is-complete {
        opacity: 1;
      }

      &.is-active {
        background-color: var(--action-primary);
      }
    }

    .number-steps__divider {
      flex: 0 0 24px;
      width: 3px;
      background-color: var(--bg-tertiary);
      opacity: 30%;

      &:last-of-type {
        flex: 1 1 auto;
      }
    }
  }

  .steps {
    .step-content {
      scroll-margin-top: calc(var(--nav-h, 0) + var(--video-h, 0) + 20px);
      padding-bottom: 300px;
      padding-top: 24px;

      .step-content__title {
        color: var(--action-primary);
        margin-bottom: 16px;
      }

      .step-content__description {
        color: var(--text-secondary);
        margin-bottom: 32px;
      }
    }
  }

  @container main (min-width: 768px) {
    display: grid;
    grid-template-columns: 1fr 90px 1fr;
    grid-template-rows: unset;
    align-items: start;

    .step-video {
      grid-column: unset;
    }

    .number-steps {
      flex-direction: column;
      top: var(--nav-h, 0);

      .number-steps__divider {
        flex: 0 0 24px;
        width: 3px;
        height: auto;

        &:last-of-type {
          flex: 1 1 auto;
          width: 3px;
        }
      }
    }

    .steps {
      .step-content {
        scroll-margin-top: var(--nav-h, 0);
      }
    }
  }
}
