/* EJM Mobile Fixes v1.1.0
 * 1. iOS Safari zooms into any text field under 16px when it is focused (and
 *    stays zoomed, allowing sideways scrolling). 16px fields on phones stop that;
 *    people can still pinch-zoom on purpose.
 * 2. "Frequently Bought Together" (Related Products Pro carousel on checkout):
 *    proper card matching the checkout cards - centred image, title, price and
 *    stars, larger type, side gutters so cards never touch the screen edge.
 */
@media (max-width: 767px) {
  html body input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=image]):not([type=range]):not([type=color]):not([type=file]),
  html body select,
  html body textarea,
  html body #quickcheckoutconfirm input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=image]):not([type=range]):not([type=color]):not([type=file]),
  html body #quickcheckoutconfirm select,
  html body #quickcheckoutconfirm textarea {
    font-size: 16px !important;
  }
}

/* Frequently Bought Together card */
html body .relatedproductspro.owl-carousel-2 {
  padding: 0 15px;
  box-sizing: border-box;
}

html body .relatedproductspro .product-layout {
  text-align: center;
}

html body .relatedproductspro .product-thumb {
  height: 100%;
  padding: 20px 18px 22px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(32, 34, 35, .06);
  box-sizing: border-box;
}

html body .relatedproductspro .product-thumb .image {
  margin: 0 0 16px;
}

html body .relatedproductspro .product-thumb .image img {
  width: auto !important;
  max-width: 100%;
  max-height: 200px;
  margin: 0 auto;
  object-fit: contain;
}

html body .relatedproductspro .product-thumb .caption {
  padding: 0 !important;
  text-align: center;
}

html body .relatedproductspro .product-thumb h4.name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

html body .relatedproductspro .product-thumb h4.name a {
  display: -webkit-box;
  overflow: hidden;
  color: #202223;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

html body .relatedproductspro .product-thumb .price {
  margin: 0 0 10px;
  color: #202223;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

html body .relatedproductspro .product-thumb .rating {
  line-height: 1;
  text-align: center;
}
