body[data-page=repo-add],
body[data-page=import] {
  .cp__header .add-graph-btn {
    display: none;
  }
}

.cp__onboarding {
  &-setups {
    background-color: var(--ls-primary-background-color);
    z-index: 1;

    .as-flex-center {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .inner-card {
      background-color: var(--ls-secondary-background-color);
      padding-top: 55px;

      > h1 {
        font-size: 30px;

        strong {
          color: var(--ls-active-primary-color);
          display: inline-block;
          padding-right: 4px;
          font-weight: normal;

          &:first-child {
            display: block;
            text-align: center;
            padding-bottom: 15px;
          }
        }
      }

      > h2 {
        font-size: 14px;
        margin-top: 20px;
        margin-bottom: 40px;
        padding: 0 30px;
        text-align: center;
      }

      > article {
        background-color: var(--ls-secondary-background-color);
        border-radius: 20px;
        flex: 1;

        > section {
          flex: 1;

          &.a {
            background-color: var(--ls-tertiary-background-color);
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 75px;
            padding-bottom: 100px;
            border-radius: 20px 20px 0 0;
            min-width: 50%;

            > strong {
              font-size: 28px;
              padding-bottom: 15px;
              font-weight: 600;
            }

            > small {
              font-size: 18px;
              line-height: 30px;
              padding: 0 40px;
              text-align: center;
            }

            > .choose {
              padding-top: 48px;
              width: 100%;
              cursor: pointer;

              &:active {
                opacity: .8;
              }

              i {
                width: 180px;
                height: 120px;
                background-image: url("../img/folder-logo.png");
                background-size: contain;
              }

              .control {
                padding: 20px 20px 0 20px;
                width: 100%;
              }
            }
          }

          &.b {
            display: none;
            padding: 50px 40px;

            > p {
              width: 100%;

              &:first-child {
                i {
                  width: 42px;
                }

                strong {
                  font-size: 19px;
                  line-height: 1.5em;
                }
              }
            }

            ul {
              margin: 0;
              padding-top: 20px;
              width: 100%;

              > li {
                list-style: none;
                margin-bottom: 8px;
                height: 40px;
                display: flex;

                &.hr {
                  height: 1px;
                  border-bottom: 1px solid var(--ls-border-color);
                  margin: 20px 0px;
                  opacity: 0.6;
                }

                > i {
                  width: 48px;
                  background-image: url(../img/folder.png);
                  background-size: contain;
                  background-repeat: no-repeat;
                  background-position-y: 2px;
                  position: relative;
                  right: -2px;

                  &.is-file {
                    background-image: url("../img/file-edn.png");
                    background-size: 50%;
                    background-position-x: center;
                  }

                  > .ti {
                    opacity: .25;
                    color: black;
                  }
                }

                > span {
                  flex: 1;
                  padding-left: 15px;
                  display: flex;
                  flex-direction: column;

                  strong {
                    font-size: 11px;
                  }
                }
              }
            }
          }
        }

        &.importer {
          background-color: var(--ls-tertiary-background-color);
          position: relative;

          > section {
            flex: unset;
            padding: 0 30px;

            h1 {
              font-size: 26px;
              font-weight: 500;
            }

            h2 {
              font-size: 14px;
              padding-top: 15px;
              padding-bottom: 15px;
            }

            &.d {
              width: 100%;
              padding: 20px 0;

              > label {
                width: unset;
                height: 80px;
                flex: 1;
                margin-bottom: 10px;

                > span {
                  &:first-child {
                    padding: 16px;

                    i {
                      height: 30px;
                      width: 30px;
                      display: flex;
                      align-items: center;
                      justify-content: center;
                    }
                  }
                }

                strong {
                  font-size: 18px;
                }

                small {
                  font-size: 11px;
                }
              }
            }
          }
        }
      }


      @screen lg {
        background-color: unset;

        > h1 {
          font-size: 36px;

          strong {
            &:first-child {
              display: inline-block;
            }
          }
        }

        > h2 {
          font-size: 20px;
          padding: 0;
        }

        > article {
          max-width: 100vw;
          flex: unset;

          > section {
            &.a {
              border-radius: 20px 0 0 20px;

              > small {
                padding: 0 95px;
              }

              > .choose {
                .control {
                  padding: 30px 70px 0 70px;
                }
              }
            }

            &.b {
              display: flex;
            }
          }

          &.importer {
            > section {
              padding: 0;

              h1 {
                font-size: 28px;
              }

              h2 {
                font-size: 19px;
                line-height: 3em;
                padding: unset;
              }

              &.e {
                position: absolute;
                bottom: -50px;
                right: 15px;

                a.button {
                  padding: 4px 10px;
                }
              }
            }
          }
        }
      }
    }

    label.action-input {
      transition: none;
      color: var(--ls-active-primary-color);
      background-color: var(--ls-quaternary-background-color);
      height: 68px;
      width: 100%;
      opacity: .8;
      user-select: none;
      border-radius: 12px;
      overflow: hidden;
      cursor: pointer;

      small {
        font-size: 11px;
      }

      &:hover {
        opacity: 1;
      }

      &:active {
        opacity: .5;
      }

      &[disabled] {
        pointer-events: none;
      }
    }

    @screen lg {
      justify-content: center;
      align-items: center;
    }
  }

  &-quick-tour {
    &.shepherd-element, .shepherd-arrow:before {
      background-color: var(--ls-quaternary-background-color);
      font-size: 14px;
    }

    &.shepherd-element {
      max-width: 320px;
      border-radius: 8px;
      box-shadow: none;

      &[data-shepherd-step-id=nav-journal-page] {
        .shepherd-arrow {
          left: 30px !important;
        }
      }
    }

    .shepherd-content {
      display: flex;
      flex-direction: column;
      -webkit-font-smoothing: antialiased;
    }

    .shepherd-text {
      font-size: 14px;
      color: var(--ls-secondary-text-color);
      flex: 1;
      padding: 8px 10px;
      position: relative;

      h2 {
        font-size: 18px;
        line-height: 28px;
        font-weight: 700;
        padding-top: 5px;
        padding-bottom: 5px;
      }

      p {
        color: var(--ls-secondary-text-color);
      }

      .steps {
        position: absolute;
        bottom: -28px;
        left: 10px;
        font-size: 12px;

        strong {
          opacity: .5;
          font-size: 11px;
        }

        ul {
          display: flex;
          list-style: none;
          align-items: center;
          margin: 0;
          padding-left: 1px;
          padding-top: 2px;

          li {
            padding: 0;
            width: 5px;
            height: 5px;
            margin: 0 5px 0 0;
            background-color: rgba(0, 0, 0, .2);
            border-radius: 100%;
            font-size: 0;

            &.active {
              background-color: var(--ls-primary-text-color);
            }
          }
        }
      }
    }

    .shepherd-footer {
      button {
        @apply bg-indigo-600 hover:bg-indigo-700;

        padding: 4px 8px;
        border-radius: 6px;
        overflow: hidden;
        color: white;
        font-size: 13px;
        font-weight: 500;

        &.back {
          background-color: rgba(0, 0, 0, .3);
        }

        &.bg-gray {
          @apply bg-gray-400;
        }
      }
    }
  }

  &-skip-quick-tour {
    -webkit-font-smoothing: antialiased;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-60px);
    z-index: 10001;
    background-color: #4B5563;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    font-weight: 700;

    .ti {
      padding-right: 6px;
      font-size: 18px;
      position: relative;
      top: 2px;
      font-weight: normal;
    }

    &:hover {
      opacity: .8;
    }

    &:active {
      opacity: 1;
    }
  }
}

.shepherd-modal-overlay-container.shepherd-modal-is-visible {
  transition: none;
  opacity: .4;
}

.shepherd-target {
  &.nav-content-item {
    background-color: rgba(0, 0, 0, .4);
    padding-left: 15px;
    padding-right: 15px;
  }

  .nav-content-item-inner {
    background-color: var(--ls-secondary-background-color);
    overflow: hidden;

    .header {
      padding: 4px 10px !important;
    }

    .bd {
      ul a {
        padding: 2px 8px !important;
      }
    }
  }

  &.page-title {
    background-color: rgba(0, 0, 0, .4);

    > h1 {
      background-color: var(--ls-primary-background-color);
      border-radius: 12px;
    }
  }

  &.cp__sidebar-help-btn {
    background-color: rgba(0, 0, 0, .4);

    > .inner {
      opacity: 1;
    }
  }

  &.cp__header-left-menu {
    background-color: rgba(0, 0, 0, .4);
    border-radius: 0;
    opacity: 1 !important;
    transition: none;

    &:hover {
      background-color: rgba(0, 0, 0, .4);
    }

    > .inner {
      border-radius: 100%;
      background-color: var(--ls-primary-background-color);
    }
  }
}

.shepherd-element {
  &[data-popper-placement^=right] > .shepherd-arrow {
    left: -4px;
  }

  &[data-popper-placement^=top] > .shepherd-arrow {
    bottom: -4px !important;
  }

  &[data-popper-placement^=left] > .shepherd-arrow {
    right: -4px !important;
  }

  &[data-popper-placement^=bottom] > .shepherd-arrow {
    top: -4px !important;
  }
}

.shepherd-arrow, .shepherd-arrow:before {
  width: 8px;
  height: 8px;
}

html[data-theme=light] {
  .cp__onboarding {
    &-quick-tour {
      &.shepherd-element, .shepherd-arrow:before {
        background-color: #E8E5DE;
      }
    }
  }
}

html.is-native-android,
html.is-native-ipad,
html.is-native-iphone,
html.is-native-iphone-without-notch {
  .cp__onboarding {
    &-setups {
      position: absolute;
      width: 100%;
      top: 0;
      left: 0;
      height: 100vh;
      overflow-y: auto;

      .inner-card {
        padding-top: 30px;
        min-height: 100vh;
        width: 100%;

        > h2 {
          margin-bottom: 25px;
        }

        > article {
          > section {
            &.a {
              padding-top: 25px;

              small {
                text-align: left;
                padding: 0 40px;
              }

              .mobile-intro {
                margin-top: 10px;
                line-height: 1.5rem;
                font-size: 1rem;
              }

              > .choose {
                padding-top: 25px;
              }
            }
          }
        }

        @screen lg {
          > article {
            width: 1040px;
            height: 510px;
          }
        }
      }
    }
  }
}
