/* Messages start */
.ezf-general-message {
  background-color: #f1f0f0;
  padding: 8px 16px;
  border: 1px solid #e7e7e7;
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  &__actions {
    margin-left: auto;

    a {
      margin-left: 4px;
    }
  }
}
/* Messages end */

.ezf-general-form-group {
  display: flex;
  width: 100%;
}

.ezf-general-form-item:not(:last-child) {
  margin-right: 8px;
}

.ezf-form {
  &__input-holder {
    display: flex;
    width: 100%;

    input {
      width: 100%;
    }
  }

  &__line-block {
    padding: 24px;
    background-color: #fff;
  }

  &__line-label {
    margin-bottom: 8px;
  }

  &__check-inline,
  &__radio-inline {
    display: inline-block;
    margin-right: 16px;
  }

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

/* Header start */
.ezf-general-header {
  display: flex;
  flex-direction: column;
  margin: 32px 0;

  &__logo {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    margin-bottom: 24px;

    img {
      min-width: 30px;
      margin-right: 16px;
    }

    span {
      font-size: 24px;
      font-weight: 500;
    }
  }

  &__nav {
    display: flex;

    & > *:not(:last-child) {
      margin-right: 16px;
    }
  }
}
/* Header end */

/* Steps start */

.ezf-steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;

  & ~ .ezf-general-preloader {
    display: none;
  }
}

.ezf-steps-item {
  background-color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;

  &__preview {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #f6f6f6;
  }

  &__preview-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  &__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
  }

  &__label {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
  }

  &__guid {
    font-family: monospace;
  }

  &__slug {
    margin-top: 8px;
  }

  &__slug-preview {
    margin-top: 8px;
  }

  &__message {
    .ezf-validation-error & {
      color: coral;
    }

    .ezf-validation-success & {
      color: lightseagreen;
    }
  }

  &__actions-form {
    display: flex;
  }

  &__actions {
    input {
      width: 100%;
    }

    a {
      margin-left: 4px;
    }
  }

  &__content {
    padding: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
  }
}
/* Steps end */

/* Manage list start */
.ezf-manage-funnels-list {
  display: flex;
  flex-direction: column;
}

.ezf-manage-funnels-item {
  padding: 16px;
  background-color: #fff;
  display: flex;
  align-items: center;

  & + & {
    border-top: 1px solid #f0f0f1;
  }

  &__label {
    font-size: 18px;
    margin-bottom: 8px;
  }

  &__actions {
    margin-left: auto;
  }

  &.is-next {
    text-align: center;
    justify-content: center;
    transition: background-color 0.2s;

    &:hover {
      background-color: #f9f9f9;
    }
  }
}

/* Manage list end */

.ezf-general-button {
  display: inline-flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  min-height: 30px;
  font-size: 13px;
  color: #2271b1;
  border: 1px solid #2271b1;
  background: #f6f7f7;
  text-decoration: none;
  border-radius: 3px;
  line-height: 1;
  white-space: nowrap;

  &:hover {
    background: #f0f0f1;
  }

  &.is-small {
    min-height: 24px;
    padding: 0 6px;
  }

  &.is-secondary {
    color: #899096;
    border: 1px solid #899096;
  }
}

.ezf-general-input {
  width: 100%;
  display: flex;
}

/* Tabs start  */
.ezf-tabs-item {
  &__top-name-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
  }

  &__top-back {
    margin-left: auto;
  }

  &__top-name-itself {
    font-size: 23px;
    font-weight: 400;
    margin: 0;
    padding: 9px 0 4px 0;
    line-height: 1.3;
  }
}
/* Tabs end  */

/* Preloader start */
.ezf-general-preloader {
  width: 100%;
  height: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  &::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 100%;
    border: 2px solid rgb(104, 104, 104);
    border-left-color: transparent;
    animation: ezf-spinner 1s linear infinite;
  }
}

@keyframes ezf-spinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* Preloader end */

/* MODAL START */
.ezf-modal {
  display: none;
  width: 100%;
  max-width: 1040px;
  background-color: #fff;
  padding: 16px;
  text-align: initial;
  border-radius: 8px;

  &__wrapper {
    z-index: 100000;

    &.is-current {
      z-index: 100000;
      overflow: hidden;
      padding: 0;
    }
  }

  &__validation-messages {
    display: flex;
    align-items: center;
  }

  &__validation-message {
    display: inline-flex;
    padding: 4px 8px;
    border: 1px solid currentColor;
    margin-bottom: 16px;
    border-radius: 4px;

    .ezf-validation-error & {
      color: coral;
    }

    .ezf-validation-success & {
      color: lightseagreen;
    }
  }

  &__control-wrapper {
    display: flex;
    justify-content: flex-end;
  }
}
/* MODAL END */

.ezf-empty {
  text-align: center;
  font-size: 18px;
  padding: 16px 0;

  & ~ .ezf-general-preloader {
    display: none;
  }
}

.select2-container.select2-container--open {
  z-index: 100000;
}
