.collection-links__container {
  .collection-links__link {
    width: 100%;
    padding-bottom: 12px;
  }
}

.es-benefit .collection-links__container .collection-links__link {
  padding-bottom: 0;
  margin-top: 16px;
}

.menu-list__submenu {
  &.es-gradient--background {
    .menu-list__submenu-inner {
      background: linear-gradient(to right, #F2F2F2 calc((100% / 6) + (100% - 1440px) / 2 + 20px), transparent calc((100% / 6) + (100% - 1440px) / 2 + 20px));

      @media (max-width: 1440px) {
        background: linear-gradient(to right, #F2F2F2 calc((100% / 5) + 20px), transparent calc((100% / 5) + 20px));
      }

      @media (max-width: 1024px) {
        background: linear-gradient(to right, #F2F2F2 calc((100% / 4) + 20px), transparent calc((100% / 4) + 20px));
      }
    }
  }

  .menu-list__submenu-inner {
    .mega-menu__column {
      &>.group-block {
        margin-bottom: 24px;
      }

      .mega-menu__link {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        transition: .3s ease;

        &:hover {
          background-color: #FFF;
        }

        img {
          width: 14px;
          height: auto;
          transform: rotate(-90deg);
        }
      }
    }
  }
}

slideshow-component {
  slideshow-arrows {
    max-width: 1560px;
    margin: auto;

    @media (max-width: 1600px) {
      padding-inline: 20px;
    }
  }

  slideshow-controls {
    max-width: 1560px;
    left: 50%;
    transform: translateX(-50%);
  }

  slideshow-slides {
    slideshow-slide {
      .slide__content {
        max-width: 1525px;
        // margin: auto;
        left: clamp(20px, 9.375vw, 150px);

        .text-block.h1 > * {
          font-size: clamp(2rem, 2.5vw + 1.25rem, 3rem);
        }

        .text-block.custom-font-size > * {
          font-size: clamp(0.875rem, 0.5vw + 0.75rem, 1rem);
        }
      }
    }
  }
}

.product-information__media {
  slideshow-component {
    slideshow-controls {
      transform: translateX(0);
      justify-content: center;
    }
  }
}

@media (max-width: 750px) {

  h2,
  .h2.h2,
  .text-block.h2>* {
    font-size: 1.9rem;
  }

  h4,
  .h4.h4,
  .text-block.h4>* {
    font-size: 1rem;
  }
}

.shopify-section {

  .yotpo-display-l .yotpo-main-layout .yotpo-head .yotpo-headline,
  .yotpo-display-m .yotpo-main-layout .yotpo-head .yotpo-headline,
  .yotpo-display-s .yotpo-head .yotpo-headline {
    font-family: var(--font-h2--family);
    font-style: var(--font-h2--style);
    font-weight: var(--font-h2--weight);
    font-size: var(--font-h2--size);
    line-height: var(--font-h2--line-height);
    letter-spacing: var(--font-h2--letter-spacing);
    text-transform: var(--font-h2--case);
    color: var(--color, var(--font-h2-color));

    @media (max-width: 750px) {
      font-size: 1.9rem;
    }
  }

  .yotpo-title-text,
  .yotpo-body-text,
  .yotpo-reviewer-name,
  .yotpo-new-review-btn,
  .yotpo-review-content,
  .yotpo-review-votes-text,
  .yotpo-reviewer-verified-buyer-text,
  .yotpo-date-format,
  .yotpo-review-title,
  .yotpo-read-more-text {
    font-family: var(--font-body--family) !important;
  }

  .yotpo-empty-state {
    svg {
      margin: auto;
    }
  }
}

.yotpo-reviews-main-widget {
  .modal-backdrop.yotpo-review-form-modal .yotpo-modal-header-heading {
    font-family: var(--font-h2--family);
  }

  .yotpo-modal-body {
    .yotpo-review-form {

      .yotpo-form-label,
      .yotpo-star-rating-input {
        font-family: var(--font-body--family) !important;
      }
    }
  }

  .yotpo-review-form .form-footer .yotpo-review-form-footer-container .yotpo-new-review-submit {
    font-family: var(--font-body--family) !important;
    background-color: #c9582c !important;
    border-radius: 100px !important;
  }

  #yotpo-main-widget-btn {
    padding: 6px 12px !important;
  }
}

.shopify-section:has(.es-iwt-editorial) {
  background-color: #f3f5f5;

  .section-background {
    background-color: #f3f5f5;
  }
}

.shopify-section:has(.es-iwt-editorial)>.section {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  
}

.shopify-section:has(.es-iwt-editorial) .section-content-wrapper.layout-panel-flex--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

@media (min-width: 990px) {
  .shopify-section:has(.esb-iwt-copy) .section-content-wrapper.layout-panel-flex--row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.es-variant-iwt[data-image-position='right'] .es-iwt-photo {
  order: 2;
}

.es-variant-iwt[data-image-position='right'] .es-iwt-editorial {
  order: 1;
}

.shopify-section:has(.es-iwt-editorial) .es-iwt-photo {
  width: 100%;
  max-width: none;
  overflow: hidden;
  border-radius: 15px;

  .image-block__image {
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    object-position: center top;
    border-radius: 15px;
  }
}

.es-iwt-editorial {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 20px;
  margin-top: auto;

  .group-block-content {
    align-items: flex-start;
    width: 100%;
  }

  .text-block,
  .text-block>*,
  .rte,
  .rte>* {
    margin-inline: 0;
    text-align: left;
  }

  .text-block>* {
    margin-block: 0;
  }

  .es-iwt-kicker {
    margin-bottom: 20px;

    p {
      margin: 0;
      font-size: 16px;
      line-height: 24px;
      letter-spacing: 0.14em;
      font-weight: 500;
      text-transform: uppercase;
      color: #212722;
    }
  }

  .es-iwt-headline {
    margin-bottom: 30px;
    width: 100%;

    &.text-block>* {
      max-width: 520px;
    }

    h2 {
      margin: 0;
      margin-block: 0;
      max-width: 520px;
      font-size: 36px;
      font-weight: 300;
      line-height: 48px;
      letter-spacing: .02em;
      color: #212722;
    }

    strong {
      font-weight: 400;
    }
  }

  .es-iwt-copy {
    max-width: 100%;
    width: 100%;

    &.text-block>* {
      max-width: 100%;
    }

    p {
      margin: 0 0 40px;
      font-size: 16px;
      font-weight: 300;
      line-height: 1.65;
      color: #212721;
    }

    ul {
      list-style: none;
      margin: 0;
      padding: 0;
      max-width: 520px;
    }

    li {
      position: relative;
      margin: 0 !important;
      margin-top: 0 !important;
      padding-left: 40px;
      font-size: 18px;
      line-height: 1.45;
      font-weight: 500;
      color: #212722;

      &+li {
        margin-top: 30px !important;
      }

      h5 {
        margin: 0;
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;
      }

      &::before {
        content: '';
        position: absolute;
        top: 0.28em;
        left: 0;
        bottom: auto;
        width: 16px;
        height: 9px;
        border-bottom: 2.5px solid #212722;
        border-left: 2.5px solid #212722;
        transform: rotate(-45deg);
      }
    }
  }
}

.esb-iwt-kicker {

  p {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.14em;
    font-weight: 500;
    text-transform: uppercase;
    color: #212722;
  }
}

.esb-iwt-headline {
    
    width: 100%;

    &.text-block>* {
      max-width: 520px;
    }

    h2 {
      margin: 0;
      margin-block: 0;
      max-width: 520px;
      font-size: 36px;
      font-weight: 300;
      line-height: 48px;
      letter-spacing: .02em;
      color: #212722;
    }

    strong {
      font-weight: 400;
    }
  }

.shopify-section:has(.esb-iwt-copy) {
    background-color: #f3f5f5;
}

.esb-iwt-copy {
    max-width: 100%;
    width: 100%;

    &.text-block>* {
      max-width: 100%;
      margin-top: 20px;
    }

    p {
      margin: 0 0 40px;
      max-width: 520px;
      font-size: 16px;
      font-weight: 300;
      line-height: 1.65;
      color: #212721;
    }

    ul {
      list-style: none;
      margin: 0;
      padding: 0;
      max-width: 520px;
    }

    li {
      position: relative;
      margin: 0 !important;
      margin-top: 0 !important;
      padding-left: 40px;
      font-size: 18px;
      line-height: 1.45;
      font-weight: 500;
      color: #212722;

      &+li {
        margin-top: 30px !important;
      }

      h5 {
        margin: 0;
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;
      }

      &::before {
        content: '';
        position: absolute;
        top: 0.28em;
        left: 0;
        bottom: auto;
        width: 16px;
        height: 9px;
        border-bottom: 2.5px solid #212722;
        border-left: 2.5px solid #212722;
        transform: rotate(-45deg);
      }
    }
  }

@media (max-width: 989px) {
  .shopify-section:has(.es-iwt-editorial)>.section {
    width: 100%;
  }

  .shopify-section:has(.es-iwt-editorial) .section-content-wrapper.layout-panel-flex--row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .shopify-section:has(.es-iwt-editorial) .es-iwt-photo,
  .es-iwt-editorial {
    width: 100%;
    max-width: none;
  }

  .es-iwt-editorial {
    .es-iwt-kicker {
      margin-bottom: 40px;
    }

    .es-iwt-headline {
      margin-bottom: 24px;

      h2 {
        max-width: none;
      }
    }

    .es-iwt-copy {
      max-width: none;

      p,
      ul {
        max-width: none;
      }

      li+li {
        margin-top: 22px;
      }
    }
  }

  .esb-iwt-copy {
    & p {
      font-size: 14px;
      padding-bottom: 20px;
    }
  }

  .esb-iwt-kicker {
      margin-bottom: 20px;
      p{
        padding-top: 20px;
      }
  }

  // .layout-panel-flex {
  //   gap: 0;
  // }
}

.es-flavor-dropdown {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.es-flavor-dropdown__legend,
.es-flavor-dropdown__panel-label {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #212722;
}

.es-flavor-dropdown__panel-label {
  margin: 0;
  padding: 12px 14px 8px;
  font-size: 12px;
  font-weight: 500;
}

.es-flavor-dropdown__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #212722;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: #212722;
}

.es-flavor-dropdown__trigger-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.es-flavor-dropdown__image {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 40px;
}

.es-flavor-dropdown__name {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.es-flavor-dropdown__caret {
  width: 12px;
  height: 8px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.es-flavor-dropdown.is-open .es-flavor-dropdown__caret {
  transform: rotate(180deg);
}

.es-flavor-dropdown__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #d5d8d6;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(33 39 34 / 12%);
  max-height: 280px;
  overflow: auto;

  input {
    display: none;
  }
}

.es-flavor-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}

.es-flavor-dropdown__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  cursor: pointer;
  color: #212722;
}

.es-flavor-dropdown__option:hover,
.es-flavor-dropdown__option.is-selected {
  background: #e8eef0;
}

.es-flavor-dropdown__unavailable {
  font-weight: 400;
  opacity: 0.6;
}

.es-packaging {
  width: 100%;

  input {
    display: none;
  }
}

.es-packaging__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
}

.es-packaging__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #e8eeef;
  color: #212722;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.es-packaging__card:hover {
  background: #f4f7f7;
}

.es-packaging__card.is-selected,
.es-packaging__card:has(:checked) {
  background: #fff;
  border-color: #1f4d4f;
  box-shadow: inset 0 0 0 1px #1f4d4f;
}

.es-packaging__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #1f4d4f;
}

.es-packaging__subtitle {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: #4a5a5b;
}

.es-pack-sizes {
  margin-top: 20px;
}

.es-pack-sizes.is-hidden,
.es-pack-sizes[hidden] {
  display: none !important;
}

@media (max-width: 749px) {
  .es-packaging__cards {
    grid-template-columns: 1fr;
  }
}