select, // select temporary assignment due to smarty world
.selectField {
  min-width: 35px;
  max-width: 100%;
  height: calc(var(--size--formField) + 2 * var(--borderWidth--line));
  padding: var(--padding--xs);
  padding-right: var(--padding--xl);

  font-family: var(--fontFamily--caption);
  font-size: var(--fontSize--caption-small);
  font-weight: var(--fontWeight--caption-small);
  line-height: var(--lineHeight--caption-small);
  color: rgb(var(--foreground--neutral-full-default--light));
  letter-spacing: var(--letterSpacing--caption-small);

  background-color: rgb(var(--background--neutral-base-default--light));

  // TODO: fix me https://shoptet.atlassian.net/browse/FRONTEND-2845
  background-image: url('../../../assets/icons/shp-down.svg');
  background-repeat: no-repeat;
  background-position: calc(100% - 4px) center;
  background-size: 18px;
  border: 1px solid rgb(var(--border--neutral-low-default--light));
  border-radius: var(--borderRadius--formField);

  &::-ms-expand {
    display: none;
  }

  &:focus {
    background-color: rgb(var(--background--neutral-base-default--light));
    border-color: rgb(var(--border--controls-medium-selected--light));
    outline: 0;
    box-shadow: var(--shadow--focus--light);
  }

  &:disabled {
    opacity: var(--blend--solid--light);
    background-color: rgb(var(--background--neutral-low-default--light));
  }

  &.warning-field,
  &.warning-field:focus {
    border-color: rgb(var(--border--warning-medium-default--light));
  }

  &.error-field,
  &.error-field:focus {
    border-color: rgb(var(--border--critical-high-default--light));
  }

  &[multiple] {
    height: auto;
  }

  &.xs {
    width: 65px;
  }
  &.sm {
    width: 130px;
  }
  &.md {
    width: 220px;
  }
  &.lg {
    width: 440px;
  }
  &.full {
    width: 100%;
  }

  // This is for Smarty SelectAddField component
  & ~ .input-select,
  // This is for React SelectAddField component
  & ~ .iconButton {
    margin-left: var(--margin--xs);
  }
}
