:root {
  font-family: system-ui, sans-serif;
  color: #263944;
  background: #fff;
  font-size: 14px;
  --accent: #24566d;
  --line: #dbe3e7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  min-height: 70px;
  padding: 16px max(24px, calc((100% - 1040px) / 2));
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-size: 24px;
  font-weight: 750;
  color: var(--accent);
}
.brand span {
  font-size: 12px;
  margin-left: 8px;
}
.test {
  font-size: 12px;
  color: #506976;
}
main {
  max-width: 1040px;
  margin: 64px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #53839a;
}
h1 {
  font-size: 28px;
  line-height: 1.3;
  margin: 14px 0;
}
h2 {
  font-size: 18px;
  margin: 0 0 18px;
}
p {
  line-height: 1.65;
  color: #566872;
}
.amount {
  display: block;
  font-size: 36px;
  color: var(--accent);
  margin-top: 28px;
}
.note {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 32px;
  font-size: 12px;
  line-height: 1.8;
  color: #566872;
}
.methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
button,
.button,
input,
.secure-field {
  min-height: 36px;
  border: 1px solid #aabfc8;
  border-radius: 5px;
  font: inherit;
}
button,
.button {
  padding: 7px 14px;
  background: white;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
button:hover,
.button:hover {
  background: #edf3f6;
  color: #163c4d;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #24566d;
  outline-offset: 3px;
}
.methods button[aria-pressed="true"],
.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.primary:hover {
  background: #193f52;
  color: white;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 15px 0 6px;
}
input,
.secure-field {
  width: 100%;
  padding: 8px 10px;
  background: white;
}
input[readonly] {
  background: #f5f7f8;
}
.secure-field {
  padding: 0 9px;
  min-height: 38px;
}
.secure-field iframe {
  width: 100%;
  height: 36px;
  border: 0;
}
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
form > .primary {
  width: 100%;
  margin-top: 20px;
}
#status {
  font-size: 13px;
  padding: 10px 0;
}
#status[data-error="true"] {
  color: #9a2a26;
}
#pix-image {
  max-width: 220px;
  width: 100%;
  display: block;
  margin: 20px auto;
}
textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px;
  resize: vertical;
  font-size: 12px;
}
.return {
  display: block;
  margin-top: 24px;
  color: var(--accent);
}
footer {
  max-width: 1040px;
  margin: 50px auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: #566872;
  font-size: 11px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  header {
    padding: 16px 20px;
    align-items: flex-start;
  }
  .test {
    max-width: 180px;
    text-align: right;
  }
  main {
    margin: 30px auto;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px;
  }
  .amount {
    font-size: 30px;
    margin-top: 16px;
  }
  .note {
    margin-top: 22px;
    padding-top: 18px;
  }
  button,
  .button,
  input,
  .secure-field {
    min-height: 40px;
  }
  footer {
    margin: 30px 20px;
    padding: 20px 0;
  }
  .columns {
    gap: 10px;
  }
}
/* Secure hosts share the exact control height; iframes do not add a baseline gap. */
.secure-field {
  height: 36px;
  min-height: 36px;
  overflow: hidden;
}
.secure-field iframe {
  display: block;
  height: 100%;
}
@media (max-width: 720px) {
  .secure-field {
    height: 40px;
    min-height: 40px;
  }
}
