/* Look borrowed from the PayInvoice PayNow page: blue page, logo and merchant
   name on top, light card, Montserrat, white shadowed inputs, blue buttons. */
:root { --primary: #175280; --text: #525f7f; --ink: #37474f; --line: #e9ecef; --tint: #e8eef3; }
* { box-sizing: border-box; }
body { margin: 0; padding: 24px 12px 40px; font-family: Montserrat, sans-serif; font-size: 14px; line-height: 1.5; background: var(--primary); color: var(--text); }
.head { text-align: center; margin-bottom: 16px; }
.head img { display: block; margin: 0 auto 12px; width: 196px; max-width: 60%; height: auto; }
h1 { font-size: 26px; font-weight: 600; margin: 0; color: #fff; }
h2 { font-size: 20px; font-weight: 600; margin: 8px 0; color: #32325d; }
.card { max-width: 720px; margin: 0 auto; background: #f7fafc; border-radius: 6px; padding: 24px 40px; box-shadow: 0 0 32px rgba(55, 71, 79, .15); }
@media (max-width: 600px) { .card { padding: 20px 16px; } h1 { font-size: 22px; } }
.foot { text-align: center; color: #fff; font-size: 16px; margin-top: 32px; }
.foot p { margin: 0 0 8px; }
.center { text-align: center; }
.muted { color: #8898aa; }
.small { font-size: 12px; }
.facts { margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 16px; }
.facts dt { font-weight: 600; } .facts dd { margin: 0; color: var(--ink); }
.field { display: block; border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.field > span, legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; color: var(--text); }
input[type=text], input[type=email], select { width: 100%; height: 46px; padding: 10px 12px; font: inherit; font-size: 16px; border: 0; border-radius: 6px; background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(50, 50, 93, .15), 0 1px 0 rgba(0, 0, 0, .02); }
input:focus, select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.money { display: flex; align-items: center; border-radius: 6px; padding-left: 12px; background: #fff; color: var(--ink); font-size: 16px; box-shadow: 0 1px 3px rgba(50, 50, 93, .15), 0 1px 0 rgba(0, 0, 0, .02); }
.money input { box-shadow: none; padding-left: 6px; } .money input:focus { outline: none; }
.money:focus-within { outline: 2px solid var(--primary); outline-offset: 1px; }
/* Payment amount: a narrow field centred in the card. */
.amount-field { text-align: center; }
.amount-field .money { width: 200px; max-width: 100%; margin: 0 auto; }
.amount-field .money input { font-size: 18px; font-weight: 600; text-align: center; padding-right: 28px; } /* right padding balances the $ sign */
#tip-custom-wrap { margin-top: 8px; }
.choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 420px) { .choices { gap: 4px; } .choices button { font-size: 13px; } }
.choices button { height: 50px; border: 1px solid transparent; background: #fff; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; color: var(--text); line-height: 1.2; box-shadow: 0 1px 3px rgba(50, 50, 93, .15), 0 1px 0 rgba(0, 0, 0, .02); }
.choices button small { display: block; font-weight: 400; font-size: 11px; color: #8898aa; }
.choices button.on { background: var(--primary); color: #fff; }
.choices button.on small { color: #d5e1ea; }
.methods { display: grid; gap: 8px; }
.method { display: flex; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 6px; padding: 0 14px; min-height: 46px; cursor: pointer; background: #fff; box-shadow: 0 1px 3px rgba(50, 50, 93, .15), 0 1px 0 rgba(0, 0, 0, .02); }
.method.on { border-color: var(--primary); background: var(--tint); }
.method input, .check input { accent-color: var(--primary); width: 16px; height: 16px; flex: none; }
.method[hidden] { display: none; }
/* Name on the left, fee note on the right, one line per option. */
.method > span { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 4px 12px; flex-wrap: wrap; min-width: 0; }
.method strong { font-size: 14px; font-weight: 600; color: var(--ink); } .method small { color: #8898aa; font-size: 12px; text-align: right; margin-left: auto; }
.hosted { height: 46px; }
/* Collect.js sometimes sizes its iframe to 0 height; pin it. */
.hosted iframe { width: 100% !important; height: 46px !important; display: block; border: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; font-size: 13px; margin-bottom: 16px; align-items: flex-start; }
.check input { margin-top: 2px; }
.summary { width: 100%; border-collapse: collapse; margin: 4px 0 16px; font-size: 16px; border-top: 1px solid var(--line); }
.summary td { padding: 6px 0; } .summary td:first-child { font-weight: 600; } .summary td:last-child { text-align: right; color: var(--ink); }
.summary tr:first-child td { padding-top: 12px; }
.summary .total td { border-top: 1px solid var(--line); font-weight: 700; font-size: 18px; padding-top: 10px; color: #32325d; }
.primary { width: 100%; height: 43px; border: 0; border-radius: 6px; background: var(--primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08); }
.primary:hover:not(:disabled) { transform: translateY(-1px); }
.primary:disabled { opacity: .65; cursor: default; }
.secondary { width: 100%; height: 43px; margin-top: 8px; border: 0; border-radius: 6px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: var(--primary); box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08); }
.error { background: #fdecec; color: #a12020; padding: 10px 12px; border-radius: 6px; }
.tick { width: 56px; height: 56px; line-height: 56px; margin: 8px auto; border-radius: 50%; background: #e3f6e8; color: #1c8a3b; font-size: 30px; text-align: center; }
[hidden] { display: none !important; }
