/* ChatKH Live — កាត KHQR (តាម KHQR / ABA PayWay merchant guideline) */
.kq { max-width: 330px; margin: 8px auto 6px; text-align: center; font-family: inherit; }
.kq-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 10px; color: #0b2a3a; }
.kq-title b { font-size: 18px; }
.kq-title-logo { height: 30px; width: auto; border-radius: 6px; }
.kq-card { position: relative; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 40px -12px rgba(16, 24, 40, .28), 0 0 0 1px rgba(16, 24, 40, .05); text-align: left; transition: box-shadow .3s; }
.kq-top { position: relative; height: 54px; background: #e1232e; display: flex; align-items: center; justify-content: center; }
.kq-top::after { content: ""; position: absolute; right: 0; bottom: -18px; width: 0; height: 0; border-top: 18px solid #e1232e; border-left: 22px solid transparent; }
.kq-logo { height: 26px; width: auto; }
.kq-logo-txt { color: #fff; font-weight: 800; font-size: 22px; letter-spacing: 3px; }
.kq-info { padding: 16px 22px 14px; }
.kq-info small { display: block; color: #000; font-size: 13px; font-weight: 600; text-transform: none; }
.kq-amt { margin-top: 2px; display: flex; align-items: baseline; gap: 6px; }
.kq-amt b { font-size: 26px; font-weight: 700; color: #000; letter-spacing: .3px; }
.kq-amt span { font-size: 12px; color: #555; font-weight: 600; }
.kq-cut { position: relative; height: 0; border-top: 1.5px dashed rgba(0, 0, 0, .28); margin: 0 0 2px; }
.kq-cut::before, .kq-cut::after { content: ""; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--kq-bg, #f5f5fa); }
.kq-cut::before { left: -9px; } .kq-cut::after { right: -9px; }
.kq-qr-wrap { position: relative; padding: 18px 26px 24px; }
.kq-qr { width: 100%; aspect-ratio: 1; }
.kq-qr svg, .kq-qr img { width: 100%; height: 100%; display: block; }
.kq-cur { position: absolute; left: 50%; top: calc(50% - 3px); transform: translate(-50%, -50%); width: 15%; aspect-ratio: 1; border-radius: 50%; background: #000; color: #fff; border: 3px solid #fff;
  display: grid; place-items: center; font-weight: 700; font-size: clamp(14px, 4.2vw, 20px); line-height: 1; }
.kq-hint { margin: 14px 8px 6px; font-size: 13px; color: #555; line-height: 1.5; }
.kq-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.kq-dl { border: 0; background: transparent; color: #0f9d8a; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; padding: 8px 10px; border-radius: 10px; }
.kq-dl:hover { background: #e9f8f5; }
.kq-deeplink { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 12px; background: #005d7f; color: #fff !important; font-weight: 600; text-decoration: none !important; }
.kq-wait { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; font-size: 13px; color: #666; }
.kq-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #ddd; border-top-color: #e1232e; animation: kqSpin .8s linear infinite; }
@keyframes kqSpin { to { transform: rotate(360deg); } }
.kq.paid .kq-card { box-shadow: 0 0 0 3px #16a34a, 0 14px 40px -12px rgba(21, 128, 61, .4); }
.kq.paid .kq-qr { opacity: .2; }
.kq.paid .kq-spin { display: none; }
/* វិធីបង់ / We accept */
.pay-logo { height: 22px; width: auto; vertical-align: middle; }
.pay-logo-txt { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, .15); font-size: 11px; font-weight: 700; letter-spacing: .3px; color: #333; background: #fff; }
.accept-strip { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.accept-strip > span { margin-right: 2px; opacity: .8; }
.accept-logo { height: 24px; width: auto; border-radius: 4px; }
.accept-strip .pay-logo-txt { height: 24px; }
@media (prefers-reduced-motion: reduce) { .kq-spin { animation: none; } }
img.accept-logo[src*="abakhqr"] { height: 34px; border-radius: 7px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
@media (prefers-reduced-motion: no-preference) {
  dialog[open]:has(.kq) { animation:khqr-enter .22s ease-out; }
  @keyframes khqr-enter { from { opacity:0; transform:translateY(12px) scale(.98); } to { opacity:1; transform:none; } }
}
@media (prefers-reduced-motion:no-preference) { .pay-modal.is-open { animation:khqr-enter .22s ease-out; } }
