.landing-header {
  background-color: var(--header-landing--bg, #FFFFFF);

  @media only screen and (max-width: 767px) {
    .header--wrapper {
      --header-layout: "logo secondary-nav" / minmax(0, 1fr) minmax(0, 1fr) !important;
    }
  }
}

.template--product {
  .section--image-comparison {
    .image-comparison--before-heading,
    .image-comparison--after-heading {
      font-weight: 700;
      font-size: 24px;
      line-height: 1;
      letter-spacing: -0.02em;
      text-transform: uppercase;
    }
  }
}

.logo-list--root {
  background-color: var(--bg-color);
}

.logo-list--container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 5%;

  .logo-list--block {
    height: var(--logo--block-height);
    max-width: 140px;

    img {
      object-fit: contain;
    }
  }
}

.custom-tabs--tab-buttons {
  margin-bottom: 30px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid currentColor;
}

.custom-tabs--tab-button {
  width: 100%;
  padding: 0 0 5px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;

  &.active {
    border-bottom: 3px solid currentColor;
  }
}

.custom-tabs--tab-panel {
  display: none;

  &.active {
    display: block;
  }

  .list-item {
    display: flex;
    gap: 12px;

    & + .list-item {
      margin-top: 25px;
    }

    img {
      width: 72px;
      height: 72px;
      object-fit: cover;
    }

    .list-item-content {
      width: calc(100% - 84px);

      h4 {
        margin: 0;
        font-weight: 700;
        font-size: 16px;
        line-height: 1;
        text-transform: uppercase;
      }

      p {
        margin-block: 8px 0;
        line-height: 1.33;
      }
    }
  }
}

.template--product-subscriptions {
  --bg-color--body: #fff;

  /* Main product */
  .product-media--variants--root[data-layout="thumbnails"] {
    flex-direction: column-reverse;
    gap: 10px;

    .product-media--root {
      max-width: 100%;
    }

    .product-media--modal,
    .product-media--thumbs {
      width: 100%;
    }

    .product-media--thumbs {
      overflow-x: scroll;
      padding-bottom: 10px;
      margin-bottom: -10px;

      /* Webkit scrollbar styling */
      &::-webkit-scrollbar {
        height: 8px;
      }

      &::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
        margin: 0 5px;
      }

      &::-webkit-scrollbar-thumb {
        background: #117b5e;
        border-radius: 4px;
        border: 2px solid transparent;
        background-clip: content-box;

        &:hover {
          background: #0d5a47;
          background-clip: content-box;
        }
      }

      /* Firefox scrollbar styling */
      scrollbar-width: thin;
      scrollbar-color: #117b5e #f1f1f1;
    }

    .product-media--thumbs-wrapper {
      width: 100vw;
      position: static;
      flex-direction: row;
      gap: 10px;
      overflow: hidden;
    }

    .product-media--thumb {
      width: calc((100% - 30px) / 4);
    }
  }

  .main-product--wrapper {
    max-width: var(--max-width--large);
    width: 100%;

    .product-media--variants--root {
      position: static;
    }

    .product-media--root {
      position: relative;
    }

    .product-media--alt {
      position: absolute;
      top: 20px;
      left: 20px;
      z-index: 2;
      padding: 8px 20px;
      font-weight: 700;
      font-size: 14px;
      line-height: 1;
      letter-spacing: 0;
      text-transform: uppercase;
      background: #117b5e;
      color: #fff;
    }

    .product--benefits {
      margin-top: 10px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;

      .item {
        width: calc((100% - 20px) / 3);
        padding: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        background-color: #F6F6F6;

        img {
          width: 34px;
          height: 34px;
          object-fit: contain;
        }

        p {
          width: calc(100% - 44px);
          margin: 0;
          font-weight: 700;
          font-size: 14px;
          line-height: 1;
          text-transform: uppercase;
        }
      }
    }
  }

  [data-item="overline"] {
    font-size: clamp(0.938rem, 1.157vw + 0.382rem, 1.25rem);
    line-height: 1.1;
    letter-spacing: 0.03em;
  }

  [data-item~="section-heading"] {
    font-weight: 700;
    font-size: clamp(1.875rem, 4.63vw - 0.347rem, 3.125rem);
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  [data-essential-upsell-element] {
    display: none !important;
  }

  @media only screen and (min-width: 768px) and (max-width: 1023px) {
    .main-product--wrapper {
      .main-product--desktop,
      .main-product--form {
        width: calc(50% - calc(var(--spacing--block) / 2));
      }

      .product--benefits {
        .item {
          width: calc((100% - 10px) / 2);
        }
      }
    }
  }

  @media only screen and (max-width: 479px) {
    .main-product--wrapper {
      .product--benefits {
        .item {
          width: calc((100% - 10px) / 2);
        }
      }
    }
  }
}

product-recommendations-alt-element {
  &[data-background-color="none"] {
    background-color: var(--bg-color--white);
  }

  .product-card--root {
    &:not([data-text-layout="center"]) {
      .product-card--details {
        flex-direction: column;
      }
    }

    .product-card--details {
      flex-grow: 1;
      line-height: 1.3;

      [data-item="nav-text"] {
        letter-spacing: 0;

        &.product--price {
          font-weight: 700;
        }
      }
    }

    .product--labels {
      position: static;
    }

    .product--label {
      font-weight: 700;
      font-size: 12px;
      line-height: 1;
      letter-spacing: 0;
      text-transform: uppercase;
      background: #117B5E;
      color: var(--button--color);
    }

    .product--price-container {
      margin-top: auto;
    }

    .product-quick-add {
      position: static;
      margin: 0;
      padding: 10px 0 0;
      width: 100%;
    }

    .product-quick-add--button {
      --bg-color--body: #001a13;
      --spacing--block: 40px;

      width: 100% !important;
      justify-content: center;
      border: 0;
      font-weight: 700;
      line-height: 1;
      letter-spacing: 0;
      text-transform: uppercase;
      border-radius: 20px;

      .product-quick-add--icon {
        display: none;
      }

      .product-quick-add--text {
        display: block !important;
        color: var(--button--color);
        font-size: 14px;
      }
    }
  }
}

/* How to use */
.howtouse--heading {
  text-align: center;
}

.howtouse--tab-buttons {
  max-width: 920px;
  margin: 0 auto 30px;
  display: flex;
  border: 1px solid var(--color--body);
}

.howtouse--tab-button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
  border-right: 1px solid var(--color--body);

  &:last-child {
    border-right: none;
  }

  &.active {
    background-color: var(--color--body);
    color: var(--button--color);
    font-weight: 700;
  }
}

.howtouse--tab-panel {
  display: none;

  &.active {
    display: block;
  }
}
