* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f6f8;
  color: #17181a;
}

.card {
  width: 100%;
  max-width: 520px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 18px 45px rgba(0,0,0,.06);
}

.brand {
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 8px;
}

h1 {
  margin: 0 0 18px;
  font-size: 28px;
}

.mode {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 22px;
}

.mode.test {
  background: #eef7ff;
}

.mode.live {
  background: #fff0f0;
}

.amount {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}

.note {
  color: #60646c;
  line-height: 1.5;
  font-size: 14px;
  margin-bottom: 22px;
}

#payment-element {
  margin-bottom: 20px;
}

button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  background: #17181a;
  color: white;
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

#message {
  margin-top: 14px;
  color: #b42318;
  line-height: 1.45;
  font-size: 14px;
}

.result {
  margin-top: 22px;
  padding: 16px;
  background: #f6f7f8;
  border-radius: 10px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.hidden {
  display: none;
}

code {
  font-size: 12px;
}

.link {
  color: inherit;
  font-weight: 700;
}
