/* Shared policy is restrictive before the first successful server response. */
html:not([data-copy-policy-exempt="ani"]):not([data-copy-policy="allowed"]),
html:not([data-copy-policy-exempt="ani"]):not([data-copy-policy="allowed"]) * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

/* WebKit needs native selection mechanics to place an editor caret. JS collapses
   ranges immediately; copy/cut are still blocked for all editable content. */
html:not([data-copy-policy-exempt="ani"]):not([data-copy-policy="allowed"]) :is(input, textarea, [contenteditable]:not([contenteditable="false"])),
html:not([data-copy-policy-exempt="ani"]):not([data-copy-policy="allowed"]) [contenteditable]:not([contenteditable="false"]) * {
  -webkit-user-select: text !important;
  user-select: text !important;
}

html:not([data-copy-policy-exempt="ani"])[data-copy-policy="allowed"],
html:not([data-copy-policy-exempt="ani"])[data-copy-policy="allowed"] *,
html:not([data-copy-policy-exempt="ani"]) .ani-panel,
html:not([data-copy-policy-exempt="ani"]) .ani-panel * {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

html:not([data-copy-policy-exempt="ani"]):not([data-copy-policy="allowed"]) :is(.copy-btn, .pcopy, .au-copy, [data-copy], [data-clip], [onclick*="copyMsg("], [onclick*="kitCopy("], [onclick*="reportCopy("]):not(.ani-panel *) {
  cursor: not-allowed !important;
  opacity: .55;
}

.par21-copy-policy-notice {
  position: fixed;
  z-index: 2147483647;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 12px 18px;
  border: 1px solid #818898;
  border-radius: 12px;
  background: #202733;
  color: #fff;
  font: 14px/1.5 system-ui, sans-serif;
  text-align: center;
  pointer-events: none;
}

.par21-copy-policy-notice[hidden] { display: none !important; }
