#zp-photobooks .pb-book-showcase { scroll-margin-top: 95px; }
#zp-photobooks .pb-book-theme-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 34px 20px;
  margin-block: 24px;
}
#zp-photobooks .pb-book-theme-card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 15px;
  min-width: 0;
  padding: 10px 6px;
  border: 0;
  background: transparent;
  color: var(--pb-ink);
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
#zp-photobooks .pb-book-feature { min-width: 0; }
#zp-photobooks .pb-book-favorites-filter { display: inline-flex; align-items: center; min-height: 42px; gap: 8px; border-radius: 999px; padding: 4px 13px; background: var(--pb-surface); cursor: pointer; }
#zp-photobooks .pb-book-favorites-filter input { width: 16px; height: 16px; margin: 0; accent-color: var(--pb-accent); }
#zp-photobooks .pb-book-cover {
  position: relative;
  display: block;
  width: min(88%,200px);
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--pb-paper) var(--pb-cover-image,none) center / cover;
  border-radius: 2px 4px 4px 2px;
  box-shadow: 0 9px 14px #261c3838, 0 2px 4px #261c3826;
}
#zp-photobooks .pb-book-theme-card .pb-book-cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 8%; background: linear-gradient(90deg,#20172c29,transparent); pointer-events: none; }
#zp-photobooks .pb-book-card-preview { color: var(--pb-accent); font-size: .875rem; font-weight: 500; margin-top: -9px; text-underline-offset: 3px; }
#zp-photobooks .pb-book-theme-card:is(:hover,:focus-visible) .pb-book-card-preview { text-decoration: underline; }
#zp-photobooks .pb-book-theme-card .pb-book-cover-cutout {
  width: min(100%,285px);
  box-shadow: none;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}
#zp-photobooks .pb-book-theme-card .pb-book-cover-cutout::after { content: none; }
#zp-photobooks .pb-book-theme-card .pb-book-cover-cutout img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 11px 9px #291d3733);
  transition: transform .25s cubic-bezier(.2,.75,.2,1);
}
#zp-photobooks .pb-book-theme-card:is(:hover,:focus-visible) .pb-book-cover-cutout img { transform: translateY(-3px); }
#zp-photobooks .pb-book-dialog {
  width: min(960px,calc(100% - 26px));
  max-height: calc(100dvh - 26px);
  padding: clamp(12px,2.5vw,25px);
  border-radius: 18px;
  background: var(--pb-paper);
  color: var(--pb-ink);
  overscroll-behavior: contain;
}
#zp-photobooks .pb-book-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
#zp-photobooks .pb-book-header h3 { margin: 0; flex: 1; font-size: 1.5rem; }
#zp-photobooks .pb-book-header h3:focus { outline: 0; }
#zp-photobooks .pb-book-header form { margin-left: auto; }
#zp-photobooks .pb-book-dialog .pb-studio-categories { display: flex; flex-wrap: wrap; gap: 7px; }
#zp-photobooks .pb-book-dialog .pb-studio-categories button {
  min-height: 38px; padding: 4px 11px; border: 1px solid var(--pb-line); border-radius: 999px;
  background: var(--pb-surface); color: var(--pb-ink); font: inherit; cursor: pointer;
}
#zp-photobooks .pb-book-dialog .pb-studio-categories button[aria-pressed="true"] { border-color: var(--pb-accent); color: var(--pb-accent); background: var(--pb-lilac); }
#zp-photobooks .pb-book-options { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-block: 10px; }
#zp-photobooks :is(.pb-book-options,.pb-book-pick-page) label, #zp-photobooks label.pb-book-pick-page { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; cursor: pointer; }
#zp-photobooks .pb-book-dialog input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; flex: none; margin: 0; accent-color: var(--pb-accent); }
#zp-photobooks .pb-book-viewer { display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; align-items: center; gap: 6px; padding: 14px 8px; background: var(--pb-surface); border-radius: 10px; }
#zp-photobooks .pb-book-stage { display: grid; grid-template: 1fr / 1fr; place-items: center; width: 100%; perspective: 1150px; touch-action: pan-y pinch-zoom; cursor: pointer; }
#zp-photobooks .pb-book-stage > .pb-book-art { grid-area: 1/1; width: min(100%,calc(41dvh * var(--pb-book-ratio))); border-radius: 2px; box-shadow: 0 8px 13px #23163338; }
#zp-photobooks .pb-book-art {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}
#zp-photobooks .pb-book-art > :is(img,span) { position: absolute; object-fit: cover; max-width: none; }
#zp-photobooks .pb-book-art .pb-book-art-sticker { object-fit: contain; }
#zp-photobooks .pb-book-art > span { display: flex; align-items: center; line-height: 1.1; overflow: hidden; }
#zp-photobooks .pb-book-art-title { font-size: min(3.3cqw,var(--pb-art-type-limit,3.3cqw)); font-weight: 700; }
#zp-photobooks .pb-book-art-caption { font-size: min(2.3cqw,var(--pb-art-type-limit,2.3cqw)); font-style: italic; }
#zp-photobooks .pb-book-art-full-photo :is(.pb-book-art-title,.pb-book-art-caption) { text-shadow: 0 2px 4px #171c22,0 1px 9px #171c22; }
#zp-photobooks .pb-book-art-cover .pb-book-art-title { font-size: min(6cqw,var(--pb-art-type-limit,6cqw)); }
#zp-photobooks .pb-book-art-cover .pb-book-art-caption { font-size: min(3.4cqw,var(--pb-art-type-limit,3.4cqw)); }
#zp-photobooks .pb-book-frame-empty { justify-content: center; background: #ffffff80; color: var(--pb-muted); font-size: 2.6cqw; }
#zp-photobooks .pb-book-art:not(.pb-book-art-cover)::after { content: ""; position: absolute; inset: 0 0 0 0; pointer-events: none; background: linear-gradient(90deg,#2b203418,transparent 1%,transparent 46%,#281e3625 49.8%,#2b20344a 50%,#fff6 50.3%,transparent 54%,transparent 99%,#2b20341c); }
#zp-photobooks .pb-book-leaf { grid-area: 1/1; position: relative; justify-self: stretch; align-self: stretch; pointer-events: none; transform-style: preserve-3d; }
#zp-photobooks .pb-book-leaf-front, #zp-photobooks .pb-book-leaf-back { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; }
#zp-photobooks .pb-book-leaf .pb-book-art { width: min(100%,calc(41dvh * var(--pb-book-ratio))); }
#zp-photobooks .pb-book-leaf[data-direction="next"] .pb-book-leaf-front, #zp-photobooks .pb-book-leaf[data-direction="prev"] .pb-book-leaf-back { clip-path: inset(0 0 0 50%); }
#zp-photobooks .pb-book-leaf[data-direction="prev"] .pb-book-leaf-front, #zp-photobooks .pb-book-leaf[data-direction="next"] .pb-book-leaf-back { clip-path: inset(0 50% 0 0); }
#zp-photobooks .pb-book-leaf-back { transform: rotateY(180deg); }
#zp-photobooks .pb-book-cover-turn { grid-area: 1/1; display: grid; place-items: center; width: 100%; pointer-events: none; perspective: 1150px; }
#zp-photobooks .pb-book-cover-turn .pb-book-art { width: min(50%,calc(41dvh * var(--pb-book-ratio))); transform-origin: left center; backface-visibility: hidden; }
#zp-photobooks :is(.pb-book-stage,.pb-turn-stage) { position: relative; perspective: 1150px; }
#zp-photobooks :is(.pb-book-stage > .pb-book-art,[data-turn-stage] > [data-dialog-image]) { cursor: grab; user-select: none; }
#zp-photobooks .pb-page-dragging :is(.pb-book-art,[data-dialog-image]) { cursor: grabbing; }
#zp-photobooks .pb-page-corners { position: absolute; z-index: 4; pointer-events: none; }
#zp-photobooks .pb-page-corner {
  position: absolute; bottom: 0; width: 44px; height: 44px; padding: 0; border: 0;
  background: transparent; pointer-events: auto; cursor: grab; touch-action: none;
}
#zp-photobooks .pb-page-corner:focus-visible { outline: 2px solid var(--pb-accent); outline-offset: 1px; }
#zp-photobooks .pb-page-dragging .pb-page-corner { cursor: grabbing; }
#zp-photobooks .pb-page-corner:disabled { visibility: hidden; }
#zp-photobooks .pb-page-corner[data-corner="left"] { left: 0; }
#zp-photobooks .pb-page-corner[data-corner="right"] { right: 0; }
#zp-photobooks .pb-page-corner::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 22px; height: 22px;
  background: linear-gradient(135deg,transparent 48%,#f8f4fa 51%,#c3b5cc 73%,#6d5a7e 100%);
  clip-path: polygon(100% 0,100% 100%,0 100%);
}
#zp-photobooks .pb-page-corner[data-corner="left"]::after { right: auto; left: 0; scale: -1 1; }
#zp-photobooks .pb-corner-bed, #zp-photobooks .pb-corner-leaf { position: absolute; pointer-events: none; }
#zp-photobooks .pb-corner-bed { z-index: 2; overflow: hidden; background: #eee8e0; }
#zp-photobooks .pb-corner-bed-unavailable { display: none; }
#zp-photobooks .pb-corner-leaf { z-index: 3; transform-style: preserve-3d; }
#zp-photobooks .pb-corner-strip { position: absolute; inset: 0 auto 0 0; transform-style: preserve-3d; }
#zp-photobooks .pb-corner-face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; }
#zp-photobooks .pb-corner-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: #211a24; opacity: var(--pb-strip-shade,0); }
#zp-photobooks .pb-page-dragging .pb-corner-bed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#30233222,transparent 52%); }
#zp-photobooks .pb-corner-back { transform: rotateY(180deg); background: #faf5ee; }
#zp-photobooks .pb-corner-reverse { opacity: .2; scale: -1 1; }
#zp-photobooks .pb-page-dragging .pb-page-corner::after { opacity: .4; }
#zp-photobooks .pb-book-stage.pb-page-dragging { clip-path: inset(-9px -10px -24px); }
#zp-photobooks .pb-book-arrow, #zp-photobooks .pb-book-page-list button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--pb-line);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--pb-paper);
  color: var(--pb-accent);
  font: inherit;
  cursor: pointer;
}
#zp-photobooks .pb-book-arrow:disabled { opacity: .38; cursor: default; }
#zp-photobooks .pb-book-page-label { text-align: center; color: var(--pb-muted); font-size: .875rem; margin: 8px 0; }
#zp-photobooks .pb-book-page-list { display: flex; gap: 5px; overflow-x: auto; padding: 3px; }
#zp-photobooks .pb-book-page-list button { flex: none; border-radius: 6px; }
#zp-photobooks .pb-book-page-list button[aria-pressed="true"] { background: var(--pb-lilac); border-color: var(--pb-accent); }
#zp-photobooks .pb-book-page-list button[data-book-picked] { box-shadow: inset 0 -3px var(--pb-accent); }
#zp-photobooks .pb-book-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 8px; border-top: 1px solid var(--pb-line); padding-top: 12px; margin-top: 8px; }
#zp-photobooks [data-book-feedback]:empty { display: none; }
#zp-photobooks .pb-book-auto-panel { background: var(--pb-lilac); padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
#zp-photobooks .pb-book-auto-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#zp-photobooks .pb-book-auto-fields label { display: grid; gap: 4px; min-width: 0; }
#zp-photobooks .pb-book-auto-fields input { max-width: 100%; }
#zp-photobooks .pb-book-photo-select { margin-top: 6px; }
#zp-photobooks .pb-book-photo-select summary { cursor: pointer; }
#zp-photobooks [data-book-photo-list] { display: flex; flex-wrap: wrap; gap: 7px; max-height: 170px; overflow: auto; }
#zp-photobooks [data-book-photo-list] label { position: relative; display: block; width: 66px; height: 60px; cursor: pointer; }
#zp-photobooks [data-book-photo-list] img { width: 100%; height: 100%; object-fit: cover; }
#zp-photobooks [data-book-photo-list] input { position: absolute; inset: 4px auto auto 4px; }
#zp-photobooks .pb-quick-dialog {
  width: min(820px,calc(100% - 32px));
  border: 0;
  padding: 0;
  max-height: calc(100dvh - 32px);
  border-radius: 21px;
}
#zp-photobooks .pb-quick-dialog::backdrop { background: #24343db5; }
#zp-photobooks .pb-quick-dialog[open] { animation: pb-preview-appear .32s cubic-bezier(.2,.7,.25,1) both; }
@keyframes pb-preview-appear { from { opacity: 0; transform: translateY(11px) scale(.985); } to { opacity: 1; transform: none; } }
#zp-photobooks .pb-quick-dialog .pb-book-header { position: relative; min-height: 66px; margin: 0; padding: 32px 65px 0 21px; }
#zp-photobooks .pb-quick-dialog .pb-book-header h3 { flex: 1 1 100%; font-size: clamp(1.4rem,2.7vw,1.875rem); }
#zp-photobooks .pb-quick-dialog .pb-book-header form { position: absolute; right: 13px; top: 8px; }
#zp-photobooks .pb-quick-dialog .pb-book-header form button { border: 0; padding: 0; width: 44px; height: 44px; min-height: 44px; }
#zp-photobooks .pb-quick-dialog [data-book-back] { min-height: 34px; padding: 2px 7px; font-size: .875rem; }
#zp-photobooks .pb-quick-dialog [data-book-catalog] { padding: 0 21px 21px; }
#zp-photobooks .pb-quick-dialog [data-book-detail] { padding: 0 21px; }
#zp-photobooks .pb-quick-dialog :is(.pb-book-options,.pb-book-page-list,.pb-book-pick-page) { display: none; }
#zp-photobooks .pb-quick-dialog [data-book-price] { margin: 7px 0 17px; color: var(--pb-ink); font-size: .975rem; }
#zp-photobooks .pb-book-favorite {
  position: absolute; top: 51px; right: 21px; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; border: 0; color: var(--pb-muted); background: var(--pb-surface); cursor: pointer;
}
#zp-photobooks .pb-book-favorite[aria-pressed="true"] { color: var(--pb-accent); }
#zp-photobooks .pb-book-favorite[aria-pressed="true"] svg { fill: currentColor; }
#zp-photobooks .pb-quick-dialog [data-book-price] { padding-right: 44px; }
#zp-photobooks .pb-book-orientation { display: flex; justify-self: end; width: max-content; gap: 1px; padding: 3px; border-radius: 999px; background: var(--pb-surface); }
#zp-photobooks .pb-book-orientation button { display: grid; place-items: center; min-width: 45px; min-height: 36px; padding: 0; border: 0; border-radius: 999px; color: var(--pb-ink); background: transparent; cursor: pointer; transition: background-color .2s,color .2s; }
#zp-photobooks .pb-book-orientation button[aria-pressed="true"] { background: var(--pb-paper); color: var(--pb-accent); }
#zp-photobooks .pb-quick-dialog .pb-book-viewer {
  grid-template-columns: minmax(0,1fr);
  isolation: isolate;
  position: relative;
  min-height: clamp(254px,37dvh,400px);
  margin-top: 11px;
  padding: 19px 35px 14px;
  background: transparent;
}
#zp-photobooks .pb-quick-dialog .pb-book-stage > .pb-book-art,
#zp-photobooks .pb-quick-dialog .pb-book-leaf .pb-book-art {
  width: min(100%,calc(clamp(244px,37dvh,355px) * var(--pb-book-ratio)));
}
#zp-photobooks .pb-quick-dialog .pb-book-stage > .pb-book-art {
  box-shadow: 0 1px 3px #291f2b26, 0 20px 18px -16px #271b31a8, -4px 0 #f1ece6, 4px 0 #f1ece6;
}
#zp-photobooks .pb-quick-dialog .pb-book-stage > .pb-book-art-cover-photo {
  background-size: contain;
  background-repeat: no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 11px 9px #291d3737);
}
#zp-photobooks .pb-quick-dialog .pb-book-arrow {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%; font-size: 1.13rem; padding: 0;
  min-width: 34px; min-height: 38px; color: var(--pb-accent); border-color: transparent;
}
#zp-photobooks .pb-quick-dialog [data-book-prev] { left: 0; }
#zp-photobooks .pb-quick-dialog [data-book-next] { right: 0; }
#zp-photobooks .pb-quick-dialog .pb-book-page-label { margin: 4px 0 clamp(19px,4.5vh,49px); }
#zp-photobooks .pb-quick-perks { display: grid; gap: 8px; margin: 0 0 17px; }
#zp-photobooks .pb-quick-auto {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px;
  padding: 9px 12px; border: 0; border-radius: 9px; background: var(--pb-lilac);
  color: var(--pb-ink); text-align: start; font: inherit; font-size: .925rem; cursor: pointer;
}
#zp-photobooks .pb-quick-auto:hover { box-shadow: inset 0 0 0 1px var(--pb-accent); }
#zp-photobooks .pb-quick-auto svg { color: var(--pb-accent); }
#zp-photobooks .pb-quick-perks svg { flex: 0 0 24px; }
#zp-photobooks .pb-quick-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 18px; list-style: none; margin: 0; padding: 13px 15px; border-radius: 16px; background: var(--pb-surface); }
#zp-photobooks .pb-quick-facts li { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .875rem; line-height: 1.3; }
#zp-photobooks .pb-quick-facts a { color: var(--pb-ink); text-decoration: underline; text-underline-offset: 2px; }
#zp-photobooks .pb-quick-dialog .pb-book-actions { margin: 0 -21px; padding: 15px 21px 18px; gap: 10px; }
#zp-photobooks .pb-quick-dialog .pb-book-actions .pb-button { border-radius: 999px; min-height: 52px; padding-inline: 21px; }
#zp-photobooks .pb-quick-dialog .pb-book-actions .pb-secondary { color: var(--pb-ink); background: var(--pb-surface); border-color: transparent; }
@media (max-width: 540px) {
  #zp-photobooks .pb-quick-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
  #zp-photobooks .pb-quick-dialog .pb-book-header { padding: 16px 55px 0 13px; min-height: 48px; }
  #zp-photobooks .pb-quick-dialog .pb-book-header form { right: 6px; top: 4px; }
  #zp-photobooks .pb-book-favorite { top: 48px; right: 12px; }
  #zp-photobooks .pb-quick-dialog [data-book-detail] { padding: 0 13px; }
  #zp-photobooks .pb-quick-dialog .pb-book-viewer { min-height: 165px; padding-inline: 14px; }
  #zp-photobooks .pb-quick-dialog .pb-book-arrow { min-width: 28px; background: #ffffffee; }
  #zp-photobooks .pb-quick-facts { padding: 10px; gap: 10px; }
  #zp-photobooks .pb-quick-facts li { align-items: flex-start; }
  #zp-photobooks .pb-quick-facts svg { width: 17px; height: 17px; flex-basis: 17px; }
  #zp-photobooks .pb-quick-dialog .pb-book-actions { margin-inline: -13px; padding: 12px 13px; flex-wrap: wrap; }
  #zp-photobooks .pb-quick-dialog .pb-book-actions .pb-button { flex: 1 1 auto; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #zp-photobooks .pb-quick-dialog[open] { animation: none; }
  #zp-photobooks .pb-book-theme-card .pb-book-cover-cutout img { transition: none; }
}
@media (max-width: 660px) {
  #zp-photobooks .pb-book-theme-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 8px; }
  #zp-photobooks .pb-book-header h3 { font-size: 1.125rem; }
  #zp-photobooks .pb-book-viewer { grid-template-columns: 32px minmax(0,1fr) 32px; gap: 4px; padding: 9px 4px; }
  #zp-photobooks .pb-book-arrow { min-width: 32px; padding: 0; }
  #zp-photobooks .pb-book-auto-fields { grid-template-columns: 1fr; }
  #zp-photobooks .pb-book-actions { justify-content: stretch; }
  #zp-photobooks .pb-book-actions .pb-button { flex: 1 0 auto; }
}
