.tap-suite-integration-overlay {
  position: fixed;
  top: -32px;
  left: 0;
  width: 100%;
  height: calc(100% + 32px);
  background-color: #fff;
  z-index: 100000;
  overflow: auto;
}

.tap-suite-integration-wrapper {
  margin: 50px auto 0;
  max-width: 900px;
  position: relative;

  * {
    line-height: 1.2em;
  }

  h3, h4 {
    font-weight: 500;
    font-family: Rubik, sans-serif !important;
  }

  > .tap-flex--column:not(.tap-connection-success-wrapper) {
    & > h3 {
      color: var(--tap-primary);
    }

    & > .tap-button {
      font-size: 13px;
      font-weight: 500;

      &:first-of-type {
        position: absolute;
        top: 15px;
        right: 0;
      }

      &:last-of-type {
        margin-top: 25px;
        color: var(--tap-heading-color) !important;
      }

      .tap-icon-wrapper {
        --tap-icon-size: 8px;
      }
    }
  }

  h3 {
    font-size: 20px;

    span {
      color: var(--tap-primary);
    }
  }

  .tap-suite-comparison {
    width: 900px;
    background-color: #fff;
    box-sizing: border-box;

    .tap-suite-row {
      &.tap-rubik {
        * {
          font-family: Rubik, sans-serif !important;
        }
      }

      &:nth-child(2n+1) {
        background-color: #f9f9f9;
      }

      .tap-suite-name {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 25px;
        color: var(--tap-heading-color);
        font-size: 13px;
        font-weight: 500;

        h4 {
          font-size: 16px;
          color: var(--tap-primary);
        }

        .tap-icon-wrapper {
          --tap-icon-size: 24px;
        }

        img {
          max-width: 38px;
        }
      }

      .tap-suite-basic {
        font-size: 16px;
        text-align: center;
        margin: 0 50px;
        min-width: 85px;
        max-width: 85px;

        .tap-icon-wrapper {
          color: #999;
          --tap-icon-size: 14px;

          &.tap-icon-filled-check {
            color: var(--tap-primary);
            --tap-icon-size: 30px;
          }
        }
      }

      .tap-suite-connected {
        font-size: 16px;
        min-width: 85px;
        max-width: 85px;
        margin-right: 25px;
        color: var(--tap-primary);
        text-align: center;
        position: relative;

        .tap-free {
          background-color: var(--tap-primary);
          color: #fff;
          padding: 2px 5px;
          position: absolute;
          top: -20px;
          right: -40px;
          border-radius: 4px;
          font-size: 13px;
        }
      }

      .tap-icon-wrapper {
        --tap-icon-size: 30px;
      }
    }

    .tap-suite-header {
      gap: 15px;
      box-sizing: border-box;

      .tap-suite-header-title {
        p {
          max-width: 270px;
        }
      }

      .tap-icon-wrapper {
        --tap-icon-size: 122px;
        position: relative;
        top: -50px;
        left: -30px;
        z-index: 1;
      }

      img {
        max-width: 259px;
      }
    }

    .tap-suite-connect {
      border-radius: 22px;
      min-width: 270px;
      max-width: 270px;
      font-size: 20px;
      position: relative;
      z-index: 2;
    }
  }

  .tap-suite-integration-examples {
    max-width: 162.5px;
  }

  .tap-suite-integration-info-wrapper {
    width: 900px;
    min-height: 600px;
    border-radius: 3px;
    background-color: #fff;

    .tap-suite-header {
      gap: 30px;

      .tap-suite-header-title {
        max-width: 300px;
        font-weight: 500;

        > p {
          color: var(--tap-heading-color);
          font-size: 13px;
        }
      }

      .tap-icon-wrapper {
        --tap-icon-size: 200px;
      }
    }

    .tap-suite-arrows {
      height: 85px;
      display: flex;
      background-color: #fff6f7;

      .tap-suite-arrow {
        flex: 1 1 100%;
        background-color: #F4E9E9;

        .tap-arrow-wrapper {
          height: 85px;
          box-sizing: border-box;
          background-color: #F4E9E9;

          .tap-icon-wrapper {
            opacity: 0.62;

            &.tap-icon-oval-filled {
              --tap-icon-size: 20px;
            }

            &.tap-icon-oval {
              --tap-icon-size: 15px;
            }

            &.tap-icon-filled-check {
              --tap-icon-size: 27px;
            }
          }

          p {
            color: var(--tap-heading-color);
            opacity: 0.67;

            span {
              color: var(--tap-primary);
              opacity: 0.7;
            }
          }

          h4 {
            color: #3f363b;
            font-size: 16px;
            opacity: 0.62;
          }
        }

        &.all-completed {
          background-color: #fff !important;

          .tap-arrow-wrapper {
            background-color: #fff6f7;
          }
        }

        &.active {
          background-color: #F4E9E9;

          .tap-arrow-wrapper {
            background-color: #fff;

            h4 {
              color: var(--tap-primary);
              opacity: 1;
            }

            .tap-icon-wrapper {
              opacity: 1;
            }
          }
        }

        &.completed {
          background-color: #fff6f7;

          .tap-arrow-wrapper {
            background-color: #fff6f7;
          }
        }
      }
    }

    .tap-suite-step {
      box-sizing: border-box;
      width: 100%;
      background-color: #fff6f7;
      min-height: 350px;
    }
  }


  .tap-suite-connect {
    .tap-tpm-connect-form {
      width: 100%;
      background: #fff;
    }

    .tap-form-wrapper {
      max-width: 470px;

      .tap-form-inputs {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
      }
    }

    p {
      font-size: 14px;
      font-weight: 500;
    }

    .tap-suite-go-to-register {
      color: var(--tap-heading-color);

      span {
        display: block;
        color: var(--tap-primary);
        text-decoration: underline;
        cursor: pointer;

        &:hover {
          opacity: 0.8;
        }
      }
    }

    .tap-suite-go-to-login {
      width: 470px;
      color: var(--tap-primary);
      gap: 5px;

      a {
        box-shadow: none !important;
        text-decoration: underline;
        cursor: pointer;
        color: var(--tap-primary) !important;
        font-size: 14px;
        font-weight: 500;

        &:hover {
          opacity: 0.8;
        }
      }
    }

    .tap-input-container {
      max-width: 225px;
      padding: 10px 0;

      input {
        max-width: 203px;
      }

      .tap-input-label {
        color: var(--tap-heading-color);
        font-size: 13px;
        font-weight: 500;
      }
    }
  }
}

.tap-tpm-activate {
  width: 568px;
  border-radius: 5px;
  background-color: #fff;

  .tap-icon-wrapper {
    --tap-icon-size: 60px;
  }

  .tap-activate-link {
    cursor: pointer;
    width: 230px;
    height: 32px;
    box-sizing: border-box;
    border-radius: 3px;
    background-color: #262626;
    color: #fff !important;

    &.tap-activating {
      position: relative;

      &:after {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 20px;
        width: 20px;
        height: 20px;
        background-image: url("../images/spinner.svg");
        background-repeat: no-repeat;
        background-size: contain;
      }
    }


    &:hover {
      opacity: 0.8;
    }
  }
}

.tap-tpm-install {
  background-color: #fff;
  width: 570px;

  .tap-tpm-get {
    min-height: 190px;
    justify-content: flex-start;
    border-right: solid 1px rgba(151, 151, 151, 0.16);

    .tap-download-link {
      width: 212px;
      text-align: center;
    }
  }

  .tap-file-upload-wrapper {
    width: 250px;
    min-height: 100px;

    .tap-button--loading {
      .tap-button-text:after {
        width: 15px;
        height: 15px;
      }
    }
  }

  h4 {
    color: var(--tap-heading-color);
    font-size: 16px;
  }

  .tap-icon-wrapper {
    --tap-icon-size: 57px;
  }
}

.tap-suite-confirm {
  z-index: 9999999;
  position: fixed;
  top: 50%;
  left: 50%;
  margin: auto;
  background: #fff;
  max-width: 600px;
  min-height: 365px;
  border-radius: 3px;
  transform: translate(-50%, -50%);
  box-sizing: border-box;

  * {
    line-height: 1.2em;
  }

  .tap-button {
    font-weight: 500;
  }

  p {
    font-size: 12px;
    color: var(--tap-heading-color);
  }

  h3 {
    font-size: 20px;
    color: var(--tap-primary);
    text-align: center;
  }

  img {
    max-width: 144px;
  }
}

.tap-apps-popup {
  width: 340px;
  position: relative;
  border-radius: 5px;
  background-color: #ffff;
  box-sizing: border-box;

  .tap-apps-popup-actions {
    max-width: 150px;

    .tap-button {
      padding: 5px 15px;
      font-weight: 500;
    }

    a {
      color: var(--tap-heading-color) !important;

      &:hover {
        opacity: 0.8;
      }
    }
  }

  h3 {
    font-size: 17px;
    font-weight: 500;
    color: #484848;
  }

  p:not(.tap-new-notification) {
    max-width: 250px;
    font-size: 13px;
    color: var(--tap-heading-color);
    display: block;
  }

  .tap-apps-popup-image {
    width: calc(100% + 50px);
    position: relative;
    left: -25px;
    bottom: -25px;
    background-color: #fff6f7;

    img {
      display: block;
      margin: 0 auto;
      max-width: 240px;
    }
  }
}

.tap-suite-ribbon {
  background-color: #fff;
  height: 60px;
  gap: 20px;
  border-left: 5px solid #fff6f7;
  box-sizing: border-box;

  h3 {
    max-width: 450px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tap-heading-color);

    span {
      color: var(--tap-primary);
    }
  }

  .tap-button {
    font-weight: 500;
  }

  img {
    max-width: 48px;
  }
}

.tap-connection-success-wrapper {
  margin-top: 100px;
  max-width: 350px;
  text-align: center;

  .tap-button {
    width: 100%;
    max-width: 170px;
  }

  .tap-icon-wrapper {
    --tap-icon-size: 163px;
  }

  p {
    font-size: 16px;
    font-weight: 500;
    color: var(--tap-primary);
  }

  h3 {
    font-size: 20px;
    color: var(--tap-primary);
  }
}

.tap-suite-apps-iframe {
  min-height: 100vh;
  width: 100%;
}

@media (max-width: 900px) {
  .tap-suite-ribbon {
    min-height: 100px;
    padding: 5px 10px;
    box-sizing: border-box;

    img {
      display: none;
    }
  }

  .tap-suite-integration-info-wrapper {
    width: 80% !important;

    .tap-arrow-content {
      p {
        span {
          display: none;
        }
      }

      h4:last-of-type {
        display: none;
      }
    }
  }
  .tap-suite-comparison {
    width: 80% !important;
  }

  .tap-suite-confirm {
    width: 100%;

    .tap-suite-confirm-actions {
      flex-wrap: wrap;
      gap: 5px;

      .tap-button {
        padding: 5px;
      }
    }

    img {
      max-width: 100px;
    }

    p {
      margin: 0;
    }
  }
}
