img.mealz-default-ingredient-picture {
  content: url('https://storage.googleapis.com/assets.miam.tech/generic/images/default-ingredient-picture.svg');
}

img.mealz-default-recipe-picture {
  content: url('https://storage.googleapis.com/assets.miam.tech/generic/images/placeholder.png');
}

.mealz-product-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--mealz-ds-color-primary-100, #e4eaec);
  background: var(--mealz-ds-color-primary-text, #fff);
  transition: all 0.3s;
  position: relative;

  &.added {
    border: 1px solid var(--mealz-ds-color-primary, #24748f);
    background: var(--mealz-ds-color-primary-text, #fff);
  }

  .mealz-product-card__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    color: var(--mealz-ds-color-neutral-black, #0f191f);
    background: var(--mealz-ds-color-primary-100, #e4eaec);
    transition: all 0.3s;

    > *:not(:last-child) {
      margin-right: 8px;
    }

    &.added {
      background: var(--mealz-ds-color-primary, #24748f);
      color: var(--core-background-background-primary, #fff);
    }

    &.disabled {
      background: var(--mealz-ds-color-neutral-200, #d9dde1);
    }

    &.unavailable {
      background-color: var(--mealz-ds-color-neutral-50, #f7f8f9);
    }

    .mealz-product-card__header-quantity {
      text-align: right;
      white-space: nowrap;
    }
  }

  .mealz-product-card__content {
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--mealz-ds-color-neutral-white, #fff);
    transition: background-color 0.3s;

    > *:not(:last-child) {
      margin-bottom: 8px;
    }

    &.disabled,
    &.unavailable {
      justify-content: center;
      align-items: center;
      padding: 12px;
      text-align: center;
    }

    &.disabled {
      background-color: var(--mealz-ds-color-neutral-200, #d9dde1);
    }

    &.unavailable {
      background-color: var(--mealz-ds-color-neutral-50, #f7f8f9);
    }

    .mealz-product-card__selected-product {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      height: 100%;

      > *:not(:last-child) {
        margin-right: 12px;
      }

      .mealz-product-card__picture-column {
        flex-shrink: 0;
        .mealz-product-card__picture {
          height: 120px;
          width: 120px;
        }
      }

      .mealz-product-card__info-column {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        .mealz-product-card__details {
          font-size: 14px;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          line-clamp: 2;
          -webkit-box-orient: vertical;
          color: var(--mealz-ds-color-neutral-black, #0f191f);

          &.product-brand {
            text-transform: uppercase;
            line-height: 24px;
          }

          &.product-fullname {
          }

          &.product-price-per-unit {
            font-size: 12px;
          }
        }

        .mealz-product-card__link {
          font-size: 14px;
        }
      }
    }

    .mealz-product-card__lower-action {
      display: flex;
      align-items: center;
      justify-content: space-between;

      > *:not(:last-child) {
        margin-right: 8px;
      }

      .mealz-product-card__cta {
        display: flex;
        align-items: center;

        > *:not(:last-child) {
          margin-right: 12px;
        }

        .mealz-ds-button.square {
          padding: 8px;
          height: 40px;
          width: 40px;
        }

        .mealz-product-card__checkbox input {
          width: 40px;
          height: 40px;
          border-radius: 8px;
        }

        .mealz-product-card__loading-button {
          padding: 14px;
        }

        @media (max-width: 1023px) {
          .mealz-ds-button.primary:hover:not(:disabled) {
            background-color: var(--mealz-ds-color-primary);
          }
        }
      }

      .mealz-product-card__price {
        color: var(--mealz-ds-color-neutral-black, #0f191f);
        line-height: 0;
      }
    }

    .mealz-product-card__footer__actions {
      display: flex;
      align-items: center;
      justify-content: center;

      > *:not(:last-child) {
        margin-right: 28px;
      }
    }

    .mealz-ds-avatar {
      height: 64px;
      width: 64px;
    }
  }

  .mealz-product-card__disabled-text {
    color: var(--mealz-ds-color-neutral-black, #0f191f);
  }

  .mealz-product-card__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--mealz-ds-color-primary-50, #f0f3f4);
    padding: 8px;

    .light-text {
      color: var(--mealz-ds-color-neutral-black, #0f191f);
      opacity: 0.5;
    }
  }
}
