/* Small, state-led feedback for the NEXT surface. Imported by the app entry. */
.next-app :is(button.btn, a.btn, button.header-create) {
  transition: background-color 160ms ease-out, border-color 160ms ease-out,
    color 160ms ease-out, box-shadow 160ms ease-out, transform 120ms ease-out;
}

.next-app :is(button.btn, a.btn, button.header-create):not(:disabled):active {
  transform: scale(.985);
}

@media (pointer: fine) and (hover: hover) {
  .next-app .new-shop-button {
    transition: background-color 180ms ease-out, border-color 180ms ease-out,
      box-shadow 180ms ease-out, transform 180ms ease-out;
  }

  .next-app .new-shop-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px #18264012;
  }
}

.next-app .nx-networks label > span {
  transition: background-color 160ms ease-out, border-color 160ms ease-out,
    color 160ms ease-out, box-shadow 160ms ease-out;
}

.next-app .nx-networks input:checked + span {
  box-shadow: 0 0 0 2px #1769c214;
}

.next-app .next-settlement-row details[open] > dl {
  animation: next-proof-reveal 180ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes next-proof-reveal {
  from { opacity: .72; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .next-app :is(button.btn, a.btn, button.header-create),
  .next-app .new-shop-button,
  .next-app .nx-networks label > span {
    transition: none;
  }

  .next-app :is(button.btn, a.btn, button.header-create):not(:disabled):active,
  .next-app .new-shop-button:hover {
    transform: none;
  }

  .next-app .next-settlement-row details[open] > dl {
    animation: none;
  }
}
