.donation-dialog,
.donation-notice {
  color: #242424;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
  font: 16px/1.45 system-ui, sans-serif;
}

.donation-dialog {
  box-sizing: border-box;
  width: min(28rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 1.25rem;
}

.donation-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.donation-dialog h2 { margin: 0 0 .5rem; font: 700 1.4rem/1.2 system-ui, sans-serif; }
.donation-dialog p { margin: 0 0 .75rem; }
.donation-dialog label { display: block; margin: .75rem 0 .25rem; font-weight: 600; }

.donation-dialog input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: .45rem .65rem;
  border: 1px solid #777;
  border-radius: 6px;
  font: inherit;
}

.donation-dialog :focus-visible,
.donation-notice :focus-visible { outline: 2px solid #994300; outline-offset: 2px; }
.donation-dialog .donation-error { color: #a01818; margin: .65rem 0 0; }
.donation-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin: 1rem 0 .75rem; }

.donation-actions button,
.donation-notice button {
  min-height: 44px;
  padding: .4rem .75rem;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #fff;
  color: #242424;
  font: inherit;
  cursor: pointer;
}

.donation-actions button[type="submit"] { background: #a44700; color: #fff; border-color: #a44700; }
.donation-actions button:disabled { opacity: .65; cursor: wait; }
.donation-fallback { color: #804000; text-decoration: underline; }

.donation-notice:not([hidden]) {
  position: fixed;
  z-index: 1100;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: .75rem;
  width: min(26rem, calc(100% - 2rem));
  padding: .8rem;
  overflow-wrap: anywhere;
}
