/** REBUY CART */
#rebuy-cart{
  .rebuy-cart__flyout-item-quantity{
    .rebuy-cart__flyout-item-quantity-widget {
      margin: 0px;
      max-width: 140px;
      max-height: 44px;
      border-radius: 75px;
      overflow: hidden;
      border: 1px solid #00ABC7;
      align-items: center;
      background-color: transparent;
      width: 120px;
      height: 44px;

      .rebuy-cart__flyout-item-quantity-widget-button:first-child{
        background-color: transparent;
        height: 100%;
        width: 35%;
        display: flex;
        justify-content: right;
        align-items: center;
        padding-right: 3px;
        color: #00ABC7;
        font-weight: bold;
        font-size: 16px;
        font-family: Raleway,sans-serif;
      }

      .rebuy-cart__flyout-item-quantity-widget-label{
        width: 30%;
        height: 100% !important;
        color: #00ABC7;
        font-size: 16px;
        font-feature-settings: "lnum";
        font-family: Raleway,sans-serif;
        font-weight: 700 !important;
        background-color: transparent;
        padding: 12px 3px 10px 3px;
        background-color: transparent;
        line-height: 1.2;
        text-align: center;
      }
      .rebuy-cart__flyout-item-quantity-widget-button:last-child{
        height: 100%;
        width: 35%;
        display: flex;
        justify-content: left;
        align-items: center;
        background-color: transparent;
        padding-left: 3px;
        color: #00ABC7;
        font-size: 16px;
      }
    }
  }
  .rebuy-cart__flyout-actions{
    button{
      border-radius: 74px;
      max-height: 44px;
      min-height: 44px;
      text-shadow: none !important;
      transition: all 0.3s ease-in;
      padding: 12.5px 15px !important;
      line-height: 1;
      
      &.rebuy-cart__checkout-button{
        border: 2px solid #00ABC7 !important;
        background-color: #00ABC7 !important;
  
        &:hover{
          color: #00ABC7 !important;
          background-color: #fff !important;
          border: 2px solid #00ABC7 !important;
        }
      }

      &.rebuy-cart__continue-shopping-button{
        color: #00ABC7 !important;
        border: 2px solid #00ABC7 !important;

        &:hover{
          color: #fff !important;
          background-color: #00ABC7 !important;
        }
      }

      &.rebuy-cart__shop-pay-button{
        padding-top: 8px !important;
        padding-bottom: 10px;
      }
    }
  }
}

/** BEST SELLERS */
.featured-collection-section{
    padding-top: 90px;
    padding-bottom: 50px;
}

body.product,
.featured-collection-section,
.collection-template-section{
    
    background-color: #faf3e6;
  
    .feature-desc{
      font-size: 23px;
      font-weight: 300;
      line-height: 36px;
      max-width: 1000px;
      margin-bottom: 100px;
      
      @media only screen and (max-width: 959px) {
        font-size: 16px;
        line-height: 24px;
      }
    } 

  .related-product-list{
    &>div{
      margin: 25px 0;
    }
  }

  .products {
    
    &>div{
      position: relative;
      z-index: 2;

      @media only screen and (max-width: 798px) {
        width: 50% !important;
        margin: 20px 0px;
      }

      @media only screen and (max-width: 480px) {
        width: 100% !important;
      }
      
      &::before{
        content: "";
        display: block;
        position: absolute;
        opacity: 0;
        left: 0;
        top: -30px;
        background-color: rgba(255, 255, 255, 0.4);
        width: 100%;
        height: 110%;
        border-radius: 170px;
        z-index: -1;
      }

      &:hover{
        &::before{
          opacity: 1;
        }
      }

      a:hover{
        color: #000000 !important;
      }

      @media only screen and (max-width: 798px) {
        &:hover{
          &::before{
            opacity: 0;
          }
        }
      }
    }
  }
}





/** FEATURED PROMOTIONS */
.shopify-section.featured-promotions-section{
  padding: 50px 0px;
  background-color: #faf3e6;
  position: relative;

  &>div{
    z-index: 2;
  }

  @media only screen and (max-width: 1200px) {
    &::after{
      right: -600px !important;
    }
  }

  @media only screen and (max-width: 959px) {
    &::after{
      display: none !important;
    }
  }

  &::after{
      content: "";
      display: block;
      background-image: url('bg-urchin.png');
      width: 705px;
      height: 721px;
      position: absolute;
      right: -300px;
      top:  -80px;
      z-index: 1;
    }
  
  .featured-promotions{
    max-width: 100%;
    border-radius: 10px;
  }
  .flex-viewport{
    width: 100%;
  }
  .feature-section{
    position: relative;
    width: 100%;
    margin: 0px !important;

    @media only screen and (max-width: 798px) {
      background-color: transparent !important;
    }

    &>div{
      height: 100%;

      @media only screen and (max-width: 798px) {
        display: flex;
        flex-direction: column;

        &>figcaption{
          order: 2;
          padding: 0px !important;
          
          .title{
            color: #45C1C8;
            font-size: 24px;
          }
        }
        &>a{
          order: 1;
          
          .dark-overlay{
            border-radius: 15px;
            padding-bottom: 65% !important;
            
            &::before{
              display: none;
            }
          }
        }
      }
    }
    .feature-wrap{
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      .action_button{
        position: relative;
        transform: unset;
        bottom: unset;
        left: unset;
        border: 1px solid #00ABC7;
        border-radius: 74px;
        text-shadow: none;
        font-size: 16px;
        font-weight: 500;
        background-color: #00ABC7;
        color: #fff;
        padding: 12px 20px;
        min-height: 44px;
        max-height: 44px;
        min-width: 180px;

        &:hover{
          background-color: transparent;
          color: #00ABC7;
        }

        @media only screen and (max-width: 798px) {
          margin-top: 20px;
        }
      }
    }

    figcaption{
      height: 100%;
      width: 100%;
      position: absolute;
      color: #fff;
      z-index: 2;
      
      .title{
        font-size: 30px;
        color: #fff;
      }
      .feature-details{
        padding-bottom: 20px;
        
        .description{
          max-width: 790px;
          margin: auto;
          display: block;
        }
        
        p{
          color: #fff;
          font-size: 18px;
          font-weight: 300;
        }
      }

      @media only screen and (max-width: 959px) {
        .title{
          font-size: 28px;
        }

        .feature-details{
          padding-bottom: 10px;
          
          p {
            font-size: 16px;
          }
        }
      }

      @media only screen and (max-width: 798px) {
        position: relative;

        .feature-details{
          
          p {
            color: #231F20;
          }
        }
      }
    } 
  }

  .dark-overlay::before{
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Adjust the opacity here */
    z-index: 1;
  }

  .flex-control-paging{
    @media only screen and (max-width: 798px) {
      position: relative !important;
      a {
        border: 1px solid #45C1C8;

        &.flex-active{
          background-color: #45C1C8;
        }
      }
    }
  }
}



/** MOTHER NATURE ... */
#shopify-section-1598592848204.image-with-text-overlay-section{
  padding-top: 0px;
  position: relative;
  margin-top: -230px;

  h3.headline{
    color: white !important;
  }

  @media only screen and (max-width: 1200px) {
    &::before{
      left: -600px !important;
    }
  }

  @media only screen and (max-width: 959px) {
    margin-top: 0px;
    
    &::before{
      display: none !important;
    }
  }

  &::before{
    content: "";
    display: block;
    background-image: url('bg-star.png');
    width: 873px;
    height: 969px;
    position: absolute;
    left: -340px;
    top: -250px;
    z-index: 1;
  }

  .show-desktop {
    /* padding-top: 400px; */
  }
  
  .container .ten.columns{
    width: 922px;
    padding-left: 0px;
    @media only screen and (max-width: 796px) {
      width: 100%;
    }
  }
  
  .flex-caption{
    top: 0;
    transform: none;
    display: flex;
    justify-content: center;
    padding-top: 250px;
    position: relative;

    @media only screen and (max-width: 959px) {
      padding-top: 100px;
      padding-bottom: 80px;
    }
    
    &>div{
      display: flex;
      justify-content: center;
      max-width: 1079px;
      
      @media only screen and (min-width: 799px) and (max-width: 959px) {
        width: 768px;
      }
    }
    .headline {
      font-size: 40px !important;
      font-weight: 300 !important;
      line-height: 120%;
      font-family: Verlag, Raleway,sans-serif !important;
      font-feature-settings: "lnum";
      margin-bottom: 20px;
      text-shadow: none;
      padding-bottom: 60px !important;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;

      @media only screen and (max-width: 959px) {
        font-size: 28px !important;
      }
    }
    .subtitle .icons{
      display: flex;
      justify-content: space-between;
      margin-top: -15px;
      margin-bottom: -15px;
      

       @media only screen and (max-width: 959px) {
        flex-wrap: wrap;
      }
      @media only screen and (max-width: 796px) {
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
      }
      
      div{
        position: relative;
        padding-bottom: 90px;
        width: 16%;
        display: flex;
        justify-content: center;
        margin: 15px 0;

        @media only screen and (max-width: 959px) {
          width: 33%;
        }

        @media only screen and (max-width: 799px) {
          width: 50%;
          label{
            padding-left: 10px;
            padding-right: 10px;
          }
        }
        
        img{
        }

        label{
          position: absolute;
          bottom: 0;
          font-family: 'Futura';
          font-size: 16px;
          font-weight: 400;
          line-height: 1.2;
          text-shadow: none;
          min-height: 60px;
        }
      }
    }
  }
}

.image-with-text-overlay-section{
  padding-top: 0px;
  position: relative;
  background-color: #FAF3E6;
}

/** KNOW WHAT'S ON YOUR SKIN */
.know-whats-on-your-skin{
  background-image: url(know-whats-on-your-skin-bg.png);
  background-size: cover;
  background-position: center;

  @media only screen and (max-width: 767px) {
    padding-bottom: 90px;
  }
}

/** REEF SAFE PLEDGE */
.refresh-2025-image-with-text{
  
  &.image-left{
    padding-top: 100px;
  }
  &.image-right{
    padding-bottom: 100px;
  }

  .action_button{
    font-weight: 500;
    margin-top: 30px !important;
    text-shadow: none !important;
  }

  @media only screen and (max-width: 799px) {
    &:first-child{
      padding-bottom: 50px;
    }
    .align_left{
      text-align: center;
    }
  }
}

/** TESTIMONIALS */
.testimonial-section{
  background-image: none;
  background-color: #FAF3E6;
  padding: 90px 0px !important;

  .homepage_slider:not(.flexslider-show-nav) .flex-direction-nav{
      display: none;
  }

  .testimanial-title{
    max-width: none;
    margin-bottom: 40px;
  }

  p{
    font-family: Verlag,Raleway,sans-serif;
    font-feature-settings: "lnum";
  }
  p.trim-paragraph{
    font-family: Verlag,Raleway,sans-serif;
    font-feature-settings: "lnum";
    .name{
      font-weight: 400;
    }
  }
  .testimonial-block-row {
    display: flex !important;
    justify-content: space-between;
    
    @media only screen and (max-width: 799px) {
      flex-direction: column;
      gap: 25px;
    }
  }
  
  .testimonial-block {
    padding: 50px 10px 10px;
    box-sizing: border-box;
    position: relative;


    &:before{
      content: "";
      display: block;
      position: absolute;
      background-image: url("lu-testimonial-icon.png");
      width: 68px;
      height: 52px;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
    }
    @media only screen and (max-width: 799px) {
      width: 100% !important;
    }
  }
  .flex-control-paging{
    bottom: 0;
    a {
      border: 1px solid #45C1C8 !important;

      &.flex-active,
      &:hover {
        background-color: #45C1C8 !important;
      }
    }
  }

  
}


/** ROTATING LISTS */
#shopify-section-logo_bar_ACH3Wg{
  padding-top: 80px;
  padding-bottom: 50px;

  @media only screen and (max-width: 799px) {
    display: none;
  }
  
  .logo-bar-section{
    max-width: unset !important;
  }
  .logo-bar{
    display: flex;
    flex-direction: row;
    gap: 50px;
    /* animation: scroll-left 20s linear infinite; */
  }
  .logo-bar__item{
    display: flex;
    flex-direction: row;
    gap: 50px;
    max-width: unset;
    align-items: center;
    padding: 0px;

    .logo-img-wrap {
      order: 2;
      padding: 0px;
      
      img{
        width: 49.71px;
        height: 47.2px;
        max-width: unset;
      }
    }

    .logo-title{
      font-size: 64px;
      color: #3FC2CD;
      order: 1;
      white-space: nowrap;
    }
  }
}

@keyframes scroll-left {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/** PAGE BANNER */
.page-banner-section {
  width: 100%;
  position: relative;
  
  .page-banner{
    padding-bottom: 35%;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0.8);

    @media only screen and (max-width: 959px) {
      padding-bottom: 75%;
    }
  }

  .page-banner.banner-desktop{
    opacity: 1;
  }
  .page-banner.banner-mobile{
    opacity: 0;
    width: 100%;
    position: absolute;
    top: 0;
    background-position-x: center;
  }
  

  @media only screen and (max-width: 959px) {
      .page-banner.banner-desktop{
        opacity: 0;
      }
      .page-banner.banner-mobile{
        opacity: 1;
      }
  }

  .page-banner-content{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;

    img.title-desktop{
      height: 20%;
      margin-bottom: -90px;
    }

    &.with-title-image-mb{
      img.title-desktop{
        display: block;
      }
      img.title-mobile{
        display: none;
      }

      @media only screen and (max-width: 959px) {
        img.title-desktop{
          display: none;
        }
        img.title-mobile{
          display: block;
        }
      }
      
    }
    
    h1{
      font-weight: 500;
      color: white;
    }

    

    
  }
}

.reef-safe-section{
  padding: 90px 0;
}

.reef-section{
  padding-top: 90px;
  overflow: hidden;
}

.our-story-section,
.reef-safe-section{
  h2{
    font-size: 50px;
    font-weight: 500;
    color: #45C1C8;
    padding-bottom: 50px;
    line-height: 1.2;
  }

  .title-desktop{
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
    
     img{
       max-width: 100%;
     }

    @media only screen and (max-width: 798px) {
      display: none;
    }
  }

  .title-mobile{
    display: none;
    justify-content: center;
    padding-bottom: 50px;
    
     img{
       max-width: 100%;
     }
    @media only screen and (max-width: 798px) {
      display: flex;
    }
  }

  
  .layout{
    margin-left: 0px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    >div{
      width: 50%;
    }

    @media only screen and (max-width: 959px) {
      flex-direction: column;
      padding-bottom: 40px;
      gap: 25px;
      
      >div{
        width: 100%;
      }
    }
  }
  

  .layout__item.layout__item--body{
    padding-left: 0px;
    padding-right: 40px;
    flex: 1 1 0%;

    @media only screen and (max-width: 959px) {
      padding-right: 0px;
    }
  }

  .layout__item.layout__item--figure{
    img{
      width: 100%;
    }
  }

  > .layout:nth-of-type(odd) {
      .layout__item.layout__item--body{
        order: 2;
        padding-left: 40px;
        padding-right: 0px;

        @media only screen and (max-width: 959px) {
          padding-left: 0px;
        }
      }
    .layout__item.layout__item--figure{
        order: 1;
      }
  }
}

/** REEF SAFE COLLECTION */
.reef-safe-products-container{
  padding: 90px 0;

  .reef-safe-products-wrapper{
    width: 100%;
    
    .products-desktop{
      display: flex;
      flex-direction: row;
      gap: 60px;

      @media only screen and (max-width: 1199px) {
        gap: 50px;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
      }

      @media only screen and (max-width: 798px) {
        display: none;
      }
    
      .product-item{
        display: flex;
        flex-direction: column;
        gap: 50px;

        img{
          max-height: 420px;
          width: auto;
        }

        @media only screen and (max-width: 1199px) {
          gap: 30px;
        }
      }
    }

    .products-mobile{
      display: none;

      @media only screen and (max-width: 798px) {
        display: block;

      }

      .product-item{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 50px;
        
        img{
          max-height: 420px;
          width: auto;
        }

        .action_button{
          max-width: 220px;
        }
      }

      .flexslider {
        padding-bottom: 70px;
      }

      .flex-control-paging {
        bottom: 0px;
        li{
          a{
            border: 1px solid #00ABC7;
            color: #00ABC7;
  
            &.flex-active{
              background-color: #00ABC7;
            }
          }
        }
      }
    }
  }
}


/** REEF BENEFITS */
.reef-benefits-container{
  background-image: url('reef-benefits-bg.png');
  background-size: cover;
  padding: 90px 0;

  hr{
    border-top: 1px solid #fff;
  }

  @media only screen and (max-width: 959px) {
    padding: 50px 0;
    .intro{
      padding: 50px 0;
      img{
        margin-top: 30px;
      }
    }
  }

  .intro{
    max-width: 900px;
    margin: auto;
    text-align: center;
    padding-bottom: 90px;

    img{
      max-width: 100%;
      margin-top: 50px;
    }
  }

  .items{
    padding-top: 90px;
    display: flex;
    flex-wrap: wrap;
    margin: -20px;

    @media only screen and (max-width: 959px) {
      padding-top: 50px;
    }
    
    .item{
      width: 50%;

      .item_wrapper{
        padding: 20px;
      }
      
      h3{
        font-size: 38px !important;
        font-weight: 600 !important;
        margin-bottom: 20px;
      }
      img{
        max-height: 75px;
        max-width: 100%;
        width: auto;
        margin-bottom: 20px;
      }

      @media only screen and (max-width: 1199px) {
        img{
          max-height: 55px;
        }
      }

      @media only screen and (max-width: 959px) {
        width: 100%;
        
        img{
          max-height: 40px;
        }
      }
    }
  }
}


/** LOGO BAR */
#shopify-section-1543916913732{
  background-image: none !important;
}
.logo-list-section:not(#shopify-section-logo_bar_ACH3Wg){
  background-image: url('reef-logo-bar.jpg');
  background-size: cover;
  background-position: center;
  padding: 90px 0 !important;

  .description{
    max-width: 922px;
    margin: auto;
    padding-bottom: 70px;
    
    p{
      color: #fff !important;
      font-size: 40px;
      line-height:1.2;

      @media only screen and (max-width: 959px) {
        font-size: 35px !important;
      }

      @media only screen and (max-width: 798px) {
        font-size: 26px !important;
        line-height:1.5;
      }
    }
  }

  @media only screen and (max-width: 798px) {
    .logo-bar{
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      margin-top: -20px;
      margin-bottom: -20px;
      
      .logo-bar__item{
        width: 50%;
        padding: 20px 0;
      }
    }
  }

  .logo-title{
    color: #fff !important;
    margin-top: 13px;
    font-size: 16px;
    line-height: 1.2;
    max-width: 150px !important;
    text-transform: uppercase;
    
    @media only screen and (max-width: 798px) {
      font-size: 13px !important;
    }
  }
}

/** PLEDGE */
#shopify-section-pledge{
  padding: 90px 0;
  h2{
    font-size: 38px !important;
    font-weight: 600 !important;
    margin-bottom: 20px;
    color: #45C1C8;
  }
  img.title-desktop{
    max-height: 75px;
    max-width: 100%;
    width: auto;
    margin: auto;
    margin-bottom: 20px;
  }

  img.title-mobile{
    display: none;
    max-width: 100%;
    margin: auto;
  }

  @media only screen and (max-width: 1199px) {
    img.title-desktop{
      max-height: 55px;
    }
  }

  @media only screen and (max-width: 959px) {
    img.title-mobile{
      display: block;
    }
    img.title-desktop{
      display: none;
    }
  }

  .pledge-text{
    max-width: 1410px;
    margin: auto;
  }

  .sign-the-pledge{
    width: auto;
    margin: auto;
  }

  form{
    padding-top: 50px;

    p.error{
      background-color: transparent;
      color: red;
      font-weight: 400;
    }
    
    h3{
      text-align: center;
      font-size: 24px !important;
    }
    #btn-submit{
      background: #00ABC7 !important;
      border: 1px solid #00ABC7 !important;
      color: #fff;
      padding: 10px 20px;
      text-align: center;
      font-size: 16px;
      font-family: Raleway, sans-serif;
      font-weight: 500;
      line-height: 1.2;
      width: auto;
    }
    input[type=text],
    input[type=email]{
      margin-bottom: 5px;
    }
    input[type=submit]{
      margin-top: 15px;
      max-width: 200px;
    }
    label{
      color: #231F20 !important;
      line-height: 1.2;
      text-align: left;
      font-weight: 400;
    }
    .clearButton a.show{
      display: none;
    }

    div.mce_inline_error{
      background-color: transparent;
      padding: 0px;
      text-align: left;
      color: red;
      font-weight: 400;
      font-size: 12px;
      line-height: 1.3;
    }
  }

  .signature-form{
    max-width: 700px;
    margin: auto;
  }
}

/** COMMITMENT TO THE PLANET */
.reef-safe-commitment-section{
  padding: 90px 0;
  
  @media only screen and (max-width: 959px) {
    padding: 40px 0;
  }
  
  blockquote{
    margin-top: 40px;
    padding: 0px;

    @media only screen and (max-width: 959px) {
      font-size: 13px;
    }
  }
}

#shopify-section-page-community{
  img{
    margin-right: auto;
    margin-left: auto;
    display: block;
  }
}
