.custom_product-description {
  .header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    padding: 0;
    height: 50px;
    > div {
      width: 100%;
      display: flex;
      justify-content: stretch;
      background-color: #fff;
      align-items: stretch;
      height: 100%;

      a {
        border-bottom: 1px solid gray;
        flex: 1;
        text-decoration: none;
        color: gray;
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: 16px;
        text-align: center;
        font-size: 16px;
      }
      a.active {
        border-color: #eb5b27;
        border-width: 2px;
      }
    }
  }
  .custom_product-section {
    padding-top: 50px;
  }
  .custom_product-section img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: contain;
  }
  .custom_product-section-double-image {
    display: flex;
    justify-content: space-around;
    gap: 20px;

    img {
      width: calc(50% - 10px);
    }
  }

  .custom_product-bundle {
    width: 100%;
    background-color: #F8F8F8;
    border-radius: 8px;
  }
  table {
    border: none;
    box-shadow: none;
    border-collapse: collapse;
  }
  table tr td {
    border: none;
    outline: none;
    padding: 8px;
  }
  table tr td:nth-child(1) {
    font-weight: bold;
  }
  table tr:nth-child(2n) td {
    background-color: rgba(248, 248, 248, 1);
  }
}

.product--custom-template {
  .product__title {
    order: 1;
    width: 100%;
    h1 {
      font-weight: 400;
    }
  }
  > .grid__item {
    order: 2;
  }
  .product__info-wrapper {
    width: 100%;
    background-color: #fff;
  }

  .breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    margin-bottom: 50px;
    a {
      text-decoration: none;
      color: #121212;
      font-size: 12px;
      transition: ease all 0.5s;
      span{
        position: relative;
        display: inline-block;
      }
      span:after {
        width: 0%;
        height: 1px;
        background-color: #EB5B27;
        position: absolute;
        bottom: 1px;
        left: 0;
        content:'';
        transition: width 0.3s ease;
        }
        &:hover span::after {
          width: 100%;
        }
      &.active {
        color: #EB5B27;
      }
    }
  }
}
.custom_animation .mobile__buttons {
  display: none;
}
.custom_animation.enable {
  .mobile__buttons {
    position: fixed;
    background-color: #fff;
    z-index: 10;
    width: 100%;
    margin-left: 0;
    left: 0;
    bottom: 0;
    product-form button,
    .button--secondary:after {
      background-color: #000;
      border-radius: 8px;
      color: #fff;
      span {
        color: #fff;
      }
    }
    .button--secondary:after {
      background-color: transparent;
    }
    .card--standard > .card__content .price__sale .price-item--sale {
      color: #eb5b27;
    }
    .price--on-sale .price__sale {
      display: flex;
      flex-direction: column;
    }

    .card--standard > .card__content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px;
      width: 100%;
      .product-form {
        min-width: 150px;
      }
      .price__sale .price-item--sale {
        font-size: 30px;
      }
    }
    p.product__text,
    .custom_product-section-description,
    .product__tax,
    .button--custom-submit,
    .product-form__submit,
    .pickup-availability-preview,
    .share-button,
    .product--custom-template .price__badge-sale,
    .product--custom-template .product-form__quantity,
    pickup-availability,
    .card__inner,
    .full-unstyled-link {
      height: 0;
      width: 0;
      opacity: 0;
      display: none;
      visibility: hidden;
    }
  }
}
@media screen and (max-width:989px){
  .product__info-wrapper.swap_order {
    order:1!important;
  }
}

@media screen and (min-width: 990px) {
  .product--custom-template {
    &.product--small:not(.product--no-media) {
      > .product__info-wrapper {
        width: calc(35% - var(--grid-desktop-horizontal-spacing) / 3);
      }
    }
    &.product--small:not(.product--no-media) .product__media-wrapper {
      width: calc(65% - var(--grid-desktop-horizontal-spacing) / 3);
      max-width: 65%;
    }
    .media-gallery__inner-wrapper {
      display: flex;
      margin-bottom: 50px;
      > div,
      > media-gallery {
        width: 45%;
      }
    }
  }
  .product--custom-template product-info {
    border-radius: 20px;
    box-shadow: 2px 2px 12px #c0c0c0;
  }
}
.product--custom-template .price__container {
  margin: 0;
}
.product--custom-template .price__sale {
  .price-item--sale {
    color: #eb5b27;
    font-size: 40px;
    line-height: 48px;
    font-weight: 400;
    width: 100%;
    margin-bottom: 15px;
  }
}
.product--custom-template .price__badge-sale {
  width: auto;
  height: 26px;
  top: 20px;
  right: 20px;
  background-color: #eb5b27;
}
.product--custom-template  .price--on-sale .price__badge-sale {
  display: flex;
  position: absolute;
}

.product--custom-template product-info {
  padding: 20px;
}

.product--custom-template .product-form__quantity {
  visibility: hidden;
  height: 1px;
}
.product--custom-template .product-form__buttons .button:before,
.product--custom-template .button--secondary:after {
  border-radius: 8px;
  border: 1px solid #bdbdbd;
  box-shadow: none;
}

.product--custom-template button {
  font-size: 1.6rem;
}
.product--custom-template .button:not([disabled]):hover:after {
  box-shadow:
    -1px -1px 5px rgba(0, 0, 0, 0.2),
    1px 1px 5px rgba(0, 0, 0, 0.2);
}
.product--custom-template
  .shopify-payment-button__button--unbranded:hover:after {
  box-shadow:
    -1px -1px 8px rgba(0, 0, 0, 0.4),
    1px 1px 8px rgba(0, 0, 0, 0.4);
}
.product--custom-template button.shopify-payment-button__button--unbranded,
.product--custom-template .shopify-payment-button__button--unbranded:after {
  border-radius: 8px;
}
.product--custom-template .custom_product-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  li {
    position: relative;
    p {
      margin: 0;
      padding-left: 35px;
      font-size: 12px;
      color: #121212;
    }
    span {
      position: absolute;
      top: -3px;
      display: inline-blick;
    }
  }
}

.custom_product-section-description hr {
  width: calc(100% + 40px);
  margin: 10px 0;
  margin-left: -20px;
  background: #f1f1f1;
}
.product--custom-template .product__info-container > * + * {
  margin: 0;
}



.product--custom-template .custom-strong.rte {
  p {
    font-size: 16px;
    font-weight: 400;
    line-height: 19.2px;
    &:not(:first-child) {
      strong {
        display: inline-block;
        padding: 0 2px;
      }
    }
  }
}
.product--custom-template .m-20 {
  margin: 20px 0;
}
.product--custom-template .custom_product-section-double {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  > div {
    flex-basis: 50%;
  }
}

.custom_product-bundle-items {
  padding: 40px;
  display: flex;
  gap: 40px;
  justify-content: flex-start;

  .custom-product:nth-child(n + 2) .img-wrapper {
    &:before,
    &:after {
      content: "";
      position: absolute;
      top: 50%;
      left: -20px;
      width: 1px;
      height: 14px;
      background-color: red;
    }
    &:after {
      transform: rotateZ(90deg);
    }
  }
  .img-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    height: auto;
    border: 1px solid #bdbdbd;
    border-radius: 8px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    max-width: 180px;
    max-height: 120px;
  }

  .custom-product {
    gap: 20px;
    display: flex;
    flex-direction: column;
    max-width: 183px;
  }
  p {
    font-size: 16px;
    line-height: 19px;
    margin: 0;
  }
  .price {
    color: #eb5b27;
    span {
      font-size: 24px;
      margin-top: auto;
    }
    .total_discounted{
      text-decoration: line-through;
      color: #bdbdbd;
      span {
        font-size: 16px;
      }
    }
  }
  .total_discounted_wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    margin-top: auto;
  }
}
.custom_product-section__inner-wrapper {
  position: relative;
  min-width: 220px;
}
.mobile-moving-button {
  display: none;
  z-index: 10;
  box-shadow: 2px 0px 24px silver;
  .product-form__submit.button--secondary,
  .button--custom-submit,
  pickup-availability-preview,
  pickup-availability {
    display: none;
  }
  .price .price-item {
    width: 100%;
  }
  .product-form__submit {
    margin: 0;
  }
  .price--large{
    padding: 0 10px;
  }
  .price__badge-sale {
    background-color: #eb5b27;
    position: absolute;
    top: 30px;
    right: 20px;
  }
  .price__sale, .price__regular{
    color: rgb(235, 91, 39);
    font-size: 40px;
    font-family: "Avenir Next", sans-serif;
    text-decoration: none solid rgb(235, 91, 39);
    font-weight: 400;
    opacity: 1;
    transition: all;
    transform: none;
    clip: auto;
    overflow: visible;
    position: relative;
    border: 0px none rgb(235, 91, 39);
    border-radius: 0px;
  }
}
@media screen and (max-width: 989px) {
  .custom_product-bundle-items {
    flex-direction: column;
    .custom-product {
      flex-direction: row;
      width: 100%;
      max-width: 100%;
      position: relative;
      .img-wrapper {
        width: 40%;
      }
      p {
        width: 50%;
      }
      p.price {
        position: absolute;
        bottom: 10px;
        right: 0;
      }
    }
    .custom-product:nth-child(n + 2) .img-wrapper:before,
    .custom-product:nth-child(n + 2) .img-wrapper:after {
      top: -25px;
      left: 50%;
    }
  }
  .custom_product-section__inner-wrapper {
    min-width: 300px;
  }

  .mobile-moving-button {
    display: block;
    background-color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
  }

  .product--custom-template .breadcrumbs {
    margin-bottom: 0;
    a span {
      line-height: 13px;

    }
  }
}
.custom_product-bundle-summary {
  padding: 40px;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: end;
  .total_wrapper {
    display: inline-flex;
    align-items: end;
    justify-content: center;
    gap: 50px;
    p {
      margin: 0;
      line-height: 50px;
    }
  }
  .total {
    margin: 0;
    color: #eb5b27;
    font-size: 40px;
    &.discounted{
      line-height: 30px;
    }
  }
  .submit-button {
    background-color: black;
    color: #fff;
    height: 43px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    line-height: 19.2;
    width: 270px;
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .total_discounted{
    text-decoration: line-through;
    color: #bdbdbd;
  }
  .total_discounted_wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
}

.custom_product-section__wrapper {
  display: flex;
  gap: 30px;
  padding: 0 20px;
  overflow-x: scroll;
  .img-wrapper {
    width: 93px;
    display: inline-flex;
    border: 1px solid #bdbdbd;
    border-radius: 8px;
  }
}
.custom_product-description .custom_product-section h2 {
  border-bottom: 2px solid #eb5b27;
}

@media screen and (max-width: 989px) {
  .custom_product-description .header {
    display: none;
  }
  .custom_product-description .custom_product-section h2 {
    width: 100%;
    font-family: Assistant;
    font-size: 16px;
    font-weight: 600;
    line-height: 19.2px;
    text-align: left;
    padding: 12px 24px 12px 24px;
    gap: 10px;
  }
  .product--custom-template .custom_product-section-double {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    > div {
      flex-basis: 100%;
    }
    div:first-child {
      flex-basis: 100%;
    }
    &.swap-position {
      flex-direction: column-reverse;
    }
  }
  .custom_product-bundle-summary {
    flex-wrap: wrap;
    .custom_product-bundle-summary .submit-button {
      width: 100%;
    }
  }
  .custom_product-bundle-items {
    padding: 20px;
  }
}

.custom-compare-x {
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 20px;
  color: rgb(235, 91, 39);
}
