.architect-block-preview {
  pointer-events: none;
}

.tve-block-edit {
  font-size: 12px !important;
}


.tar-new-block-container {
  outline: solid 1px #ebebeb;
  background-color: #f1f1f1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  font-family: Roboto, sans-serif;
  font-size: 16px !important;
  color: #565a5f !important;
  letter-spacing: -0.12px;
  border: 15px solid #fff;

  * {
    font-family: Roboto, sans-serif;
    font-size: 16px !important;
    color: #565a5f !important;
    letter-spacing: -0.12px;
  }

  .tar-block-go-dash {
    margin-top: 10px;
    font-size: 13px !important;

    a {
      font-size: 13px !important;
      text-decoration: underline !important;
      box-shadow: none !important;

      &:hover {
        opacity: 0.8;
      }
    }
  }

  .tar-block-tabs {
    display: flex;
    width: 100%;
    justify-content: center;

    .tar-block-tab {
      border-radius: 3px;
      border: solid 1px rgba(151, 151, 151, 0.36) !important;
      padding: 5px 10px;
      text-decoration: none !important;
      border-bottom: unset !important;
      box-shadow: none !important;
      outline: none !important;
      text-align: center;
      min-width: 200px;

      &:first-of-type {
        margin-right: 5px;
      }
    }
  }

  .tar-block-content {
    width: 100%;

    &.tve-show-saved {
      .tar-block-tab-saved {
        background-color: #fff;
        border-color: #fff !important;
        font-weight: 500;
      }

      .tar-block-tab-create {
        &:hover {
          opacity: 0.8;
        }
      }

      .tar-block-tabs-content-create {
        display: none !important;
      }

      .tar-block-tabs-content-saved {
        animation: fadeIn ease 0.5s;
      }
    }

    &.tve-show-create {
      .tar-block-tabs-content-create {
        animation: fadeIn ease 0.5s;
      }

      .tar-block-tab-create {
        background-color: #fff;
        border-color: #fff !important;
        font-weight: 500;
      }

      .tar-block-tab-saved {
        &:hover {
          opacity: 0.8;
        }
      }

      .tar-block-tabs-content-saved {
        display: none !important;
      }
    }
  }

  .tar-block-tabs-content {
    width: 100%;
    border-radius: 3px;
    background-color: #fff;
    margin-top: -2px;
    z-index: 999;
    position: relative;
  }

  .tar-block-tabs-content-create {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .tar-block-create-description {
      max-width: fit-content;
      margin: 20px 0;
    }

    .tar-block-error {
      max-width: fit-content;
      color: #ff0000 !important;
      display: none;
      margin: 0 auto 20px auto;

      &.tve-show-error {
        display: block;
      }
    }

    .tar-block-create-input {
      display: flex;
      justify-content: center;
      margin-bottom: 20px;

      .tar-create-block-button {
        width: 136px;
        height: 44px;
        border-radius: 5px;
        background-color: #58a245;
        box-shadow: none !important;
        color: #fff !important;
        font-weight: bold;
        justify-content: center;

        &:hover {
          opacity: 0.8;
        }
      }

      .tar-block-create-input {
        margin-right: 3px;

        input {
          border-radius: 5px;
          border: solid 1px #6a6a6a;
          background-color: #ffffff !important;
          box-shadow: none !important;
          outline: none !important;

          &::placeholder {
            font-weight: bold;
            opacity: 0.6;
          }
        }

        * {
          width: 100%;
          height: 100%;
        }

        height: 44px;
        width: 242px;
      }
    }
  }

  .tar-block-tabs-content-saved {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .tar-block-select-wrapper {
      margin-bottom: 20px;
      max-width: fit-content;

      * {
        border: none !important;
        box-shadow: none !important;
      }

      select {
        min-width: 200px;
        border-radius: 5px !important;
        border: solid 1px #6a6a6a !important;
        background-color: #fff;
        height: 50px;
        padding: 5px 0 5px 15px;
      }

      svg {
        margin-right: 5px;
      }
    }

    .tar-block-search-container {
      margin: 20px 0;
      border-bottom: solid 1px rgba(151, 151, 151, 0.65) !important;
      padding: 0 10px;
      display: flex;
      align-items: center;

      * {
        margin-bottom: 0 !important;
      }

      a {
        text-decoration: none !important;
        box-shadow: none !important;
        outline: none !important;
        display: flex;
        align-items: center;
      }

      .tar-block-search-input {
        * {
          font-size: 14px !important;
          box-shadow: none !important;
          outline: none !important;
          border: none !important;
        }

        input {
          opacity: 0.6;

          &:focus {
            opacity: 1;
          }
        }
      }
    }
  }

  .tar-block-number-warning {
    font-size: 14px !important;
    margin-bottom: 20px;
    display: flex;
    align-items: center;

    * {
      font-size: 14px !important;
      color: #007cba !important;
    }

    &.tar-block-error {
      color: #ed5565 !important;
    }
  }

  .tar-new-block-description {
    margin-bottom: 20px;
  }

  .dashicon {
    font-size: 16px;
    font-family: dashicons !important;
  }

  .hidden {
    display: none !important;
  }

  .tar-block-title {
    h2 {
      font-size: 24px !important;
      color: #171b1b !important;
    }
  }

  .tar-block-search-button {
    &.opacity {
      opacity: 0.7;
    }

    &:hover {
      opacity: 1 !important;
    }
  }
}

.wp-block {
  &[data-type="thrive/architect-block"] {
    min-width: 400px;
    max-width: 800px;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


.block-editor-inserter__menu {
  #tar-logo {
    max-width: 24px;
    max-height: 24px;
  }
}
