@import 'select2/dist/css/select2.css';

#tab_rfs-discounts-with-gravity-forms-for-woocommerce {
  .gform-dropdown__container {
    .gform-dropdown__list {
      .gform-dropdown__group:nth-last-child(2) {
        display: none;
      }
    }
  }

  .gform-settings-panel__content {
    input[type="number"] {
      width: 100%;
    }

    input[readonly] + label button {
      pointer-events: auto;
    }
  }

  .gform-settings-field__toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    .gform-settings-field__header {
      width: 100%;
      flex-basis: 100%;
      flex-grow: 1;
      flex-shrink: 0;
    }

    .gform-settings-input__container {
      flex-shrink: 0;
    }

    .gform-settings-description {
      width: calc(100% - 60px);
      order: 2;
      display: inline-block;
      padding: 0 0 0 5px;
      margin: 0;
      box-sizing: border-box;
    }
  }
}

.gform-settings-field__section_heading {
  position: relative;
  padding-left: 10px;

  &:not(:first-child) {
    margin-top: 32px;
  }

  h3 {
    font-size: 1.2em;
  }

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 4px;
    height: 100%;
    background-color: #3e7da6;
    border-radius: 2px;
  }
}

.gform-settings-field__section_paragraph {
  .is-notice {
    padding: 0 15px;
    border-left: 4px solid #3e7da6;
  }

  ul {
    padding-left: 16px;

    li {
      list-style-type: disc;
    }
  }
}

#tab_rfs-discounts-with-gravity-forms-for-woocommerce {
  .select2-container {
    display: block;

    .select2-selection--single {
      height: auto;
      border: none;

      .select2-selection__arrow {
        display: none;
      }
    }

    .select2-selection--multiple {
      .select2-selection__rendered {
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;

        .select2-selection__choice {
          padding: 5px;
          background-color: #3e7da6;
          border-color: #3e7da6;
        }
      }
    }
  }
}
