.filter-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 10px;
  background: $white;
  margin-bottom: 0;

  &__wrapper {
    display: flex;
    gap: 8px;
  }

  &__media {
    border-radius: 4px;
    overflow: hidden;
    background: $white;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      aspect-ratio: 16/9;
    }
  }

  &__title {
    color: $gray-dark;
    line-height: 24px;
  }

  &__check {
    display: flex;
    gap: 10px;
    padding-top: 2px;
  }

  &__checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;

    &:checked + .filter-card__box {
      border-color: $blue;
      background: $blue;

      .filter-card__icon {
        opacity: 1;
      }
    }

    &:focus-visible + .filter-card__box {
      outline: 2px solid $blue;
      outline-offset: 2px;
    }
  }

  &__box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid $gray;
    border-radius: 4px;
    background: $white;
  }

  &__icon {
    color: $white;
    font-size: 12px;
    opacity: 0;
    transition: opacity .15s ease-in-out;
  }
}

@include media-breakpoint-up(md) {
  .filter-card {
    width: 148.5px;
  }
}

@include media-breakpoint-up(lg) {
  .filter-card {
    width: 192px;
  }
}
