/* ==========================================================================
   NG Kütahya Seramik — Interactive Catalog Flipbook Styles
   ========================================================================== */

/* Catalog Card Cover Trigger Enhancement */
.catalog-card__cover[data-flipbook-trigger] {
  position: relative;
  cursor: pointer;
}

.catalog-card__cover[data-flipbook-trigger]::after {
  content: attr(data-flipbook-hint);
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(34, 33, 31, 0.86);
  color: #fff;
  font: 500 11px/1.2 "Noto Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.catalog-card:hover .catalog-card__cover[data-flipbook-trigger]::after,
.catalog-card__cover[data-flipbook-trigger]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.catalog-card__cover[data-flipbook-trigger]:focus-visible {
  outline: 2px solid var(--docs-ink, #22211f);
  outline-offset: -2px;
}

/* Lock body scroll when flipbook modal is open */
body.ng-flipbook-open {
  overflow: hidden !important;
}

/* Suppress background website navbar, mobile drawer and filter rails while flipbook is open */
body.ng-flipbook-open .header,
body.ng-flipbook-open #header,
body.ng-flipbook-open .shared-mobile-menu,
body.ng-flipbook-open .shared-mobile-menu__backdrop,
body.ng-flipbook-open #filterToggle,
body.ng-flipbook-open #filterDrawer,
body.ng-flipbook-open #filterBackdrop {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Modal Root Overlay - Must sit above the site navbar (z-index: 99999) and filter rails (z-index: 100001+) */
.ng-flipbook-modal {
  position: fixed;
  inset: 0;
  z-index: 200000 !important;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #efefef;
  color: #22211f;
  font-family: "Noto Sans", sans-serif;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.ng-flipbook-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.ng-flipbook-modal[hidden] {
  display: none !important;
}

/* ==========================================================================
   Top Header Bar (Matches Reference Video)
   ========================================================================== */
.ng-flipbook__header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
  min-height: 60px;
  padding: 0 20px;
  background: #ffffff;
  border-bottom: 1px solid #e2e0dc;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ng-flipbook__brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.ng-flipbook__logo {
  display: block;
  height: 28px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.ng-flipbook__divider {
  width: 1px;
  height: 30px;
  background: #dcd8d0;
  flex-shrink: 0;
}

.ng-flipbook__titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.ng-flipbook__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: #1f1e1c;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ng-flipbook__subtitle {
  margin: 2px 0 0;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.2;
  color: #75716b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right Action Toolbar */
.ng-flipbook__toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ng-flipbook__tool-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #3a3835;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.ng-flipbook__tool-btn:hover:not(:disabled),
.ng-flipbook__tool-btn:focus-visible {
  background: #f4f2ee;
  color: #111;
  outline: none;
}

.ng-flipbook__tool-btn:focus-visible {
  border-color: #22211f;
}

.ng-flipbook__tool-btn.is-active {
  background: #22211f;
  color: #ffffff;
}

.ng-flipbook__tool-btn:disabled {
  opacity: 0.36;
  cursor: default;
}

.ng-flipbook__tool-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ng-flipbook__tool-btn--close {
  margin-inline-start: 4px;
}

.ng-flipbook__tool-btn--close:hover:not(:disabled) {
  background: #fbe9e7;
  color: #b71c1c;
}

/* ==========================================================================
   Prominent Top-Right Close Button ('✕ Kapat' / Localized)
   ========================================================================== */
.ng-flipbook__close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 11px;
  margin-inline-start: 10px;
  background: #22211f;
  color: #ffffff;
  border: 1px solid rgba(34, 33, 31, 0.15);
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
  transition: background-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease, color 0.16s ease;
  flex-shrink: 0;
}

.ng-flipbook__close-btn:hover,
.ng-flipbook__close-btn:focus-visible {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
  outline: none;
}

.ng-flipbook__close-btn:focus-visible {
  outline: 2px solid #22211f;
  outline-offset: 2px;
}

.ng-flipbook__close-btn:active {
  transform: scale(0.97);
}

.ng-flipbook__close-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.ng-flipbook__close-text {
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
}

/* ==========================================================================
   Center Flipbook Stage (Always LTR geometric canvas, independent of UI RTL)
   ========================================================================== */
.ng-flipbook__stage {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 20px 68px;
  background: #efefef;
  overflow: hidden;
  direction: ltr;
}

.ng-flipbook__stage.is-zoomed {
  cursor: grab;
}

.ng-flipbook__stage.is-zoomed.is-panning {
  cursor: grabbing;
}

.ng-flipbook__viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.ng-flipbook__stage.is-panning .ng-flipbook__viewport {
  transition: none;
}

/* Outer Book Wrapper & Realistic Cover Board (Matches 00:00 in Video) */
.ng-flipbook__book-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18), 0 3px 10px rgba(0, 0, 0, 0.08);
  background: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* In landscape mode on cover (Page 1 on right), left half shows dark anthracite inner cover board */
.ng-flipbook__book-shell.is-cover-left {
  background: linear-gradient(90deg, #3b3e42 0%, #35383c 49.5%, #26282b 50%, transparent 50.1%);
}

/* In landscape mode on back cover (last page on left), right half shows dark anthracite inner cover board */
.ng-flipbook__book-shell.is-cover-right {
  background: linear-gradient(90deg, transparent 49.9%, #26282b 50%, #35383c 50.5%, #3b3e42 100%);
}

/* Book Spine Center Shadow Overlay */
.ng-flipbook__spine-shadow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 12;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.04) 28%,
    rgba(0, 0, 0, 0.16) 48%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(0, 0, 0, 0.14) 52%,
    rgba(0, 0, 0, 0.03) 72%,
    rgba(0, 0, 0, 0) 100%
  );
  transition: opacity 0.2s ease;
}

.ng-flipbook__book-shell.is-single-mode .ng-flipbook__spine-shadow {
  display: none;
}

/* StPageFlip Container */
.ng-flipbook__book {
  position: relative;
  z-index: 5;
}

/* Individual Page Item */
.ng-flipbook__page {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

.ng-flipbook__page--left {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.ng-flipbook__page--right {
  border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.ng-flipbook__page-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.ng-flipbook__page-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #8c877f;
  font-size: 12px;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.ng-flipbook__page.is-rendered .ng-flipbook__page-loader {
  opacity: 0;
  pointer-events: none;
}

.ng-flipbook__spinner {
  width: 26px;
  height: 26px;
  border: 2.5px solid #e6e2da;
  border-top-color: #9c7657;
  border-radius: 50%;
  animation: ng-flipbook-spin 0.75s linear infinite;
}

@keyframes ng-flipbook-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Subtle Page Corner Peel Cue */
.ng-flipbook__page::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, width 0.25s ease, height 0.25s ease;
  z-index: 4;
}

.ng-flipbook__page--right::after {
  right: 0;
  background: linear-gradient(315deg, rgba(0, 0, 0, 0.12) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0.04) 54%, transparent 60%);
}

.ng-flipbook__page--left::after {
  left: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.12) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0.04) 54%, transparent 60%);
}

.ng-flipbook__book-shell:hover .ng-flipbook__page::after {
  opacity: 0.85;
}

/* Circular Left / Right Stage Navigation Arrows (Matches Video) */
.ng-flipbook__stage-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #3a3835;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.ng-flipbook__stage-nav:hover:not(:disabled),
.ng-flipbook__stage-nav:focus-visible {
  background: #ffffff;
  color: #111111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.04);
  outline: none;
}

.ng-flipbook__stage-nav:disabled {
  opacity: 0.3;
  cursor: default;
  box-shadow: none;
}

.ng-flipbook__stage-nav--prev {
  left: 18px;
}

.ng-flipbook__stage-nav--next {
  right: 18px;
}

.ng-flipbook__stage-nav svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Initial Loading / Error Overlay inside Stage */
.ng-flipbook__status-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: rgba(239, 239, 239, 0.92);
  text-align: center;
  backdrop-filter: blur(3px);
}

.ng-flipbook__status-overlay[hidden] {
  display: none !important;
}

.ng-flipbook__status-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #3a3835;
}

.ng-flipbook__retry-btn {
  padding: 9px 18px;
  border: 1px solid #22211f;
  background: #22211f;
  color: #ffffff;
  font: 500 12px "Noto Sans", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ==========================================================================
   Bottom Bar (Slider, First/Prev/Next/Last & Page Indicator — Matches Video)
   ========================================================================== */
.ng-flipbook__footer {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  min-height: 52px;
  padding: 0 20px;
  background: #ffffff;
  border-top: 1px solid #e2e0dc;
  direction: ltr;
}

.ng-flipbook__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #4a4743;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ng-flipbook__nav-btn:hover:not(:disabled),
.ng-flipbook__nav-btn:focus-visible {
  background: #f4f2ee;
  color: #111111;
  outline: none;
}

.ng-flipbook__nav-btn:disabled {
  opacity: 0.32;
  cursor: default;
}

.ng-flipbook__nav-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ng-flipbook__slider-wrap {
  display: flex;
  align-items: center;
  width: min(360px, 38vw);
}

.ng-flipbook__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #dcd8d0;
  outline: none;
  cursor: pointer;
}

.ng-flipbook__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5a5753;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.ng-flipbook__slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #22211f;
}

.ng-flipbook__slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5a5753;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.ng-flipbook__page-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #4a4743;
  white-space: nowrap;
}

.ng-flipbook__page-input {
  width: 52px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #d4d0c8;
  border-radius: 4px;
  background: #f9f8f6;
  color: #22211f;
  font: 600 12px "Noto Sans", sans-serif;
  text-align: center;
}

.ng-flipbook__page-input:focus {
  border-color: #22211f;
  background: #ffffff;
  outline: none;
}

.ng-flipbook__page-total {
  color: #68645e;
  font-weight: 400;
}

/* ==========================================================================
   Slide-Over Drawers: Thumbnails Grid & In-PDF Search
   ========================================================================== */
.ng-flipbook__drawer {
  position: absolute;
  top: 60px;
  bottom: 52px;
  right: 0;
  z-index: 28;
  display: flex;
  flex-direction: column;
  width: min(360px, 92vw);
  background: #ffffff;
  border-inline-start: 1px solid #e2e0dc;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

[dir="rtl"] .ng-flipbook__drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.08);
}

.ng-flipbook__drawer.is-open {
  transform: translateX(0);
}

.ng-flipbook__drawer[hidden] {
  display: none !important;
}

.ng-flipbook__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eae7e1;
}

.ng-flipbook__drawer-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #22211f;
}

.ng-flipbook__drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #555;
  cursor: pointer;
}

.ng-flipbook__drawer-close:hover {
  background: #f2efe9;
  color: #111;
}

/* Thumbnails Grid */
.ng-flipbook__thumbs-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  overflow-y: auto;
  align-content: start;
}

.ng-flipbook__thumb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid #e4e0d8;
  border-radius: 6px;
  background: #faf9f7;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.ng-flipbook__thumb-item:hover,
.ng-flipbook__thumb-item:focus-visible {
  border-color: #9c7657;
  background: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

.ng-flipbook__thumb-item.is-current {
  border-color: #22211f;
  background: #f0ede6;
  box-shadow: 0 0 0 1px #22211f;
}

.ng-flipbook__thumb-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.414;
  background: #ffffff;
  border: 1px solid #ece9e2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ng-flipbook__thumb-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ng-flipbook__thumb-label {
  font-size: 11px;
  font-weight: 500;
  color: #4a4743;
}

/* Search Drawer Content */
.ng-flipbook__search-box {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #eae7e1;
}

.ng-flipbook__search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #cdc8be;
  border-radius: 4px;
  font: 400 13px "Noto Sans", sans-serif;
  color: #22211f;
  background: #fff;
}

.ng-flipbook__search-input:focus {
  border-color: #22211f;
  outline: none;
}

.ng-flipbook__search-submit {
  height: 36px;
  padding: 0 14px;
  border: 1px solid #22211f;
  border-radius: 4px;
  background: #22211f;
  color: #ffffff;
  font: 500 12px "Noto Sans", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.ng-flipbook__search-results {
  flex: 1 1 auto;
  padding: 12px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ng-flipbook__search-status {
  margin: 12px 0;
  font-size: 12.5px;
  color: #68645e;
  line-height: 1.5;
}

.ng-flipbook__search-hit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e6e2da;
  border-radius: 6px;
  background: #faf9f7;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ng-flipbook__search-hit:hover,
.ng-flipbook__search-hit:focus-visible {
  border-color: #9c7657;
  background: #ffffff;
  outline: none;
}

.ng-flipbook__search-hit-page {
  font-size: 11px;
  font-weight: 600;
  color: #9c7657;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ng-flipbook__search-hit-snippet {
  font-size: 12px;
  color: #2e2c29;
  line-height: 1.45;
  word-break: break-word;
}

.ng-flipbook__search-hit-snippet mark {
  background: #ffe082;
  color: #111;
  padding: 0 2px;
  border-radius: 2px;
}

/* Toast Notification (Share Link Copied) */
.ng-flipbook__toast {
  position: absolute;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  z-index: 40;
  padding: 9px 16px;
  border-radius: 6px;
  background: rgba(34, 33, 31, 0.92);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ng-flipbook__toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Responsive Design (Tablet & Mobile Single-Page View)
   ========================================================================== */
@media (max-width: 900px) {
  .ng-flipbook__header {
    height: 54px;
    min-height: 54px;
    padding: 0 12px;
    gap: 8px;
  }

  .ng-flipbook__logo {
    height: 22px;
  }

  .ng-flipbook__divider {
    height: 22px;
  }

  .ng-flipbook__title {
    font-size: 11.5px;
  }

  .ng-flipbook__subtitle {
    font-size: 10.5px;
  }

  .ng-flipbook__tool-btn {
    width: 32px;
    height: 32px;
  }

  .ng-flipbook__close-btn {
    height: 32px;
    padding: 0 12px 0 9px;
    font-size: 11.5px;
    gap: 5px;
    margin-inline-start: 6px;
  }

  .ng-flipbook__stage {
    padding: 12px 16px;
  }

  .ng-flipbook__stage-nav {
    width: 36px;
    height: 36px;
  }

  .ng-flipbook__stage-nav--prev {
    left: 8px;
  }

  .ng-flipbook__stage-nav--next {
    right: 8px;
  }

  .ng-flipbook__footer {
    height: 48px;
    min-height: 48px;
    padding: 0 10px;
    gap: 6px;
  }

  .ng-flipbook__slider-wrap {
    width: min(160px, 32vw);
  }

  .ng-flipbook__drawer {
    top: 54px;
    bottom: 48px;
    width: min(320px, 100vw);
  }
}

@media (max-width: 560px) {
  .ng-flipbook__logo,
  .ng-flipbook__divider {
    display: none;
  }

  .ng-flipbook__toolbar {
    gap: 2px;
  }

  .ng-flipbook__tool-btn {
    width: 30px;
    height: 30px;
  }

  .ng-flipbook__tool-btn svg {
    width: 16px;
    height: 16px;
  }

  .ng-flipbook__close-btn {
    height: 30px;
    padding: 0 9px 0 7px;
    font-size: 11px;
    gap: 4px;
    margin-inline-start: 4px;
  }

  .ng-flipbook__close-icon {
    width: 12px;
    height: 12px;
    stroke-width: 2.4;
  }

  .ng-flipbook__slider-wrap {
    display: none;
  }
}
