.ht-flipbook {
  --ht-flip-bg: #4a4a4a;
  --ht-flip-page: #fff;
  --ht-flip-bar: #2c2c2c;
  --ht-flip-fg: #f4f4f4;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ht-flipbook-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--ht-flip-bar);
  color: var(--ht-flip-fg);
  border-radius: 0.35rem;
}

.ht-flipbook-btn {
  appearance: none;
  border: 1px solid var(--ht-flip-btn-border, rgba(255, 255, 255, 0.25));
  background: var(--ht-flip-btn-bg, transparent);
  color: inherit;
  padding: 0.35rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
}

.ht-flipbook-btn:hover,
.ht-flipbook-btn:focus-visible {
  background: var(--ht-flip-btn-hover, rgba(255, 255, 255, 0.12));
  color: inherit;
}

.ht-flipbook-status {
  min-width: 5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ht-flipbook-notice {
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: #fff3cd;
  color: #664d03;
  border-radius: 0.25rem;
}

.ht-flipbook-notice:not(.d-none) {
  display: block;
}

.ht-flipbook-stage {
  background: var(--ht-flip-bg);
  padding: 1rem 0.5rem 1.5rem;
  border-radius: 0.35rem;
  display: flex;
  justify-content: center;
  min-height: 20rem;
  overflow: hidden;
  touch-action: none;
}

.ht-flipbook-zoom {
  display: flex;
  justify-content: center;
  width: 100%;
  transform-origin: 0 0;
  will-change: transform;
}

.ht-flipbook-stage .stf__parent {
  touch-action: none;
}

.ht-flipbook--zoomed .stf__parent {
  pointer-events: none;
}

.ht-flipbook-book {
  width: min(100%, 960px);
  position: relative;
}

.ht-flipbook-book .stf__wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.ht-flipbook--single .ht-flipbook-book {
  width: min(100%, 480px);
}

.ht-flipbook-page {
  background: var(--ht-flip-page);
  overflow: hidden;
}

.ht-flipbook-page canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ht-flipbook-description,
.ht-flipbook-category-desc {
  margin-top: 0.5rem;
}

.ht-flipbook-booklist-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ht-flipbook-app:fullscreen,
.ht-flipbook:fullscreen {
  background: var(--ht-flip-bg);
  padding: 1rem;
  overflow: auto;
}

.ht-flipbook:fullscreen .ht-flipbook-stage {
  flex: 1;
}
