#onsite-product-gallery-container {
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#onsite-product-gallery-container .product-gallery-item {
  width: 25%;
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  margin-top: -1px;
}
.product-gallery-item:not(:nth-child(4n + 1)) {
  margin-left: -1px;
}
#onsite-product-gallery-container .product-image,
#onsite-product-gallery-container .product-details {
  padding: 10px;
}
#onsite-product-gallery-container .product-image {
  border-bottom: 1px solid #9e9e9e;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#onsite-product-gallery-container .product-price {
  font-size: 26px;
  font-weight: 600;
  margin-top: 0px !important;
  margin-bottom: 0;
}
#onsite-product-gallery-container .installment-info a,
#onsite-product-gallery-container .installment-info {
  color: #383a88 !important;
  font-size: 12px;
  font-weight: 500;
}
#onsite-product-gallery-container .installment-info .learn-more {
  text-decoration: underline;
  position: relative;
  z-index: 4;
}

#onsite-product-gallery-container .product-price .discount-percentage,
#onsite-product-gallery-container .product-price .discount-value {
  font-size: 50%;
  font-weight: 500;
}

#onsite-product-gallery-container .guarantee-text.rto {
  background-color: #008037;
}

#onsite-product-gallery-container .stars-ratings {
  max-width: 75px;
  margin-right: 3px;
  margin-top: -4px;
}
#onsite-product-gallery-container .product-review {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #337e9f;
  font-size: 14px;
}
#onsite-product-gallery-container .product-item-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 100%;
  left: 0;
  padding: 0 10px;
  bottom: 5px;
}

#onsite-product-gallery-container .product-details {
  padding-bottom: 36.5px;
  position: unset !important;
}
#onsite-product-gallery-container .product-item {
  position: relative;
  overflow: hidden;
}
#onsite-product-gallery-container .product-sku {
  color: #000;
  text-transform: uppercase;
  bottom: 0;
  text-align: center;
  width: 60%;
  margin-bottom: 0;
  text-align: center;
}
#onsite-product-gallery-container .product-item-footer .compare-checkbox {
  width: 40%;
}
#onsite-product-gallery-container .product-item-footer .compare-checkbox label {
  margin-top: -4px;
  font-size: 14px;
}

#onsite-product-gallery-container .guarantee-text.rental {
  background-color: #f35f1b;
}

#onsite-product-gallery-container
  #onsite-product-gallery-container
  .monthly-text {
  color: #000;
  font-size: 14pt;
  position: relative;
  top: -2px;
  font-weight: 600;
}

#onsite-product-gallery-container .discount-info.rental,
#onsite-product-gallery-container.discount-info.rto {
  display: flex;
  flex-direction: column;
}
#onsite-product-gallery-container .discount-info {
  font-weight: 500;
  margin-bottom: 0px;
  font-size: 16px;
}

#onsite-product-gallery-container .product-image img {
  height: 250px;
  object-fit: cover;
  transition: transform 300ms;
  vertical-align: middle;
}

#onsite-product-gallery-container .container-title {
  font-family: "Poppins", Sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #383a88 !important;
}
#onsite-product-gallery-container .location {
  color: #c60c29;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  margin-bottom: 0;
}
#onsite-product-gallery-container .location small {
  font-size: 75%;
  color: #000;
}
#onsite-product-gallery-container .location *:not(small) {
  text-decoration: underline;
}

#onsite-product-gallery-container .guarantee-text {
  background-color: #bb0c26;
  font-family: "Poppins", Sans-serif;
  font-size: 18px;
  font-weight: 600;
  padding: 5px 10px;
  color: #fff;
  margin-bottom: 5px;
  display: inline-block;
}

#onsite-product-gallery-container .product-detail-label {
  font-family: "Poppins", Sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #000000 !important;
}

#onsite-product-gallery-container .product-detail-label p,
#onsite-product-gallery-container .product-sku {
  font-size: 11px;
  font-weight: 300;
  text-transform: capitalize;
}

#onsite-product-gallery-container .product-detail-label > p {
  min-height: 1.5em;
}
#onsite-product-gallery-container .product-main-info {
  margin-bottom: 15px;
}

/* Styling for loading containers */
#onsite-product-gallery-loading-boxes {
  display: flex;
  flex-wrap: wrap;
}
#onsite-product-gallery-loading-boxes > div {
  width: 25%;
  border: 1px solid #ccc;
  min-height: 682.75px;
  margin-right: -1px;
  padding: 30px;
}

@keyframes placeHolderShimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}
#onsite-product-gallery-loading-boxes .image {
  height: 250px;
  width: 100%;
  animation-duration: 1.25s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: placeHolderShimmer;
  animation-timing-function: linear;
  background: #f6f6f6;
  background: linear-gradient(to right, #f6f6f6 8%, #f0f0f0 18%, #f6f6f6 33%);
  background-size: 800px 104px;
  position: relative;
}
#onsite-product-gallery-loading-boxes .wrapper-cell {
  display: flex;
  flex-direction: column;
}

#onsite-product-gallery-loading-boxes .text-line {
  height: 50px;
  width: 100%;
  margin: 30px 0;
  animation-duration: 1.25s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: placeHolderShimmer;
  animation-timing-function: linear;
  background: #f6f6f6;
  background: linear-gradient(to right, #f6f6f6 8%, #f0f0f0 18%, #f6f6f6 33%);
  background-size: 800px 104px;
  position: relative;
}

/* For product gallery modal */
.onsite-product-gallery-modal {
  display: none;
  position: fixed;
  z-index: 9;
  /* top: calc(50% - 45vh); */
  /* top: calc(4% + 154px) !important; */
  left: calc(50% - 300px);
  top: 180px !important;
}
.onsite-product-gallery-modal-container {
  background: white;
  border-radius: 10px;
  z-index: 10;
  width: 600px;
  position: relative;
  height: 65vh !important;
  overflow-y: auto;
  padding-bottom: 15px;
}
.onsite-product-gallery-modal .box-head {
  text-align: center;
  line-height: 1.3em;
}
.onsite-product-gallery-modal .box-head h3 {
  margin: 0;
  font-weight: 600;
}
.onsite-product-gallery-modal .payment-item {
  display: flex;
  width: 100%;
  align-items: center;
  background: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
.onsite-product-gallery-modal .payment-item .product-info {
  flex: 3;
  padding-right: 10px;
  line-height: 1em;
}
.onsite-product-gallery-modal .payment-item .payment-duration {
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.onsite-product-gallery-modal .payment-item .payment-duration > div {
  padding: 5px 10px;
  background: black;
  color: white;
  border-radius: 5px;
  width: 100%;
  text-align: center;
}
.onsite-product-gallery-modal .box-body {
  margin-top: 15px;
}

.onsite-product-gallery-modal .payment-option-box {
  background: #ebebeb;
  padding: 15px;
  border-radius: 10px;
  width: calc(100% - 60px);
  margin: auto;
}
.onsite-product-gallery-modal .payment-option-box:not(:last-child) {
  margin-bottom: 20px;
}

.onsite-product-gallery-modal .btn-apply {
  display: block;
  margin: auto;
}
.onsite-product-gallery-modal .payment-item:not(:last-child) {
  margin-bottom: 20px;
}

.onsite-product-gallery-modal
  .rto.payment-option-box
  .payment-item:nth-child(odd)
  .payment-duration
  > div {
  background: #008037 !important;
}

.onsite-product-gallery-modal
  .rental.payment-option-box
  .payment-item:nth-child(odd)
  .payment-duration
  > div {
  background: #f35f1b !important;
}
.onsite-product-gallery-modal .payment-option-box.financing p {
  text-align: justify;
  text-align-last: center;
}
.onsite-product-gallery-modal .product-title {
  font-size: 14px;
  font-weight: 500;
}
.onsite-product-gallery-modal .product-location {
  font-size: 14px;
  color: #c60c29;
  font-weight: 600;
}
.onsite-product-gallery-modal .product-grade {
  font-style: italic;
  font-weight: 400;
  color: #ffffff;
}
.onsite-product-gallery-modal .product-price {
  font-size: 20px;
}
.onsite-product-gallery-modal .product-price small {
  font-size: 70%;
}
.onsite-product-gallery-modal .box-head em {
  font-weight: 500;
}
.onsite-product-gallery-modal .payment-option-box.financing .box-head img {
  width: 100%;
  max-width: 180px;
  margin-top: 5px;
}
.onsite-product-gallery-modal .payment-option-box.financing .box-body {
  margin-top: 0px;
}

.onsite-product-gallery-modal .btn-apply {
  display: block;
  margin: auto;
  border-radius: 60px;
  padding: 5px 30px;
  background: #c60c29;
  color: #ffffff;
  text-align: center;
  max-width: 250px;
}
.onsite-product-gallery-modal .btn-apply:hover {
  background: transparent;
  color: #c60c29;
  border: 1px solid #c60c29;
}
.onsite-product-gallery-modal.active {
  display: block;
}
.onsite-product-gallery-modal .gallery-modal-overlay {
  position: fixed;
  background: rgba(0, 0, 0, 0.25);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/* width */
.onsite-product-gallery-modal-container::-webkit-scrollbar {
  width: 8px;
}

/* Track */
.onsite-product-gallery-modal-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 20px;
}

/* Handle */
.onsite-product-gallery-modal-container::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background: #888;
}

/* Handle on hover */
.onsite-product-gallery-modal-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.onsite-product-gallery-modal-container .delivery-option {
  font-style: italic;
}

.onsite-product-gallery-modal-container .modal-header {
  background: #c60c29;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.onsite-product-gallery-modal-container .modal-header .modal-close {
  position: absolute;
  width: 25px;
  height: 25px;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat";
  font-weight: 700;
  color: white;
  cursor: pointer;
}

.onsite-product-gallery-modal-container .modal-call-now {
  text-align: center;
  display: block;
  margin-top: 20px;
  font-size: 20px;
  background: #c60c29;
  color: white;
  border-radius: 8px;
  width: 160px;
  margin: 20px auto 0px;
  padding: 5px 10px;
}
.onsite-product-gallery-modal-container .modal-header > div {
  width: 50%;
  color: #ffffff;
  font-weight: 600;
}

.onsite-product-gallery-modal-container .modal-product-info .product-grade {
  font-weight: 400;
  font-size: 100%;
  color: #000;
  font-style: italic;
}
.onsite-product-gallery-modal-container .modal-product-location {
  text-align: right;
  text-decoration: underline;
  font-size: 90%;
}
.onsite-product-gallery-modal-container .modal-product-info {
  margin: 20px 30px;
  display: block;
  line-height: 1.3em;
  color: #000;
  font-weight: 600;
}
.onsite-product-gallery-modal-container .modal-product-title {
  width: 50%;
}
.onsite-product-gallery-modal-container .modal-product-gallery {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
}
.onsite-product-gallery-modal-container
  .modal-product-gallery
  .modal-gallery-item {
  width: 18%;
  height: 80px;
  margin-top: 8px;
  object-fit: cover;
}
.onsite-product-gallery-modal-container
  .modal-product-gallery
  .modal-gallery-item:not(:nth-child(5n + 5)) {
  margin-right: 2.5%;
}
.onsite-product-gallery-modal-container
  .modal-product-gallery
  .modal-gallery-item:not(:nth-child(n + 5)) {
  margin-top: 0px;
}

.rto.hide {
  display: none;
}
#onsite-product-gallery-container .product-gallery-item:hover {
  border-color: #c60c29;
  margin-right: 1px;
}
#onsite-product-gallery-container .product-gallery-item {
  position: relative;
}
@media (max-width: 980px) {
  #onsite-product-gallery-container .product-gallery-item,
  #onsite-product-gallery-loading-boxes > div {
    width: 100%;
  }
  #onsite-product-gallery-container .product-gallery-item:not(:first-child),
  #onsite-product-gallery-loading-boxes > div:not(:first-child) {
    margin-top: 30px;
  }
}

.product-gallery-item-link {
  display: none;
  background-color: #c60c29;
  color: white !important;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  position: absolute;
  z-index: 99;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2) !important;
}
.product-gallery-item-link.active {
  display: flex;
}

.product-gallery-item.active .product-image img {
  transform: scale(1.1);
}
.product-item-hover-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

a.product-hover-item-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

@media (max-width: 768px) {
  .onsite-product-gallery-modal {
    left: 5% !important;
    max-width: 90% !important;
  }
  .onsite-product-gallery-modal-container {
    width: 100% !important;
  }
  .onsite-product-gallery-modal .payment-item .product-info {
    margin-bottom: 10px !important;
    text-align: center !important;
  }
  .onsite-product-gallery-modal .payment-item {
    padding: 20px 0px !important;
    flex-direction: column;
  }
  .modal-header {
    flex-direction: column;
  }
  .modal-header > div:not(:first-child) {
    width: 100% !important;
  }
  .modal-header .modal-product-location {
    margin-top: 5px !important;
  }
  .onsite-product-gallery-modal .payment-option-box {
    width: calc(100% - 20px) !important;
  }
  .onsite-product-gallery-modal .payment-item .payment-duration {
    width: 90% !important;
  }
  .onsite-product-gallery-modal {
    top: 100px !important;
  }
  .product-gallery-item-link {
    display: none !important;
  }
}

#rto-step-header #onsite-product-gallery-container {
  justify-content: center;
}

#rto-step-header #onsite-product-gallery-container .discount-info {
  width: 100%;
}
