/* ATTPS Notify — messages (voir attps-notify.js). Surface sombre, celle du message du nouvel écran du builder
   (validée) ; jetons propres : la bibliothèque s'affiche pareil dans n'importe quel écran WordPress.
   Place : en bas à droite par défaut ; un écran la règle par --attps-nt-left / -right / -bottom. */
.attps-nt {
  --attps-nt-bg: #1f1c26; --attps-nt-ink: #ffffff; --attps-nt-ink-2: #c9c3d6; --attps-nt-act: #d9cdee;
  --attps-nt-ok: #5fd3a4; --attps-nt-info: #b79cf0; --attps-nt-warn: #f5b84a; --attps-nt-bad: #ff8a80;
  --attps-nt-font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  position: fixed; inset: auto var(--attps-nt-right, 20px) var(--attps-nt-bottom, 20px) var(--attps-nt-left, auto);
  margin: 0; padding: 0; border: 0; background: none; overflow: visible; z-index: 160000;
  width: min(420px, calc(100vw - 32px)); max-height: none; color: var(--attps-nt-ink);
}
.attps-nt:not([popover]), .attps-nt:popover-open { display: block; }
.attps-nt__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.attps-nt__list { display: flex; flex-direction: column; gap: 8px; }
.attps-nt__t {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px 10px 12px; border-radius: 10px;
  background: var(--attps-nt-bg); color: var(--attps-nt-ink); box-shadow: 0 10px 30px rgba(31, 28, 38, .28);
  font: 600 .84rem/1.4 var(--attps-nt-font); animation: attps-nt-in .22s cubic-bezier(.2, .8, .2, 1);
}
.attps-nt__t.is-out { animation: attps-nt-out .18s ease-in forwards; }
.attps-nt__i { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.attps-nt__t.is-success .attps-nt__i { color: var(--attps-nt-ok); }
.attps-nt__t.is-info .attps-nt__i { color: var(--attps-nt-info); }
.attps-nt__t.is-warning .attps-nt__i { color: var(--attps-nt-warn); }
.attps-nt__t.is-error { box-shadow: inset 3px 0 0 var(--attps-nt-bad), 0 10px 30px rgba(31, 28, 38, .28); }
.attps-nt__t.is-error .attps-nt__i { color: var(--attps-nt-bad); }
.attps-nt__t.is-loading .attps-nt__i { color: var(--attps-nt-info); animation: attps-nt-spin .8s linear infinite; }
.attps-nt__b { flex: 1; min-width: 0; padding-top: 1px; overflow-wrap: anywhere; }
.attps-nt__b b { display: block; font-weight: 700; }
.attps-nt__b span { color: var(--attps-nt-ink); font-weight: 500; }
.attps-nt__b b + span { color: var(--attps-nt-ink-2); }
.attps-nt__a {
  flex: none; min-height: 24px; padding: 0 6px; border: 0; border-radius: 6px; background: none; cursor: pointer;
  color: var(--attps-nt-act); font: 700 .84rem/24px var(--attps-nt-font); text-decoration: underline; text-underline-offset: 2px;
}
.attps-nt__x { flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--attps-nt-ink-2); cursor: pointer; }
.attps-nt__x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.attps-nt__a:hover, .attps-nt__x:hover { background: rgba(255, 255, 255, .1); color: var(--attps-nt-ink); }
.attps-nt__a:focus-visible, .attps-nt__x:focus-visible { outline: 2px solid var(--attps-nt-act); outline-offset: 1px; }
@keyframes attps-nt-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes attps-nt-out { to { opacity: 0; transform: translateY(4px); } }
@keyframes attps-nt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .attps-nt__t { animation: attps-nt-fade .15s; }
  .attps-nt__t.is-out { animation: attps-nt-fade .15s reverse forwards; }
  .attps-nt__t.is-loading .attps-nt__i { animation-duration: 2.4s; }
}
@keyframes attps-nt-fade { from { opacity: 0; } }
/* Confirmer hors des écrans à briques (repli). */
.attps-nt-ask { max-width: 420px; padding: 18px 20px 14px; border: 0; border-radius: 12px; box-shadow: 0 20px 50px rgba(31, 28, 38, .3); font: 15px/1.5 var(--attps-nt-font, system-ui, sans-serif); color: #1f1c26; }
.attps-nt-ask::backdrop { background: rgba(31, 28, 38, .35); }
.attps-nt-ask b { display: block; margin-bottom: 4px; font-size: 1rem; }
.attps-nt-ask p { margin: 0 0 14px; color: #56505f; }
.attps-nt-ask form { display: flex; justify-content: flex-end; gap: 8px; margin: 0; }
.attps-nt-ask button { min-height: 34px; padding: 0 14px; border: 1px solid #d7d2df; border-radius: 9px; background: #fff; font: 600 .88rem var(--attps-nt-font, system-ui, sans-serif); cursor: pointer; }
.attps-nt-ask .is-pri { border-color: #6c3fb5; background: #6c3fb5; color: #fff; }
.attps-nt-ask .is-danger { border-color: #b42318; background: #b42318; color: #fff; }
