// Basic styles
.gdpr-field {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  padding-right: 20px;
  padding-left: 20px;
  text-align: left;

  & + & {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid $grey;
  }

  &--submit {
    justify-content: center;
  }

  @media screen and (max-width: $bp-small) {
    flex-flow: column;
    align-items: flex-start;
  }
}

.gdpr-field-infos {
  flex: 1;

  &__label {
    margin-bottom: 5px;
    font-size: 20px;
  }

  &__extra-txt {
    margin: 0;
    font-size: 14px;
  }
}

.gdpr-field-actions {
  margin-left: 20px;

  &__button {
    display: inline-block;
    position: relative;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 8px 20px;
    transition: border .5s, background-color .5s, box-shadow .5s;
    border: 1px solid $black-opacity-20;
    border-radius: 5px;
    background-color: $white;
    color: $black;
    text-decoration: none;
    cursor: pointer;

    &:first-child {
      margin-right: 20px;
      margin-left: 0;
    }

    &:focus {
      outline: none;
    }

    &:active {
      top: 1px;
    }

    &--accept {
      &.selected,
      &:hover {
        background-color: $green;
      }

      &:focus {
        box-shadow: 0 0 5px 0 $green;
      }
    }

    &--refuse {
      &.selected,
      &:hover {
        background-color: $red;
      }

      &:focus {
        box-shadow: 0 0 5px 0 $red;
      }
    }
  }

  @media screen and (max-width: $bp-small) {
    margin-top: 20px;
    margin-left: 0;
  }
}

.gdpr-message {
  display: none;
  width: 100%;
  margin-top: 20px;
  font-size: 14px;
  text-align: center;

  &--error {
    p {
      color: $red;
    }
  }
}

.frm_form_ajax_submitted {

  .formidable_gdpr_nojs_fallback {
    display: none;
  }
}
