#tipos .tp-cartao { position: relative; }
#tipos .album-amostra {
  background: transparent; border: 0; padding: 0; color: inherit;
  font: inherit; text-align: start; cursor: pointer;
}
#tipos .album-amostra::after { content: ""; position: absolute; inset: 0; }
#tipos .tp-pe { position: relative; z-index: 1; }
#tipos .tp-cartao:has(.album-amostra[aria-pressed="true"]) {
  box-shadow: inset 0 0 0 2px #244c5a;
}
#tipos .tp-cartao:has(.album-amostra:focus-visible) { outline: 3px solid #244c5a; outline-offset: 3px; }
#album-em-detalhe {
  position: relative; isolation: isolate; margin: clamp(34px,5vw,72px) auto 46px;
  max-width: 1450px; scroll-margin-top: 64px; color: #342f2a;
}
#album-em-detalhe [hidden], #tipos .album-amostra[hidden] { display: none !important; }
html body #tipos .types-grid .tp-cartao .tp-foto .tp-tag {
  inset: auto 0 0 !important; width: 100%; box-sizing: border-box; padding: 4px 0;
  border-radius: 0 !important; background: #1a1a1a !important; color: white; text-align: center;
  justify-content: center; font-size: 12px; line-height: 16px;
}
#tipos .tp-cartao .tp-sub { text-transform: none; line-height: 1.45; margin: 3px 0 12px; }
.livro-tipos {
  display: flex; width: fit-content; max-width: 100%; margin: 0 auto 8px;
  padding: 3px; gap: 2px; border-radius: 13px; background: #f3f2ef;
}
.livro-tipos label { position: relative; flex: 1 1 auto; cursor: pointer; }
.livro-tipos input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.livro-tipos span {
  display: grid; place-items: center; min-height: 44px; padding-inline: clamp(7px,2vw,20px);
  border-radius: 10px; font-size: .875rem; line-height: 1.2; text-align: center;
}
.livro-tipos input:checked + span { background: #1a1a1a; color: #fff; }
.livro-tipos input:focus-visible + span { outline: 2px solid #244c5a; outline-offset: 2px; }
.livro-palco { position: relative; width: 100%; aspect-ratio: 1.8; max-height: min(71svh, 790px); touch-action: pan-y pinch-zoom; }
.livro-palco canvas,.livro-poster,.livro-folhear,.livro-pontos { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.livro-poster { object-fit: contain; }
.livro-folhear { display: flex; inset: 4% 4%; width: 92%; height: 92%; }
.livro-folhear > span { flex: 1; cursor: pointer; touch-action: pan-y pinch-zoom; }
.livro-folhear[data-fim] .livro-seguinte { cursor: default; }
.livro-pontos { pointer-events: none; }
.livro-pontos button {
  display: flex; align-items: center; justify-content: center; z-index: 1; position: absolute; transform: translate(-50%,-50%);
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none;
  pointer-events: auto; cursor: pointer; color: #173c46; touch-action: manipulation;
}
/* O pdp-v2.css encolhe todos os botões ao carregar (button:active com !important); sem isto o ponto salta e o clique vai para a página. */
.livro-pontos button:active { transform: translate(-50%,-50%) !important; }
.livro-pontos button::before {
  content: "+"; display: grid; place-items: center; width: 27px; height: 27px; border: 1.5px solid #fff;
  border-radius: 50%; background: #244c5a; color: white; font: 500 20px/1 Arial,sans-serif;
  box-shadow: 0 2px 7px #21211c36,0 0 0 3px #ffffff70;
}
.livro-pontos button[aria-expanded=true]::before { content: "−"; background: #fff; color: #244c5a; border-color: #244c5a; }
.livro-pontos button span {
  position: absolute; bottom: calc(100% - 2px); left: 50%; transform: translateX(-50%); padding: 4px 9px;
  border-radius: 5px; color: #413f3a; background: #fff; font-size: .78rem; font-weight: 600;
  line-height: 1.2; white-space: nowrap; box-shadow: 0 1px 5px #1c1c1a14; pointer-events: auto;
}
@media (min-width: 651px) {
  .livro-pontos button span { opacity: 0; pointer-events: none; border-radius: 20px; }
  .livro-pontos button:is(:hover,:focus-visible):not([aria-expanded="true"]) span { opacity: 1; }
}
#livro-nota {
  position: absolute; z-index: 3; width: min(286px, 85%); box-sizing: border-box;
  padding: 14px 38px 14px 16px; border: 1px solid #e1e2dc; color: #302e2b;
  background: #fff; border-radius: 10px; box-shadow: 0 5px 22px #24231e18;
}
#livro-nota strong { font-size: .9rem; color: #234a56; }
#livro-nota .livro-macro { display: block; width: 100%; height: 76px; object-fit: cover; object-position: center 60%; margin-top: 8px; border-radius: 4px; }
#tipos #livro-nota p { font-size: .9rem; line-height: 1.45; margin: 4px 0 0; color: #494640; }
#livro-nota .livro-fechar { position: absolute; right: 0; top: 0; width: 44px; height: 44px; cursor: pointer; border: 0; background: transparent; font: 20px/1 Arial,sans-serif; }
#livro-nota .livro-ampliar { display: block; position: relative; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.livro-ampliar span { position: absolute; bottom: 4px; right: 4px; background: #fff; padding: 2px 6px; border-radius: 4px; font: 600 .73rem/1.4 system-ui; color: #244c5a; }
dialog.livro-zoom { width: min(90vw, 780px); max-height: 88dvh; box-sizing: border-box; padding: 12px; border: 0; border-radius: 12px; background: white; color: #35332e; }
dialog.livro-zoom::backdrop { background: #1b1b1bc7; }
.livro-zoom > div { display: flex; justify-content: space-between; align-items: center; }
.livro-zoom h4 { font-size: 1rem; margin: 0; }
.livro-zoom button { flex: none; background: none; border: 0; width: 44px; height: 44px; font-size: 1.5rem; cursor: pointer; }
.livro-zoom img { display: block; width: 100%; height: auto; max-height: 73dvh; object-fit: contain; }
.livro-navegacao { display: flex; justify-content: center; align-items: center; gap: clamp(7px,1.8vw,24px); margin-top: 4px; }
.livro-navegacao button { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px; padding: 0 clamp(9px,1.3vw,18px); border: 1px solid #d6d2cc; border-radius: 24px; background: #fff; color: #35322e; font: inherit; font-weight: 600; font-size: .9rem; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.livro-navegacao .livro-avancar:enabled { color: #fff; border-color: #292824; background: #292824; }
.livro-navegacao button:disabled { color: #77736d; background: #f5f4f1; border-color: #e7e4de; cursor: default; }
.livro-navegacao button span[aria-hidden] { font-size: 1.14em; }
.livro-posicao { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#album-em-detalhe button:focus-visible { outline: 2px solid #244c5a; outline-offset: 2px; }
@media (max-width: 650px) {
  .livro-palco { aspect-ratio: 1.18; width: calc(100% + 16px); margin-inline: -8px; }
  .livro-pontos button span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; padding: 0; }
  .livro-pontos button::before { width: 28px; height: 28px; font-size: 19px; }
  #livro-nota { position: relative; width: 100%; margin: 0 0 .6rem; box-shadow: none; padding: 10px 42px 10px 13px; }
  #livro-nota .livro-fechar { width: 44px; height: 44px; }
}
.livro-palco[data-turning] .livro-pontos { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  .livro-pontos button:hover::before { background: #143946; color: white; box-shadow: 0 2px 8px #21211c40,0 0 0 5px #ffffff82; }
  .livro-folhear:not([data-pagina="0"]) .livro-anterior { cursor: w-resize; }
  .livro-folhear:not([data-fim]) .livro-seguinte,.livro-folhear[data-pagina="0"] .livro-anterior { cursor: e-resize; }
  .livro-navegacao button:enabled:hover { border-color: #494640; }
}
@media (prefers-reduced-motion: no-preference) {
  .livro-pontos button::before { transition: transform 120ms ease-out, background-color 120ms ease-out; }
  .livro-pontos button:active::before { transform: scale(.94); }
}
