/*
 * CSS for the home page only, loaded BEFORE the old shop stylesheets (see buyer-early.css for why).
 *
 * On the old site these rules were a <style> block of the home page alone. Several of them are not
 * tied to the home page by name ("select", ".select-selected"), so loaded everywhere they would
 * restyle the location bar of the category page. Keep them here.
 *
 * A plain file, served as it is: no build step. Name pictures by their path from the site root.
 */
.banner-wrapper {
    .wrapper {
        @media (max-width: 1023px) {
            display: flex;
            align-items: center;
            justify-content: space-around;
            position: relative;
            overflow: hidden;
        }
        select {
            overflow: hidden;
            width: auto;
            max-width: 250px;
            font-size: 13px;
            font-weight: bold;
            background: #524583;
            color: white;
            border: none;
            outline: none;
        }
        .select-full-width {
        width: 100% !important;
        max-width: none !important;
        overflow: visible !important;
        }

        #product-sort-states option {
            background: white;
            color: black;
            font-size: 12px;
        }

        @media (min-width: 1024px) {

            select {
                max-width: 160px;
                font-size: 18px;
                text-wrap: wrap;
                background: transparent;
                height: 88px;
                /* overflow-y: hidden !important;
                text-overflow: ellipsis; */
            }

            #product-sort-states option {
                font-size: 16px;
            }
        }
    }
  @media (min-width: 1024px) {
    display: flex;
    flex-direction: row-reverse;
  }
  .homepage-banner-content {
    .slick-carousel img {
            width: 100% ;
            max-width: 800px;
            max-height: 300px;
            border-radius: 8px;
        }
    @media (min-width: 1024px) {
        width: 85%;
        padding-right: 18px;
        max-width: 1400px;
        max-height: 400px;
        .slick-carousel img {
            max-width: 1400px;
            max-height: 400px;
            width: 100% ;
            border-radius: 8px;
        }
    }
  }
  .banner-content {
    flex-grow: 1;
    background-color: #dfd6ff;
    position: relative;
    height: 232px;
    border-radius: 8px;
    overflow: hidden;
    @media (min-width: 1024px) {
      margin-right: 18px;
      height: 332px;
      order: 1;
    }
    img {
      width: 100%;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
    }
  }
  .location-content {
    overflow: hidden;
    background: #524583;
    margin-bottom: 18px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left:10px;
    padding-right: 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    position: relative;
    label {
      /* padding-right: 25px; */
      padding-left: 26px;
      color: white;
      font-size: 13px;
      font-weight: 400;
      margin-bottom: 0px;
    }
    .wrapper {
      z-index: 1;
    }
    .location-section-ribbon {
        position: absolute;
        left: 0px;
        width: 100%;
        height: 100%;
        background-image: url('/images/landingpage/borong-stroke-mobile-view.svg');
        background-repeat: no-repeat;
        background-size: contain;
    }
    @media (min-width: 1024px) {
      border-radius: 8px;
      width: 195px !important;
      margin-bottom: 0;
      padding-top: 60px;
      height: auto;
      align-items: start;
      text-align: center;
      label {
        padding-right: 0;
        display: block;
        margin-bottom: 10px;
      }
      .location-section-ribbon {
        bottom: 20px;
      }
    }

    @media (min-width: 1024px) and (max-width: 1198px) {
        .location-section-ribbon {
            top: 20px;
            bottom: 0px;
        }
    }

    @media (min-width: 1024px) {
        .location-section-ribbon {
            background-image: url('/images/landingpage/borong-stroke.svg');
            background-position: bottom;
        }
    }
  }
}

@media (max-width: 767px) {
    .banner-wrapper {
        margin-top: 60px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .banner-wrapper {
        margin-top: 60px;
    }
}

.shadow-md{
    border-radius: 8px;
}
.padding-0 {
    padding: 0 !important;
}
.select-location-wrapper {
    background-color: #524583;
    margin-top: 0 !important;
}
.main-location-wrapper{
    height: 310px !important;
    background-color: #524583;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.main-location-title {
    color: white;
    margin-bottom: 10px;
    margin-top: -100px;
    font-size: 16px;
    font-weight: 600;
}
.main-location-select select {
 bottom: auto !important;
}

.select-selected {
  background-color: transparent;
}

.select-selected:after {
  position: relative;
  content: "";
  top: 10px;
  float: right;
  border: 6px solid transparent;
  border-color: #fff transparent transparent transparent;
  font-size: 24px;
  font-weight: 700;
}
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #fff transparent;
  top: 0;
}
.select-items div,.select-selected {
  color: #333333;
  padding: 8px 16px;
  cursor: pointer;
  user-select: none;
}
.select-items {
  position: absolute;
  background-color: white;
  color: #333333;
  left: 0;
  right: 0;
  z-index: 99;
  border-radius: 8px;
}

.select-hide {
  display: none;
}
.select-hide div,.select-selected {
  color: #fff;
  font-size: 24px;
 font-weight: 700;
 width: 100% !important;
     border: 0 !important;
}

.select-items div:hover, .same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}
.select-location-bottom {
    position: absolute;
    bottom: 10px;
}

.select-location-bottom img {
    display: block;
    width: 233px;
}
.select-selected option:checked {
     color: #333333;
     font-size: 12px;
     font-weight: 500;
     line-height: 28px;
}
 .select-selected option:not(:checked) {
     color: #333333;
     font-size: 12px;
     font-weight: 500;
     line-height: 28px;
}
.borong-top-banner{
    height: 356px !important;
}
@media(max-width: 991px){
.borong__title {
    font-size: 0px !important;
}
.home-banner-view .pad_l--35 {
    padding-left: 10px !important;
}
.home-banner-view .pad_r--35 {
    padding-right: 10px !important;
}
.home-banner-view .row {
    margin-left: 0px !important;
    margin-right: 0px !important;

}
.borong-top-banner{
    height: 400px !important;
}
}
.desktop-view {
    padding-left: 0px !important;
}

@media (max-width: 747px) {
    .desktop-view {
        display: none;
    }
    .mobile-view {
        margin-top: -93px;
        padding: 0px 0px 15px !important;
    }
    .select-location-wrapper{
        margin-top: 25px !important;
        border-top-left-radius: 1px !important;
        border-top-right-radius: 1px !important;

    }
    .main-location-wrapper img {
        position: absolute;
        height: 58px;
   }

   .main-location-select{
    width: 40% !important;
   }

   .main-location-wrapper {
    height: 40px !important;
    display: flex;
    flex-direction: row;
    justify-content:space-between;
    position: relative;

}
   .main-location-title {
    margin-top: 10px;
    font-size: 14px;
    margin-left: 50px;
    font-weight: 400;
   }

   .select-hide div,.select-selected {
  color: #fff;
  font-size: 14px;
 font-weight: 700;
}
.select-selected:after {
    top: 7px;
}

}
@media (min-width: 747px) {
    .mobile-view {
        display: none;
    }
}
