/* High contrast keeps the page readable in bright light at the kiosk. */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #111;
    background: #fff;
    line-height: 1.4;
}

#hvpayApp {
    max-width: 30em;
    margin: 0 auto;
    padding: 16px;
}

.shop-head {
    text-align: center;
    margin-bottom: 16px;
}

.shop-logo {
    max-width: 120px;
    max-height: 80px;
}

.shop-name {
    font-size: 1.4em;
    margin: 8px 0 0;
}

.door-label {
    font-size: 1.1em;
    font-weight: 700;
    margin: 4px 0 0;
    color: #333;
}

.big {
    font-size: 1.3em;
    font-weight: 700;
}

.success {
    color: #0a6b1d;
}

.item-photo {
    display: block;
    width: 100%;
    max-height: 40vh;
    object-fit: contain;
    margin: 0 auto 12px;
}

.item-name {
    font-size: 1.2em;
    margin: 0 0 12px;
}

.row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 1.1em;
    border-bottom: 1px solid #ddd;
}

.row.total {
    font-weight: 700;
    font-size: 1.3em;
    border-bottom: none;
}

button {
    display: block;
    width: 100%;
    min-height: 56px;
    margin: 16px 0 0;
    font-size: 1.25em;
    font-weight: 700;
    color: #fff;
    background: #0a5c2e;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

button[disabled] {
    background: #777;
    cursor: default;
}

.countdown {
    font-size: 1.2em;
    font-weight: 700;
    text-align: center;
    color: #8a4b00;
}

/* #token-frame IS Datacap's iframe (card number, expiry, CVV, zip): give it the full width and enough height. */
.token-frame,
#token-frame {
    display: block;
    width: 100%;
    margin: 16px 0;
    min-height: 360px;
    border: 0;
}

/* Datacap injects its own element/iframe here; make sure it has room to render the card fields. */
#token-frame > *,
#token-frame iframe {
    display: block;
    width: 100%;
    min-height: 220px;
    border: 0;
}

.pay-msg {
    color: #b00000;
    font-weight: 700;
}

.pay-msg:empty {
    display: none;
}

.fine {
    font-size: 0.85em;
    color: #555;
}

.receipt-title {
    font-size: 1.1em;
    margin: 16px 0 4px;
}
