/* The checkout dialog (a hard cut, no slide) and the phone bottom bar. */
dialog {
  padding: 0; margin: auto; border: var(--rule) solid var(--ink); background: var(--paper); color: var(--ink);
  width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
}
dialog::backdrop { background: rgba(255, 255, 255, 0.92); }
.dlg__bar { display: flex; align-items: center; justify-content: space-between; background: var(--hi); padding-left: 16px; position: sticky; top: 0; }
.dlg__close { min-height: 44px; min-width: 88px; background: var(--ink); color: var(--paper); border: 0; cursor: pointer; font-family: inherit; }
.dlg__close:active { background: var(--paper); color: var(--ink); }
.dlg__body { padding: 20px 16px 24px; display: grid; gap: 16px; }
.dlg__body h2:focus { outline: none; }
.dlg__small { font-size: 16px; line-height: 1.4; }
.bar { display: none; }
@media (max-width: 899px) {
  .bar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); min-height: 64px;
    background: var(--ink); color: var(--paper); border-top: 1px solid var(--paper);
    transform: translateY(100%); visibility: hidden;
    transition: transform 180ms var(--ease-out), visibility 0s linear 180ms;
  }
  .bar[data-shown="true"] { transform: translateY(0); visibility: visible; transition: transform 240ms var(--ease-out), visibility 0s; }
  .bar__t { display: flex; gap: 14px; align-items: baseline; }
  .bar__t b { font-size: 20px; }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .bar { transform: none; opacity: 0; transition: opacity 150ms linear, visibility 0s linear 150ms; }
  .bar[data-shown="true"] { opacity: 1; transition: opacity 150ms linear, visibility 0s; }
}
