.scholars{padding:22px 0}
.scholars-title{font-size:28px;margin:0 0 14px}
.scholars-subtitle{margin:-6px 0 14px;color:#666;font-size:14px;line-height:1.45;max-width:920px}

.scholars-order-note{
  margin:0 16px 14px;
  padding:10px 12px;
  border:1px solid var(--line);
  background:#fff;
  color:#111;
  font-size:13px;
  font-weight:600;
  border-radius:14px;
}

/* Align title/subtitle with the inner panel padding (same left edge as section content) */
.scholars-title,
.scholars-subtitle{
  margin-left:16px;
  margin-right:16px;
}

/* Top banner (admin-managed) */
.sb-banner{max-width:800px;margin:0 auto 18px}
.sb-banner picture,.sb-banner img{display:block;width:100%}
.sb-banner img{
  border-radius:18px;
  aspect-ratio:800/260;
  object-fit:cover;
  background:#f3f4f6;
}
@media (max-width:700px){
  /* Mobile breathing room so title/subtitle don't kiss the screen edges */
  .scholars{padding:18px 30px}
  .sb-banner{max-width:360px;margin:0 auto 14px}
  .sb-banner img{aspect-ratio:360/190;border-radius:16px}
}

@media (max-width:700px){
  .scholars-title,
  .scholars-subtitle{
    /* On mobile, the outer container already has side padding */
    margin-left:1;
    margin-right:0;
    padding-left:0;
  }
}
.scholars-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin:14px 0}
.scholars-h2{font-size:18px;margin:0 0 12px}

/* Books header + subtle PDF download link */
.scholars-books-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}

/* Bottom bar: same layout as header, but visually separated from the list */
.scholars-books-foot{
  margin:14px 0 0;
  padding-top:12px;
  border-top:1px solid rgba(0,0,0,.06);
}
.sb-books-left{display:flex;align-items:baseline;gap:12px;min-width:0}
.sb-books-left .scholars-h2{margin:0;min-width:0}
.sb-books-download{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:700;
  color:var(--accent);
  text-decoration:none;
  white-space:nowrap;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  background:color-mix(in srgb, var(--accent) 10%, transparent);
}
.sb-books-download:hover{
  background:color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.sb-books-download:focus-visible{
  outline:3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset:2px;
}
.sb-download-ico{display:inline-flex;align-items:center;justify-content:center}
.sb-download-ext{font-weight:700;opacity:.75}

/* Bulk actions (light links, right side) */
.sb-bulk-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto;white-space:nowrap}
.sb-bulk{font-size:13px;font-weight:600;color:#8a8a8a;text-decoration:none;position:relative;display:inline-flex;align-items:center;gap:8px}
.sb-bulk:hover{color:#000;text-decoration:underline}
.sb-bulk[aria-disabled="true"]{opacity:.55;pointer-events:none;text-decoration:none}
.sb-bulk-sep{color:#c8c8c8;font-size:12px;user-select:none}
.sb-bulk-spinner{width:12px;height:12px;border-radius:50%;border:2px solid rgba(0,0,0,.18);border-top-color:rgba(0,0,0,.55);animation:sbSpin .8s linear infinite}
@keyframes sbSpin{to{transform:rotate(360deg)}}

@media (max-width:700px){
  .scholars-books-head{flex-direction:column;align-items:flex-start}
  /* On mobile, the title and download CTA must stack (button under title) */
  .sb-books-left{flex-direction:column;align-items:flex-start;gap:8px}
  .sb-books-download{white-space:normal}
  .sb-bulk-actions{gap:8px}
}

/* Toast */
.aq-toast{
  position:fixed;
  left:50%;
  bottom:22px;
  transform:translateX(-50%);
  background:#111;
  color:#fff;
  padding:10px 14px;
  border-radius:14px;
  font-size:13px;
  font-weight:700;
  box-shadow:0 14px 40px rgba(0,0,0,.22);
  z-index:99999;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}
.aq-toast.is-on{opacity:1;transform:translateX(-50%) translateY(-4px)}

/* School chooser (matches the provided UI) */
.scholars-school-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin:0 0 14px;
}
.scholars-school-title{font-size:22px;line-height:1.1;margin:0}

.scholars-school-search{position:relative;flex:0 0 min(520px, 46vw)}
.aq-searchbox{position:relative}
.aq-searchbox--school::before{
  content:"";
  position:absolute;
  left:14px;
  top:50%;
  width:18px;
  height:18px;
  transform:translateY(-50%);
  opacity:.65;
  background-repeat:no-repeat;
  background-position:center;
  background-size:18px 18px;
  /* inline SVG magnifier */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}
.aq-searchbox input{
  width:100%;
  height:48px;
  border-radius:6px;
  border:1px solid var(--line);
  padding:0 44px 0 44px;
  outline:none;
  background:#fff;
  font-weight:700;
}
.aq-searchbox input:focus{border-color:#111;box-shadow:0 0 0 3px rgba(0,0,0,.06)}
.aq-search-clear{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  width:30px;height:30px;border-radius:10px;
  border:1px solid var(--line);background:#fff;
  font-size:18px;line-height:1;cursor:pointer;opacity:.75;
}
.aq-search-clear:hover{opacity:1}

.aq-suggest{
  position:absolute;
  left:0;right:0;
  top:calc(44px + 8px);
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 18px 60px rgba(0,0,0,.10);
  overflow:hidden;
  z-index:50;
}
.aq-suggest-item{
  display:flex;align-items:center;gap:12px;
  padding:10px 12px;
  cursor:pointer;
}
.aq-suggest-item:hover,.aq-suggest-item.is-active{background:#f6f6f6}
.aq-suggest-thumb{width:34px;height:34px;border-radius:10px;background:#f2f2f2;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 auto}
.aq-suggest-thumb img{width:100%;height:100%;object-fit:contain}
.aq-suggest-name{font-weight:800;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aq-suggest-empty{padding:12px;color:#666;font-size:13px}

.scholars-school-list{
  max-height:460px;
  overflow:auto;
  padding-right:6px;
}
/* Subtle scrollbar for the in-panel list */
.scholars-school-list::-webkit-scrollbar{width:10px}
.scholars-school-list::-webkit-scrollbar-thumb{background:#d6d6d6;border-radius:999px;border:3px solid #fff}
.scholars-school-list::-webkit-scrollbar-track{background:#fff}

.scholars-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.scholars-grid--schools{grid-template-columns:repeat(4, minmax(0, 1fr));gap:18px}

.scholars-card{border:1px solid var(--line);border-radius:16px;padding:12px;text-decoration:none;color:inherit;background:#fff}
.scholars-card--school{
  border-radius:4px;
  padding:16px 14px;
  display:flex;
  align-items:center;
  gap:14px;
  min-height:68px;
}
/* Selection style (soft, modern, no black edge) */
.scholars-card.is-active{
  outline:none;
  border-color:#0099ff;
  box-shadow:0 0 0 2px rgba(0,153,255,0.15);
}
.scholars-card:focus,.scholars-card:focus-visible{outline:none}
.scholars-card-media{height:90px;display:flex;align-items:center;justify-content:center}
.scholars-card-media--school{height:auto;width:78px;flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.scholars-card-media img{max-height:86px;max-width:100%;object-fit:contain}
.scholars-card-media--school img{max-height:42px;max-width:72px;object-fit:contain}
.scholars-placeholder{font-size:34px;opacity:.7}
.scholars-card-title{margin-top:10px;font-weight:800;text-align:center}
.scholars-card-title--school{margin:0;font-weight:800;text-align:left;font-size:13px;line-height:1.2}

@media (max-width:1100px){
  .scholars-grid--schools{grid-template-columns:repeat(3, minmax(0, 1fr))}
}
@media (max-width:820px){
  .scholars-school-head{flex-direction:column;align-items:stretch}
  .scholars-school-search{flex:0 0 auto;width:100%}
  .scholars-grid--schools{grid-template-columns:repeat(2, minmax(0, 1fr))}
}
@media (max-width:520px){
  .scholars-grid--schools{grid-template-columns:1fr;gap:12px}
  .scholars-school-list{max-height:520px}
}

.scholars-grades{display:flex;flex-wrap:wrap;gap:10px}
.scholars-grade{padding:10px 14px;border-radius:999px;border:1px solid var(--line);text-decoration:none;color:inherit;background:#fff}
.scholars-grade.is-active{background:#111;color:#fff;border-color:#111}

/* Sections (English / French) */
.scholars-sections{display:flex;flex-wrap:wrap;gap:10px}
.scholars-section{padding:10px 14px;border-radius:999px;border:1px solid var(--line);text-decoration:none;color:inherit;background:#fff}
.scholars-section.is-active{background:#111;color:#fff;border-color:#111}

.scholars-books{display:flex;flex-direction:column;gap:10px}
.scholars-book{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line);border-radius:16px;padding:12px;background:#fff}
.scholars-book.is-loading{opacity:.6;pointer-events:none}
.scholars-book-left{display:flex;align-items:center;gap:12px;min-width:0}
.scholars-book-cover{width:54px;height:54px;border-radius:12px;background:#f6f6f6;overflow:hidden;flex:0 0 auto}
.scholars-book-cover img{width:100%;height:100%;object-fit:cover}

/* Scholars Book list thumbnails open the product in a new tab */
.page-template-page-scholars-book .scholars-book-cover img{cursor:pointer}
.scholars-book-meta{min-width:0}

/* Ensure meta content stacks vertically (prevents share controls drifting to the far right) */
.scholars-book-meta{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
}
.scholars-book-name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46vw}
.scholars-book-isbn{display:block;margin-top:10px;color:#444;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46vw}
.scholars-book-isbn .label{font-weight:600;margin-right:4px}

/* Share actions under ISBN (copy link + WhatsApp) */
.scholars-book-share{display:flex;gap:12px;align-items:center;margin-top:10px;font-size:11px;line-height:1.2;flex-wrap:wrap;justify-content:flex-start}

/* Page-level share (under the list title) */
.sb-books-left .sb-page-share{margin-top:6px;font-size:12px}

/* Premium CTA: "Prepare My School List" next to Share */
.sb-page-share .sb-prepare-link{
  all:unset;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-weight:700;
  font-size:13px; /* inherits sb-page-share 12px base, bump slightly */
  line-height:1;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #ff0000;
  background:#ff0000;
  color:#fff;
  text-decoration:none;
  transition:opacity .2s ease, background-color .2s ease;
}
.sb-page-share .sb-prepare-link:hover{opacity:.92;background:#cc0000;border-color:#cc0000}
.sb-page-share .sb-prepare-link:focus-visible{outline:2px solid rgba(255,0,0,.35);outline-offset:2px}

/* Per-book CTA intentionally hidden.
   "Prepare My School List" must appear ONLY once in the header (under the list title). */
.scholars-book-share .sb-prepare-school-list{display:none !important;}

/* Hard reset to avoid theme button styles bleeding into these tiny actions */
.scholars-book-share .aq-copy-link,
.scholars-book-share .aq-share-whatsapp{
  all:unset;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  line-height:1.2;
  cursor:pointer;
  text-decoration:none;
}

.scholars-book-share .aq-copy-link{color:#0073aa}
.scholars-book-share .aq-share-whatsapp{color:#25D366}
.scholars-book-share .aq-link-icon{
  width:14px;
  height:14px;
  fill:currentColor;
  flex-shrink:0;
  display:inline-block;
}
.scholars-book-share .aq-wa-icon{
  width:14px;
  height:14px;
  fill:#25D366;
  flex-shrink:0;
  display:inline-block;
}
.scholars-book-share button:hover,.scholars-book-share a:hover{text-decoration:underline}
.scholars-book-share .aq-copy-link.is-copied{color:#2e7d32}
.scholars-book-price{margin-top:2px;font-weight:700}
.scholars-book-lam-note{margin-top:3px;color:#666;font-size:13px}

.scholars-book-actions{display:flex;gap:14px;flex:0 0 auto}

/* Accordion shell (desktop behaves like before; mobile collapses controls) */
.scholars-book-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:0;
  width:100%;
  background:transparent;
  border:0;
  padding:0;
  text-align:left;
  color:inherit;
}
.scholars-book-head{cursor:default}
.scholars-book-chev{display:none;margin-left:auto;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;transition:transform .2s ease;background:#fff}
/* Respect the HTML `hidden` attribute (accordion closed state) */
.scholars-book-body{display:block}
.scholars-book-body[hidden]{display:none !important;}

/* Mobile accordion */
@media (max-width:700px){
  .scholars-book{flex-direction:column;align-items:stretch;padding:0}
  .scholars-book-head{cursor:pointer;padding:12px}
  .scholars-book-chev{display:flex}
  .scholars-book.is-open .scholars-book-chev{transform:rotate(180deg)}
  .scholars-book-body{padding:12px;border-top:1px solid var(--line)}
  .scholars-book-actions{width:100%;justify-content:flex-start}
}

/* Desktop/tablet should always show controls even if HTML has hidden */
@media (min-width:701px){
  .scholars-book-body[hidden]{display:block !important;}
}


/* Quantity stepper (shown only after a mode is selected) */
.aq-qty{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid var(--line);border-radius:12px;background:#fff}
.aq-qty-btn{width:32px;height:32px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:800;line-height:1;cursor:pointer}
.aq-qty-btn:active{transform:scale(.98)}
.aq-qty-input{width:50px;height:32px;border:1px solid var(--line);border-radius:10px;text-align:center;font-weight:700;outline:none}
.aq-qty-input::-webkit-outer-spin-button,.aq-qty-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.aq-qty-input{appearance:textfield}

/* Lamination quantity (0..qty) */
.aq-lam-qty{display:flex;align-items:center;gap:10px;padding:6px 8px;border:1px solid var(--line);border-radius:12px;background:#fff}
.aq-lam-qty-label{font-size:13px;font-weight:700;color:#444;white-space:nowrap}
.aq-lam-stepper{display:flex;align-items:center;gap:8px}
.aq-lam-qty-btn{width:32px;height:32px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:800;line-height:1;cursor:pointer}
.aq-lam-qty-btn:active{transform:scale(.98)}
.aq-lam-qty-input{width:50px;height:32px;border:1px solid var(--line);border-radius:10px;text-align:center;font-weight:700;outline:none}
.aq-lam-qty-input::-webkit-outer-spin-button,.aq-lam-qty-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.aq-lam-qty-input{appearance:textfield}
.scholars-check{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);cursor:pointer;user-select:none}
.scholars-check input{width:18px;height:18px}
.scholars-check.is-disabled{opacity:.45;cursor:not-allowed}

/* Small clear (remove) button next to mode radios */
.aq-mode-clear{
  width:36px;height:36px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  font-size:18px;
  line-height:1;
  opacity:.7;
}
.aq-mode-clear:hover{opacity:1;}

.scholars-empty{padding:10px 12px;border:1px dashed var(--line);border-radius:14px;background:#fff}

@media (max-width:520px){
  .scholars-book-actions{
    flex-wrap:wrap;
    gap:10px;
    justify-content:flex-start;
  }

  .scholars-check{
    flex:1 1 calc(50% - 10px);
    padding:8px 10px;
    border-radius:12px;
    font-size:13px;
    line-height:1.2;
    justify-content:center;
    text-align:center;
  }
  .scholars-check input{width:16px;height:16px}

  /* Make the lamination chip full width (labels are long in AR/FR) */
  .scholars-check.is-lamination{flex-basis:100%;}

  .aq-qty{
    flex:1 1 100%;
    order:20;
    justify-content:center;
    padding:8px 10px;
    border-radius:14px;
  }
  .aq-qty-btn{width:34px;height:34px;border-radius:12px}
  .aq-qty-input{width:54px;height:34px;border-radius:12px}

  .aq-lam-qty{
    flex:1 1 100%;
    order:19;
    justify-content:space-between;
    padding:8px 10px;
    border-radius:14px;
  }
  .aq-lam-stepper{justify-content:center}
  .aq-lam-qty-btn{width:34px;height:34px;border-radius:12px}
  .aq-lam-qty-input{width:54px;height:34px;border-radius:12px}

  .aq-mode-clear{
    order:30;
    flex:0 0 40px;
    height:40px;
    width:40px;
    border-radius:14px;
    margin-left:auto;
  }
}


/* Reserve notice modal */

.aq-modal-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.35);
  display:flex; align-items:center; justify-content:center;
  z-index:9999;
  padding:16px;
}
.aq-modal{
  width:min(720px, 95vw);
  background:#fff;
  border-radius:16px;
  box-shadow:0 20px 80px rgba(0,0,0,.18);
  overflow:hidden;
}
.aq-modal-head{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:16px 18px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.aq-modal-title{font-weight:800; font-size:16px; line-height:1.25;; width:100%; text-align:center; padding-right:28px;}
.aq-modal-title small{font-weight:600; opacity:.75;}
.aq-modal-close{
  position:absolute;
  right:12px;
  top:12px;
  background:transparent;
  border:0;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  padding:0 6px;
  opacity:.65;
}
.aq-modal-body{padding:14px 18px 18px; max-height:70vh; overflow:auto;}
.aq-modal-lang p{margin:10px 0; font-size:14px; line-height:1.45; color:#1b1b1b;}
.aq-modal-check{
  margin-top:12px;
  padding:10px 12px;
  background:#f7f7f9;
  border:1px solid rgba(0,0,0,.06);
  border-radius:12px;
  font-size:13px;
}
.aq-modal-check label{display:flex; gap:10px; align-items:flex-start;}
.aq-modal-check input{margin-top:3px;}
.aq-modal-actions{
  margin-top:14px;
  display:flex; justify-content:flex-end;
}
.aq-modal-ok{
  background:#ff5a2a; color:#fff;
  border:0; border-radius:12px;
  padding:10px 18px;
  font-weight:800;
  cursor:pointer;
}
.aq-modal-ok[disabled]{
  opacity:.55;
  cursor:not-allowed;
}
.aq-modal-ok:hover{filter:brightness(.97);}


/* Search dropdown: keep PRODUCT rows top-aligned (title + price line),
   but make CATEGORY rows visually balanced without forcing vertical centering. */
.aq-search-item.category{
  display:flex;
  align-items:flex-start;
  padding-top:12px;
  padding-bottom:12px;
}

.aq-search-item.category .aq-search-thumb{
  margin-top:2px;
}

.aq-search-item.category .aq-search-title{
  margin-top:6px; /* nudges down so it sits closer to product title baseline */
  line-height:1.35;
}

/* Ensure we do NOT affect product items layout */
.aq-search-item.product{
  align-items:flex-start;
}



/* Prevent flicker on section/grade navigation (keep page from flashing at top) */
html.aq-scholars-preload body{opacity:0}


/* FREE Lamination badge (marketing: impossible to miss) */
.aq-free-lam-badge{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  letter-spacing:.2px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.8);
  color:var(--accent);
  margin-left:8px;
  white-space:nowrap;
}
.scholars-book-lam-note.is-free{
  font-weight:800;
  color:var(--accent);
}

/* --- Book List Preview (Original vs Price PDF) --- */
.sb-view-page{padding:18px 0;}
.sb-view-meta{margin-bottom:10px;}
.sb-view-title{margin:0 0 8px;font-size:22px;line-height:1.2;font-weight:800;color:#111;}

/* View Mode: School / Grade / Section (label + value on same line) */
.sb-view-page .booklist-meta{display:flex;flex-direction:column;gap:6px;}
.sb-view-page .booklist-meta .meta-row{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:8px;row-gap:2px;font-size:14px;color:#222;}
.sb-view-page .booklist-meta .meta-label{font-weight:800;color:#111;min-width:72px;}
.sb-view-page .booklist-meta .meta-value{font-weight:600;color:#333;}
@media (max-width: 480px){
  .sb-view-page .booklist-meta .meta-label{min-width:64px;}
}

.sb-pdf-viewer{display:grid;grid-template-columns:minmax(0,660px) minmax(0,660px);justify-content:center;gap:18px;margin-top:14px;padding:14px;border:1px solid rgba(0,0,0,.08);border-radius:16px;background:#fff;}
.sb-pdf-col{min-width:0;}
.sb-pdf-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px;}
.sb-pdf-title{margin:0;font-size:16px;font-weight:700;color:#111;}
.sb-pdf-dl{font-size:13px;font-weight:600;text-decoration:none;padding:6px 10px;border:1px solid rgba(0,0,0,.12);border-radius:10px;color:#111;background:#fafafa;}
.sb-pdf-dl:hover{background:#f2f2f2;}
.sb-pdf-frame{
  width:100%;
  max-width:660px;
  height:860px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  background:#fff;
  overflow:auto;               /* allows panning when user zooms inside the browser PDF viewer */
  -webkit-overflow-scrolling:touch;
  cursor:grab;
  scrollbar-width:none; /* Firefox: keep it clean */
}

.sb-pdf-frame:active{cursor:grabbing;}

/* WebKit: hide scrollbars but keep scroll/pan ability */
.sb-pdf-frame::-webkit-scrollbar{width:0;height:0;}
.sb-pdf-frame:active{cursor:grabbing;}

/* Hide scrollbars while keeping scroll/pan functionality */
.sb-pdf-frame{scrollbar-width:none;}
.sb-pdf-frame::-webkit-scrollbar{width:0;height:0;}
.sb-pdf-missing{padding:16px;border:1px dashed rgba(0,0,0,.2);border-radius:14px;color:#444;background:#fafafa;}
@media (max-width: 900px){
  .sb-pdf-viewer{grid-template-columns:1fr;}
  .sb-pdf-frame{height:860px;}
}


/* Image preview (used when PDF has a matching JPG/PNG/WebP) */
.sb-img-viewer{width:660px;height:860px;max-width:660px;overflow:hidden;border:1px solid #eee;border-radius:12px;background:#fff;touch-action:pan-x pan-y;}
.sb-img-viewer img{width:100%;height:auto;display:block;user-select:none;-webkit-user-drag:none;}
@media (max-width: 1400px){.sb-img-viewer{width:100%;max-width:660px;}}

/* View Mode: separate Original / Price viewers with proper spacing */
.sb-view-page .sb-pdf-viewer{
  display:flex;
  gap:40px;
  align-items:flex-start;
  justify-content:center;
  flex-wrap:wrap;
}
.sb-view-page .sb-pdf-col{
  flex:1 1 660px;
  max-width:660px;
}
.sb-view-page .sb-pdf-head{ margin-bottom:12px; }



/* --- Aquatre: Share controls under ISBN (override for theme button styles) --- */
.scholars-book-meta .scholars-book-share{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:12px !important;
  align-items:center !important;
  justify-content:flex-start !important;
  text-align:left !important;
  margin-top:10px !important;
  font-size:11px !important;
  line-height:1.2 !important;
}

.scholars-book-meta .scholars-book-share .aq-copy-link,
.scholars-book-meta .scholars-book-share .aq-share-whatsapp{
  all: unset !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  margin:0 !important;
  font-size:11px !important;
  line-height:1.2 !important;
  box-shadow:none !important;
  min-height:auto !important;
  height:auto !important;
  border-radius:0 !important;
  text-decoration:none !important;
  float:none !important;
}

.scholars-book-meta .scholars-book-share .aq-copy-link{color:#0073aa !important; cursor:pointer !important;}
/* WhatsApp share should feel clickable (hand cursor) */
.scholars-book-meta .scholars-book-share .aq-share-whatsapp,
.scholars-book-meta .scholars-book-share .aq-share-whatsapp *,
.scholars-book-meta .scholars-book-share .aq-wa-icon{
  cursor:pointer !important;
}

.scholars-book-meta .scholars-book-share .aq-share-whatsapp{color:#25D366 !important;}

.scholars-book-meta .scholars-book-share .aq-copy-link:hover,
.scholars-book-meta .scholars-book-share .aq-share-whatsapp:hover{
  text-decoration:underline !important;
}

/* (Icon sizes are defined globally above for both page-level and per-book share controls) */

/* ------------------------------------------------------
   Cursor UX: Scholars Book page
   Default cursor everywhere, pointer ONLY on real actions
---------------------------------------------------------*/

/* 1) Reset: never show hand cursor on non-clickable UI */
.page-template-page-scholars-book,
.page-template-page-scholars-book *{
  cursor: default !important;
}

/* 2) Enable pointer only on interactive controls/links */
.page-template-page-scholars-book a,
.page-template-page-scholars-book a *,
.page-template-page-scholars-book button,
.page-template-page-scholars-book button *,
.page-template-page-scholars-book input[type="button"],
.page-template-page-scholars-book input[type="submit"],
.page-template-page-scholars-book input[type="radio"],
.page-template-page-scholars-book input[type="checkbox"],
.page-template-page-scholars-book label,
.page-template-page-scholars-book label *,
.page-template-page-scholars-book [role="button"],
.page-template-page-scholars-book .sb-books-download,
.page-template-page-scholars-book .aq-search-clear,
.page-template-page-scholars-book .aq-suggest-item,
.page-template-page-scholars-book .scholars-check,
.page-template-page-scholars-book .aq-mode-clear,
.page-template-page-scholars-book .aq-qty-btn,
.page-template-page-scholars-book .aq-lam-qty-btn,
.page-template-page-scholars-book .aq-copy-link,
.page-template-page-scholars-book .aq-share-whatsapp,
.page-template-page-scholars-book .aq-share-whatsapp *{
  cursor: pointer !important;
}

/* 2.1) The book header is a <button> for mobile accordion, but on desktop it
   visually behaves like plain content. Keep arrow cursor there (no fake links). */
.page-template-page-scholars-book .scholars-book-head,
.page-template-page-scholars-book .scholars-book-head *{
  cursor: default !important;
}

/* Allow the thumbnail itself to feel clickable (opens product in new tab) */
.page-template-page-scholars-book .scholars-book-cover img{
  cursor: pointer !important;
}

/* 3) Preserve the document viewer drag cursor (don’t force arrow) */
.page-template-page-scholars-book .sb-pdf-frame{
  cursor: grab !important;
}
.page-template-page-scholars-book .sb-pdf-frame:active{
  cursor: grabbing !important;
}
