/**
 * Setup Wizard styles
 */

$main-color: #b4004e;
$dark-gray-color: #777777;
$white-color: #ffffff;
$error-color: #aa000a;
$success-color: #087f23;
$toggle-disabled-color: #999999;

html {
  background: #f1f1f1;
  margin: 0 20px;

  body {
    margin: 0 auto 24px;
    box-shadow: none;
    background: #f1f1f1;
    padding: 0;
    border: none;
    max-width: 100%;

    .no-border {
      border: none !important;
    }

    #elm-admin-setup-wizard-steps {
      display: flex;
      flex: 1;
      list-style: none;
      margin: 0;
      padding: 0;
      position: absolute;
      width: 100%;
      left: 0;
      right: 0;
      top: 0;
      background: $white-color;
      box-shadow: 0 0 10px rgb(161 170 183 / 18%);
      padding-top: 14px;

      .step-item {
        flex: 1 1 0;
        margin-top: 0;
        min-height: 1rem;
        text-align: center;
        position: relative;

        > a {
          display: inline-flex;
          align-items: center;
          padding: 20px 10px 0;
          text-decoration: none;
          color: $main-color;
          hyphens: auto;
          word-break: break-word;

          &::before {
            background: $main-color;
            border: .1rem solid $main-color;
            border-radius: 50%;
            content: "";
            display: block;
            height: .6rem;
            left: 50%;
            position: absolute;
            top: .2rem;
            transform: translateX(-50%);
            width: .6rem;
            z-index: 1;
          }

          @media (max-width: 782px) {
            > span {
              display: none;
            }
          }

          .is-pro {
            display: inline-flex;
            align-items: center;
            height: 12px;
            margin-left: 5px;
            border: 1px solid;
            background: transparent;
            font-size: 9px;
            border-radius: 3px;
            text-align: center;
            text-transform: uppercase;
            padding: 1px 3px;
            position: relative;
            user-select: none;

            @media (max-width: 782px) {
              display: none;
            }
          }
        }

        &.active {
          ~ .step-item a {
            color: $dark-gray-color;
          }

          ~ .step-item::before,
          ~ .step-item a::before {
            background: $dark-gray-color;
            border-color: #f1f1f1;
          }

          a::before {
            background: #f1f1f1;
          }
        }

        &:not(:first-child)::before {
          background: $main-color;
          content: "";
          height: 2px;
          left: -50%;
          position: absolute;
          top: 9px;
          width: 100%;
        }
      }

      @media (max-width: 782px) {
        position: fixed;
        bottom: 0;
        top: unset;
        z-index: 100;
      }
    }

    #elm-admin-setup-wizard-inner {
      max-width: 950px;
      margin: auto;
      padding: 110px 0 60px;

      #elm-admin-setup-wizard-logo-wrapper {
        display: flex;
        justify-content: center;

        #elm-admin-setup-wizard-logo {
          display: flex;
          align-items: center;
          flex-direction: column;

          > img {
            user-select: none;
            -webkit-user-drag: none;
            width: 50px;
            margin-bottom: 20px;
          }

          > h1 {
            color: $main-color;
            padding: 0 0 24px;
            margin: 0;
            font-size: 30px;
            line-height: 1.2;
            font-weight: 600;
            text-align: center;
            letter-spacing: 2px;
            user-select: none;
          }
        }
      }

      #elm-admin-setup-wizard-content-wrapper {
        background: $white-color;
        overflow: hidden;
        margin-top: 1.5em;
        box-shadow: 0 0 10px rgba(161, 170, 183, .18039);
        border-radius: 6px;
        position: relative;

        #error-message {
          margin: 20px 24px 0;
        }

        #content-header {
          padding: 20px 24px;
          border-bottom: 1px solid $dark-gray-color;

          > h2 {
            border: none;
            font-size: 22px;
            margin: 0;
            line-height: 1.2;
          }

          .headliner {
            margin-bottom: 0;
          }
        }

        #content {
          padding: 24px;

          > h3 {
            margin-top: 0;
            color: #23282d;
          }

          #first-steps-content-wrapper {
            display: flex;

            #first-steps {
              list-style: none;
              padding: 0;
              margin: 0 16px 0 0;
              flex: 1;

              > li {
                &:not(:last-child) {
                  margin-bottom: 6px;
                }

                &:last-child {
                  padding-bottom: 0;
                }

                a {
                  display: flex;
                  align-items: center;
                  color: #444444;
                  text-decoration: none;

                  > i {
                    margin-right: 4px;
                  }
                }
              }
            }

            #first-steps-description {
              flex: 1;

              > p {
                margin: 0;
                padding: 0;
              }
            }
          }

          .input-container {
            display: flex;
            flex-direction: column;

            &:not(:last-child) {
              margin-bottom: 18px;
            }

            > label {
              font-size: 14px;
              color: #23282d;
              font-weight: 600;
              padding-bottom: 6px;
            }

            > input,
            > select {
              line-height: 2.6;
              width: 100%;
              min-width: 100%;
            }

            ul {
              margin: 0;
              padding: 0;

              input[type=radio]:checked::before {
                background-color: $main-color !important;
              }
            }

            .input-description {
              font-size: 14px;
              color: #646970;
              margin: 0;
              padding-bottom: 6px;
            }

            .checkbox-wrapper {
              display: flex;

              .checkbox-toggle-wrapper {
                .checkbox-toggle {
                  height: 16px;
                  width: 32px;
                  border: 2px solid $main-color;
                  background-color: $main-color;
                  display: inline-block;
                  text-indent: -9999px;
                  border-radius: 10em;
                  position: relative;
                  margin-top: -1px;
                  vertical-align: text-top;
                  cursor: pointer;
                  transition: .2s all;

                  &:not(.enabled) {
                    border-color: $toggle-disabled-color;
                    background-color: $toggle-disabled-color;

                    &::before {
                      right: 100%;
                      transform: translateX(100%);
                    }
                  }

                  &::before {
                    content: "";
                    display: block;
                    width: 16px;
                    height: 16px;
                    background: $white-color;
                    position: absolute;
                    top: 0;
                    right: 0;
                    border-radius: 100%;
                    transition: .2s all;
                  }
                }
              }

              .checkbox-content {
                input[type=checkbox] {
                  display: none;
                }

                p {
                  font-size: 14px;
                  margin-top: 4px !important;
                  margin-bottom: 0 !important;
                }
              }
            }
          }

          .desc {
            font-size: 11px;
            line-height: 2;
          }
        }
      }

      #elm-admin-setup-wizard-footer {
        margin-top: 1em;
        padding-bottom: 1.5em;

        #elm-admin-setup-wizard-links {
          display: flex;
          justify-content: flex-end;
          align-items: center;

          .button-primary {
            font-size: 16px;
            padding: 8px 16px;
            line-height: 16px;
          }

          #skip-link {
            color: $dark-gray-color;
            margin-right: 26px;
            text-decoration: none;
            font-size: 13px;
          }
        }

        #escape-link {
          text-align: center;
          margin-top: 1em;

          a {
            color: $dark-gray-color;
            font-size: 11px;
          }
        }
      }

      @media (max-width: 782px) {
        padding-top: 40px;
      }
    }
  }
}
