/* Visualizador de stories. Isolado dos diálogos de localização e rastreamento. */
body.bz-story-open { overflow: hidden; }
.bz-story-viewer {
  --story-ink: #fff; --story-accent: var(--bio-gold, #f5e1a4);
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh;
  max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: #100b16f5; color: var(--story-ink); overflow: hidden;
  font-family: 'DM Sans', system-ui, sans-serif; box-sizing: border-box;
}
.bz-story-viewer::backdrop { background: #100b16ed; backdrop-filter: blur(18px); }
.bz-story-viewer * { box-sizing: border-box; }
.bz-story-viewer [hidden] { display: none !important; }
.bz-story-viewer button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bz-story-viewer button:focus-visible { outline: 2px solid var(--story-accent); outline-offset: 4px; }
.bz-story-viewer svg { display: block; width: 22px; height: 22px; flex-shrink: 0; }
.bz-story-desktop-brand { position: absolute; top: 30px; left: 36px; display: flex; flex-direction: column; gap: 10px; }
.bz-story-desktop-brand strong { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--story-accent); font-size: 30px; letter-spacing: 2px; font-weight: 600; }
.bz-story-desktop-brand>span { color: #ffffff50; font-size: 9px; letter-spacing: 2px; }
.bz-story-layout { display: flex; align-items: center; justify-content: center; gap: 24px; height: 100%; padding: 24px 16px 58px; }
.bz-story-stage {
  position: relative; isolation: isolate; flex: 0 1 auto;
  height: min(820px, calc(100dvh - 82px)); aspect-ratio: 9/16;
  max-width: calc(100vw - 160px); overflow: hidden; border-radius: 20px;
  background: #251234; box-shadow: 0 24px 100px #0006, 0 0 0 1px #ffffff10;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.bz-story-top { position: absolute; top: 0; inset-inline: 0; z-index: 10; padding: 14px 14px 36px; background: linear-gradient(#09050d9c, transparent); pointer-events: none; }
.bz-story-timeline { display: flex; gap: 4px; margin-bottom: 12px; height: 3px; }
.bz-story-timeline>span { position: relative; height: 3px; min-width: 0; flex: 1; background: #ffffff38; border-radius: 4px; overflow: hidden; }
.bz-story-timeline i { position: absolute; inset: 0 auto 0 0; width: var(--story-progress, 0%); background: #fff; border-radius: inherit; }
.bz-story-header { display: flex; align-items: center; gap: 9px; }
.bz-story-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; overflow: hidden; border: 1px solid #ffffff4d; background: var(--bio-purple, #42077c); border-radius: 50%; color: var(--story-accent); }
.bz-story-avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.6); }
.bz-story-avatar>span { font: 24px Georgia, serif; }
.bz-story-account { min-width: 0; flex: 1; }
.bz-story-account strong { display: flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1.5; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-story-account>span { display: block; margin-top: 2px; color: #fffc; font-size: 10px; }
.bz-story-verified { display: grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; background: var(--story-accent); color: #291137; }
.bz-story-verified svg { width: 10px; height: 10px; stroke-width: 3; }
.bz-story-controls { display: flex; align-items: center; gap: 0; pointer-events: auto; }
.bz-story-icon { display: grid; place-items: center; width: 34px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; filter: drop-shadow(0 1px 3px #0004); }
.bz-story-icon:hover { background: #ffffff18; }
.bz-story-icon svg { width: 20px; height: 20px; }
.bz-story-slides { position: absolute; inset: 0; }
.bz-story-slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: #251234; }
.bz-story-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.bz-story-slide--foto::after,.bz-story-slide--video::after { content: ''; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(transparent 26%, #0e081900 42%, #0e0819a8 73%, #0e0819ed); }
.bz-story-slide--texto { background: radial-gradient(ellipse at 90% 10%, #673c7c70, transparent 58%), linear-gradient(155deg, #36114e, #210f32 70%); }


.bz-story-copy { position: relative; z-index: 4; padding: 28px 26px 114px; pointer-events: none; }
.bz-story-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 8px; letter-spacing: 2px; font-weight: 600; color: var(--story-accent); }

.bz-story-copy h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 36px; line-height: 1.07; letter-spacing: -.7px; font-weight: 500; margin: 0 0 12px; text-wrap: balance; overflow-wrap: anywhere; color: #fff; }
.bz-story-message { font-size: 13px; line-height: 1.75; color: #ffffffe0; overflow-wrap: anywhere; }
.bz-story-slide--texto .bz-story-copy { padding-bottom: 145px; }
.bz-story-slide--texto .bz-story-copy h2 { font-size: 46px; margin-bottom: 18px; }
.bz-story-slide--texto .bz-story-message { font-size: 15px; line-height: 1.8; }
.bz-story-copy.has-more .bz-story-message { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.bz-story-copy.is-expanded { background: linear-gradient(transparent, #160c26f5 20%); pointer-events: auto; padding-top: 45px; }
.bz-story-copy.is-expanded .bz-story-message { display: block; max-height: 40dvh; overflow: auto; -webkit-overflow-scrolling: touch; user-select: text; }
.bz-story-copy.is-expanded h2 { font-size: 28px; }
.bz-story-read { pointer-events: auto; margin-top: 10px; padding: 4px 0; font-size: 11px !important; font-weight: 600 !important; color: #fff; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.bz-story-tap-zones { position: absolute; inset: 85px 0 0; z-index: 3; display: flex; pointer-events: none; }
.bz-story-tap-zones span:first-child { width: 32%; }
.bz-story-tap-zones span:last-child { flex: 1; }
.bz-story-side { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #ffffff13; border-radius: 50%; background: #ffffff0c; color: #fffc; transition: background .15s; }
.bz-story-side svg { width: 18px; height: 18px; }
.bz-story-side:hover { background: #ffffff24; }
.bz-story-side:disabled { opacity: .18; cursor: default; }
.bz-story-side--prev svg { transform: rotate(180deg); }
.bz-story-guide { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; color: #ffffff50; font-size: 10px; letter-spacing: .2px; pointer-events: none; }
.bz-story-guide span { margin: 0 10px; }
.bz-story-loading,.bz-story-error { position: absolute; inset: 85px 0 95px; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fffc; background: #251234e6; font-size: 12px; }
.bz-story-loading>span { width: 24px; height: 24px; border: 2px solid #fff3; border-top-color: #fff; border-radius: 50%; animation: bz-story-spin .8s linear infinite; }
.bz-story-loading p,.bz-story-error p { margin: 0; }
.bz-story-error button { padding: 9px 16px; color: #fff; background: transparent; border: 1px solid #fff5; border-radius: 25px; font-size: 11px; }
.bz-story-paused,.bz-story-toast { position: absolute; left: 50%; transform: translateX(-50%); z-index: 12; padding: 8px 14px; background: #160d25c9; border: 1px solid #ffffff20; border-radius: 30px; font-size: 10px; color: #fff; backdrop-filter: blur(12px); pointer-events: none; }
.bz-story-paused { top: 95px; }
.bz-story-toast { bottom: 90px; white-space: nowrap; }
@keyframes bz-story-spin { to { transform: rotate(360deg); } }
@media(max-width:600px) {
  .bz-story-viewer { background: #210f32; }
  .bz-story-desktop-brand,.bz-story-guide { display: none; }
  .bz-story-side { position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%); }
  .bz-story-side:focus-visible { width:40px;height:40px;clip-path:none;top:50%;z-index:20; }
  .bz-story-side--prev:focus-visible { left:8px; }.bz-story-side--next:focus-visible { right:8px; }
  .bz-story-layout { display: block; padding: 0; }
  .bz-story-stage { height: 100dvh; width: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .bz-story-top { padding-top: max(12px,env(safe-area-inset-top)); padding-inline: 12px; }
  .bz-story-header { gap: 8px; }
  .bz-story-account strong { font-size: 12px; }
  .bz-story-copy { padding: 26px 24px calc(120px + env(safe-area-inset-bottom)); }
  .bz-story-copy h2 { font-size: 38px; }
  .bz-story-slide--texto .bz-story-copy { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  .bz-story-slide--texto .bz-story-copy h2 { font-size: clamp(38px,11vw,54px); }
}
@media(max-height:600px) and (min-width:601px) {
  .bz-story-layout { padding-block: 10px 36px; }
  .bz-story-stage { height: calc(100dvh - 46px); }
  .bz-story-copy h2,.bz-story-slide--texto .bz-story-copy h2 { font-size: 26px; }
  .bz-story-copy,.bz-story-slide--texto .bz-story-copy { padding: 20px 18px 85px; }
  .bz-story-message,.bz-story-slide--texto .bz-story-message { font-size: 12px; }
  .bz-story-guide { bottom: 10px; }
}
@media(prefers-reduced-motion:reduce) { .bz-story-side { transition: none; } }

@media(max-width:1050px) { .bz-story-desktop-brand { display:none; } }
.bz-story-copy h2 { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;white-space:pre-line; }
.bz-story-copy.is-expanded h2 { -webkit-line-clamp:2; }

.bz-story-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;margin-top:22px;padding:14px 18px;border:0;border-radius:32px;background:var(--story-accent);color:#321344;text-decoration:none;font-family:inherit;font-size:12px;font-weight:650;pointer-events:auto;transition:filter .15s,transform .15s;box-shadow:0 4px 20px #0002}.bz-story-cta:hover{filter:brightness(1.07);transform:translateY(-1px);color:#321344}.bz-story-cta span{overflow-wrap:anywhere}.bz-story-cta svg{width:17px;height:17px}.bz-story-cta:focus-visible{outline:2px solid #fff;outline-offset:4px}

.bz-story-avatar--wordmark img{object-fit:contain;transform:none;padding:5px}

/* Ações laterais: sem rodapé e sem faixa sobre a mídia. */
.bz-story-actions{position:absolute;z-index:10;right:12px;bottom:30px;display:flex;flex-direction:column;align-items:center;gap:20px;width:60px;pointer-events:auto}
.bz-story-action{display:flex;flex-direction:column;align-items:center;gap:7px;width:60px;padding:0;border:0;background:transparent;color:#fff;font-size:9px!important;line-height:1.2;font-weight:500;letter-spacing:.1px;text-align:center;text-shadow:0 1px 5px #0008}
.bz-story-action__icon{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#1c112c55;backdrop-filter:blur(12px);transition:background .15s,transform .15s}
.bz-story-action__icon svg{width:24px;height:24px;stroke-width:1.8}
.bz-story-action:hover .bz-story-action__icon{background:#ffffff20;transform:scale(1.05)}
.bz-story-action:active .bz-story-action__icon{transform:scale(.95)}
.bz-story-viewer .bz-story-action:focus-visible{outline:0}
.bz-story-action:focus-visible .bz-story-action__icon{outline:2px solid var(--story-accent);outline-offset:3px}
.bz-story-copy{padding:28px 88px 34px 24px}
.bz-story-slide--texto .bz-story-copy{padding-bottom:100px}
.bz-story-copy.is-expanded{padding-top:45px;padding-right:88px}
.bz-story-loading,.bz-story-error{bottom:24px}
.bz-story-toast{bottom:28px;max-width:calc(100% - 100px);left:calc(50% - 28px);white-space:normal;text-align:center}
.bz-story-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){
 .bz-story-actions{right:10px;bottom:calc(28px + env(safe-area-inset-bottom));gap:22px}
 .bz-story-copy{padding:26px 86px calc(34px + env(safe-area-inset-bottom)) 22px}
 .bz-story-copy h2{font-size:34px}
 .bz-story-slide--texto .bz-story-copy{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
 .bz-story-slide--texto .bz-story-copy h2{font-size:clamp(34px,10vw,46px)}
}
@media(max-height:600px) and (min-width:601px){.bz-story-actions{right:6px;bottom:20px;gap:10px}.bz-story-action__icon{width:36px;height:36px}.bz-story-action__icon svg{width:20px;height:20px}.bz-story-copy,.bz-story-slide--texto .bz-story-copy{padding:20px 78px 28px 18px}}
@media(prefers-reduced-motion:reduce){.bz-story-action__icon{transition:none}}

/* Coluna de ações alinhada ao centro vertical do visualizador. */
.bz-story-actions{top:50%;bottom:auto;transform:translateY(-50%)}
@media(max-width:600px){.bz-story-actions{top:50%;bottom:auto}}
@media(max-height:600px) and (min-width:601px){.bz-story-actions{top:50%;bottom:auto}}
