@import "./../../node_modules/filepond/dist/filepond";

.flex-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;

  img {
    height: 15px;
    width: 16px;
    line-height: 1;
    margin-bottom: -3px;
  }

  &.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
  }
}
.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.ssgsw_flex_loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
}

$loderSize: 8px;
$smallLoderSize: 3px;

.loader {
  border: $loderSize solid #f3f3f3;
  border-radius: 50%;
  border-top: $loderSize solid #0046ad;
  width: calc($loderSize * 6);
  height: calc($loderSize * 6);
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 2s linear infinite;

  &.small {
    border: $smallLoderSize solid #f3f3f3;
    border-radius: 50%;
    border-top: $smallLoderSize solid #0046ad;
    width: calc($smallLoderSize * 3.6);
    height: calc($smallLoderSize * 3.6);
  }
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.ssgs-credential,
.enable-google-api,
.place-code,
.trigger-permissions,
.sync-google-sheet {
  display: none;

  &.active {
    display: block;
    // animation: bounceInRight 0.5s ease-in-out;
  }
}

.ssgsw-ultimate-button {
  color: red !important;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all 0.2s ease-in-out;
  border-color: indianred !important;

  &:hover {
    color: rgb(205, 64, 64) !important;
  }

  &.small {
    font-size: 12px;
    border-radius: 5px;
  }
}

.force-flex {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ssgs-dashboard-help {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.warning-text {
  //  gradient text
  background: linear-gradient(to right, #ffb347, #ffcc33);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-text {
  background: linear-gradient(to right, #00ff00, #00ff00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text {
  background: linear-gradient(30deg, #1f67d3 60%, #d900ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: 0.3s;
  &:focus {
    outline: none;
  }

  &:hover {
    opacity: 0.9;
  }
}

.ssgsw-upgrade-notice {
  padding: 15px 10px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  &-content {
    text-align: center;
  }

  &-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    a {
      text-decoration: none;
      padding: 3px 9px;
      font-size: 12px;
      border-radius: 3px;
      cursor: pointer;
      transition: 0.3s ease-in-out;

      &:first-child {
        background: #005ae0;
        color: #fff;

        &:hover {
          background: #0046ad;
        }
      }

      &:last-child {
        background: #f3f3f3;
        color: #000;
        border: rgba(0, 0, 0, 0.4);

        &:hover {
          background: #e3e3e3;
        }
      }
    }
  }

  // a {
  //   margin-left: 10px;
  //   background: #005ae0;
  //   color: #fff;
  //   padding: 5px 10px;
  //   border-radius: 5px;
  //   text-decoration: none;
  // }

  // button {
  //   background: #f3f3f3;
  //   color: #000;
  //   border:rgba(0, 0, 0, 0.4);
  //   cursor: pointer;
  //   border-radius: 3px;
  //   padding: 5px 10px;
  //   transition: .3s ease-in-out;

  //   &:hover {
  //     background: #e3e3e3;
  //   }
  // }
}

//popup for support

body {
  position: relative;
  &.popup-open {
    .ssgsw-support-popup-overlay {
      display: block;
    }
    .ssgsw-support-popup {
      display: block;
      position: fixed;
      background-color: #fff;
    }
  }
}

.ssgsw-support-popup-overlay {
  transition: all 0.3s ease-in-out;
  vertical-align: middle;
  overflow: auto;
  width: 100%;
  height: 100%;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(55, 65, 81, 1);
  opacity: 0.3; /* Opacity */
}

.ssgsw-support-popup {
  display: none;
  background-color: #fff;
  width: 500px;
  text-align: center;
  padding: 20px;
  box-shadow: 0px 20px 50px 0px #121b2133;
  position: relative;
  &.show {
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    z-index: 2;
  }

  .support-cross-button {
    position: absolute;
    top: 2%;
    right: 5%;
    color: #64748b;
    font-size: 28px;
    cursor: pointer;
    font-weight: 500;
    padding: 10px;
  }

  .wrapper {
    font-family: Inter;
    margin: 10px;
    background-color: #fff;
    text-align: left;
    max-height: 600px;
    overflow-y: hidden;
    p {
      font-family: inherit;
      font-size: 12px;
      font-weight: 400;
      line-height: 16px;
      letter-spacing: 0em;
    }

    a {
      text-decoration: none;
      color: #1f2937;
    }

    .cards {
      padding: 10px 12px;
      margin-bottom: 12px;
      display: flex;
      flex-direction: column;
      border-radius: 10px;
      background: var(--extended-cool-gray-50, #f9fafb);

      &:hover {
        border-radius: 10px;
        background: var(--extended-cool-gray-50, #f9fafb);
        box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.06),
          0px 1px 3px 0px rgba(0, 0, 0, 0.1);
      }

      .support-card {
        display: flex;
        flex-direction: row;
        vertical-align: middle;
        align-items: center;
        cursor: url("../../public/images/support/cursor.svg"), auto;
        position: relative;

        img {
          padding: 0px 10px;
        }
        
        .content {
          display: flex;
          text-align: left;
          flex-direction: column;

          p {
            margin-bottom: 10px;
            font-family: inherit;
            font-size: 12px;
            font-weight: 600;
            line-height: 16px;
            letter-spacing: 0em;
            color: inherit;
          }

          span {
            font-size: 12px;
            font-weight: 400;
            line-height: 16px;
            color: inherit;
          }
        }

        &.last {
          &:hover {
            z-index: 2;
            transition: 0.3s all ease;
            background-color: #f9fafb;

            &::before {
              content: none;
            }
          }

          .support-button {
            padding: 9px 14px;
            border-radius: 8px;
            color: #2563eb;
            border: 1px solid #2563eb;
            white-space: nowrap;
            background-color: #fff;
            cursor: url("../../public/images/support/cursor.svg"), auto;

            &:hover {
              color: #fff;
              background-color: #2563eb;
            }

            &.copy {
              color: #fff;
              background-color: #2563eb;
            }
          }
        }

        &:hover {
          z-index: 2;
          transition: 0.3s all ease;
          background-color: #f9fafb;

          &::before {
            position: absolute;
            right: 10%;
            top: 50%;
            width: 20px;
            height: 20px;
            content: url("../../public/images/support/arrow-right.svg"); /* Specify the arrow image */
            z-index: 2;
            transition: 0.3s all ease;
          }
        }
      }
    }
  }

  .wppool-brand {
    text-align: center;
    margin-top: 20px;

    p {
      font-family: Inter;
      font-size: 12px;
      font-weight: 500;
      line-height: 16px;
      letter-spacing: 0em;
      text-align: center;
    }
  }
}

.popup-content {
  background-color: #fff;
  text-align: center;
  padding: 20px;
}
