.comic-reading-dialog .comic-checkout-body { scroll-snap-type: none; }
.comic-reading-dialog .comic-checkout-body > .long-sample-page {
  height: auto;
  min-height: calc(100% - 112px - env(safe-area-inset-bottom));
  max-height: 100%;
}
.comic-reading-dialog .comic-checkout-body > .long-sample-page > img {
  height: auto;
  max-height: 100dvh;
}
.comic-reading-dialog .comic-checkout-body > .comic-reading-ending {
  min-height: 65%;
  padding: 10px 12px max(32px, env(safe-area-inset-bottom));
}
.comic-reading-dialog .reader-purchase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin: 0 auto;
  text-align: center;
}
.reader-purchase .mlc-purchase-disclosure { margin: 0; font-size: 12px; color: #cec6d0; }
.comic-reading-dialog .reader-purchase a[data-mlc-sample-buy] {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: min(90vw,340px);
  min-height: 52px;
  margin: 0;
  padding: 10px 6px;
  border: none;
  border-radius: 10px;
  background: #ffb1cd;
  color: #27101c;
  font-size: clamp(14px,4vw,16px);
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
}
.comic-reading-dialog .reader-purchase .fresh-purchase-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #ddd4e1;
}
.comic-reading-dialog .comic-reading-ending .reader-recommendations {
  width: min(100%,440px);
  margin: 28px auto 0;
}
.comic-reading-dialog .reader-recommendations h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
}
.comic-reading-dialog .reader-recommendations [data-mlc-next-episode] {
  display: grid;
  place-items: center;
  min-height: 46px;
  margin-bottom: 18px;
  background: #261f29;
  border: 1px solid #796277;
  border-radius: 8px;
  color: white;
  text-decoration: none;
}
.comic-reading-dialog .reader-recommendations .fresh-related-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
}
.comic-reading-dialog .reader-recommendations .fresh-related-grid > a {
  display: block;
  min-width: 0;
  padding: 0;
  background: transparent;
}
.comic-reading-dialog .reader-recommendations .fresh-related-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border-radius: 5px;
}
.comic-reading-dialog .fresh-related-grid img[hidden] { display: none; }
.reader-cover-title { font-size: 13px; color: white; overflow-wrap: anywhere; }
