/* Consent UI is independent of site navigation and never locks the page. */
.tmb-stats-consent[hidden], .tmb-stats-settings[hidden], .tmb-stats-consent [hidden] { display:none!important; }
.tmb-stats-settings { padding:12px 24px 20px; background:#061a38; color:#fff; text-align:center; }
.tmb-stats-settings-button { appearance:none; border:0; border-radius:4px; background:transparent; color:inherit; padding:10px 12px; min-height:44px; font:inherit; font-size:.88rem; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.tmb-stats-status { display:block; max-width:650px; margin:auto; font-size:.82rem; }
.tmb-stats-consent { position:fixed; z-index:70; left:24px; bottom:24px; width:min(490px,calc(100% - 120px)); max-height:calc(100vh - 48px); max-height:calc(100dvh - 48px); overflow:auto; overscroll-behavior:contain; box-sizing:border-box; border:1px solid #c2cbd8; border-radius:16px; padding:24px; background:#fff; color:#071a38; box-shadow:0 10px 38px rgba(6,26,56,.25); font-family:Arial,sans-serif; line-height:1.5; overflow-wrap:anywhere; }
.tmb-stats-consent h2 { margin:0 0 10px; font-size:1.25rem; line-height:1.3; letter-spacing:normal; color:inherit; }
.tmb-stats-consent p { margin:0 0 12px; font-size:.875rem; }
.tmb-stats-consent a { color:#174b81; text-decoration:underline; text-underline-offset:3px; }
.tmb-stats-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:16px; }
.tmb-stats-choice { appearance:none; border:2px solid #0b2b57; border-radius:8px; padding:11px 9px; min-height:48px; background:#0b2b57; color:#fff; font:inherit; font-size:.875rem; font-weight:700; line-height:1.35; cursor:pointer; text-align:center; overflow-wrap:anywhere; }
.tmb-stats-choice:hover { background:#174b81; border-color:#174b81; }
.tmb-stats-choice:disabled { background:#5f6b7d; border-color:#5f6b7d; cursor:not-allowed; }
.tmb-stats-close { appearance:none; display:block; min-height:44px; margin:10px auto -8px; padding:8px 12px; background:transparent; border:0; color:inherit; font:inherit; font-size:.875rem; text-decoration:underline; cursor:pointer; }
.tmb-stats-notice { padding:10px; border-left:3px solid #174b81; background:#edf4fb; }
.tmb-stats-consent button:focus-visible, .tmb-stats-consent a:focus-visible, .tmb-stats-settings-button:focus-visible { outline:3px solid #d67a00; outline-offset:3px; }
@media(max-width:760px) {
  .tmb-stats-consent { left:10px; right:10px; bottom:calc(74px + env(safe-area-inset-bottom,0px)); width:auto; padding:18px; border-radius:12px; max-height:calc(100vh - 100px); max-height:calc(100dvh - 100px - env(safe-area-inset-bottom,0px)); }
  .tmb-stats-settings { padding:10px 12px 18px; }
}
@media(max-width:350px) { .tmb-stats-actions { grid-template-columns:1fr; } }
