/* BookUp checkout (payment.bookup.digital) – standalone, no libraries.
   Brand: deep fairway green + gold, a "tee ticket" summary of the booking and the group's payment progress. */
:root {
    --ck-green: #15302a;
    --ck-green-2: #1f453c;
    --ck-green-3: #2b5a4e;
    --ck-gold: #c49a58;
    --ck-gold-dark: #a5814a;
    --ck-text: #1d2724;
    --ck-muted: #66736f;
    --ck-line: #e2e7e4;
    --ck-field: #f7f9f8;
    --ck-bg: #f2f4f1;
    --ck-ok: #1f8a4c;
    --ck-bad: #c0392b;
    --ck-wait: #b7791f;
    --ck-radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ck-bg); color: var(--ck-text); font: 15px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ck-green-3); }

.ck { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 420px) 1fr; }

/* ── left: brand side ── */
.ck-side { position: relative; overflow: hidden; color: #e8efe9; padding: 28px 32px; display: flex; flex-direction: column; gap: 28px;
    background:
        radial-gradient(120% 60% at 0% 100%, rgba(196, 154, 88, .18), transparent 60%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 14px, transparent 14px 28px),
        linear-gradient(180deg, var(--ck-green) 0%, #10261f 100%); }
.ck-side::after { content: ""; position: absolute; right: -90px; top: 38%; width: 220px; height: 220px; border-radius: 50%;
    border: 2px solid rgba(196, 154, 88, .18); box-shadow: 0 0 0 26px rgba(196, 154, 88, .05); pointer-events: none; }
.ck-side-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ck-logo img { height: 46px; display: block; }
.ck-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ck-gold); }
.ck-lock { display: inline-block; width: 11px; height: 9px; border-radius: 2px; background: currentColor; position: relative; margin-top: 4px; }
.ck-lock::before { content: ""; position: absolute; left: 2px; top: -6px; width: 5px; height: 6px; border: 1.6px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
.ck-lock.dark { color: var(--ck-muted); margin-right: 6px; }
.ck-side-body { flex: 1; position: relative; z-index: 1; }
.ck-hello { font-size: 30px; line-height: 1.2; font-weight: 600; margin: 40px 0 14px; color: #fff; }
.ck-soft { color: #b9c8c0; margin: 0; }

/* tee ticket */
.ck-ticket { background: #fbfaf6; color: var(--ck-text); border-radius: var(--ck-radius); padding: 20px 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); position: relative; }
.ck-ticket::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: var(--ck-radius) 0 0 var(--ck-radius); background: var(--ck-gold); }
.ck-ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ck-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ck-muted); }
.ck-code { font: 700 15px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--ck-green); letter-spacing: .03em; }
.ck-ticket-guest { font-size: 20px; font-weight: 600; margin: 8px 0 12px; color: var(--ck-green); }
.ck-facts, .ck-money { margin: 0; display: grid; gap: 6px; }
.ck-facts div, .ck-money div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ck-facts dt, .ck-money dt { color: var(--ck-muted); }
.ck-facts dd, .ck-money dd { margin: 0; text-align: right; font-weight: 500; }
.ck-money .open { padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--ck-line); font-size: 16px; }
.ck-money .open dd { font-weight: 700; color: var(--ck-green); }
.ck-tear { margin: 16px -22px 14px; border-top: 2px dashed #d9d3c4; position: relative; }
.ck-tear::before, .ck-tear::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--ck-green); }
.ck-tear::before { left: -9px; } .ck-tear::after { right: -9px; }
.ck-progress-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--ck-muted); }
.ck-progress-head b { color: var(--ck-green); }
.ck-bar { height: 8px; border-radius: 8px; background: #ebe6d8; margin: 6px 0 14px; overflow: hidden; }
.ck-bar i { display: block; height: 100%; min-width: 4px; border-radius: 8px; background: linear-gradient(90deg, var(--ck-gold-dark), var(--ck-gold)); }

.ck-trust { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.ck-badge { height: 30px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 6px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 12px; font-weight: 600; color: #e8efe9; }
.ck-badge.visa { font: italic 900 15px/1 Arial, sans-serif; letter-spacing: -.3px; }
.ck-badge.mc { position: relative; width: 46px; }
.ck-badge.mc i { position: absolute; top: 7px; width: 16px; height: 16px; border-radius: 50%; }
.ck-badge.mc i:first-child { left: 9px; background: #eb001b; }
.ck-badge.mc i:last-child { left: 19px; background: #f79e1b; opacity: .9; }

/* ── right: form ── */
.ck-main { display: flex; flex-direction: column; min-width: 0; }
.ck-langs { display: flex; justify-content: flex-end; gap: 2px; padding: 16px 24px 0; }
.ck-langs a { font-size: 12px; font-weight: 600; text-decoration: none; color: var(--ck-muted); padding: 4px 8px; border-radius: 20px; }
.ck-langs a.on { background: var(--ck-green); color: #fff; }
.ck-content { flex: 1; padding: 8px 24px 32px; }
.ck-form, .ck-result, .ck-terms-text { max-width: 560px; margin: 0 auto; }
.ck-narrow { padding-top: 40px; }
.ck-title { font-size: 26px; font-weight: 650; margin: 12px 0 6px; color: var(--ck-green); letter-spacing: -.01em; }
.ck-intro { color: var(--ck-muted); margin: 0 0 18px; }

.ck-alert { max-width: 560px; margin: 12px auto 0; padding: 11px 14px; border-radius: 10px; background: #fdeeec; color: var(--ck-bad); border: 1px solid #f3cbc5; }

.ck-step { background: #fff; border: 1px solid var(--ck-line); border-radius: var(--ck-radius); padding: 18px 20px 6px; margin-top: 16px; }
.ck-step h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 15px; font-weight: 650; }
.ck-step h3 span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ck-green); color: var(--ck-gold); font-size: 12px; }
.ck-field { display: block; margin-bottom: 14px; }
.ck-field > span { display: block; font-size: 13px; color: var(--ck-muted); margin-bottom: 5px; }
.ck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

input { width: 100%; height: 44px; padding: 8px 12px; border: 1px solid #d3dbd7; border-radius: 9px; background: var(--ck-field); font: inherit; font-size: 15px; color: var(--ck-text); transition: border-color .15s, box-shadow .15s, background .15s; }
input:focus { outline: none; background: #fff; border-color: var(--ck-green-3); box-shadow: 0 0 0 3px rgba(43, 90, 78, .15); }
input[readonly] { color: var(--ck-muted); }
input::placeholder { color: #9aa6a1; }

.ck-amount { display: flex; align-items: stretch; border: 1px solid #d3dbd7; border-radius: 10px; background: var(--ck-field); overflow: hidden; }
.ck-amount:focus-within { border-color: var(--ck-green-3); box-shadow: 0 0 0 3px rgba(43, 90, 78, .15); background: #fff; }
.ck-amount input { border: 0; background: transparent; height: 58px; font-size: 26px; font-weight: 650; color: var(--ck-green); box-shadow: none; }
.ck-amount b { display: flex; align-items: center; padding: 0 16px; color: var(--ck-gold-dark); font-size: 15px; letter-spacing: .05em; }
.ck-amount.fixed { background: #f4f1e8; border-color: #e3dac4; }
.ck-amount.fixed input { color: var(--ck-green); }
.ck-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.ck-chip { border: 1px solid #d3dbd7; background: #fff; color: var(--ck-green); border-radius: 20px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.ck-chip:hover, .ck-chip.on { border-color: var(--ck-green); background: var(--ck-green); color: #fff; }
.ck-hint { font-size: 13px; color: var(--ck-muted); margin: 6px 0 12px; }

.ck-cardbox { border: 1px solid #d3dbd7; border-radius: 10px; overflow: hidden; margin-bottom: 14px; background: var(--ck-field); }
.ck-cardbox:focus-within { border-color: var(--ck-green-3); box-shadow: 0 0 0 3px rgba(43, 90, 78, .15); }
.ck-cardbox input { border: 0; border-radius: 0; background: transparent; box-shadow: none; height: 48px; }
.ck-cardbox input:focus { box-shadow: none; background: #fff; }
.ck-cardnum { position: relative; border-bottom: 1px solid #d3dbd7; }
.ck-cardnum input { padding-right: 90px; letter-spacing: .06em; }
.ck-cardrow { display: grid; grid-template-columns: 1fr 1fr; }
.ck-cardrow input + input { border-left: 1px solid #d3dbd7; }
.ck-brand { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--ck-green); }
.ck-brand.visa { font: italic 900 16px/1 Arial, sans-serif; color: #1a1f71; }
.ck-brand.mc { color: #eb001b; }

.ck-terms { display: flex; align-items: flex-start; gap: 10px; margin: 18px 2px; font-size: 14px; cursor: pointer; }
.ck-terms input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ck-green); flex: 0 0 auto; }

.ck-pay { width: 100%; height: 56px; border: 0; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    background: linear-gradient(180deg, var(--ck-green-2), var(--ck-green)); color: #fff; font: inherit; font-size: 18px; font-weight: 600; text-decoration: none;
    box-shadow: 0 8px 20px rgba(21, 48, 42, .25), inset 0 -2px 0 var(--ck-gold-dark); transition: transform .1s, box-shadow .15s; }
.ck-pay:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(21, 48, 42, .3), inset 0 -2px 0 var(--ck-gold); }
.ck-pay[disabled] { background: #a9b4b0; box-shadow: none; cursor: not-allowed; transform: none; }
.ck-pay.busy { opacity: .8; pointer-events: none; }
.ck-pay.busy .ck-arrow { border-color: rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; width: 16px; height: 16px; transform: none; animation: ck-spin .8s linear infinite; }
.ck-pay.inline { width: auto; height: 46px; padding: 0 26px; font-size: 15px; }
.ck-pay.ghost { background: #fff; color: var(--ck-green); border: 1px solid var(--ck-green); box-shadow: none; }
.ck-arrow { width: 9px; height: 9px; border-top: 2px solid var(--ck-gold); border-right: 2px solid var(--ck-gold); transform: rotate(45deg); display: inline-block; }
.ck-note { text-align: center; font-size: 12.5px; color: var(--ck-muted); margin: 12px 0 0; }

.ck-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; padding: 16px 24px 22px; font-size: 12.5px; color: var(--ck-muted); border-top: 1px solid var(--ck-line); }
.ck-merchant { display: inline-flex; gap: 4px 12px; flex-wrap: wrap; }

/* result */
.ck-result { text-align: center; padding-top: 36px; }
.ck-result-icon { width: 72px; height: 72px; margin: 0 auto 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: #fff; }
.ck-result-icon.ok { background: var(--ck-ok); box-shadow: 0 0 0 10px rgba(31, 138, 76, .12); }
.ck-result-icon.bad { background: var(--ck-bad); box-shadow: 0 0 0 10px rgba(192, 57, 43, .12); }
.ck-result-icon.wait { background: var(--ck-wait); box-shadow: 0 0 0 10px rgba(183, 121, 31, .12); }
.ck-lead { color: var(--ck-muted); margin: 6px auto 20px; max-width: 460px; }
.ck-receipt { text-align: left; background: #fff; border: 1px solid var(--ck-line); border-radius: var(--ck-radius); padding: 18px 20px; margin-bottom: 20px; border-top: 4px solid var(--ck-gold); }
.ck-receipt.bad { border-top-color: var(--ck-bad); } .ck-receipt.wait { border-top-color: var(--ck-wait); }
.ck-receipt-amount { font-size: 28px; font-weight: 700; color: var(--ck-green); margin-bottom: 10px; }
.ck-receipt dl { margin: 0; display: grid; gap: 6px; }
.ck-receipt dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ck-receipt dt { color: var(--ck-muted); }
.ck-receipt dd { margin: 0; text-align: right; word-break: break-all; }

.ck-terms-text { padding-top: 12px; }
.ck-terms-text h2 { color: var(--ck-green); font-size: 22px; }
.ck-terms-text h3 { font-size: 15.5px; margin: 18px 0 4px; }
.ck-terms-text p { margin: 0 0 8px; }

/* redirect to the bank */
.ck-redirect { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: var(--ck-green); color: #e8efe9; }
.ck-spinner { width: 46px; height: 46px; margin: 0 auto 18px; border: 4px solid rgba(255, 255, 255, .15); border-top-color: var(--ck-gold); border-radius: 50%; animation: ck-spin 1s linear infinite; }
@keyframes ck-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
    .ck { grid-template-columns: 1fr; }
    .ck-side { padding: 18px 16px 22px; gap: 16px; }
    .ck-side::after { display: none; }
    .ck-logo img { height: 36px; }
    .ck-hello { font-size: 22px; margin: 8px 0 6px; }
    .ck-soft { font-size: 13.5px; }
    .ck-trust { display: none; }
    .ck-langs { padding: 12px 16px 0; }
    .ck-content { padding: 4px 16px 24px; }
    .ck-grid { grid-template-columns: 1fr; gap: 0; }
    .ck-step { padding: 16px 14px 4px; }
    .ck-narrow { padding-top: 12px; }
}
@media print {
    body { background: #fff; }
    .ck { display: block; }
    .ck-side, .ck-langs, .ck-foot, .no-print { display: none; }
}
