/* Floating notice positioning and controls; scoped to this popup only. */
.floating-notice-overlay {
  position: fixed;
  inset: 0;
}

.floating-notice {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--app-border, #e2e8f0);
  border-radius: 16px;
  padding: 24px;
  color: var(--app-text, #0f172a);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.floating-notice-head,
.floating-notice-title,
.floating-notice-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-notice-head { justify-content: space-between; }
.floating-notice-title { min-width: 0; font-size: 16px; }
.floating-notice-title b { overflow-wrap: anywhere; }
.floating-notice-title > svg { flex-shrink: 0; color: var(--user-primary, #1d4ed8); }
.floating-notice svg { width: 18px; height: 18px; }

.floating-notice-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--app-border, #e2e8f0);
  border-radius: 8px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.floating-notice-message {
  margin: 20px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.65;
}

.floating-notice-actions { justify-content: flex-end; }
.floating-notice-primary {
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  color: var(--user-on-primary, #fff);
  background: var(--user-primary, #1d4ed8);
  cursor: pointer;
}
.floating-notice-primary:hover { background: var(--user-primary-hover, #1e40af); }
.floating-notice button:focus-visible { outline: 2px solid var(--user-primary, #1d4ed8); outline-offset: 3px; }

.floating-notice-message img { max-width:100%; height:auto; }
.floating-notice-message a { color:var(--user-primary,#1d4ed8); text-decoration:underline; }
.floating-notice-message p { margin:0 0 .7em; }
.floating-notice-message ul, .floating-notice-message ol { padding-left:1.5em; }
.floating-notice-message table { max-width:100%; border-collapse:collapse; }
.floating-notice-message td, .floating-notice-message th { padding:6px; border:1px solid var(--app-border,#e2e8f0); }

.floating-notice-message ul { list-style-type:disc; }
.floating-notice-message ol { list-style-type:decimal; }
.floating-notice-message pre { white-space:pre-wrap; overflow-wrap:anywhere; }
