:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1f1f1f;
  --muted: #666666;
  --brand: #e1292f;
  --brand-dark: #af2328;
  --danger: #b42318;
  --border: #aaaaaa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Verdana, Tahoma, sans-serif;
}

.pay-shell {
  max-width: 480px;
  margin: 20px auto;
  padding: 15px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 0 10px #0001;
}

.brand-head {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #000;
  text-align: center;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  height: auto;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.row {
  display: block;
}

.resolve-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  border: 1px solid #aaa;
  border-radius: 12px;
  padding: 6px;
  font-size: 34px;
  border-radius: 6px;
}

input[type="text"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: #777;
}

button {
  border: none;
  border-radius: 6px;
  padding: 8px;
  margin-top: 6px;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
  color: white;
  background: var(--brand);
}

button:hover {
  background: var(--brand-dark);
}

button:active {
  transform: none;
}

#pay-btn {
  margin-top: 20px;
  width: 100%;
  font-size: 24px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.9rem;
}

#status {
  margin-top: 8px;
  min-height: 20px;
  text-align: left;
  font-weight: normal;
  font-size: 0.95rem;
  white-space: pre-line;
}

#status.error {
  color: var(--danger);
}

.hidden {
  display: none;
}

.helper {
  margin: 10px 0 0;
  font-size: 0.8rem;
  text-align: center;
  color: var(--muted);
}

.account-input {
  margin-top: 0;
  flex: 1;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  font-weight: bold;
  padding: 10px 8px;
}

.amount-input {
  margin-top: 0;
  flex: 1;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  font-weight: bold;
  padding: 10px 8px;
}

.resolve-submit {
  margin-top: 0;
  width: 52px;
  min-width: 52px;
  font-size: 24px;
  font-weight: bold;
  padding: 0;
}

@media (max-width: 640px) {
  .pay-shell {
    margin: 12px;
  }

  .row {
    display: block;
  }

  .resolve-row {
    display: flex;
  }

  .account-input {
    font-size: 30px;
  }

  .amount-input {
    font-size: 30px;
  }
}