/* Keeps the Hide control in the corner of the imported move notice, and
   removes the notice from layout after it is dismissed. The component host
   sets display:flex, so dismissal needs a stronger display rule. */

app-moved-notice.moved-notice {
  position: relative;
  box-sizing: border-box;
  padding-inline-end: 56px;
}

app-moved-notice.moved-notice-dismissed {
  display: none !important;
}

app-moved-notice > .moved-dismiss {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid var(--warning, #8a6a12);
  background: var(--surface, #fff);
  color: var(--ink, #131619);
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  font: 600 22px/1 var(--font-display, sans-serif);
}

app-moved-notice > .moved-dismiss:hover {
  background: color-mix(in srgb, var(--warning, #8a6a12) 14%, var(--surface, #fff));
}

app-moved-notice > .moved-dismiss:focus-visible {
  outline: 2px solid var(--ink, #131619);
  outline-offset: 2px;
}
