/*
 * Marketing consent banner — v106 standalone funnel pages.
 * Visually mirrors src/components/ConsentBanner.tsx (dark panel, gold accept
 * CTA) using the same palette tokens as codex-skin-v2.css so the banner
 * looks native to this funnel, not bolted on.
 */
#pcp-consent-banner-v106 {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 2147483000;
  background: var(--cx-panel-strong, rgba(9, 13, 20, .96));
  border-top: 1px solid var(--cx-line-strong, rgba(213, 223, 240, .3));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 16px;
}
#pcp-consent-banner-v106 .pcp-consent-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#pcp-consent-banner-v106 .pcp-consent-text {
  margin: 0;
  flex: 1 1 320px;
  font: 400 14px/1.5 "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--cx-soft, #d5d9df);
}
#pcp-consent-banner-v106 .pcp-consent-link {
  color: var(--cx-gold, #ddb967);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#pcp-consent-banner-v106 .pcp-consent-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
#pcp-consent-banner-v106 .pcp-consent-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 14px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  background: transparent;
}
#pcp-consent-banner-v106 .pcp-consent-decline {
  border-color: var(--cx-line-strong, rgba(213, 223, 240, .3));
  color: var(--cx-soft, #d5d9df);
}
#pcp-consent-banner-v106 .pcp-consent-decline:hover {
  background: rgba(255, 255, 255, .06);
}
#pcp-consent-banner-v106 .pcp-consent-accept {
  background: var(--cx-gold, #ddb967);
  border-color: var(--cx-gold, #ddb967);
  color: var(--cx-night, #090d14);
}
#pcp-consent-banner-v106 .pcp-consent-accept:hover {
  filter: brightness(1.06);
}
#pcp-consent-banner-v106 .pcp-consent-btn:focus-visible {
  outline: 2px solid var(--cx-focus, #f5d688);
  outline-offset: 2px;
}
#pcp-consent-banner-v106[dir="rtl"] .pcp-consent-text {
  text-align: right;
}
@media (max-width: 640px) {
  #pcp-consent-banner-v106 .pcp-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }
  /* .pcp-consent-text's flex-basis (320px) is a WIDTH hint for the default
     row layout above. In this stacked column layout the same shorthand
     would apply that 320px to the main axis, which is now vertical — a
     320px-tall paragraph box. Reset the basis here so it sizes to its
     actual (wrapped) text content instead (found 2026-09-16, PR #297
     follow-up: this is what made the banner ~409px tall on an iPhone SE). */
  #pcp-consent-banner-v106 .pcp-consent-text {
    flex: 1 1 auto;
  }
  #pcp-consent-banner-v106 .pcp-consent-actions {
    justify-content: stretch;
  }
  #pcp-consent-banner-v106 .pcp-consent-btn {
    flex: 1 1 0;
  }
}

/*
 * Space reservation: the banner is position:fixed and would otherwise sit on
 * top of the funnel's own Continue CTA rail at the bottom of the active
 * card's scroll container (definition of done: RUNNING-lejek-sesja1, Roman
 * 2026-09-14 — Continue is the last thing in normal flow, never a layer over
 * content). The --pcp-consent-banner-space value is set live by
 * consent-banner-v106.js (measured banner height, kept in sync via
 * ResizeObserver) and cleared on dismiss/accept.
 */
body.pcp-has-consent-banner section.card.on {
  padding-bottom: var(--pcp-consent-banner-space, 0px);
}
body.pcp-has-consent-banner section.card.on.codex-content-scroll > main {
  padding-bottom: var(--pcp-consent-banner-space, 0px);
}
