.xhl-consent[hidden],.xhl-preferences[hidden] { display:none; }
.xhl-consent {
  position:fixed;
  z-index:120;
  inset:auto auto max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  max-width:min(29rem,calc(100% - 24px));
  max-height:calc(100dvh - 24px);
  overflow:auto;
  padding:16px 16px 12px;
  border:1px solid #ced6dc;
  border-radius:12px;
  background:#fff;
  color:#22313d;
  box-shadow:0 8px 28px #1026382a;
  font:normal 14px/1.5 system-ui,sans-serif;
}
.xhl-consent h2 { margin:0 40px 7px 0; color:inherit; font:700 16px/1.3 system-ui,sans-serif; text-align:left; letter-spacing:0; }
.xhl-consent[data-current-choice="granted"] { inset:max(12px,env(safe-area-inset-top)) auto auto max(12px,env(safe-area-inset-left)); }
.xhl-consent p { margin:0 0 8px; color:inherit; }
.xhl-consent [role="status"] { font-size:.83rem; margin:6px 0 0; }
.xhl-consent [role="status"]:empty { display:none; }
.xhl-consent-actions { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; }
.xhl-consent button,.xhl-consent a,.xhl-preferences { min-height:44px; }
.xhl-consent button {
  padding:4px 10px;
  border:1px solid #9caeb9;
  border-radius:6px;
  color:#22313d;
  background:#fff;
  font:600 .86rem/1.25 system-ui,sans-serif;
  cursor:pointer;
}
.xhl-consent button[aria-pressed="true"] { background:#eff3f6; border-color:#456578; }
.xhl-consent :is(button,a):focus-visible,.xhl-preferences:focus-visible { outline:2px solid #397f9d; outline-offset:2px; }
.xhl-consent a { display:inline-flex; align-items:center; color:#244d64; text-decoration:underline; }
.xhl-consent #xhl-close { position:absolute; inset:5px 6px auto auto; width:44px; border:0; font-size:1.25rem; }
footer .xhl-preferences { padding:3px 0; border:0; background:transparent; color:inherit; text-decoration:underline; font:inherit; cursor:pointer; }
footer .footer-bottom:has(.xhl-preferences:not([hidden])) { padding-bottom:calc(76px + env(safe-area-inset-bottom)); }
