.flipbook-page {
  padding-bottom: 40px;
}

.flipbook-header {
  margin-bottom: 20px;
}

.oc-flipbook {
  width: 100%;
  /*background: #e8eaee;*/
  border-radius: 6px;
  overflow: hidden;
  /*box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);*/
}

.oc-flipbook__viewport {
  position: relative;
  height: min(78vh, 900px);
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 20px 50px;
  /*background: linear-gradient(180deg, #f7f8fa 0%, #e3e6eb 100%);*/
  outline: none;
}

.oc-flipbook__book {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1500px;
  max-height: 2100px;
  flex: none;
  filter: drop-shadow(0 25px 25px rgba(20, 24, 32, 0.28));
}

.oc-flipbook__bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(24, 26, 32, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.oc-flipbook__bar--top {
  top: 14px;
}

.oc-flipbook__bar--bottom {
  bottom: 14px;
}

.oc-flipbook__icon-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, opacity 150ms ease;
}

.oc-flipbook__icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.oc-flipbook__icon-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.oc-flipbook__page-status {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
  white-space: nowrap;
  font-size: 13px;
  color: #fff;
}

.oc-flipbook__page-sep {
  opacity: 0.6;
}

.oc-flipbook__page-status input {
  width: 30px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  text-align: right;
  -moz-appearance: textfield;
}

.oc-flipbook__page-status input::-webkit-outer-spin-button,
.oc-flipbook__page-status input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.oc-flipbook__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(20, 22, 28, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 150ms ease, background 150ms ease;
}

.oc-flipbook__viewport:hover .oc-flipbook__nav {
  opacity: 0.85;
}

.oc-flipbook__nav:hover,
.oc-flipbook__nav:focus-visible {
  opacity: 1;
  background: rgba(20, 22, 28, 0.7);
}

.oc-flipbook__nav:disabled {
  opacity: 0.12;
  cursor: default;
}

.oc-flipbook__nav--prev {
  left: 14px;
}

.oc-flipbook__nav--next {
  right: 14px;
}

.oc-flipbook__loading,
.oc-flipbook__error {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  text-align: center;
}

.oc-flipbook__error {
  background: rgba(130, 20, 20, 0.92);
}

.oc-flipbook__loading[hidden],
.oc-flipbook__error[hidden] {
  display: none;
}

.oc-flipbook:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}

.oc-flipbook:fullscreen .oc-flipbook__viewport {
  height: 100vh;
}

@media (max-width: 767px) {
  .oc-flipbook__viewport {
    min-height: 70vh;
    height: 70vh;
    padding: 15px 25px;
  }

  .oc-flipbook__bar {
    padding: 4px;
    gap: 0;
  }

  .oc-flipbook__icon-btn {
    min-width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .oc-flipbook__nav {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .oc-flipbook__nav--prev {
    left: 8px;
  }

  .oc-flipbook__nav--next {
    right: 8px;
  }
}
