/* FlipBook overlay (theme-level) */
.flipbook-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none; /* toggled by .is-open */
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
}

.flipbook-overlay.is-open {
  display: flex;
}

.flipbook-overlay__dialog {
  position: relative;
  width: min(1200px, 100vw - 32px);
  height: min(85vh, 900px);
  background: #0f1115;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.flipbook-overlay__header {
  position: absolute;
  inset: 0 0 auto 0;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  pointer-events: none; /* only buttons inside will enable pointer events */
  z-index: 2;
}

.flipbook-overlay__title {
  pointer-events: none;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.flipbook-overlay__close {
  margin-left: auto;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
}

.flipbook-overlay__close:hover {
  background: rgba(0, 0, 0, 0.55);
}

.flipbook-overlay__close:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.flipbook-overlay__body {
  position: absolute;
  inset: 0;
  padding-top: 48px; /* space for header gradient */
}

.flipbook-overlay__container {
  width: 100%;
  height: 100%;
}

/* Button icon next to download */
.flipbook-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 8px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  text-decoration: none;
  margin-top: 4px;
  background: #002564;
  order: 2;
  color: #fff;
}

.flipbook-open:hover {
  background-color: #009fda;
}

.flipbook-open:focus {
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 2px;
}

/* Small icon inside */
.flipbook-open__icon {
  font-size: 20px;
  line-height: 1;
}

/* On small screens maximize height a bit */
@media (max-width: 768px) {
  .flipbook-overlay {
    padding: 10px;
  }
  .flipbook-overlay__dialog {
    width: calc(100vw - 20px);
    height: 90vh;
    border-radius: 12px;
  }
  .flipbook-overlay__title {
    max-width: 60%;
  }
}/*# sourceMappingURL=flipbook-overlay.css.map */