/* gopay checkout popup */
.gp-lock, .gp-lock body { overflow: hidden; }
.gp-wrap { --gp-ink: #111; --gp-muted: #6b6b6b; --gp-line: #e7e7e7; --gp-bg: #f6f6f7; --gp-ok: #0a8a4a; --gp-bad: #c62828; --gp-accent: var(--maroon, #5b1a1a);
  position: fixed; inset: 0; z-index: 1000; background: rgba(20, 20, 20, .55); display: grid; place-items: center; padding: 16px; font: 15px/1.45 var(--sans, system-ui, sans-serif); color: var(--gp-ink); animation: gpFade .18s ease; }
@keyframes gpFade { from { opacity: 0; } }
.gp { position: relative; width: min(440px, 100%); height: min(780px, calc(100dvh - 32px)); background: var(--gp-bg); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); animation: gpUp .22s ease; }
@keyframes gpUp { from { transform: translateY(16px); opacity: .6; } }
.gp-nudge { animation: gpNudge .3s ease; }
@keyframes gpNudge { 30% { transform: scale(1.015); } 60% { transform: scale(.995); } }
@media (max-width: 520px) { .gp-wrap { padding: 0; align-items: end; } .gp { width: 100%; height: 100dvh; border-radius: 0; } }
.gp-splash { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: #fff; color: var(--gp-muted); text-align: center; padding: 24px; }
.gp-splash p { font-size: 17px; margin: 0; }
.gp-logo-anim { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, #f5b400 0 45%, #1f4fd1 45%); animation: gpSpin 1.1s ease-in-out infinite; }
@keyframes gpSpin { 50% { transform: rotate(90deg) scale(.9); } }
.gp-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--gp-line); }
.gp-brand { display: flex; align-items: center; gap: 8px; min-width: 0; } .gp-brand img { border-radius: 50%; object-fit: cover; } .gp-brand b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-sec { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--gp-muted); white-space: nowrap; }
.gp-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f0f0f0; font-size: 15px; cursor: pointer; color: var(--gp-ink); flex: none; }
.gp-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.gp-foot { background: #fff; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--gp-line); }
.gp-card { background: #fff; border: 1px solid var(--gp-line); border-radius: 14px; padding: 12px 14px; }
.gp-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 600 15.5px var(--sans, system-ui); }
.gp-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gp-bg); font-size: 14px; flex: none; color: var(--gp-ink); }
.gp-ic svg, .gp-opt-t b svg { display: block; }
.gp-opt-t b { display: inline-flex; align-items: center; gap: 6px; }
.gp-cap { margin: 6px 2px 0; font: 600 12px var(--sans, system-ui); letter-spacing: .05em; text-transform: uppercase; color: var(--gp-muted); }
.gp-sum-top { all: unset; display: flex; align-items: center; gap: 10px; width: 100%; cursor: pointer; }
.gp-sum-t { display: flex; flex-direction: column; gap: 3px; } .gp-saved { font-style: normal; font-size: 12.5px; color: var(--gp-ok); background: #e8f6ee; border-radius: 20px; padding: 1px 8px; width: max-content; }
.gp-sum-r { margin-left: auto; text-align: right; display: flex; flex-direction: column; } .gp-sum-r small { color: var(--gp-muted); } .gp-sum-r s { color: var(--gp-muted); font-size: 12.5px; margin-right: 5px; } .gp-sum-r b { font-size: 16px; }
.gp-chev { width: 8px; height: 8px; border-right: 2px solid #555; border-bottom: 2px solid #555; transform: rotate(45deg); margin: 0 2px 4px 4px; transition: transform .15s; } .gp-sum.open .gp-chev { transform: rotate(-135deg); margin-bottom: -4px; }
.gp-lines { margin-top: 12px; border-top: 1px solid var(--gp-line); padding-top: 10px; display: grid; gap: 10px; }
.gp-line { display: flex; gap: 10px; align-items: center; } .gp-line img, .gp-noimg { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--gp-bg); flex: none; }
.gp-line span { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 13.5px; } .gp-line small { color: var(--gp-muted); } .gp-line em { font-style: normal; text-align: right; font-weight: 600; display: flex; flex-direction: column; } .gp-line s { color: var(--gp-muted); font-weight: 400; font-size: 12px; }
.gp-dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 12px 0 0; padding: 10px 12px; background: var(--gp-bg); border-radius: 10px; font-size: 13.5px; }
.gp-dl dt { color: #444; } .gp-dl dd { margin: 0; text-align: right; } .gp-dl .ok { color: var(--gp-ok); } .gp-dl .t { font-weight: 700; font-size: 15px; padding-top: 6px; border-top: 1px solid var(--gp-line); }
.gp-cpn { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gp-cpn input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--gp-line); border-radius: 22px; padding: 0 14px; font: inherit; text-transform: uppercase; }
.gp-cpn-on { flex: 1; color: var(--gp-ok); font-size: 14px; } .gp-cpn .gp-err { flex-basis: 100%; margin: 0; }
.gp-link { all: unset; cursor: pointer; font-weight: 600; color: var(--gp-ink); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.gp-f { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; } .gp-f span { font-size: 12.5px; color: var(--gp-muted); }
.gp-f input { height: 46px; border: 1px solid #cfcfcf; border-radius: 12px; padding: 0 12px; font: inherit; font-size: 16px; background: #fff; color: var(--gp-ink); width: 100%; box-sizing: border-box; }
.gp-f input:focus, .gp-cpn input:focus, .gp-boxes input:focus, .gp-row input:focus { outline: 2px solid var(--gp-ink); outline-offset: -1px; border-color: transparent; }
.gp-f.bad input { border-color: var(--gp-bad); }
.gp-ph { display: flex; align-items: center; border: 1px solid #cfcfcf; border-radius: 12px; overflow: hidden; } .gp-ph em { font-style: normal; padding: 0 10px 0 12px; border-right: 1px solid var(--gp-line); color: #444; }
.gp-ph input { border: 0; height: 46px; } .gp-ph:focus-within { outline: 2px solid var(--gp-ink); }
.gp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gp-err { color: var(--gp-bad); font-size: 13px; margin: 4px 0; min-height: 0; } .gp-err:empty { display: none; } .c { text-align: center; }
.gp-fine { font-size: 12.5px; color: var(--gp-muted); margin: 4px 0; } .gp-fine a { color: var(--gp-ink); text-decoration: underline; }
.gp-note { font-size: 12.5px; color: #8a5a00; background: #fff6e0; border-radius: 8px; padding: 6px 8px; margin: 10px 0 0; flex-basis: 100%; }
.gp-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border: 0; border-radius: 12px; background: var(--gp-ink); color: #fff; font: 600 16px var(--sans, system-ui); cursor: pointer; text-decoration: none; box-sizing: border-box; padding: 0 16px; }
.gp-btn:disabled { background: #9a9a9a; cursor: default; } .gp-btn.ghost { background: #fff; color: var(--gp-ink); border: 1.5px solid var(--gp-ink); } .gp-btn.wa { background: #1fa855; }
.gp-chip { display: inline-flex; align-items: center; padding: 7px 14px; border: 1.5px solid var(--gp-ink); border-radius: 10px; background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--gp-ink); text-decoration: none; }
.gp-addr { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; } .gp-addr > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; } .gp-addr small { color: var(--gp-muted); }
.gp-ship { flex-basis: 100%; margin: 8px 0 0; padding: 8px 10px; background: var(--gp-bg); border-radius: 8px; font-size: 13.5px; }
.gp-pay { padding: 6px; display: grid; gap: 6px; }
.gp-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; } .gp-opt.on { border-color: var(--gp-ink); background: #fafafa; }
.gp-opt input { accent-color: var(--gp-ink); width: 18px; height: 18px; } .gp-opt-t { display: flex; flex-direction: column; flex: 1; } .gp-opt-t small { color: var(--gp-muted); font-size: 12.5px; }
.gp-upi { font-style: italic; font-weight: 800; letter-spacing: -.02em; }
.gp-apps { display: flex; } .gp-apps i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid #fff; margin-left: -6px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); } .gp-apps svg { display: block; }
.gp-trust { text-align: center; color: var(--gp-muted); font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; padding: 8px 0; } .gp-trust span { display: inline-flex; gap: 5px; align-items: center; justify-content: center; }
.gp-me { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.gp-sheet-host { position: absolute; inset: 0; pointer-events: none; } .gp-sheet-host:empty { display: none; }
.gp-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); pointer-events: auto; animation: gpFade .15s; }
.gp-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); pointer-events: auto; animation: gpSheet .22s ease; box-sizing: border-box; }
.gp-sheet-tall { max-height: 94%; }
@keyframes gpSheet { from { transform: translateY(40px); opacity: .5; } }
.gp-sheet h3 { margin: 0 0 10px; font: 600 18px var(--sans, system-ui); } .gp-sheet h4 { margin: 14px 0 8px; font: 600 14.5px var(--sans, system-ui); }
.gp-sheet-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #f0f0f0; cursor: pointer; }
.gp-otp { text-align: center; } .gp-otp-ic { font-size: 34px; } .gp-otp p { color: #444; font-size: 14px; }
.gp-boxes { display: flex; gap: 8px; justify-content: center; margin: 14px 0 6px; }
.gp-boxes input { width: 44px; height: 52px; text-align: center; font-size: 22px; font-weight: 600; border: 1.5px solid #cfcfcf; border-radius: 12px; }
.gp-otp .gp-btn { margin: 12px 0 4px; }
.gp-book { display: grid; gap: 8px; margin-bottom: 10px; }
.gp-book-a { all: unset; display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1.5px solid var(--gp-line); border-radius: 12px; cursor: pointer; font-size: 14px; } .gp-book-a.on { border-color: var(--gp-ink); } .gp-book-a span { color: var(--gp-muted); font-size: 13px; }
.gp-seg { display: flex; gap: 10px; margin-bottom: 12px; } .gp-seg label { cursor: pointer; } .gp-seg input { position: absolute; opacity: 0; }
.gp-seg span { display: inline-flex; padding: 8px 18px; border: 1.5px solid var(--gp-line); border-radius: 12px; font-weight: 500; } .gp-seg input:checked + span { border-color: var(--gp-ink); } .gp-seg input:focus-visible + span { outline: 2px solid var(--gp-ink); }
.gp-reasons { display: grid; gap: 4px; margin: 6px 0 14px; } .gp-reasons label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; cursor: pointer; font-size: 14.5px; } .gp-reasons input { width: 18px; height: 18px; accent-color: var(--gp-ink); flex: none; margin-top: 1px; }
.gp-warn b { color: #d98a00; }
.gp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .gp-row2 .gp-btn { font-size: 15px; }
.gp-upi-box { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.gp-amt { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.gp-appbtns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.gp-chip.gp-app { gap: 7px; padding: 6px 12px 6px 7px; border: 1.5px solid var(--gp-line); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.gp-chip.gp-app svg { display: block; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.gp-anyhint { margin-top: -4px; font-size: 12px; color: var(--gp-muted); }
.gp-qr img { display: block; margin: 0 auto; border: 1px solid var(--gp-line); border-radius: 12px; padding: 6px; background: #fff; } .gp-qr p { margin: 6px 0 0; color: var(--gp-muted); font-size: 13px; }
.gp-timer { margin: 0; padding: 6px 12px; background: var(--gp-bg); border-radius: 20px; font-size: 13.5px; }
.gp-wait { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #444; }
.gp-spin { width: 16px; height: 16px; border: 2px solid #ccc; border-top-color: var(--gp-ink); border-radius: 50%; animation: gpRot .8s linear infinite; flex: none; } @keyframes gpRot { to { transform: rotate(360deg); } }
.gp-utr { width: 100%; text-align: left; font-size: 14px; } .gp-utr summary { cursor: pointer; font-weight: 600; text-align: center; }
.gp-row { display: flex; gap: 8px; } .gp-row input { flex: 1; min-width: 0; height: 42px; border: 1px solid #cfcfcf; border-radius: 10px; padding: 0 12px; font: inherit; }
.gp-done { flex: 1; text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gp-tick { width: 72px; height: 72px; border-radius: 50%; background: var(--gp-ok); color: #fff; font-size: 38px; display: grid; place-items: center; animation: gpUp .3s ease; } .gp-done h3 { font-size: 20px; margin: 10px 0 0; } .gp-done p { color: #444; }

/* athipay brand: purple square + yellow lightning; opening animation = the bolt flashes like lightning */
.ap-charge { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.ap-charge > svg:not(.ap-ring) { border-radius: 18px; box-shadow: 0 10px 28px rgba(75, 43, 191, .3); }
.ap-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.ap-ring circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.ap-ring .bg { stroke: #efeafd; }
.ap-ring .fg { stroke: #ffc531; stroke-dasharray: 302; stroke-dashoffset: 302; animation: apFill 2s ease-in-out infinite; }
@keyframes apFill { 0% { stroke-dashoffset: 302; } 75%, 100% { stroke-dashoffset: 0; } }
.ap-charge .ap-bolt { animation: apGlow 2s ease-in-out infinite; }
@keyframes apGlow { 0%, 70% { opacity: .55; } 80%, 100% { opacity: 1; } }
.ap-dots { display: flex; gap: 6px; margin-top: -10px; }
.ap-dots i { width: 7px; height: 7px; border-radius: 50%; background: #4b2bbf; opacity: .25; animation: apDot 1.2s infinite; }
.ap-dots i:nth-child(2) { animation-delay: .2s; } .ap-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes apDot { 30% { opacity: 1; transform: translateY(-3px); } 60% { opacity: .25; transform: none; } }
.gp-splash .ap-by, .gp-trust .ap-by { display: inline-flex; align-items: center; gap: 4px; }
.ap-by svg { border-radius: 4px; flex: none; }
@media (prefers-reduced-motion: reduce) { .ap-ring .fg { animation: none; stroke-dashoffset: 0; } .ap-charge .ap-bolt, .ap-dots i { animation: none; } }

/* Windows: a slim, quiet scrollbar inside the checkout instead of the thick grey one with arrows */
.gp-body, .gp-sheet { scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .18) transparent; }
.gp-body::-webkit-scrollbar, .gp-sheet::-webkit-scrollbar { width: 6px; }
.gp-body::-webkit-scrollbar-track, .gp-sheet::-webkit-scrollbar-track { background: transparent; }
.gp-body::-webkit-scrollbar-thumb, .gp-sheet::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .18); border-radius: 6px; }
.gp-body::-webkit-scrollbar-button, .gp-sheet::-webkit-scrollbar-button { display: none; height: 0; }
