:root {
    color-scheme: light;
    --ink: #1b2537;
    --muted: #505d70;
    --paper: #ffffff;
    --canvas: #f1f1f1;
    --line: #d9e1eb;
    --accent: #122450;
    --accent-hover: #1b3d73;
    --focus: #4183ed;
    --notice: #8b2929;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(125deg, transparent 0 76%, rgba(65, 131, 237, .06) 76% 100%),
        var(--canvas);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

button,
input {
    font: inherit;
}

.page-shell {
    width: min(100% - 40px, 760px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.site-header {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand img {
    display: block;
    width: 156px;
    height: auto;
}

.header-label,
.site-footer {
    color: var(--muted);
    font-size: .9rem;
}

.payment-panel {
    width: min(100%, 520px);
    margin: clamp(42px, 10vh, 88px) auto 56px;
    padding: clamp(24px, 6vw, 48px);
    border: 1px solid var(--line);
    border-top: 4px solid var(--focus);
    background: var(--paper);
    box-shadow: 0 16px 42px rgba(18, 36, 80, .07);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

h1 {
    margin: 0;
    font-size: 2rem;
}

.intro {
    margin: 12px 0 30px;
    color: var(--muted);
    line-height: 1.55;
}

.lookup-form {
    display: grid;
    gap: 9px;
}

.lookup-form label {
    margin-top: 8px;
    font-size: .9rem;
    font-weight: 700;
}

.lookup-form input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #aab8ca;
    border-radius: 3px;
    color: var(--ink);
    background: #fff;
}

.lookup-form input:focus,
button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

button {
    min-height: 46px;
    padding: 10px 18px;
    border: 0;
    border-radius: 3px;
    color: #fff;
    background: var(--accent);
    font-weight: 700;
    cursor: pointer;
}

.lookup-form button {
    margin-top: 14px;
}

button:hover {
    background: var(--accent-hover);
}

button:disabled {
    cursor: wait;
    opacity: .68;
}

.notice {
    margin: 20px 0 0;
    color: var(--notice);
    line-height: 1.5;
}

.invoice-result {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.invoice-result h2 {
    margin: 0 0 16px;
    font-size: 1.35rem;
}

.invoice-result dl {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) 1.4fr;
    gap: 12px;
    margin: 0;
}

.invoice-result dt {
    color: var(--muted);
}

.invoice-result dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.pay-button {
    width: 100%;
    margin-top: 22px;
}

.site-footer {
    margin: auto 0 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    .page-shell {
        width: min(100% - 28px, 760px);
    }

    .site-header {
        min-height: 76px;
    }

    .brand img {
        width: 132px;
    }

    .header-label {
        font-size: .8rem;
    }

    .invoice-result dl {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .invoice-result dd + dt {
        margin-top: 10px;
    }
}