/* Book Set detail page (simple sets): the redesigned layout.
   Everything is scoped under .rxbs so it cannot leak into the rest of the site. Colours follow the design:
   teal accent, brand yellow for Buy now, neutral greys. */

.rxbs {
  --rx-a: #00474f;
  --rx-b: #ffd500;
  --rxbs-ink: #1d1d1f;
  --rxbs-ink-2: #424245;
  --rxbs-muted: #6e6e73;
  --rxbs-faint: #86868b;
  --rxbs-line: rgba(29, 29, 31, 0.1);
  --rxbs-tile: #f5f5f7;
  --rxbs-green: #0a7b3e;
  --rxbs-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", Geist, "Helvetica Neue", sans-serif;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px clamp(16px, 4.5vw, 32px) 0;
  color: var(--rxbs-ink);
  box-sizing: border-box;
}
.rxbs *, .rxbs *::before, .rxbs *::after { box-sizing: border-box; }
.rxbs button { font-family: inherit; }
/* The rest of the site centres headings and paragraphs globally; this page is left-aligned throughout, as designed. */
.rxbs, .rxbs h1, .rxbs h2, .rxbs h3, .rxbs p, .rxbs li, .rxbs dt, .rxbs div, .rxbs span, .rxbs a, .rxbs small { text-align: left; }
.rxbs .rxbs-details dd, .rxbs .rxbs-compare-bottom span:last-child, .rxbs .rxbs-compare-top span:last-child { text-align: right; }
.rxbs .rxbs-qty-n, .rxbs .rxbs-set-off, .rxbs .rxbs-badge, .rxbs .rxbs-chip-top { text-align: center; }
.rxbs h1, .rxbs h2, .rxbs h3 { letter-spacing: normal; text-transform: none; }
.rxbs .rxbs-title { letter-spacing: -0.035em; }
.rxbs .rxbs-books-head h2, .rxbs .rxbs-more-sets > h2 { letter-spacing: -0.03em; }
.rxbs .rxbs-card h2, .rxbs .rxbs-h2 { letter-spacing: -0.02em; }
:where(.rxbs) :is(h1, h2, h3, p, dl, dd, ul) { margin: 0; padding: 0; } /* zero-weight reset so each component's own spacing wins */

/* Breadcrumb */
.rxbs-crumbs { font-size: 13px; color: var(--rxbs-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rxbs-crumbs a { color: var(--rx-a); text-decoration: none; }
.rxbs-crumbs a:hover { text-decoration: underline; }
.rxbs-crumbs .rxbs-crumb-now { color: var(--rxbs-ink); }

/* Hero: cover on the left, details on the right */
.rxbs-hero { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); padding: 30px 0 0; align-items: flex-start; }
.rxbs-left { flex: 1 1 360px; min-width: 0; max-width: 600px; }
.rxbs-right { flex: 1 1 380px; min-width: 0; max-width: 560px; }

.rxbs-stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 32px; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 42%, #fff, #e9eef0);
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.06);
  display: flex; align-items: center; justify-content: center;
}
.rxbs-glow { position: absolute; width: 70%; height: 70%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 213, 0, 0.35), transparent 70%); filter: blur(30px); }
.rxbs-cover {
  position: relative; width: 84%; height: 84%; background-size: contain; background-position: center; background-repeat: no-repeat;
  filter: drop-shadow(0 30px 34px rgba(0, 30, 36, 0.35));
  animation: rxbsFadeUp 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.rxbs-badge {
  position: absolute; left: 18px; top: 18px; font-size: 13px; font-weight: 800; color: #3d2a00;
  background: linear-gradient(135deg, #ffe14d, #ffc400); border-radius: 100px; padding: 6px 13px;
  animation: rxbsBadge 2.4s ease-in-out infinite;
}
.rxbs-chip-top {
  position: absolute; right: 18px; top: 18px; font-size: 12px; font-weight: 700; color: #00474f; padding: 6px 12px; border-radius: 100px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.65)); border: 1px solid rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

.rxbs-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--rx-a); }
.rxbs-title {
  font-family: var(--rxbs-head); font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600;
  margin: 10px 0 0; color: var(--rxbs-ink); text-wrap: balance;
}
.rxbs-sub { font-size: 17px; color: var(--rxbs-muted); margin-top: 8px; }

.rxbs-stack { display: flex; align-items: center; gap: 12px; margin-top: 18px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.rxbs-stack-covers { display: flex; padding-left: 10px; }
.rxbs-stack-covers span {
  display: block; width: 34px; aspect-ratio: 2 / 3; border-radius: 3px; margin-left: -10px;
  box-shadow: 0 0 0 2px #fff, 0 6px 12px -6px rgba(0, 0, 0, 0.45); background-size: cover; background-position: center; background-color: #e8e8ed;
}
.rxbs-stack-label { font-size: 14px; font-weight: 600; color: var(--rx-a); }

.rxbs-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.rxbs-price { font-family: var(--rxbs-head); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--rxbs-ink); }
.rxbs-mrp { font-size: 17px; color: var(--rxbs-faint); text-decoration: line-through; }
.rxbs-off { font-size: 14px; font-weight: 700; color: var(--rxbs-green); }
.rxbs-save { font-size: 13.5px; color: var(--rxbs-ink-2); margin-top: 4px; }

.rxbs-compare { margin-top: 22px; border-radius: 18px; background: var(--rxbs-tile); padding: 16px 18px; }
.rxbs-compare-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--rxbs-muted); }
.rxbs-track { position: relative; height: 10px; border-radius: 10px; background: #e1e1e6; margin-top: 8px; overflow: hidden; }
.rxbs-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; background: linear-gradient(90deg, var(--rx-a), #0a8a96); transform-origin: left center; animation: rxbsDraw 1.1s cubic-bezier(0.28, 0.11, 0.32, 1) both; }
.rxbs-compare-bottom { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-top: 8px; }
.rxbs-compare-bottom .rxbs-strike { color: var(--rxbs-faint); text-decoration: line-through; }

.rxbs-ship-line { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; color: var(--rxbs-ink); }
.rxbs-ship-line .rxbs-tick { color: var(--rxbs-green); font-weight: 700; }

.rxbs-buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: stretch; }
.rxbs-qty { display: flex; align-items: center; border: 1px solid rgba(29, 29, 31, 0.18); border-radius: 100px; overflow: hidden; background: #fff; }
.rxbs-qty button { width: 44px; height: 52px; background: none; border: 0; cursor: pointer; font-size: 18px; color: var(--rxbs-ink); }
.rxbs-qty button:hover { background: rgba(29, 29, 31, 0.05); }
.rxbs-qty-n { min-width: 28px; text-align: center; font-size: 15px; font-weight: 700; }
.rxbs-btn { min-height: 52px; border: 0; border-radius: 100px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.25s, transform 0.25s, opacity 0.2s; }
.rxbs-btn:hover { transform: translateY(-1px); }
.rxbs-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.rxbs-btn-add { flex: 1 1 160px; background: var(--rxbs-ink); color: #fff; }
.rxbs-btn-add:hover { background: #000; }
.rxbs-btn-now { flex: 1 1 140px; background: var(--rx-b); color: var(--rxbs-ink); }
.rxbs-btn-now:hover { background: #e6c000; }
.rxbs a:focus-visible, .rxbs button:focus-visible { outline: 2px solid var(--rx-a); outline-offset: 2px; }

/* Sticky bar (small screens, shown once the main buttons scroll out of view) */
.rxbs-sticky {
  display: none; position: fixed; left: 50%; transform: translateX(-50%); width: min(100% - 20px, 560px);
  bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 55; background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(29, 29, 31, 0.1); border-radius: 20px;
  box-shadow: 0 18px 40px -14px rgba(29, 29, 31, 0.45), 0 2px 8px rgba(29, 29, 31, 0.08);
  padding: 8px 8px 8px 14px; align-items: center; gap: 8px;
}
.rxbs-sticky.is-on { display: flex; }
.rxbs-sticky-price { flex: 0 0 auto; display: flex; flex-direction: column; min-width: 0; }
.rxbs-sticky-price b { font-size: 18px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rxbs-sticky-price s { font-size: 12px; color: var(--rxbs-muted); }
.rxbs-sticky button { flex: 1 1 0; min-width: 0; min-height: 48px; border: 0; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; }
.rxbs-sticky .rxbs-sticky-add { background: var(--rx-a); color: #fff; }
.rxbs-sticky .rxbs-sticky-now { background: var(--rx-b); color: var(--rxbs-ink); font-weight: 800; }
.rxbs-sticky-spacer { display: none; height: 80px; }
.rxbs-sticky-spacer.is-on { display: block; }

/* Four benefit tiles, always in ONE row (icon above a short label), on desktop and on phones. */
.rxbs-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.rxbs-trust > div { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: flex-start; padding: 14px 8px 12px; border-radius: 16px; border: 1px solid var(--rxbs-line); }
.rxbs-trust-ic {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; background: color-mix(in srgb, var(--rx-a) 10%, #fff); color: var(--rx-a);
  display: flex; align-items: center; justify-content: center;
}
.rxbs .rxbs-trust-tx { font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--rxbs-ink); text-align: center; overflow-wrap: anywhere; }

.rxbs-h2 { font-family: var(--rxbs-head); font-size: 20px; letter-spacing: -0.02em; font-weight: 600; margin: 32px 0 0; color: var(--rxbs-ink); }
.rxbs-details { margin: 12px 0 0; border-top: 1px solid var(--rxbs-line); }
.rxbs-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rxbs-line); font-size: 14px; }
.rxbs-details dt { color: var(--rxbs-muted); }
.rxbs-details dd { font-weight: 600; color: var(--rxbs-ink); text-align: right; }

/* Books in this set */
.rxbs-books { margin-top: clamp(56px, 9vw, 96px); scroll-margin-top: 120px; }
.rxbs-books-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rxbs-books-head h2 { font-family: var(--rxbs-head); font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; font-weight: 600; color: var(--rxbs-ink); }
.rxbs-books-head span { font-size: 14px; color: var(--rxbs-muted); }
.rxbs-books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 22px; align-items: start; }
.rxbs-book { display: flex; align-items: flex-start; gap: 18px; padding: 18px; border-radius: 20px; background: var(--rxbs-tile); transition: background 0.3s, transform 0.3s; }
.rxbs-book:hover { background: #ededf0; transform: translateY(-2px); }
/* The whole cover is shown at its own proportions (no cropping), top-aligned so a long description expanding on
   "Read more" can never stretch or crop it. */
.rxbs-book-cover {
  flex: 0 0 auto; align-self: flex-start; display: block; width: 104px; height: auto; max-height: 190px; object-fit: contain;
  border-radius: 5px; background-color: #e8e8ed; box-shadow: 0 12px 20px -12px rgba(0, 30, 36, 0.55);
}
.rxbs-book-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.rxbs-book-meta { display: flex; align-items: center; gap: 8px; }
.rxbs-book-no { font-size: 11px; font-weight: 700; color: var(--rxbs-faint); font-variant-numeric: tabular-nums; }
.rxbs-book-fmt { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--rx-a); }
.rxbs-book h3 { font-family: var(--rxbs-head); font-size: 16px; line-height: 1.3; font-weight: 600; margin: 4px 0 0; color: var(--rxbs-ink); }
.rxbs-book-author { font-size: 13px; color: var(--rxbs-muted); margin-top: 2px; }
.rxbs-book-desc { font-size: 13px; line-height: 1.5; color: var(--rxbs-ink-2); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rxbs-book-desc.is-open { -webkit-line-clamp: unset; display: block; }
.rxbs-more { align-self: flex-start; margin-top: 6px; background: none; border: 0; padding: 2px 0; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--rx-a); }

/* About and terms */
.rxbs-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-top: clamp(48px, 7vw, 80px); }
.rxbs-card { border-radius: 24px; padding: 26px 28px; }
.rxbs-card h2 { font-family: var(--rxbs-head); font-size: 20px; letter-spacing: -0.02em; font-weight: 600; color: var(--rxbs-ink); }
.rxbs-card-about { background: #fff8d6; border: 1px solid #f5e27a; }
.rxbs-card-terms { background: #fff; border: 1px solid var(--rxbs-line); }
.rxbs-card p { font-size: 15px; line-height: 1.7; color: var(--rxbs-ink-2); margin-top: 12px; }
.rxbs-card ul { margin-top: 12px; padding-left: 20px; list-style: disc; }
.rxbs-card li { list-style: disc; }
.rxbs-card li { font-size: 14.5px; line-height: 1.65; color: var(--rxbs-ink-2); margin-top: 8px; }
.rxbs-card li::marker { color: var(--rx-a); }

/* More book sets */
.rxbs-more-sets { margin-top: clamp(56px, 9vw, 96px); padding-bottom: clamp(48px, 7vw, 80px); }
.rxbs-more-sets > h2 { font-family: var(--rxbs-head); font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; font-weight: 600; color: var(--rxbs-ink); }
.rxbs-sets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px; margin-top: 22px; }
.rxbs-set { position: relative; display: block; text-decoration: none; color: inherit; border-radius: 24px; border: 1px solid var(--rxbs-line); background: #fff; overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; }
.rxbs-set:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -22px rgba(0, 30, 36, 0.5); }
.rxbs-set-img { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: radial-gradient(80% 70% at 50% 42%, #fff, #e9eef0); padding: 12px; }
.rxbs-set-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 30, 36, 0.28)); }
.rxbs-set-body { padding: 14px 16px 16px; }
.rxbs-set-name { font-size: 16px; font-weight: 600; color: var(--rxbs-ink); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rxbs-set-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; color: var(--rxbs-ink); }
.rxbs-set-price b { font-size: 17px; font-weight: 700; }
.rxbs-set-price s { font-size: 13px; font-weight: 500; color: var(--rxbs-faint); }
.rxbs-set-pct { font-size: 12.5px; font-weight: 700; color: var(--rxbs-green); }

@keyframes rxbsFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rxbsBadge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes rxbsDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .rxbs-cover, .rxbs-badge, .rxbs-fill, .rxbs-btn, .rxbs-book, .rxbs-set { animation: none !important; transition: none !important; }
}
@media (max-width: 575px) {
  .rxbs { padding-top: 20px; }
  .rxbs-hero { padding-top: 20px; }
  .rxbs-price { font-size: 34px; }
  .rxbs-card { padding: 22px 20px; }
  .rxbs-trust { gap: 6px; }
  .rxbs-trust > div { padding: 10px 4px 9px; gap: 6px; border-radius: 14px; }
  .rxbs-trust-ic { width: 30px; height: 30px; border-radius: 10px; }
  .rxbs .rxbs-trust-tx { font-size: 11px; }
  .rxbs-book-cover { width: 92px; }
  .rxbs-qty button { height: 48px; }
  .rxbs-btn { min-height: 48px; }
}
