/* Remittance calculator. Tokens, header and footer come from the site stylesheet. */
.intro h1 { font-size: 22px; margin: 0 0 12px; }

.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 12px; margin: 20px 0 22px; }
.fields label { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-width: 0; font-weight: 600; }
.fields label .muted { font-weight: 400; }
.fields input {
  width: 100%; font: inherit; font-size: 17px; font-variant-numeric: tabular-nums;
  padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text);
}
.fields .note-field { grid-column: 1 / -1; }
.fields .note-field input { font-size: 15px; }
.fields select {
  width: 100%; font: inherit; font-size: 15px; padding: 10px 8px; min-height: 45px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text);
}
.fields select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.fields input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
/* Sits in the row gap under the FX box so it doesn't push that box out of line with its neighbours. */
.fields .live { position: absolute; top: calc(100% + 3px); left: 0; right: 0; font-size: 12px; font-weight: 400; display: flex; gap: 8px; align-items: baseline; white-space: nowrap; overflow: hidden; }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin: -10px 0 10px; font-size: 13px; }
.copy-link { color: var(--muted); }
.copy-link:hover { color: var(--accent); }
.copy-link { padding: 0; border: 0; background: none; font-size: inherit; text-decoration: underline; }
.use-live { padding: 0; border: 0; background: none; color: var(--accent); font-size: 12px; text-decoration: underline; }

.out {
  margin: 0 0 16px; padding: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
.max { display: flex; flex-direction: column; gap: 2px; }
.max strong { font-size: 32px; font-weight: 700; color: var(--ok); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.max.none strong { color: var(--err); }
.out .err { color: var(--err); }
.out .hint { margin: 0; }

.breakdown { width: 100%; margin-top: 14px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.breakdown th, .breakdown td { padding: 7px 0; border-top: 1px solid var(--line); vertical-align: baseline; }
.breakdown th { text-align: left; font-weight: 500; padding-right: 12px; }
.breakdown td { text-align: right; white-space: nowrap; }
.breakdown td.muted { font-size: 13px; padding-right: 16px; }
/* Slab sum under the GST row: full width so it also shows on phones. */
.breakdown tr.working td { border-top: 0; padding: 0 0 8px; text-align: left; white-space: normal; color: var(--muted); font-size: 12.5px; }
.breakdown tr:nth-last-child(2) th, .breakdown tr:nth-last-child(2) td:last-child { font-weight: 650; }

@media (max-width: 600px) {
  .fields { grid-template-columns: repeat(2, 1fr); }
  .breakdown td.muted { display: none; }
  .fields .live-date { display: none; }
}
