@font-face {
  font-family: 'Roboto';
  src: url('/wp-content/plugins/loyalty-suite/includes/Admin/dist/fonts/Roboto-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url('/wp-content/plugins/loyalty-suite/includes/Admin/dist/fonts/Roboto-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Material Icons';
  src: url('/wp-content/plugins/loyalty-suite/includes/Admin/dist/fonts/MaterialIcons-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

* {
  box-sizing: border-box;
}

#loyalty-suite-app {
  color: $dark;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  letter-spacing: 0.3px;
  line-height: normal;
}

.material-icons {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: normal;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}

.loyalty-suite {
  display: flex;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: $white;

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p {
    color: $dark;
    line-height: normal;
    font-weight: 400;
    margin: 0;
  }

  a {
    color: $dark;
    line-height: normal;
    margin: 0;
    text-decoration: none;

    &:focus {
      box-shadow: none;
      outline: none;
    }
  }

  &-warning-text {
    font-size: 14px;
    color: $negative;
  }
}

html {
  scrollbar-width: none;

  &::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    display: none;
  }
}

body {
  color: $dark;
  scrollbar-width: none;

  &::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    display: none;
  }

  .q-menu {
    z-index: 9999999;

    .q-item {
      padding: 8px 20px;

      &.disabled {
        padding: 8px 15px;
        color: $primary;
      }

      &.loyalty-suite-form__pro-field {
        cursor: not-allowed !important;

        .q-item__section {
          flex-direction: row;
          justify-content: space-between;
          align-items: center;

          &:hover {
            color: $dark;
          }
        }

        .q-badge {
          flex-shrink: 0;
          width: 40px;
          height: 25px;
          justify-content: center;
          align-items: center;
          font-weight: 700;
        }

        .loyalty-suite-form__select-info {
          cursor: pointer !important;
        }

        .q-focus-helper {
          display: none;
        }

        &.q-item--active {
          color: $dark;
        }

        &:hover {
          color: $dark;

          .q-focus-helper {
            display: none;
          }

        }
      }

      &.loyalty-suite-form__wc-field {
        cursor: not-allowed !important;

        .q-item__section {
          flex-direction: row;
          justify-content: space-between;
          align-items: center;

          &:hover {
            color: $dark;
          }
        }

        .q-item__label {
          opacity: 0.3;
        }

        .loyalty-suite-form__select-info {
          cursor: pointer !important;
        }

        .q-focus-helper {
          display: none;
        }

        &.q-item--active {
          color: $dark;
        }

        &:hover {
          color: $dark;

          .q-focus-helper {
            display: none;
          }

        }
      }

      &:hover {
        color: $primary;
      }
    }
  }

  .q-manual-focusable--focused>.q-focus-helper {
    background: $primary !important;
  }

  .q-btn {
    height: 36px;
    min-height: 36px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    line-height: normal;
    text-transform: uppercase;

    &::before {
      display: none;
    }

    .on-left {
      margin-right: 10px;
    }

    .q-icon {
      display: flex;
      width: 12px;
      font-size: 16px;
    }

    &.q-btn--outline {
      padding: 5px 12px 4px 12px;
      outline: 1px solid $primary !important;
    }
  }

  .q-dialog {
    &__inner {
      .q-card {
        .q-card__section {
          display: flex;
          flex-direction: column;
          align-items: center;
          padding: 20px;

          span {
            text-align: center;
          }

          span:first-child {
            margin-bottom: 5px;
          }
        }

        .q-card__actions {
          padding: 0 20px 20px 20px;

          .q-btn {
            padding: 0 20px;
            text-transform: uppercase;
          }
        }
      }
    }
  }

  .q-date {
    width: 300px;
    min-width: 300px;

    &__header {
      display: none;
    }

    .q-date__calendar-item {
      .q-btn-item {
        width: 30px;
        height: 30px;
        min-height: 30px;
        flex-shrink: 0;
      }
    }

    .q-date__arrow {
      .q-btn-item {
        width: 30px;
        height: 30px;
        min-height: 30px;
        flex-shrink: 0;
      }
    }
  }

  .q-tooltip {
    z-index: 99999999;
    background: $dark;
    color: $white;
    font-size: 13px;
    max-width: 360px;
  }

  .q-color-picker {
    &__footer {
      .q-tab--inactive {
        background: $accent;
        box-shadow: none;
      }
    }
  }
}

.loyalty-suite-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  flex-grow: 1;
  background: $background;

  .q-inner-loading {
    &.absolute-full {
      background: $white;
    }
  }

  .loyalty-suite-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    position: relative;
    padding: 0;

    .q-scrollarea__content {
      padding: 25px 40px 40px 40px;
    }
  }

  .loyalty-suite-api-error-message {
    display: flex;
    align-items: center;
    color: $negative;
    font-weight: bold;
    margin-top: 10px;

    span {
      margin-left: 10px;
    }
  }
}

.fullscreen {
  z-index: 999999 !important;
}

.q-card {
  a:focus {
    box-shadow: none;
  }
}
