/* Recipe list page */
#html-body {
  &.cms-page-view .columns {
    padding: 0 16px;
  }

  .recipe-list-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .recipe-item {
    min-width: 0;
  }

  .recipe-item-details {
    background: var(--white);
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
  }

  .recipe-item-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  .recipe-item-info {
    display: flex;
    height: 100%;
    flex-direction: column;
  }

  .recipe-item-time {
    font-weight: 400;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .recipe-item-time::before,
  .recipe-time::before {
    background-image: url(../images/clock-outline.svg);
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
    content: '';
    height: 20px;
    width: 20px;
  }

  .recipe-item-meattype {
    font-style: italic;
    margin-top: 16px;
  }
  
  @media (min-width: 1025px) {
    .recipe-list-wrapper {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
    }
  }

  @media (min-width: 1280px) {
    &.cms-page-view .columns {
      margin: 0;
    }
  }
}

/* Recipe page*/
#html-body.page-layout-recipe,
#html-body.catalog-product-view {
  .recipe-top-section {
    background: var(--white);
    border-radius: 4px;
  }

  .recipe-image {
    max-height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .recipe-details-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }

  .recipe-overview {
    padding: 24px
  }

  .recipe-title {
    margin-bottom: 16px;
  }

  .recipe-time-portion {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
  }

  .recipe-portions,
  .recipe-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
  }

  .recipe-portions::before {
    background-image: url(../images/portions-outline.svg);
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
    content: '';
    height: 20px;
    width: 20px;
  }

  .recipe-ingredients {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .recipe-ingredients-text,
  .recipe-description {
    background: var(--white);
    padding: 24px;
  }

  .recipe-description-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .recipe-description-label {
    margin-bottom: 24px;
  }

  .recipe-ingredients-text > .col:first-of-type > h2,
  .recipe-ingredients-text > .col:first-of-type > h3,
  .recipe-ingredients-text h2:first-of-type,
  .recipe-ingredients-text > h2:first-of-type,
  .recipe-ingredients-text > h3:first-of-type {
    margin-bottom: 24px;
    margin-top: 0px;
    /* include .h2() */
    font-family: "Roboto Condensed", Arial;
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: 118%;
    text-decoration: none;
  }

  .recipe-ingredients-text h2,
  .recipe-ingredients-text h3 {
    margin-top: 24px;
  }

  .recipe-ingredients-text li,
  .recipe-description li {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-light);
    width: 100%;
  }
  
  .recipe-description li {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-light);
    width: 100%;
    display: flex;
    align-items: center; 
    gap: 16px;
    cursor: pointer;
  }

  .recipe-description li.checked > *,
  .recipe-description li.checked  {
    text-decoration: line-through;
    color: var(--gray);
  }

  .recipe-description li::before {
    display: flex;
    align-items: center;
    justify-content: center;
    content: '';
    height: 20px;
    width: 20px;
    border-radius: 4px;
    border: 2px solid var(--green-light);
    background: var(--white);
    flex-shrink: 0;
    opacity: 1;
  }

  .recipe-description li.checked::before {
    content: url(../images/checkmark-white.svg);
    background: var(--green-light);
  }

  .related-recipies-list {
    overflow: hidden;
  }

  .related-recipies-list ul {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: calc(100vw - 16px - 16px);
  }

  .related-recipies-list ul::-webkit-scrollbar {
    display: none;
  }

  .related-recipies-list .recipe-item {
    min-width: 280px;
    max-width: 350px;
    width: 100%;
  }

  .more-recipies-heading {
    margin-top: 32px;
    margin-bottom: 16px;
  }

  .nyhet_block {
    margin-top: 32px;
  }

  .tab {
    display: flex;
    gap: 8px;
  }

  .tab button {
    background: var(--sand);
    color: var(--earth-dark);
    border: none;
    display: inline-flex;
    border-radius: 4px 4px 0 0;
  }

  .tab button.active {
    background: var(--white);
    color: var(--green-light);
    box-shadow: 0 -4px 4px 0 #F1F1F1;
  }

  .tabcontent {
    display: none;
  }

  @media (min-width: 1025px) {
    .tab {
      display: none;
    }

    .tabcontent {
      display: block !important;
    }

    .related-recipies-list ul {
      max-width: calc(100vw - 24px - 24px);
    }

    .recipies-on-product-page{
      grid-column: span 2;
    }

    .recipe-overview {
      padding: 64px
    }

    .recipe-ingredients {
      grid-template-columns: 1fr 1fr;
      gap: 32px;
    }

    .recipe-ingredients-text,
    .recipe-description {
      background: var(--white);
      padding: 64px;
    }

    .recipe-ingredients-text > .col:first-of-type > h2,
    .recipe-ingredients-text > .col:first-of-type > h3,
    .recipe-ingredients-text h2:first-of-type,
    .recipe-ingredients-text > h2:first-of-type,
    .recipe-ingredients-text > h3:first-of-type {
      font-size: 44px;
    }

    .more-recipies-heading {
      margin-top: 48px;
      margin-bottom: 32px;
    }

    .nyhet_block {
      margin-top: 48px;
    }
  }

  @media (min-width: 1280px) {
    .columns {
      margin: 0px;
    }
  }
}

/* Styckingsschema */
#html-body {
  .categoryimg_listing {
    display: grid;
    grid-template-columns: 1fr 1fr;

    li {
      color: var(--green-light);
      text-decoration: underline;
    }
  }
  
  @media (min-width: 1025px) {
    .categoryimg_listing {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
    }
  }
}