.arp-related {
  --arp-section-background: #f1f1f1;
  --arp-card-background: #f1f1f1;
  --arp-card-active-background: #00a3e0;
  --arp-card-size: 320px;
  --arp-card-gap: 5px;
  --arp-card-inset: 10px;
  --arp-card-radius: 72px;
  --arp-card-active-radius: 80px;
  --arp-section-gap: 44px;
  --arp-detail-indent: 72px;
  --arp-active-image-zoom: 1.2;
  --arp-transition-duration: 640ms;
  --arp-shadow-gutter: 36px;
  box-sizing: border-box;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: var(--arp-section-gap);
  overflow: hidden;
  padding: 72px;
  color: #333;
  background: var(--arp-section-background);
}

.arp-related *, .arp-related *::before, .arp-related *::after { box-sizing: border-box; }
.arp-header { padding-block: 4px; }
.arp-title { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.15; }
.arp-subtitle { margin: 0; color: rgba(51,51,51,.83); font-size: 20px; font-weight: 500; line-height: 24px; }
.arp-products { display: flex; width: calc(100% + (2 * var(--arp-shadow-gutter))); align-items: flex-end; gap: var(--arp-card-gap); margin: calc(-1 * var(--arp-shadow-gutter)); padding: var(--arp-shadow-gutter); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.arp-product { flex: 0 0 var(--arp-card-size); width: var(--arp-card-size); height: var(--arp-card-size); }
.arp-product-card { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; padding: 0; border: 0; border-radius: var(--arp-card-radius); color: inherit; background: transparent; box-shadow: none; cursor: pointer; appearance: none; text-decoration: none; transition: border-radius var(--arp-transition-duration) cubic-bezier(.22,.61,.36,1), box-shadow var(--arp-transition-duration) cubic-bezier(.22,.61,.36,1); }
.arp-product-card__surface { position: absolute; inset: var(--arp-card-inset); border-radius: var(--arp-card-radius); background: var(--arp-card-background); transition: inset var(--arp-transition-duration) cubic-bezier(.22,.61,.36,1), border-radius var(--arp-transition-duration) cubic-bezier(.22,.61,.36,1), background-color var(--arp-transition-duration) cubic-bezier(.22,.61,.36,1); }
.arp-product-card__image, .arp-product-card__placeholder { position: absolute; left: 50%; top: 50%; display: block; width: var(--arp-item-image-scale, 78%); height: var(--arp-item-image-scale, 78%); transform: translate(-50%,-50%) scale(1); transition: transform var(--arp-transition-duration) cubic-bezier(.22,.61,.36,1); }
.arp-product-card__image { object-fit: contain; }
.arp-product-card__placeholder { display: grid; place-items: center; border: 1px dashed rgba(51,51,51,.28); border-radius: 28%; color: #757575; background: rgba(255,255,255,.42); font-size: 18px; font-weight: 600; text-align: center; }
.arp-product.is-active .arp-product-card { border-radius: var(--arp-card-active-radius); box-shadow: 0 2px 24px rgba(0,0,0,.25); }
.arp-product.is-active .arp-product-card__surface { inset: 0; border-radius: var(--arp-card-active-radius); background: var(--arp-card-active-background); }
.arp-product.is-active .arp-product-card__image, .arp-product.is-active .arp-product-card__placeholder { transform: translate(-50%,-50%) scale(var(--arp-active-image-zoom)); }
.arp-product-card:focus-visible { outline: 3px solid #006f99; outline-offset: -3px; }

.arp-info { position: relative; min-height: 168px; }
.arp-hint { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; margin: 0; color: #757575; font-size: 24px; font-weight: 500; line-height: 1.2; text-align: center; transition: opacity 180ms ease, visibility 180ms ease; }
.arp-detail { position: absolute; inset: 0; display: flex; max-width: calc(572px + var(--arp-detail-indent)); flex-direction: column; gap: 24px; padding-left: var(--arp-detail-indent); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease; }
.arp-detail__heading { margin: 0; }
.arp-detail__title { margin: 0; font-size: 36px; font-weight: 600; line-height: 1.12; }
.arp-detail__model { margin: 0; color: #a8a8a8; font-size: 24px; font-weight: 500; line-height: 1.15; }
.arp-detail__description { width: 100%; max-width: 500px; margin: 0; font-size: 16px; font-weight: 500; line-height: 1.25; }
.arp-related.has-active-product .arp-hint { opacity: 0; visibility: hidden; }
.arp-detail.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
.arp-placeholder-label { align-self: flex-start; margin-bottom: calc(-1 * var(--arp-section-gap) + 16px); padding: 5px 9px; border-radius: 3px; color: #59636b; background: #fff; font-size: 12px; font-weight: 500; }
.arp-editor-notice { margin: 16px 0; padding: 12px 14px; border-left: 4px solid #e5a300; color: #6e5100; background: #fff8df; font-size: 13px; }
.arp-editor-notice pre { overflow: auto; white-space: pre-wrap; }

@media (max-width: 767px) {
  .arp-related { --arp-card-size: 240px; --arp-detail-indent: 0px; padding: 32px 20px; }
  .arp-title { font-size: 26px; }
  .arp-subtitle { margin-top: 4px; font-size: 17px; line-height: 1.3; }
  .arp-products { scroll-snap-type: x proximity; }
  .arp-product { scroll-snap-align: start; }
  .arp-info { min-height: 210px; }
  .arp-hint { display: none; }
  .arp-detail { gap: 16px; }
  .arp-detail__title { font-size: 28px; }
  .arp-detail__model { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .arp-product-card__surface, .arp-product-card__image, .arp-product-card__placeholder, .arp-hint, .arp-detail { transition-duration: 1ms !important; }
}
