.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}}

/* BY NIGHT — premium centered consent (visual presentation only).
   No consent state, tracking, storage, page backdrop or overlay is changed. */
.bn-google-consent {
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(360px, calc(100vw - 28px)) !important;
  max-height: calc(100dvh - 28px) !important;
  gap: 13px !important;
  padding: 20px 19px !important;
  background: #111217 !important;
  border: 1px solid rgba(226,184,87,.72) !important;
  border-radius: 17px !important;
  box-shadow: 0 20px 55px rgba(0,0,0,.48) !important;
  color: #f7f1e7 !important;
}
.bn-google-consent h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 !important;
  color: #f7f1e7 !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  letter-spacing: -.015em !important;
  line-height: 1.35 !important;
}
.bn-google-consent h2::before {
  content: "";
  flex: none;
  display: inline-block;
  width: 21px;
  height: 21px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23E2B857%22%20stroke-width%3D%221.85%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2022s8-4%208-10V5l-8-3-8%203v7c0%206%208%2010%208%2010Z%22%2F%3E%3Cpath%20d%3D%22m9%2012%202%202%204-4%22%2F%3E%3C%2Fsvg%3E");
}
.bn-google-consent p {
  color: #d2d0d0 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
.bn-google-consent[data-bn-view="prompt"] .bn-google-consent-copy {
  padding: 0 !important;
  border: 0 !important;
  display: block !important;
}
.bn-google-consent[data-bn-view="prompt"] .bn-google-consent-copy p {
  margin: 0 !important;
}
.bn-google-consent[data-bn-view="prompt"] .bn-google-consent-copy a,
.bn-google-consent[data-bn-view="prompt"] .bn-privacy-close {
  display: none !important;
}
.bn-google-consent .bn-google-consent-actions {
  gap: 9px !important;
}
.bn-google-consent .bn-google-consent-actions button {
  min-height: 44px !important;
  padding: 10px 8px !important;
  border: 1px solid rgba(208,210,220,.16) !important;
  border-radius: 10px !important;
  background: #303137 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer;
}
.bn-google-consent .bn-google-consent-actions button[data-bn-consent="granted"] {
  background: #e2b857 !important;
  color: #151515 !important;
  border-color: #e2b857 !important;
}
.bn-google-consent .bn-google-consent-actions button:hover {
  filter: brightness(1.07) !important;
}
.bn-google-consent button:focus-visible,
.bn-google-consent a:focus-visible,
.bn-google-consent input:focus-visible {
  outline: 3px solid #e2b857 !important;
  outline-offset: 3px !important;
}
.bn-google-consent[data-bn-view="preferences"] {
  width: min(450px, calc(100vw - 28px)) !important;
}
@media (max-width: 600px) {
  .bn-google-consent {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100vw - 28px) !important;
    max-height: calc(100dvh - 28px) !important;
    padding: 18px 16px !important;
  }
  .bn-google-consent[data-bn-view="preferences"] {
    width: calc(100vw - 28px) !important;
  }
}


/* BY NIGHT consent modal v2 — center CTA + accessible secondary actions */
.bn-google-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  background: rgba(5, 7, 12, .64);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  cursor: default;
}
.bn-google-consent-backdrop[hidden] { display: none !important; }
body.bn-consent-modal-open { overflow: hidden !important; overscroll-behavior: none; }
.bn-google-consent {
  z-index: 2147483646 !important;
  width: min(390px, calc(100vw - 28px)) !important;
}
.bn-google-consent[data-bn-view="prompt"] .bn-google-consent-actions,
.bn-google-consent[data-bn-view="details"] .bn-google-consent-actions,
.bn-google-consent[data-bn-view="preferences"] .bn-google-consent-actions {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  gap: 0 !important;
  width: 100%;
}
.bn-google-consent .bn-google-consent-actions [data-bn-consent="granted"] {
  width: 100% !important;
  min-height: 52px !important;
  border-radius: 11px !important;
  background: #e2b857 !important;
  color: #151515 !important;
  border: 1px solid #e2b857 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
}
.bn-google-consent .bn-consent-secondary {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.bn-google-consent .bn-consent-secondary button {
  flex: 1 1 50%;
  min-width: 0;
  min-height: 44px;
  padding: 7px 3px;
  border: 0 !important;
  background: transparent !important;
  color: #e0dedb !important;
  font: 500 12px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  text-decoration: underline;
  text-decoration-color: rgba(224,222,219,.65);
  text-underline-offset: 3px;
  cursor: pointer;
}
.bn-google-consent .bn-consent-secondary [data-bn-consent="denied"] { text-align: left; }
.bn-google-consent .bn-consent-secondary .bn-consent-details-link { text-align: right; }
.bn-google-consent .bn-consent-secondary button:hover { color: #e2b857 !important; }
.bn-google-consent .bn-consent-secondary button:focus-visible {
  outline: 3px solid #e2b857 !important;
  outline-offset: 2px !important;
}
.bn-google-consent .bn-cookie-details[hidden],
.bn-google-consent .bn-google-consent-copy[hidden],
.bn-google-consent .bn-audience-choice[hidden] { display: none !important; }
.bn-google-consent[data-bn-view="details"] {
  width: min(450px, calc(100vw - 28px)) !important;
}
.bn-google-consent .bn-cookie-details {
  display: grid;
  gap: 12px;
}
.bn-google-consent .bn-cookie-details > p { margin: 0 !important; }
.bn-google-consent .bn-cookie-details-item {
  border-left: 2px solid rgba(226,184,87,.54);
  padding-left: 11px;
}
.bn-google-consent .bn-cookie-details-item h3 {
  margin: 0 0 3px;
  color: #f6eee0;
  font: 650 13px/1.4 system-ui,sans-serif;
}
.bn-google-consent .bn-cookie-details-item p { margin: 0 !important; font-size: 12px !important; }
.bn-google-consent .bn-cookie-details-foot { color: #c4c1bd !important; font-size: 11px !important; }
.bn-google-consent .bn-cookie-details > a {
  color: #e2b857 !important;
  font-size: 12px !important;
  text-underline-offset: 3px;
}
.bn-google-consent[data-bn-view="details"] .bn-google-consent-actions {
  margin-top: 4px;
}
.bn-google-consent .bn-privacy-close[hidden] { display: none !important; }
@media(max-width:600px) {
  .bn-google-consent,
  .bn-google-consent[data-bn-view="details"],
  .bn-google-consent[data-bn-view="preferences"] {
    width: calc(100vw - 28px) !important;
  }
  .bn-google-consent .bn-consent-secondary button {
    font-size: 11px !important;
    min-height: 48px !important;
  }
}


/* BY NIGHT Signature: subtle texture only on the details view; controls unchanged. */
.bn-google-consent[data-bn-view="details"] {
  background:
    radial-gradient(circle at 15% 7%,rgba(226,184,87,.085),transparent 36%),
    linear-gradient(145deg,#14151b 0%,#111217 58%,#0e0f15 100%) !important;
  box-shadow:0 20px 55px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.035) !important;
}
.bn-google-consent[data-bn-view="details"] .bn-cookie-details-item.bn-google-service {
  padding:9px 10px 9px 11px;
  background:linear-gradient(90deg,rgba(226,184,87,.055),transparent 85%);
  border-radius:0 8px 8px 0;
}
.bn-google-consent[data-bn-view="details"] .bn-google-service h3 {
  display:flex;align-items:center;gap:9px;margin:0;
}
.bn-google-consent[data-bn-view="details"] .bn-google-service h3::before {
  content:"✓";display:inline-flex;align-items:center;justify-content:center;
  box-sizing:border-box;width:19px;height:19px;flex:0 0 19px;
  border:1.5px solid #39c978;border-radius:50%;color:#39c978;
  font:700 12px/1 system-ui,sans-serif;
}
.bn-google-consent[data-bn-view="details"] .bn-google-consent-actions [data-bn-consent="granted"] {
  background:linear-gradient(180deg,#e7bd65,#e2b857) !important;
  box-shadow:0 7px 18px rgba(226,184,87,.11),inset 0 1px 0 rgba(255,255,255,.16) !important;
}
