.policy-form {
  &__wrapper {
    position: relative;
    font-size: $x-small;

    .policy-page__warning {
      margin: 0;
      margin-top: $pad-large;
    }

    .form-field--input {
      margin: 0;
    }
  }

  &__title-bar {
    display: flex;
    justify-content: space-between;

    .form-field {
      margin-bottom: 0px;
    }

    .input-field,
    .input-field__text-area {
      min-height: auto;
      line-height: normal;
      white-space: normal;
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .input-field::-webkit-scrollbar {
      display: none;
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    .input-field {
      -ms-overflow-style: none; /* IE and Edge */
      scrollbar-width: none; /* Firefox */
    }

    .edit-link {
      cursor: pointer;
    }

    .name-description-resolve {
      flex-grow: 1;
      margin: $pad-medium 24px 0 0;
      .policy-name-wrapper,
      .policy-description-wrapper,
      .policy-resolution-wrapper {
        display: flex;
        &:not(.policy-form--editing) {
          textarea:hover {
            cursor: pointer;
            color: $core-vibrant-blue;
          }
        }
      }
      .policy-name-wrapper {
        .edit-icon {
          position: relative;
          left: 3px;
          top: 13px;
        }
        .policy-form__policy-name,
        .input-sizer::after {
          font-size: $large;
        }
        .component__auto-size-input-field {
          letter-spacing: -0.5px;
          line-height: 2.3rem;
          padding-top: 2px;
        }
      }
      .policy-description-wrapper {
        padding-top: $pad-small;
        .edit-icon {
          position: relative;
          left: 3px;
          top: 0;
        }
      }
      .edit-icon {
        width: 14px;
        height: 14px;
        opacity: 1;
        transition: opacity 0.2s;
        &.hide {
          opacity: 0;
        }
      }
      .policy-form__policy-resolve,
      .resolve-text-wrapper {
        margin-top: $pad-large;
      }
      .resolve-title {
        margin-bottom: 0;
      }
    }

    .author {
      flex-shrink: 1;
      margin-top: 24px;
      text-align: right;
      justify-content: right;
      white-space: nowrap;

      b {
        text-align: right;
      }

      img,
      div {
        display: flex;
        align-items: center;
      }

      span {
        padding-left: $pad-small;
      }
    }
  }

  &__policy-resolve {
    margin-bottom: $pad-medium;
  }

  &__policy-name,
  &__policy-description,
  &__policy-resolution {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    resize: none;
    white-space: normal;
    background-color: transparent;
    &:hover:not(.focus-visible):not(.no-hover) {
      color: $core-vibrant-blue;
      cursor: pointer;
    }
    &.focus-visible {
      outline: 0;
      cursor: text;
    }
  }

  &__policy-resolution {
    margin-top: $pad-small;
  }

  &__policy-name {
    font-size: $large;

    &.input-field--error {
      border: 1px solid $core-vibrant-red;
    }
  }

  &__policy-description,
  &__policy-resolution {
    margin-top: 0;
    font-size: $x-small;
  }

  &__button-wrap {
    margin: 0;
    margin-top: $pad-large;

    &--new-policy {
      display: flex;
      align-items: center;
    }
    &--modal {
      display: flex;
      justify-content: flex-end;
      align-items: center;
    }
    button {
      margin-right: $pad-medium;
    }
  }

  &__button-wrap--save-policy-button:first-child {
    margin-right: $pad-medium;
  }

  &__save-policy-btn,
  &__cancel-btn {
    margin-right: $pad-xsmall;
  }

  &__title {
    color: $core-fleet-black;
    display: inline-block;
    font-size: $large;
  }

  &__platform-checkbox-wrapper {
    margin: 0;

    & + p {
      margin: 0;
      margin-top: $pad-small;
    }
  }

  &__platform-error {
    font-size: $small;
    font-weight: $bold;
  }

  &__platform-compatibility {
    display: flex;
    align-items: center;
    padding-top: $pad-medium;

    b,
    img,
    span {
      display: flex;
      align-items: center;
    }

    .platforms-text {
      padding: 0 $pad-small;
    }

    .platforms-select {
      display: flex;
      padding: 0 $pad-medium;
    }

    img {
      height: 16px;
      width: auto;
    }

    button {
      img {
        padding: 0px;
      }
    }

    form,
    label {
      display: inline-flex;
    }

    label {
      font-weight: $regular;
      margin-right: $pad-medium;
    }

    .tooltip {
      img {
        padding: 0px;
      }

      &__tooltip-text {
        text-align: center;
      }
    }
  }
}
