.hh-catalogue-summary.hh-flip-preview {
  max-width: 960px;
  margin-inline: auto;
}

.hh-flip-preview summary {
  color: #0b5960;
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
}

.hh-flip-preview [hidden] {
  display: none !important;
}

.hh-flip-preview :is(summary, button, a):focus-visible {
  outline: 3px solid #0b5960;
  outline-offset: 3px;
}

.hh-flip-preview .hh-flip-pages {
  position: relative;
  margin-inline: auto;
  max-width: 390px;
  perspective: 1500px;
  touch-action: pan-y pinch-zoom;
}

.hh-flip-pages figure {
  margin: 0;
  min-width: 0;
}

.hh-flip-pages figure > a {
  display: block;
}

.hh-flip-pages img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 5px 16px #07163640;
}

.hh-flip-pages figcaption {
  padding: 8px 2px;
}

.hh-flip-pages .hh-flip-turning-page {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.hh-flip-preview .hh-flip-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  justify-content: center;
  margin: 12px 0;
}

.hh-flip-controls button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #0b5960;
  border-radius: 6px;
  background: #fff;
  color: #0b5960;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hh-flip-controls button[aria-disabled="true"] {
  opacity: .65;
  cursor: default;
}

.hh-flip-controls [role="status"] {
  min-width: 0;
  flex: 1 0 100%;
  text-align: center;
}

/* Focused book page */
.hh-focused-book .hh-focused-book-inner {
  max-width: 960px;
  padding-block: clamp(24px, 5vw, 56px);
}

.hh-focused-book-intro {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(16px, 4vw, 44px);
  margin-block-end: 24px;
}

.hh-focused-book-intro img {
  display: block;
  width: 100%;
  max-width: 225px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 6px 18px #07163630;
}

.hh-focused-book-intro h1 {
  font-size: clamp(1.8rem, 4.2vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 12px;
}

.hh-focused-book-intro p {
  max-width: 52ch;
  margin: 0 0 16px;
}

.hh-focused-book-intro .btn[href="#hh-book-previews"] {
  color: #0b5960;
  background: #fff;
  border-color: #0b5960;
}

.hh-focused-book-intro .btn[href="#hh-book-previews"]:is(:hover, :focus-visible) {
  background: #e8f2f1;
  text-decoration: underline;
  text-underline-offset: .16em;
}

.hh-focused-book #hh-book-previews {
  scroll-margin-top: 100px;
}

.hh-focused-book .hh-flip-preview {
  margin: 0;
  padding: 0 16px;
  border: 1px solid #b7c8c6;
  border-radius: 8px;
  background: #f6faf9;
}

.hh-focused-book .hh-flip-preview summary,
.hh-focused-book-details summary {
  cursor: pointer;
  font-weight: 700;
  padding-block: 13px;
}

.hh-focused-book-details {
  border-bottom: 1px solid #b7c8c6;
  scroll-margin-top: 100px;
}

.hh-focused-book-details:first-of-type {
  margin-top: 16px;
}

.hh-focused-book-details a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hh-focused-book :is(summary, a, button):focus-visible {
  outline: 3px solid #0b5960;
  outline-offset: 3px;
}

@media (max-width: 540px) {
  .hh-focused-book-intro {
    grid-template-columns: 1fr;
  }

  .hh-focused-book-intro img {
    max-width: 145px;
  }
}

@media (min-width: 720px) {
  .hh-flip-preview .hh-flip-pages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3px;
    max-width: 783px;
  }

  .hh-flip-pages [data-flip-cover] {
    grid-column: 2;
  }

  .hh-flip-pages .hh-flip-turning-page {
    width: calc((100% - 3px) / 2);
  }

  .hh-flip-pages .hh-flip-turning-page[data-turn-forward] {
    left: auto;
    right: 0;
  }

  .hh-flip-controls [role="status"] {
    flex-basis: auto;
    flex-grow: 0;
  }
}

.hh-focused-book-panel {
  display: flow-root;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hh-focused-book-panel > :is(section, div) {
  max-width: 100%;
}

.hh-focused-book-panel :is(img, video, svg, iframe) {
  max-width: 100%;
}

.hh-focused-book-panel img {
  object-fit: contain;
}

.hh-book-family {
  margin-block: 18px;
  padding: 12px 0;
  border-block: 1px solid #c9d3cd;
}
.hh-book-family p { max-width: 65ch; margin: 0 0 6px; }
.hh-book-family a { text-decoration: underline; text-underline-offset: 3px; }
.hh-focused-book #hh-book-previews img { max-width: 100%; height: auto; }

[data-simple-book-page] .hh-book-order {
  margin-block-start: 16px;
}

[data-simple-book-page] .hh-book-order .btn {
  min-height: 44px;
}

[data-simple-book-page] .hh-book-family {
  border: 0;
  margin-block: 12px 20px;
  padding: 0;
}

[data-simple-book-page] .hh-book-family p {
  margin: 0;
}

@media (max-width: 540px) {
  [data-simple-book-page] .hh-focused-book-intro {
    grid-template-columns: minmax(72px, 25%) minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    margin-block-end: 16px;
  }

  [data-simple-book-page] .hh-focused-book-intro h1 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  [data-simple-book-page] .hh-focused-book-intro p {
    margin-block-end: 0;
  }

  [data-simple-book-page] .hh-book-order .btn {
    width: 100%;
  }
}

.hh-book-order .hh-book-delivery {
  margin: 8px 0 0;
  font-size: .875rem;
}

.hh-book-basket-feedback {
  margin-block-start: 8px;
  line-height: 1.5;
}

.hh-book-basket-feedback a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
