@import "../../style/index.scss";

.amp-flex-item {
  display: flex;
  flex-direction: row;
  width: 100%;
  flex: 1;
  box-sizing: border-box;

  margin-top: 0;
  margin-bottom: 0;
  min-width: 0;

  &--gap-none {
    gap: 0;
  }

  &--gap-default {
    gap: var(--default-spacing);
  }

  &--gap-small {
    gap: var(--icon-spacing);
  }

  &--gap-large {
    gap: var(--large-spacing);
  }

  &--gap-xlarge {
    gap: var(--double-spacing);
  }

  &__start,
  &__end {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: fit-content;
    gap: var(--default-spacing);
  }

  &__singe-child-with-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &--row {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  &--column {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
  &__end {
    margin-left: auto;
  }

  &--margin-bottom {
    margin-bottom: var(--default-spacing);
  }
  &--margin-top {
    margin-top: var(--default-spacing);
  }
  &--margin-both {
    margin-bottom: var(--default-spacing);
    margin-top: var(--default-spacing);
  }
}
