/* Paying right on the site's own page (pay.js). The page's own fonts and colours carry through; these set the rest. */
.shulpay, .shulpay-express { --shulpay-line: rgba(0, 0, 0, .14); --shulpay-muted: rgba(0, 0, 0, .58); --shulpay-gap: 16px; }
.shulpay { display: grid; gap: var(--shulpay-gap); }
.shulpay-title { margin: 0; }
.shulpay-amount { margin: -6px 0 0; font-size: 2.2rem; line-height: 1.1; font-variant-numeric: lining-nums; }
.shulpay-lead { margin: 0; }
.shulpay-note, .shulpay-fine, .shulpay-muted { color: var(--shulpay-muted); }
.shulpay-note { margin: 8px 0 0; font-size: .95rem; }
.shulpay-fine { margin: -6px 0 0; font-size: .85rem; line-height: 1.45; }
.shulpay-choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.shulpay-choice legend { padding: 0; margin-bottom: 8px; font-size: .9rem; }
.shulpay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shulpay-opts.shulpay-one { grid-template-columns: 1fr; }
.shulpay-opts label { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--shulpay-line); cursor: pointer; }
.shulpay-opts label:has(input:checked) { border-color: currentColor; box-shadow: 0 0 0 1px currentColor; }
.shulpay-count { display: grid; gap: 6px; margin-top: 10px; font-size: .9rem; }
.shulpay-count[hidden], .shulpay-wallet[hidden], .shulpay-new[hidden], .shulpay [hidden], .shulpay-express[hidden] { display: none !important; }
.shulpay-field { display: grid; gap: 6px; font-size: .9rem; margin-bottom: 12px; }
.shulpay-field input { font: inherit; font-size: 16px; height: 46px; padding: 0 12px; border: 1px solid var(--shulpay-line); background: #fff; color: inherit; }
.shulpay-card { min-height: 150px; }
.shulpay-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin-top: 4px; }
.shulpay-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.shulpay-new .shulpay-fine { margin: 6px 0 0 28px; }
.shulpay-error { margin: 0; color: #b42318; }
.shulpay-or { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; color: var(--shulpay-muted); font-size: .85rem; }
.shulpay-or::before, .shulpay-or::after { content: ""; flex: 1; border-top: 1px solid var(--shulpay-line); }
.shulpay-express { margin: var(--shulpay-gap, 16px) 0 0; }
.shulpay-facts { margin: 0; border-top: 1px solid var(--shulpay-line); }
.shulpay-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--shulpay-line); }
.shulpay-facts dt { color: var(--shulpay-muted); }
.shulpay-facts dd { margin: 0; text-align: right; }
.shulpay-done h2 { margin: 0; }
/* The Pay button and Apple Pay side by side (one under the other on a narrow phone, or the Pay button alone). */
.shulpay-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.shulpay-actions:has(> .shulpay-wallet[hidden]), .shulpay-actions:not(:has(> .shulpay-wallet)) { grid-template-columns: 1fr; }
.shulpay-actions .shulpay-go { min-height: 52px; margin: 0; }
.shulpay-actions .shulpay-wallet { min-width: 0; }
@media (max-width: 520px) { .shulpay-opts, .shulpay-actions { grid-template-columns: 1fr; } }
