/* Shared return control for full-page panels and payment dialogs. */
.page-back-row {
  display: flex;
  justify-content: flex-end;
  align-self: stretch;
  flex: none;
  width: 100%;
  min-height: 44px;
  margin: 0 0 8px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
}
.generic-sync-page:has(> .page-back-row) {
  justify-content: flex-start;
}
.phone :is(.full-page-back, .wallet-history-back) {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 10px;
  border: 1px solid #d8e6e5;
  border-radius: 12px;
  background: #fff;
  color: #267f7b;
  cursor: pointer;
  box-shadow: var(--control-shadow);
}
.phone :is(.full-page-back, .wallet-history-back) svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.phone :is(.full-page-back, .wallet-history-back):active {
  box-shadow: var(--control-pressed);
}
.wallet-history-page-header > .wallet-history-back {
  order: 2;
  margin-left: auto;
}
.wallet-history-page-header > div:not(.credit-return-command) {
  min-width: 0;
}
.payment-command-dialog > .page-back-row + h2 {
  margin-top: 8px;
}
