/* Consent UI only. Page content, navigation and analytics behavior are unchanged. */
#analytics-consent[hidden], #analytics-consent [hidden] { display:none !important; }
#analytics-consent { position:fixed; z-index:1000; inset:auto 16px 16px auto; width:min(360px, calc(100% - 32px)); max-height:calc(100dvh - 32px); overflow:auto; padding:14px 16px; box-sizing:border-box; background:#fafafa; color:#303030; border:1px solid #dedede; border-radius:10px; box-shadow:0 3px 16px #0000000c; font:inherit; }
#analytics-consent h2 { margin:0 48px 4px 0; font-size:13px; font-weight:600; line-height:1.6; letter-spacing:.025em; }
#analytics-consent p { margin:0 0 9px; font-size:11.5px; line-height:1.75; }
#analytics-consent #analytics-current { margin:-3px 0 7px; color:#666; font-size:10.5px; }
#analytics-consent #analytics-current:empty { display:none; }
#analytics-consent .analytics-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
#analytics-consent button, .analytics-settings-button { font:inherit; cursor:pointer; }
#analytics-consent [data-analytics-choice] { flex:0 0 88px; min-height:38px; box-sizing:border-box; padding:7px 10px; border:1px solid #8a8a8a; background:transparent; color:inherit; border-radius:6px; font-size:11.5px; line-height:1.5; text-align:center; }
#analytics-consent [data-analytics-choice]:hover { background:#f0f0f0; }
#analytics-consent .analytics-actions a { display:inline-flex; align-items:center; min-height:38px; padding:0 3px; color:#555; font-size:11px; line-height:1.5; text-underline-offset:3px; }
#analytics-consent [data-analytics-close] { position:absolute; right:12px; top:9px; min-height:28px; padding:3px; border:0; background:transparent; color:#666; font-size:10.5px; }
.analytics-settings-button { border:0; background:transparent; color:inherit; padding:0; text-align:left; font-size:inherit; line-height:inherit; }
.analytics-settings-button:hover { text-decoration:underline; }
#analytics-consent button:focus-visible, #analytics-consent a:focus-visible, .analytics-settings-button:focus-visible { outline:2px solid #555; outline-offset:3px; }
/* Normal flow prevents the notice from covering tablet/phone content. */
@media (max-width:1024px) {
  #analytics-consent { position:relative; inset:auto; z-index:1; width:calc(100% - 40px); max-width:700px; max-height:none; margin:10px auto 0; padding:12px 14px; box-shadow:none; }
  #analytics-consent h2 { margin-bottom:3px; }
  #analytics-consent p { margin-bottom:7px; }
  #analytics-consent [data-analytics-choice] { min-height:44px; }
  #analytics-consent .analytics-actions a { min-height:44px; }
}
@media (max-width:620px) {
  #analytics-consent { width:calc(100% - 24px); margin-top:8px; padding:11px 12px; border-radius:8px; }
  #analytics-consent h2 { font-size:12px; }
  #analytics-consent p { font-size:11px; line-height:1.65; }
  #analytics-consent [data-analytics-close] { top:6px; right:9px; }
}
