/* Kalki Darshan Book Store — checkout dialog */
html.kds-lock { overflow: hidden; }
.kds { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .35s, visibility .35s; font-family: Inter, system-ui, sans-serif; }
.kds.is-open { visibility: visible; opacity: 1; }
.kds__veil { position: absolute; inset: 0; background: rgba(2, 2, 6, .78); backdrop-filter: blur(6px); }
.kds__card { position: relative; width: min(30rem, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; border-radius: 20px; color: #f4ede0; background: radial-gradient(120% 100% at 0% 0%, rgba(216, 180, 106, .16), transparent 55%), linear-gradient(160deg, #141428, #090a14); border: 1px solid rgba(216, 180, 106, .4); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9); transform: translateY(14px) scale(.98); transition: transform .45s cubic-bezier(.16, .8, .1, 1); }
.kds.is-open .kds__card { transform: none; }
.kds__x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: #f4ede0; font-size: 26px; line-height: 1; cursor: pointer; }
.kds__x:hover { background: rgba(244, 237, 224, .08); }
.kds__head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; padding-right: 28px; }
.kds__cover { width: 64px; height: auto; border-radius: 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, .6); }
.kds__kicker { margin: 0 0 6px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #d8b46a; }
.kds__title { margin: 0; font-family: "Cormorant Garamond", Cormorant, Georgia, serif; font-weight: 400; font-size: 22px; line-height: 1.2; color: #f7f1e4; }
.kds__price { margin: 6px 0 0; font-family: "Cormorant Garamond", Cormorant, Georgia, serif; font-size: 28px; color: #d8b46a; }
.kds__form { display: grid; gap: 12px; }
.kds__form label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .06em; color: rgba(244, 237, 224, .75); }
.kds__form input { width: 100%; box-sizing: border-box; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(244, 237, 224, .2); background: rgba(2, 2, 6, .55); color: #f4ede0; font: 16px Inter, system-ui, sans-serif; }
.kds__form input:focus { outline: 2px solid #d8b46a; outline-offset: 1px; border-color: transparent; }
.kds__pay, .kds__ghost { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid #d8b46a; background: #d8b46a; color: #05060b !important; font: 600 14px Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.kds__pay:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(216, 180, 106, .7); }
.kds__pay:disabled { opacity: .7; cursor: progress; transform: none; }
.kds__ghost { background: none; color: #f4ede0 !important; border-color: rgba(244, 237, 224, .45); }
.kds__err { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(207, 34, 46, .15); color: #ffb4b4; font-size: 14px; }
.kds__methods { margin: 2px 0 0; font-size: 12px; text-align: center; color: rgba(244, 237, 224, .6); }
.kds__fine { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: rgba(244, 237, 224, .6); }
.kds__fine a { color: #d8b46a; }
.kds__test { margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: rgba(154, 103, 0, .2); color: #f5d38a; font-size: 12px; text-align: center; }
.kds__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.kds__done .kds__title { font-size: 28px; margin-top: 4px; }
.kds__wa { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; margin: 4px 0 8px; border-radius: 999px; background: #25d366; color: #05210f !important; font: 600 14px Inter, system-ui, sans-serif; letter-spacing: .04em; text-decoration: none; }
.kds__wa:hover { filter: brightness(1.06); }
@media (prefers-reduced-motion: reduce) { .kds, .kds__card { transition: none; } }
