/* V35.5 — non-layout overlay consistent with the site's existing captions and gold accents. */
.zs-spread-loader {
  position:absolute;
  z-index:22;
  box-sizing:border-box;
  width:clamp(170px, 29%, 258px);
  max-width:calc(100% - 22px);
  left:50%;bottom:clamp(12px,2.6vh,24px);
  transform:translateX(-50%);
  padding:11px 13px 9px;
  background:rgba(5,25,19,.92);
  box-shadow:0 3px 16px rgba(2,13,9,.26);
  color:#ADB9B0;
  text-align:center;
  pointer-events:none;
  font:500 10.5px/1.4 Inter,ui-sans-serif,system-ui,sans-serif;
  letter-spacing:.02em;
  -webkit-font-smoothing:antialiased;
}
.zs-spread-loader[hidden], .zs-spread-loader [hidden] {display:none!important;}
.zs-spread-loader__track {
  height:2px;width:100%;background:rgba(126,144,134,.42);
  position:relative;overflow:hidden;
}
.zs-spread-loader__fill {
  position:absolute;inset:0 auto 0 0;
  width:0%;background:#B49743;
  transition:width .26s cubic-bezier(.18,.74,.22,1);
}
.zs-spread-loader.is-priming .zs-spread-loader__fill{transition:none;}
.zs-spread-loader.is-finishing .zs-spread-loader__fill {transition-duration:.2s;}
.zs-spread-loader__caption {display:block;margin-top:7px;color:#ADB9B0;white-space:normal;}
.zs-spread-loader.is-error .zs-spread-loader__caption {color:#F2EFE6;}
.zs-spread-loader__retry {
  pointer-events:auto;display:inline-block;
  border:0;border-bottom:1px solid rgba(201,173,96,.65);
  background:transparent;color:#C9AD60;
  padding:2px 0;margin:5px 0 0;
  font:600 10.5px/1.35 Inter,ui-sans-serif,system-ui,sans-serif;
  letter-spacing:.025em;cursor:pointer;
}
.zs-spread-loader__retry:hover {color:#F2EFE6;border-bottom-color:#F2EFE6;}
.zs-spread-loader__retry:focus-visible {outline:2px solid #C9AD60;outline-offset:3px;}
/* Keep a single centered visual element even in the narrow landscape stage. */
.presentation-stage > .zs-spread-loader {width:clamp(150px,32%,258px);}
.book-viewer.is-loading .book-object {opacity:1;}
.book-stage > .zs-spread-loader {bottom:clamp(12px,2.6vh,24px);}
@media(max-width:900px) and (orientation:landscape) {
  .presentation-stage > .zs-spread-loader {
    width:clamp(125px,65%,200px);
    max-width:calc(100% - 12px);
    bottom:9px;padding:7px 9px 6px;
    font-size:9px;line-height:1.3;
  }
  .presentation-stage .zs-spread-loader__caption{margin-top:5px;}
}
@media(max-width:900px) and (orientation:portrait) {
  /* The viewer has 46px navigation rows above and below the image. */
  .book-stage > .zs-spread-loader {
    bottom:calc(46px + 11px);
    width:clamp(170px,60%,244px);
    padding:9px 11px 8px;
    max-width:calc(100% - 26px);
  }
}
@media(max-height:440px) and (orientation:landscape) {
  .book-stage > .zs-spread-loader {bottom:9px;padding:7px 10px 6px;}
  .book-stage .zs-spread-loader__caption {margin-top:5px;}
}
@media(prefers-reduced-motion:reduce) {
  .zs-spread-loader__fill {transition:none!important;}
}
