/*
 * Copyright (c) 2010, 2023 BSI Business Systems Integration AG
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 */
.image-field {

  &.alternative > label.top { /* NOSONAR over qualify by purpose to make it more specific than default rule in FormField.less */
    padding-bottom: @top-label-border-padding-bottom;
  }

  & > .field {
    overflow: hidden;
    margin-left: @mandatory-indicator-width;

    & > .font-icon {
      font-size: 20px;
    }

    &.clickable {
      cursor: pointer;
    }

    &.has-inner-alignment {
      display: flex;

      & > .font-icon {
        display: flex;
        align-items: inherit;
        justify-content: inherit;
      }

      &.halign-left {
        justify-content: flex-start;
      }

      &.halign-center {
        justify-content: center;
      }

      &.halign-right {
        justify-content: flex-end;
      }

      &.valign-top {
        align-items: flex-start;
      }

      &.valign-middle {
        align-items: center;
      }

      &.valign-bottom {
        align-items: flex-end;
      }
    }
  }
}
