:root {
  color-scheme: light;
  --blue: #3182f6;
  --ink: #191f28;
  --sub: #6b7684;
  --line: #e5e8eb;
  --bg: #f2f4f6;
  --soft: #e8f3ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    sans-serif;
  color: var(--ink);
  line-height: 1.5;
  word-break: keep-all;
}
main {
  max-width: 520px;
  margin: auto;
  padding: 24px 22px 44px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 34px;
}
.brand {
  font-size: 18px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.badge {
  font-size: 12px;
  font-weight: 650;
  color: #4e5968;
  border-radius: 6px;
  background: #e5e8eb;
  padding: 4px 8px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -1px;
}
h1 span {
  font-size: 28px;
  margin-left: 3px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
}
.intro {
  margin-bottom: 24px;
}
.intro > p:last-child {
  margin-top: 12px;
  color: var(--sub);
}
.eyebrow {
  color: var(--sub);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.intro .text-button {
  margin: 4px -8px 0;
}
.card {
  background: white;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
}
.account-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 18px;
  margin-bottom: 0;
}
.bank-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #e8f3ff;
  color: #1b64da;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  font-size: 17px;
}
.account-info {
  flex: 1;
  min-width: 0;
}
.account-info strong {
  font-size: 14px;
  font-weight: 600;
}
.account-info div {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.2px;
  overflow-wrap: anywhere;
}
.account-info small {
  display: block;
  color: var(--sub);
  font-size: 12px;
  margin-top: 2px;
}
.copy-feedback {
  color: #1b64da;
  font-size: 13px;
  min-height: 32px;
  padding: 6px 10px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-heading span {
  color: var(--sub);
  font-size: 12px;
}
.helper {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.6;
  margin: 6px 0 14px;
}
.bank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.bank-button {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 14px 12px;
  background: white;
  border: 1px solid transparent;
  border-radius: 14px;
  min-height: 76px;
  cursor: pointer;
}
.bank-button:hover {
  background: #f9fafb;
  border-color: #b0cfff;
}
.bank-button:active {
  background: #e8f3ff;
}
.bank-button .bank-avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
  border-radius: 11px;
}
.bank-button strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
.bank-button small {
  display: block;
  font-size: 11px;
  color: var(--sub);
  margin-top: 3px;
  line-height: 1.35;
}
.bank-button .label {
  flex: 1;
  min-width: 0;
}
button,
input,
select,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a.primary,
a.soft {
  border: none;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--blue);
  color: white;
}
.soft {
  background: var(--soft);
  color: #1b64da;
}
.small-button {
  min-height: 38px;
  font-size: 13px;
  padding: 9px 12px;
}
.text-button {
  background: none;
  color: #4e5968;
  min-height: 40px;
  padding: 8px;
  font-size: 13px;
  font-weight: 550;
}
.text-button:hover {
  background: #e5e8eb;
}
details {
  margin: 14px 0 24px;
}
summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  color: #4e5968;
  padding: 13px;
  border-radius: 12px;
  background: #e5e8eb;
  font-weight: 600;
}
summary::-webkit-details-marker {
  display: none;
}
summary span {
  margin-left: 5px;
  color: #8b95a1;
}
details[open] summary {
  margin-bottom: 10px;
}
.actions {
  display: flex;
  gap: 8px;
  margin: 16px 0 6px;
}
.actions > * {
  flex: 1;
}
.next-card p {
  color: var(--sub);
  font-size: 14px;
  margin-top: 7px;
}
.next-card .text-button {
  display: flex;
  margin: auto;
}
.qr-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 24px;
  padding: 20px;
}
.qr-card h2 {
  font-size: 16px;
}
.qr-card p {
  font-size: 12px;
  margin: 6px 0;
}
.qr-card img {
  border-radius: 10px;
  width: 116px;
  height: 116px;
  background: white;
}
.qr-card .text-button {
  padding: 5px 0;
  min-height: 36px;
  color: #1b64da;
}
.footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.footer-links a,
footer a {
  font-size: 12px;
  color: var(--sub);
}
footer {
  margin-top: 26px;
  color: #8b95a1;
  font-size: 12px;
  line-height: 1.8;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stack .helper {
  margin: 0;
}
.stack h2 {
  margin-bottom: 3px;
}
label {
  font-size: 14px;
  font-weight: 600;
  display: block;
}
.optional {
  font-size: 12px;
  font-weight: 400;
  color: #8b95a1;
  margin-left: 5px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d1d6db;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font-size: 16px;
  padding: 13px 12px;
  min-height: 48px;
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #90bfff;
  outline-offset: 1px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #90bfff;
  outline-offset: 3px;
}
.stack small {
  color: var(--sub);
  margin-top: -10px;
  font-size: 12px;
}
.error {
  color: #d52b3b;
  font-size: 13px;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.inline-form input {
  flex: 1;
  min-width: 100px;
  margin: 0;
}
.inline-form .error {
  width: 100%;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.options {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.option {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.option:has(input:checked) {
  border-color: var(--blue);
  background: var(--soft);
}
.option input {
  margin: 0;
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--blue);
}
#result-status {
  font-size: 14px;
}
.toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #333d4b;
  color: white;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 14px;
  max-width: calc(100% - 32px);
  box-shadow: 0 4px 24px #191f2826;
  z-index: 10;
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}
.progress-list {
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.progress-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.progress-list strong {
  display: block;
}
.progress-list span {
  color: var(--sub);
  font-size: 13px;
}
.review-intro {
  margin-bottom: 24px;
}
.review-intro h1 {
  font-size: 28px;
}
.review-intro p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--sub);
}
@media (min-width: 760px) {
  main {
    margin: 32px auto;
    max-width: 520px;
    border-radius: 28px;
    padding: 30px;
    background: var(--bg);
  }
  body {
    background: #e9edf2;
  }
}
@media (max-width: 359px) {
  main {
    padding: 20px 14px;
  }
  .bank-button {
    padding: 12px 9px;
    gap: 7px;
  }
  .bank-button strong {
    font-size: 13px;
  }
  .bank-button small {
    font-size: 10px;
  }
  .qr-card img {
    width: 98px;
    height: 98px;
  }
  .account-info div {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* Readability pass: preserve two-column layout and the existing blue/white tone. */
body {
  font-size: 16px;
}
.helper {
  font-size: 14px;
}
.bank-grid {
  gap: 12px;
}
.bank-button {
  min-height: 88px;
  padding: 17px 13px;
  gap: 10px;
}
.bank-button strong {
  font-size: 16px;
}
.bank-button small {
  font-size: 12px;
  margin-top: 5px;
}
.bank-button .bank-avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
}
.account-info strong {
  font-size: 16px;
}
.account-info div {
  font-size: 20px;
}
.account-info small {
  font-size: 14px;
  color: #4e5968;
  margin-top: 5px;
}
.account-card {
  padding: 23px 18px;
}
.small-button {
  min-height: 46px;
  font-size: 15px;
}
.section-heading {
  gap: 12px;
}
.section-heading h2 {
  font-size: 20px;
}
.section-heading span {
  flex-shrink: 0;
}
.text-button {
  font-size: 14px;
  min-height: 44px;
}
summary {
  font-size: 16px;
  padding: 16px;
}
footer {
  font-size: 13px;
  color: #6b7684;
}
footer a {
  display: inline-block;
  margin-top: 14px;
  line-height: 1.7;
}
.merchant-entry {
  margin-bottom: 24px;
}
.won-input {
  position: relative;
}
.won-input input {
  padding-right: 40px;
  font-size: 24px;
  font-weight: 650;
}
.won-input > span {
  position: absolute;
  right: 16px;
  top: 15px;
  font-size: 20px;
  color: #6b7684;
}
#customer-amount-form {
  margin-top: 20px;
}
#mode-help {
  margin: 12px 0 0;
}
#customer-amount-error {
  margin-top: 10px;
}
#amount-heading {
  font-size: 32px;
}
.toast {
  white-space: normal;
  text-align: center;
  width: max-content;
}
.account-info {
  overflow-wrap: anywhere;
}
@media (max-width: 359px) {
  .bank-button {
    padding: 14px 10px;
    gap: 8px;
  }
  .bank-button strong {
    font-size: 15px;
  }
  .bank-button small {
    font-size: 11px;
  }
  .bank-button .bank-avatar {
    width: 30px;
    height: 30px;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .account-info div {
    font-size: 18px;
  }
  .account-card {
    gap: 9px;
  }
}

/* Shared Momentus field tokens, with this product's original control shape. */
:root {
  --mmt-r-ctrl: 12px;
}
input,
select,
textarea {
  border-radius: var(--mmt-r-field, 12px);
}
