/* R5.22.17.4.2 — Scoped storefront corrections. Media aspect ratios, image fit and carousel configuration remain untouched. */
.umv2-product-page .umv2-related {
  min-width:0;
  width:100%;
}
.umv2-product-page .umv2-related-grid {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:clamp(12px,1.8vw,24px) !important;
  align-items:stretch;
  width:100%;
  min-width:0;
}
.umv2-product-page .umv2-related-grid > .product-card.umv2-card {
  box-sizing:border-box !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  margin:0 !important;
  justify-self:stretch !important;
  align-self:stretch;
}
.umv2-product-page .umv2-related-grid .umv2-card-media,
.umv2-product-page .umv2-related-grid .umv2-card-image-link,
.umv2-product-page .umv2-related-grid .umv2-card-image,
.umv2-product-page .umv2-related-grid .umv2-card-body {
  min-width:0;
  width:100%;
  box-sizing:border-box;
}
.umv2-product-page .umv2-related-grid .umv2-card-name {
  max-width:100%;
  overflow-wrap:break-word;
  word-break:normal;
  white-space:normal;
}
.umv2-product-page .umv2-related-grid .umv2-card-bottom-link {
  min-width:0;
  overflow-wrap:break-word;
  white-space:normal;
}
@media(max-width:980px) {
  .umv2-product-page .umv2-related-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:540px) {
  .umv2-product-page .umv2-related-grid { gap:12px !important; }
  .umv2-product-page .umv2-related-grid .umv2-card-body { padding:12px 9px !important; }
  .umv2-product-page .umv2-related-grid .umv2-card-name { font-size:16px !important; line-height:1.35; }
  .umv2-product-page .umv2-related-grid .umv2-card-price { font-size:15px !important; }
}
@media(max-width:340px) {
  .umv2-product-page .umv2-related-grid { grid-template-columns:minmax(0,1fr) !important; }
}
/* The iframe must not be declared visually ready before its primary photo loads. */
.umv2-product-dialog { position:fixed; }
.umv2-product-dialog[data-umv2-ready="false"] > iframe { visibility:hidden; }
.umv2-product-dialog .umv2-product-dialog-loader:not([hidden]) {
  position:absolute;
  z-index:3;
  left:clamp(12px,3vw,24px);
  right:clamp(12px,3vw,24px);
  top:clamp(70px,11vh,108px);
  border:1px solid #eadfe8;
  border-radius:14px;
  background:#fffafdf5;
  box-shadow:0 8px 28px #29183117;
  color:#694d71;
  padding:16px 20px;
  text-align:center;
}
.umv2-product-dialog .umv2-product-dialog-loader[data-umv2-image-error="true"] {
  color:#814853;
  border-color:#ead2d6;
}
/* Seller about copy is intentionally rendered as safe text, never as raw editor HTML. */
.seller-profile-r2 .seller-description.um-r5221742-safe-copy {
  white-space:pre-line;
  overflow-wrap:break-word;
}
