/* FIXES PDP PRODUCT IMAGE OVERFLOWING ON MOBILE */
.ms-buybox__media-gallery .css-override.ms-media-gallery {
  max-width: 100% !important;
  height: fit-content !important;

  >.ms-media-gallery__thumbnails-container {
    max-height: 100% !important;
  }
}

@media (min-width: 993px) {
  .ms-buybox__media-gallery .css-override.ms-media-gallery {
    >.ms-media-gallery__thumbnails-container {
      .msc-ss-carousel-vert {
        .msc-ss-carousel-vert-slide {
          top: 0 !important;
        }
      }
    }
  }
}

@media (min-width: 993px) {
  .ms-buybox__media-gallery>div>div.ms-media-gallery__thumbnails-container>.msc-ss-carousel-vert>.msc-ss-carousel-vert-strip>.msc-ss-carousel-vert-slide {
    top: 0 !important;
  }
}

/* FIXES MISALIGNED CART ICON COUNT IN HEADER */
.css-override .msc-cart-icon[data-quantity]:not([data-quantity="0"]) .msc-cart-icon__count {
  top: 2px !important;
}


/* FIXES MISALIGNED SEARCH ICON AND RESULTS IN HEADER */
.css-override .ms-search__autoSuggest {
  margin-top: 17px !important;
}

.css-override.ms-search {

  @media (min-width: 992px) {
    height: 100%;
  }

  .ms-search__searchForm {
    height: 100%;

    .ms-search__form-control {
      font-size: 12px;
    }

    .ms-search__form-submitSearch {
      height: 100%;
      display: flex;
      align-items: center;
    }
  }
}

@media (max-width: 768px) {
  .css-override.ms-search .ms-search__searchForm {
    height: auto !important;
    background: #f6f7f4d9 !important;
  }
}

.ms-search-result-container:has(.msc-sort-filter-wrapper.lock-Filter) .ms-search-result-container__Products {
  margin-top: 74px !important;
}

.ms-search-result-container__refine-product-section:has(.ms-refiner-heading.lock-Filter) .ms-search-result-container__product-section {
  margin-top: 110px !important;
}

.ms-cart-icon__minicartmodal-container .ms-cart-icon__btn-gotocart {
  display: none !important;
}

/* FIXES SPACING AND WIDTH ON PAYMENT BUTTONS */
.css-override .ms-checkout-section-container__item:has(.ms-checkout-apple-pay),
.css-override .ms-checkout-section-container__item:has(.ms-text-block) {
  padding: 0 8px !important;
}

.css-override.ms-checkout-apple-pay {
  width: 100% !important;
  margin: 30px 0 !important;
}

.css-override.ms-checkout-apple-pay .apple-pay-button {
  -webkit-appearance: -apple-pay-button;
  -moz-appearance: -apple-pay-button;
  appearance: -apple-pay-button;
  max-width: none !important;
  margin: 0 !important;
  height: 55px !important;
}

.ms-checkout-payment-instrument-paypal .ms-checkout-payment-instrument__add {
  margin: 0 !important;
  max-width: none !important;
}

.ms-checkout-payment-instrument-paypal .ms-checkout-payment-instrument__add iframe html body {
  margin: 0 !important;
}

/* FIXES SPACING AND WIDTH ON PAYPAL HELPER TEXT */
.ms-checkout-section-container__item .ms-text-block h5 {
  margin: 0 !important;
}

/* HIDES GOOGLE PAY BUTTON */
.ms-checkout-section-container__item:has(.css-override.google-pay-class) {
  display: none !important;
}