@import '../../theme/mixins';

.ImageFilter {
  display: block;
  padding-top: var(--spacing-s);
  background: var(--color-light);

  :global(.eg-flick-viewport, .eg-flick-camera) {
    flex-direction: row;
  }

  &.disabled {
    pointer-events: none;
    opacity: .5;
  }

  @media (max-width: 820px) {
    width: 100%;
  }
}

.Slider {
  height: 122px;
}

.Filter {
  margin: 5px;
  cursor: pointer;

  &Name {
    text-align: center;
    margin-bottom: var(--spacing-xxs);
    font-size: var(--small-font);
    color: var(--color-neutral-03);
    font-weight: 400;
  }

  &Image {
    width: 150px;
    height: 150px;

    @media (max-width: 820px) {
      width: 100px;
      height: 100px;
    }

    img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }

    canvas {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  &.active {
    .FilterName {
      color: var(--color-main);
      font-weight: 600;
    }
  }
}
