/* Performance and small-screen layer for the imported Motor Scent storefront. */
html, body { max-width: 100%; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

/* Avoid painting far-below-the-fold product and testimonial sections until needed. */
main > section:not(:first-child),
.shopify-section:not(:first-child) {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

#motorscent-payment-note {
  margin: 12px 0 0;
  color: #202020;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.motorscent-shipping-estimator { margin: 18px 0; padding: 16px; border: 1px solid #d8d8d8; border-radius: 5px; color: #1d1d1d; }
.motorscent-shipping-estimator h2 { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.motorscent-shipping-form { display: flex; gap: 8px; }
.motorscent-shipping-form input { min-width: 0; flex: 1; height: 42px; padding: 0 12px; border: 1px solid #a9a9a9; border-radius: 3px; font: inherit; }
.motorscent-shipping-form button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 3px; background: #111; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.motorscent-shipping-form button:disabled { opacity: .65; cursor: progress; }
.motorscent-shipping-message { min-height: 1.4em; margin: 11px 0 0; font-size: 13px; font-weight: 600; }
.motorscent-shipping-results { margin-top: 12px; font-size: 13px; }
.motorscent-shipping-results table { width: 100%; border-collapse: collapse; }
.motorscent-shipping-results th, .motorscent-shipping-results td { padding: 9px 6px; border: 1px solid #e2e2e2; text-align: center; }
.motorscent-shipping-results th { background: #f6f6f6; }
.motorscent-shipping-results td:last-child strong { color: #168a5b; }
.motorscent-shipping-results p { margin: 10px 0 0; color: #555; font-size: 12px; }
.motorscent-delivery-card { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 13px 14px; border: 1px solid #dedede; border-radius: 6px; }
.motorscent-delivery-card p { margin: 0; line-height: 1.35; font-size: 14px; }
.motorscent-delivery-card p > strong { color: #16bd80; font-size: 15px; }
.motorscent-delivery-card p > span { color: #555; }
.motorscent-delivery-icon { flex: 0 0 49px; width: 49px; height: 49px; display: grid; place-items: center; border-radius: 50%; background: #0cbbe7; color: #fff; font-size: 25px; line-height: 1; }
.motorscent-delivery-icon--return { background: #16c789; font-size: 27px; }

/* Fluid controls and cards across compact phones, tablets, and large displays. */
.product-info-upsells-container { max-width: 100%; }
.upsell__container { min-width: 0; }
.upsell__content, .upsell__title { min-width: 0; }
.upsell__title h3, .upsell__desc { overflow-wrap: anywhere; }
.product-info-upsell[data-handle="shipping-protection"] { display: none !important; }
@media screen and (min-width: 750px) and (max-width: 1100px) {
  .page-width, .page-width-desktop { padding-left: 24px !important; padding-right: 24px !important; }
  .product--large, .product--medium { gap: 28px !important; }
  .product__title h1 { font-size: clamp(29px, 3vw, 40px) !important; }
}

@media screen and (max-width: 749px) {
  .page-width,
  .page-width-desktop { padding-left: 16px !important; padding-right: 16px !important; }

  .product--large,
  .product--medium,
  .product--small,
  .product.grid,
  .image-with-text__grid,
  .multicolumn-list { grid-template-columns: minmax(0, 1fr) !important; }

  .product__media-wrapper,
  .product__info-wrapper,
  .product__media-list,
  .product__info-container { width: 100% !important; max-width: 100% !important; }

  .product__media img,
  .product-media-container img,
  .media img { max-height: min(68vh, 480px); object-fit: contain; }

  .product__title h1,
  .product__title { font-size: clamp(25px, 7vw, 34px) !important; line-height: 1.14; }
  .price--large { font-size: 1.85rem !important; }

  .quantity-breaks-container,
  .quantity-breaks { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; }
  .quantity-break { min-height: 0 !important; padding: 13px !important; }
  .upsell__container { align-items: flex-start !important; }
  .upsell__image { flex: 0 0 52px !important; }
  .upsell__image img { width: 52px !important; height: 52px !important; object-fit: cover; }
  .upsell__title h3 { font-size: 14px !important; line-height: 1.25 !important; }
  .upsell__desc { font-size: 12px !important; line-height: 1.35 !important; }
  .motorscent-shipping-form { flex-direction: column; }
  .motorscent-shipping-form button { width: 100%; }
  .motorscent-shipping-results { overflow-x: auto; }

  .thumbnail-slider,
  .slider-mobile-gutter .slider { overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x mandatory; }
  .thumbnail-list__item,
  .slider__slide { scroll-snap-align: start; }

  .multicolumn-card__info,
  .image-with-text__content { padding: 20px 0 !important; }
  .multicolumn-list { row-gap: 20px !important; }

  .sticky-atc { padding: 9px 12px !important; }
  .sticky-atc__content { gap: 8px !important; }
  .sticky-atc__title { display: none !important; }
  .sticky-atc__button { min-height: 45px !important; font-size: 14px !important; }

  .footer__content-top,
  .footer__content-bottom-wrapper { padding-left: 16px !important; padding-right: 16px !important; }
}
