.book-detail-cover > .ovotus-cover-opener,
.shop-detail-cover > .ovotus-cover-opener {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}
.ovotus-cover-opener:focus-visible { outline: 3px solid #00a878; outline-offset: -3px; }
.ovotus-cover-opener img { display: block; }
html.ovotus-cover-viewing { overflow: hidden; }
dialog.ovotus-cover-viewer {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 12px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-right: max(12px, env(safe-area-inset-right));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  padding-left: max(12px, env(safe-area-inset-left));
  border: 0;
  border-radius: 0;
  background: rgba(12, 23, 20, .94);
  color: #fff;
  overscroll-behavior: contain;
}
dialog.ovotus-cover-viewer:not([open]) { display: none; }
dialog.ovotus-cover-viewer[open] {
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  gap: 10px;
}
.ovotus-cover-viewer::backdrop { background: rgba(12, 23, 20, .6); }
.ovotus-cover-viewer .ovotus-cover-toolbar {
  display: flex;
  justify-content: flex-end;
  width: min(1120px, 100%);
  justify-self: center;
}
.ovotus-cover-viewer .ovotus-cover-close {
  position: static;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #d9e4e0;
  border-radius: 6px;
  background: #fff;
  color: #007e5d;
  font: 32px/1 Arial, sans-serif;
  cursor: pointer;
}
.ovotus-cover-viewer .ovotus-cover-close:focus-visible { outline: 3px solid #00c490; outline-offset: 3px; }
.ovotus-cover-stage { min-width: 0; min-height: 0; display: grid; place-items: center; }
.ovotus-cover-stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 1120px;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
}
