/* IAM 237 mobile conversion improvements. Keep this file linked after the compiled app CSS. */
@media (max-width: 600px) {
  /* Keep the price and size information nearer the first screen. Gallery arrows
     and the image counter remain available when thumbnails are hidden. */
  .product-page .main-image {
    height: 300px !important;
    min-height: 0 !important;
  }

  .product-page .main-image > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .product-page .thumbs {
    display: none !important;
  }

  /* Cart upsells should not sit between selected products and checkout. */
  .offer-modal-body {
    display: flex !important;
    flex-direction: column !important;
  }

  .offer-modal-body > * {
    flex-shrink: 0 !important;
  }

  .offer-modal-body > app-product-recommendations {
    order: 1;
    margin-top: 1.5rem;
  }
}

.iam237-product-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0.75rem 0;
  padding: 0.7rem 1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.iam237-product-help:hover,
.iam237-product-help:focus-visible {
  color: #fff;
  background: #111;
  outline-offset: 3px;
}
