:root {
    color: #151719;
    background: #f5f7f8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.site-header {
    min-height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #d9dee2;
    background: #ffffff;
}

.brand {
    font-size: 18px;
    font-weight: 700;
}

.environment {
    color: #58636c;
    font-size: 13px;
}

main {
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 56px 24px 72px;
}

.payment-summary {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #cfd5da;
}

.eyebrow {
    margin: 0 0 8px;
    color: #006b55;
    font-size: 13px;
    font-weight: 650;
}

h1 {
    margin: 0;
    font-size: 32px;
    letter-spacing: 0;
}

.amount {
    display: flex;
    align-items: baseline;
    gap: 9px;
    white-space: nowrap;
}

.amount span {
    color: #58636c;
    font-size: 14px;
}

.amount strong {
    font-size: 30px;
}

.payment-action {
    padding-top: 32px;
}

.apple-pay-button {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 6px;
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: buy;
    -apple-pay-button-style: black;
    cursor: pointer;
}

.apple-pay-button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.status {
    min-height: 24px;
    margin-top: 18px;
    color: #58636c;
    font-size: 14px;
    text-align: center;
}

.status[data-state="error"] {
    color: #a42323;
}

.status[data-state="success"] {
    color: #006b55;
    font-weight: 650;
}

.receipt {
    margin: 30px 0 0;
    border-top: 1px solid #cfd5da;
}

.receipt div {
    min-height: 44px;
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    border-bottom: 1px solid #e0e4e7;
}

.receipt dt {
    color: #58636c;
}

.receipt dd {
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

footer {
    padding: 24px;
    color: #6b747b;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 520px) {
    main {
        padding-top: 36px;
    }

    .payment-summary {
        align-items: start;
        flex-direction: column;
        gap: 20px;
    }
}
