/* ===== CKIT Brand Brochure Flipbook Viewer ===== */
.flipbook {
  background: #f3f5f2;
  border: 1px solid #dfe7df;
  border-radius: 10px;
  overflow: hidden;
  margin: 8px 0 4px;
}
.fb-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #0e9f47;
  color: #fff;
  font-size: 13px;
}
.fb-toolbar button,
.fb-toolbar .fb-go {
  background: #fff;
  color: #0e9f47;
  border: none;
  border-radius: 6px;
  height: 30px;
  min-width: 30px;
  padding: 0 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  line-height: 30px;
  transition: background .15s, transform .1s;
}
.fb-toolbar button:hover,
.fb-toolbar .fb-go:hover { background: #e8fbf0; }
.fb-toolbar button:active { transform: scale(.94); }
.fb-toolbar .fb-prev,
.fb-toolbar .fb-next { font-size: 20px; min-width: 34px; }
.fb-toolbar .fb-sep { opacity: .7; }
.fb-toolbar .fb-page,
.fb-toolbar .fb-total { font-weight: 700; min-width: 22px; text-align: center; }
.fb-toolbar .fb-total { opacity: .85; }
.fb-toolbar .fb-zoom { min-width: 44px; text-align: center; }
.fb-toolbar .fb-spacer { flex: 1 1 auto; }
.fb-toolbar .fb-jump {
  width: 58px; height: 30px; border: none; border-radius: 6px;
  text-align: center; font-size: 13px; color: #1a1a1a; outline: none;
}
.fb-toolbar .fb-dl {
  background: #063; color: #fff; text-decoration: none;
  border-radius: 6px; height: 30px; line-height: 30px; padding: 0 12px; font-weight: 700;
}
.fb-toolbar .fb-dl:hover { background: #085a2e; }
.fb-stage {
  position: relative;
  background: #e7ebe7;
  min-height: 420px;
  max-height: 78vh;
  overflow: auto;
  display: flex;
  justify-content: center;
  padding: 18px 10px;
}
.fb-canvas {
  box-shadow: 0 6px 22px rgba(0,0,0,.18);
  background: #fff;
  transition: opacity .18s ease, transform .18s ease;
  transform-origin: center;
  max-width: 100%;
}
.fb-canvas.fb-anim { opacity: 0; transform: translateX(18px); }
.fb-loading, .fb-error {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #5a6b5f; font-size: 14px; text-align: center; padding: 20px;
}
.fb-error { color: #b3261e; }
.fb-hint {
  padding: 8px 12px; font-size: 12px; color: #6b7a6f; background: #f3f5f2;
  border-top: 1px solid #dfe7df;
}
.fb-thumbs {
  display: flex; gap: 6px; overflow-x: auto; padding: 10px; background: #eef3ee;
  border-top: 1px solid #dfe7df;
}
.fb-thumbs canvas {
  height: 78px; width: auto; border: 2px solid transparent; border-radius: 4px;
  cursor: pointer; background:#fff; opacity:.8; flex: 0 0 auto;
}
.fb-thumbs canvas.on { border-color: #0e9f47; opacity: 1; }
@media (max-width: 600px) {
  .fb-toolbar { font-size: 12px; gap: 6px; padding: 8px; }
  .fb-toolbar button, .fb-toolbar .fb-go { height: 28px; line-height: 28px; padding: 0 8px; }
  .fb-toolbar .fb-jump { width: 46px; }
  .fb-stage { max-height: 68vh; padding: 10px 4px; }
}
