.mealz-history-order-expanded {
  display: flex;
  flex-direction: column;
  width: 100%;

  .mealz-history-order-expanded__title {
    margin: 0 0 8px;
  }

  .mealz-history-order-expanded__recipes {
    display: grid;
    grid-template-columns: repeat(auto-fill, calc(var(--mealz-history-order-width, 308px) + 16px));
    justify-content: flex-start;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 16px;

    .mealz-history-order-expanded__recipe {
      display: flex;
      flex-direction: row;
      border: 1px solid var(--mealz-ds-color-neutral-200, #D9DDE1);
      border-radius: 12px;
      padding: 12px;
      cursor: pointer;
      box-sizing: border-box;
      margin: 0 16px 16px 0;
      width: var(--mealz-history-order-width, 308px);
  
      &:last-child {
        margin-right: 0;
      }

      .mealz-avatar {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        margin-right: 12px;
      }

      .mealz-history-order-expanded__recipe__infos {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-end;
        flex-grow: 1;

        .mealz-history-order-expanded__title {
          width: 100%;
          text-align: start;
          text-decoration: underline;
          text-underline-position: from-font;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          overflow: hidden;
        }

        .mealz-ds-button {
          padding: 8px 16px;
          background-color: var(--mealz-ds-color-neutral-200, #EFF1F3);

          span {
            line-height: 16px;
          }
        }
      }
    }

    @media (max-width: 1023px) {
      display: flex;
      overflow-x: scroll;
      flex-wrap: nowrap;
      position: relative;
      width: 100%;

      .mealz-history-order-expanded__recipe {
        flex-direction: column;
        align-items: center;
        min-width: 148px;
        max-width: 148px;
        min-height: 200px;
        -webkit-tap-highlight-color: transparent;
  
        .mealz-avatar {
          margin: 0 0 12px 0;
        }
  
        .mealz-history-order-expanded__recipe__infos {
  
          .mealz-history-order-expanded__title {
            -webkit-line-clamp: 3;
            text-decoration: none;
            text-align: center;
          }
  
          .mealz-ds-button {
            display: none;
          }
        }
      }
    }
  }
}
