.analytics-consent{position:fixed;z-index:1000;right:18px;bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-sizing:border-box;width:min(680px,calc(100vw - 36px));max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);overflow-y:auto;padding:18px 20px;border:1px solid #eadce3;border-radius:18px;background:#fff;box-shadow:0 16px 48px rgba(38,12,25,.2);color:#231923;font:14px/1.5 Inter,system-ui,-apple-system,Segoe UI,sans-serif}
.analytics-consent[hidden]{display:none}
.analytics-consent strong{font-size:15px;font-weight:800}
.analytics-consent p{max-width:410px;margin:4px 0 0;color:#71636e;font-size:12px}
.analytics-consent-actions{display:flex;flex:none;gap:8px}
.analytics-consent-actions button,.analytics-settings-link{min-height:42px;padding:9px 13px;border:1px solid #e5d9df;border-radius:11px;background:#fff;color:#594751;font-family:inherit;font-size:12px;font-weight:700;line-height:1.2;cursor:pointer}
.analytics-consent-actions .analytics-consent-accept{border-color:#a51d4a;background:#b91e53;color:#fff}
.analytics-consent-actions button:hover{filter:brightness(.97)}
.analytics-settings-link{min-height:32px;margin-left:9px;padding:5px 9px;color:#a51d4a;font-size:11px}
@media(max-width:600px){.analytics-consent{right:10px;bottom:10px;left:10px;flex-direction:column;align-items:stretch;gap:12px;width:auto;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);padding:15px;border-radius:15px}.analytics-consent > :first-child{min-height:0;overflow-y:auto}.analytics-consent-actions{display:grid;grid-template-columns:1fr 1fr}.analytics-consent-actions button{min-height:44px;padding:8px 6px;font-size:11px}}

/* Keep the privacy choices tappable while analytics consent is open. */
#analytics-consent:not([hidden]) ~ #ktm-help-chat-host { display: none; }
