/* 「管理員切換身分中」 notice (public/impersonation-notice.js). Amber warning colours
   already used on the public pages; no new design tokens. */
.impersonation-notice {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  align-self: stretch;
  padding: 10px 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #1c120a;
  background: #f2b705;
  color: #1c120a;
  font-size: 14px;
  line-height: 1.45;
}

.impersonation-notice-copy {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.impersonation-notice-admin {
  margin-left: 4px;
  font-size: 13px;
}

.impersonation-notice-stop {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid #1c120a;
  border-radius: 8px;
  background: #fffdf5;
  color: #1c120a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.impersonation-notice-stop:disabled {
  cursor: wait;
  opacity: 0.7;
}

.impersonation-notice-error {
  flex-basis: 100%;
  margin: 0;
  font-weight: 700;
}

/* Donate page: a donation made while impersonating is never linked to the viewer. */
.donate-supporter-impersonation-note {
  margin: 8px 0 0;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}
