.bn-google-consent {
  position: fixed;
  z-index: 99990;
  left: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: grid;
  gap: 14px;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  box-sizing: border-box;
  padding: 20px;
  background: #171722;
  color: #fff;
  border: 1px solid #777;
  border-radius: 10px;
  box-shadow: 0 4px 20px #0006;
  font: 14px/1.5 system-ui, sans-serif;
}
.bn-google-consent [hidden], .bn-google-consent[hidden] { display: none !important; }
.bn-google-consent h2 { margin: 0; font: 600 18px/1.4 system-ui, sans-serif; color: inherit; }
.bn-google-consent-copy { min-width: 0; padding-top: 12px; border-top: 1px solid #666; }
.bn-google-consent p { margin: 0 0 6px; font: inherit; color: inherit; }
.bn-google-consent a { color: #c8d9ff; text-decoration: underline; text-underline-offset: 3px; }
.bn-audience-choice label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; }
.bn-audience-choice input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: #a3beff; }
.bn-audience-choice p { margin-top: 4px; }
.bn-google-consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bn-google-consent button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #171722;
  font: 600 14px/1.4 system-ui, sans-serif;
  cursor: pointer;
}
.bn-google-consent .bn-privacy-close { justify-self: end; background: transparent; color: #fff; min-width: 88px; }
.bn-google-preferences {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #c8bfd0;
  font: 14px/1.4 system-ui, sans-serif;
  letter-spacing: normal;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.bn-google-preferences-footer { padding: 12px 16px; text-align: center; }
.bn-google-consent button:focus-visible,
.bn-google-consent input:focus-visible,
.bn-google-consent a:focus-visible,
.bn-google-preferences:focus-visible { outline: 3px solid #88adff; outline-offset: 3px; }
@media (max-width: 600px) {
  .bn-google-consent { gap: 12px; padding: 16px; }
}

/* By Night GA4 opt-in compact consent — small, deliberate and accessible. */
.bn-google-consent{
  width:min(390px,calc(100vw - 24px))!important;
  left:12px!important;bottom:max(12px,env(safe-area-inset-bottom))!important;
  gap:9px!important;padding:15px 16px!important;
  max-height:min(85dvh,540px)!important;
  border:1px solid rgba(209,215,228,.20)!important;
  border-radius:16px!important;
  background:rgba(24,29,39,.97)!important;
  box-shadow:0 17px 48px rgba(0,0,0,.32)!important;
  font:400 12px/1.48 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  color:#f2f4f7!important;
  backdrop-filter:blur(17px);-webkit-backdrop-filter:blur(17px);
}
.bn-google-consent h2{
  font:650 15px/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  letter-spacing:-.02em!important;
}
.bn-google-consent p{font-size:12px!important;line-height:1.5!important;color:#bcc6d3!important;margin:0 0 4px!important}
.bn-google-consent .bn-google-consent-copy{
  display:flex;flex-direction:column;align-items:flex-start;gap:5px;
  padding:9px 0 0!important;border-color:rgba(199,210,225,.13)!important;
}
.bn-google-consent .bn-google-consent-copy a{
  color:#dbcaab!important;font-size:11px!important;
  text-underline-offset:3px!important;
}
.bn-google-consent .bn-google-consent-actions{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;
}
.bn-google-consent .bn-google-consent-actions button{
  min-height:37px!important;padding:7px 9px!important;
  font:600 11px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  border-radius:9px!important;white-space:normal!important;
  border:1px solid rgba(192,200,213,.3)!important;
  background:#29313d!important;color:#f1f2f4!important;
}
.bn-google-consent .bn-google-consent-actions [data-bn-consent="granted"]{
  background:#cbb58f!important;border-color:#cbb58f!important;
  color:#141b24!important;
}
.bn-google-consent .bn-google-consent-actions button:hover{filter:brightness(1.09)}
.bn-google-consent .bn-privacy-close{
  justify-self:end!important;min-height:28px!important;
  min-width:55px!important;padding:2px 8px!important;
  background:transparent!important;border:0!important;
  border-radius:7px!important;color:#b0b9c4!important;
  font-size:11px!important;font-weight:500!important;
}
.bn-google-consent[data-bn-view="prompt"] .bn-audience-choice{display:none!important}
.bn-google-consent[data-bn-view="preferences"]{
  width:min(460px,calc(100vw - 24px))!important;gap:10px!important;
}
.bn-google-consent .bn-audience-choice{
  padding:9px 10px!important;
  background:rgba(159,177,200,.07)!important;
  border:1px solid rgba(159,177,200,.14)!important;
  border-radius:10px!important;
}
.bn-google-consent .bn-audience-choice label{
  min-height:36px!important;font-size:12px!important;font-weight:550!important;
}
.bn-google-consent .bn-audience-choice p{font-size:11px!important}
.bn-google-preferences{
  color:#c6b8a0!important;
  font:500 12px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  text-underline-offset:3px!important;
}
@media(max-width:600px){
  .bn-google-consent{
    width:calc(100vw - 20px)!important;
    left:10px!important;bottom:max(10px,env(safe-area-inset-bottom))!important;
    padding:13px!important;max-height:calc(100dvh - 20px)!important;
  }
  .bn-google-consent[data-bn-view="preferences"]{width:calc(100vw - 20px)!important}
  .bn-google-consent .bn-google-consent-actions button{min-height:42px!important}
}
@media(prefers-reduced-motion:reduce){.bn-google-consent{transition:none!important}}

