/* "Patients also add" cards on product pages, matched to the homepage treatment cards
   (values measured from #individual-track on the homepage). */
.treatment-rail .related-card { flex: 0 0 377px; min-width: 0; }
.related-card { display: flex; flex-direction: column; min-width: 0; padding: 12px; border: 1px solid #e3d8d0; border-radius: 20px; background: #fff; transition: transform 180ms ease-out, border-color 180ms ease-out; }
.related-card:hover { transform: translateY(-3px); border-color: #a98779; }
.related-card-art { position: relative; display: flex; align-items: center; justify-content: center; height: 300px; padding-top: 30px; overflow: hidden; border-radius: 12px; background: #f2ede6; }
.related-card-art img { width: 159px; height: 238px; object-fit: contain; }
.related-card-pill { position: absolute; top: 16px; left: 16px; padding: 0 10px; border-radius: 30px; background: #47181c; color: #fff9f2; font-size: 12px; line-height: 22px; }
.related-card-info { display: flex; flex: 1; flex-direction: column; padding: 0 10px 10px; }
.related-card h3 { margin: 20px 0 10px; color: #47181c; font: 600 28px/1.1 'Welm Display', Georgia, serif; }
.related-card h3 a { color: inherit; text-decoration: none; }
.related-card-summary, .related-card-care { margin: 0; color: #6e3438; }
.related-card-summary { font-size: 14px; line-height: 1.5; }
.related-card-care { margin-top: 10px; font-size: 12px; line-height: 1.5; }
.related-card-price { display: flex; align-items: baseline; margin: auto 0 0; padding-top: 22px; color: #47181c; }
.related-card-price strong { font-size: 30px; font-weight: 600; line-height: 1.4; }
.related-card-price span { color: #6e3438; font-size: 14px; }
.related-card .button { width: 100%; min-height: 46px; margin-top: 14px; font-size: 14px; }
@media (max-width: 767px) {
  .treatment-rail .related-card { flex-basis: calc(100vw - 56px); max-width: 420px; }
  .related-card-art { height: 286px; }
  .related-card h3 { font-size: 27px; }
  .related-card-summary { font-size: 15px; }
  .related-card-care { font-size: 13px; }
}
/* Swipe rows scroll sideways only and keep their cards inside their own box. Without contain: paint the off-screen
   cards widen the page on phones, the browser zooms the whole page out, and vertical scrolling stops working. */
.treatment-rail { overflow-y: hidden; contain: paint; }
/* Nothing to scroll (both arrows disabled): no arrows or progress bar. */
.carousel-controls:has(.round-button[disabled] ~ .round-button[disabled]) { visibility: hidden; }
@media (hover: none) { .related-card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .related-card { transition: none; } .related-card:hover { transform: none; } }
