/* The cookie banner and the choice controls on the privacy policy page. A file, because
   the site's policy is style-src 'self'. Doubled classes outrank the page's own button styles. */
.hs-consent { position:fixed; right:24px; bottom:24px; z-index:9999; box-sizing:border-box; width:520px; max-width:calc(100vw - 32px);
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:end; padding:10px 12px;
  border:1px solid #2a2f33; border-radius:12px; background:rgba(29,31,33,.96); color:#d3d7d5;
  box-shadow:0 18px 48px rgba(0,0,0,.5); font:13px/1.4 'DM Sans',system-ui,sans-serif; text-align:left; }
.hs-consent h2 { margin:0 0 2px; color:#f2f3ef; font:700 14px/1.3 'DM Sans',system-ui,sans-serif; letter-spacing:normal; text-transform:none; }
.hs-consent p { margin:0; color:#c3c8cc; font-size:13px; line-height:1.4; }
/* Dismiss only hides the notice; preferences stay in the footer's Cookie Settings. */
.hs-consent.hs-consent>button { display:flex; align-items:center; justify-content:center; box-sizing:border-box; height:44px; min-height:44px; width:auto; min-width:0;
  margin:0; padding:0 12px; border-radius:6px; border:1px solid #4a5055; background:#111315; background-image:none; box-shadow:none;
  transform:none; color:#f2f3ef; font:600 13px 'DM Sans',system-ui,sans-serif; letter-spacing:normal; text-transform:none; cursor:pointer; }
.hs-consent.hs-consent>button:hover { background:#2a2f33; }
.hs-consent button:focus-visible, .cookie-settings button:focus-visible { outline:2px solid #a6cfbf; outline-offset:2px; }

/* Bottom right on a wide screen; bottom centre on a phone or a smaller portrait window. */
@media (max-width:960px) { .hs-consent { left:0; right:0; margin-inline:auto; } }
/* On a phone the notice is a strip on the bottom edge: no title, two lines, so it stays off the page's content. */
@media (max-width:640px) {
  .hs-consent { left:0; right:0; bottom:0; margin:0; width:auto; max-width:none; gap:8px; padding:7px 8px 7px 12px; align-items:center;
    border-radius:0; border-width:1px 0 0; border-color:#3a4045; box-shadow:none; background:rgba(22,24,26,.97); }
  .hs-consent h2 { display:none; }
  /* The type follows the width so the sentence keeps to two lines from a 360px phone up. */
  .hs-consent p { font-size:clamp(11px,3.1vw,12.5px); line-height:1.3; color:#d3d7d5; }
  .hs-consent.hs-consent>button { padding:0 10px; font-size:12.5px; }
}

.cookie-settings { margin:18px 0 22px; padding:16px 18px; border:1px solid #2a2f33; border-radius:12px; background:#181a1b; scroll-margin-top:96px; }
.cookie-settings p { margin:0; }
.cookie-settings h3 { margin:0 0 14px; }
.cookie-settings p + p { margin-top:14px; }
.cookie-settings form { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.cookie-settings.cookie-settings button { height:38px; min-height:0; width:auto; min-width:0; margin:0; padding:0 18px; border-radius:999px;
  border:1px solid #3a4045; background:#222629; background-image:none; box-shadow:none; transform:none; color:#e6e9e7;
  font:600 13.5px 'DM Sans',system-ui,sans-serif; letter-spacing:normal; text-transform:none; cursor:pointer; }
.cookie-settings.cookie-settings button:hover { background:#2a2f33; }
