/* Optional advertising measurement, independent of the page layout. */
#bajri-measurement-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10000;
  box-sizing: border-box;
  width: auto;
  max-width: 920px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 12px 16px;
  background: #fff;
  color: #182033;
  border: 1px solid #dce1e8;
  border-radius: 16px;
  box-shadow: 0 6px 28px #1820331a;
  font: 400 14px/1.75 'Cairo', system-ui, sans-serif;
  text-align: start;
}
#bajri-measurement-banner[hidden],
#bajri-measurement-banner [hidden],
.bajri-measurement-settings[hidden] { display: none !important; }
#bajri-measurement-banner h2 {
  /* Keep a useful region name for assistive technology without a bulky title. */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
#bajri-measurement-banner p { margin: 0; color: #536074; font: inherit; }
#bajri-measurement-banner .bajri-measurement-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#bajri-measurement-banner [data-measurement-copy] { flex: 1; min-width: 0; }
#bajri-measurement-banner .bajri-measurement-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
#bajri-measurement-details { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e6e9ee; }
#bajri-measurement-banner #bajri-measurement-details p { font-size: 13px; line-height: 1.9; }
#bajri-measurement-banner [data-measurement-status] { margin-top: 8px; font-size: 12px; }
#bajri-measurement-banner button {
  width: 80px;
  min-width: 68px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #c7ced8;
  border-radius: 10px;
  background: #fff;
  color: #182033;
  font: 700 14px/1.7 'Cairo', system-ui, sans-serif;
  cursor: pointer;
}
#bajri-measurement-banner button[data-measurement-accept] { background: #b9321a; border-color: #b9321a; color: #fff; }
#bajri-measurement-banner button[data-measurement-toggle] {
  width: auto;
  min-width: 0;
  padding-inline: 8px;
  background: transparent;
  border-color: transparent;
  color: #536074;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#bajri-measurement-banner button[data-measurement-reject]:hover { background: #f5f7fa; }
#bajri-measurement-banner button[data-measurement-toggle]:hover { color: #182033; }
#bajri-measurement-banner button:disabled { opacity: .5; cursor: not-allowed; }
#bajri-measurement-banner button:focus-visible,
.bajri-measurement-settings:focus-visible { outline: 3px solid #187f93; outline-offset: 4px; }
.bajri-measurement-settings {
  background: none;
  border: 0;
  padding: 8px 0;
  min-height: 44px;
  color: inherit;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.site-footer .bajri-measurement-settings { color: #cbd5e1; }
#bajri-measurement-banner[lang="en"],
#bajri-measurement-banner[lang="en"] h2,
#bajri-measurement-banner[lang="en"] button { font-family: 'Inter', system-ui, sans-serif; }
@media (max-width: 640px) {
  #bajri-measurement-banner { inset-inline: 10px; bottom: max(10px, env(safe-area-inset-bottom)); padding: 12px; font-size: 13px; }
  #bajri-measurement-banner .bajri-measurement-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  #bajri-measurement-banner .bajri-measurement-actions { gap: 8px; }
  #bajri-measurement-banner button { width: auto; padding: 8px; font-size: 13px; }
  #bajri-measurement-banner button[data-measurement-accept],
  #bajri-measurement-banner button[data-measurement-reject] { flex: 1; }
}
