/* Approved KWallet screen system. Every wallet surface fills the viewport. */
#legacyStudentDashboard{display:none!important;visibility:hidden!important}
html.ks-student-session #loggedOutHero,html.ks-student-session #mainContent>:not(#home){display:none!important}
html.ks-student-session body:not(.kedu-app):not(.sd-active) #loggedInHero{display:none!important}
body.kwp-active{background:#faf9fe;padding:0!important}
body.kwp-active>.navbar,body.kwp-active>footer,body.kwp-active>#ksBottomNav,body.kwp-active>#mainContent,body.kwp-active>#walletPage{display:none!important}
#kwalletFullPage{--kw-purple:#7c3aed;--kw-ink:#21123d;--kw-muted:#776a8b;--kw-line:#e8e1f2;min-height:100dvh;background:#fff;color:var(--kw-ink);font:14px/1.5 Inter,system-ui,-apple-system,sans-serif;padding-bottom:calc(82px + env(safe-area-inset-bottom));isolation:isolate}
#kwalletFullPage[hidden],.kw-checkout-dialog [hidden]{display:none!important}
#kwalletFullPage *, .kw-checkout-dialog *{box-sizing:border-box}
#kwalletFullPage button,#kwalletFullPage input{font:inherit}
#kwalletFullPage button{cursor:pointer;color:inherit}
#kwalletFullPage svg{width:23px;height:23px;flex-shrink:0}
#kwalletFullPage button:focus-visible,.kw-checkout-dialog :focus-visible{outline:3px solid #b692ff;outline-offset:3px}
.kwp-header{height:70px;padding:12px max(16px,calc((100vw - 560px)/2));display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #f0ebf6;background:#fff}
.kwp-header h1{font-size:19px!important;line-height:1.3;margin:0;display:flex;align-items:center;gap:9px;color:#21123d;letter-spacing:-.4px}
.kwp-header h1 svg{color:#7c3aed;width:28px!important;height:28px!important}
.kwp-header button{display:grid;place-items:center;border:0;background:transparent;min-width:44px;min-height:44px;padding:8px;border-radius:10px}
.kwp-main{max-width:592px;margin:auto;padding:18px 16px}
.kwp-balance{background:linear-gradient(120deg,#6a22e9,#8a4af5);color:white;border-radius:16px;padding:18px 20px;position:relative;min-height:139px;box-shadow:0 6px 16px #7c3aed18}
.kwp-balance>div{display:flex;align-items:center;gap:7px;font-size:13px}.kwp-balance button{border:0;background:transparent;color:#fff!important;min-width:44px;min-height:36px;padding:6px}.kwp-balance button svg{width:19px!important;height:19px!important}
.kwp-balance>strong{font-size:30px;display:block;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.kwp-balance>small{display:block;text-align:right;margin-top:7px;font-size:11px;opacity:.85}
.kwp-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.kwp-actions button{border:1px solid #e8e1f2;border-radius:12px;background:white;min-height:84px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;font-weight:650;font-size:12px!important;padding:10px 4px}
.kwp-actions svg{background:#7c3aed;color:white;border-radius:50%;padding:7px;box-sizing:content-box}
.kwp-campus{display:flex;align-items:center;gap:12px;padding:16px;background:#f0e9ff;border-radius:13px;margin:12px 0 20px}.kwp-campus>span{display:grid;place-items:center;width:45px;height:45px;background:#e5d7ff;color:#7c3aed;border-radius:50%;flex-shrink:0}.kwp-campus strong{font-size:13px}.kwp-campus p{margin:3px 0 0;font-size:12px;color:#6b5a83}
.kwp-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px}.kwp-heading h2{font-size:15px!important;margin:0;letter-spacing:-.2px}.kwp-heading button{background:transparent;border:0;color:#7c3aed!important;font-size:12px!important;min-height:44px;padding:8px}
.kwp-transaction{display:flex;align-items:center;gap:10px;border:1px solid #e8e1f2;border-radius:12px;padding:12px 10px;background:#fff;width:100%;text-align:left;margin-bottom:8px;min-height:72px}
.kwp-tx-icon{display:grid;place-items:center;width:39px;height:39px;flex-shrink:0;background:#f0e8ff;color:#7c3aed;border-radius:50%}.kwp-tx-icon.incoming{color:#168354;background:#e3f7ec}.kwp-tx-label{min-width:0;flex:1}.kwp-tx-label strong{display:block;font-size:12px;overflow-wrap:anywhere}.kwp-tx-label small{display:block;font-size:10px;color:#827292;margin-top:2px}.kwp-tx-end{flex-shrink:0;text-align:right;max-width:42%}.kwp-tx-end>strong{display:block;font-size:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.kwp-tx-end .incoming{color:#147943}
.kwp-status{display:inline-block;margin-top:4px;padding:2px 8px;border-radius:20px;font-size:9px;line-height:1.5;background:#fff1cd;color:#895700}.kwp-status.successful{background:#dcf5e6;color:#106c3f}.kwp-status.failed,.kwp-status.reversed{background:#ffe2e5;color:#a2233d}
.kwp-nav{position:fixed;z-index:100;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);padding:5px max(8px,calc((100vw - 560px)/2)) calc(5px + env(safe-area-inset-bottom));background:#ffffffed;backdrop-filter:blur(12px);border-top:1px solid #e8e1f2}.kwp-nav button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;font-size:11px!important;padding:5px}.kwp-nav [data-kwp=wallet]{color:#7c3aed!important;font-weight:700}
.kwp-search{display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid #e8e1f2;border-radius:12px;background:#faf8ff}.kwp-search input{border:0;background:transparent;min-width:0;width:100%;padding:13px 0;color:#21123d;outline:none;min-height:48px}
.kwp-filters{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 18px}.kwp-filters button{border:1px solid #e8e1f2;background:#fff;min-height:44px;border-radius:9px;font-size:12px!important}.kwp-filters [aria-pressed=true]{background:#f0e8ff;color:#7c3aed!important;border-bottom:3px solid #7c3aed}
.kwp-caption{color:#827292;font-size:11px;text-align:center;margin:18px 0}.kwp-empty{display:grid;justify-items:center;text-align:center;gap:10px;padding:32px 15px;color:#776a8b}.kwp-empty>svg{width:35px!important;height:35px!important;color:#7c3aed}.kwp-empty p{margin:0;font-size:12px}.kwp-error{padding:12px;background:#fff0f1;color:#a5223a;border-radius:10px}.kwp-error button{background:none;border:0;text-decoration:underline;min-height:44px}
.kwp-receipt{text-align:center;padding:20px 0}.kwp-success-icon{display:grid;place-items:center;margin:auto;width:68px;height:68px;border-radius:50%;background:#e3f7ec;color:#168354}.kwp-receipt h2{font-size:20px!important}.kwp-receipt>strong{font-size:30px}.kwp-receipt dl{border:1px solid #e8e1f2;border-radius:14px;padding:18px;text-align:left;margin:25px 0}.kwp-receipt dl div{display:flex;justify-content:space-between;gap:18px;padding:8px 0}.kwp-receipt dt{color:#776a8b}.kwp-receipt dd{margin:0;text-align:right;overflow-wrap:anywhere;min-width:0}.kwp-primary{background:#7c3aed;color:#fff!important;border:0;min-height:48px;padding:12px 16px;border-radius:10px;width:100%;font-weight:650}
/* Full-page funding and consent retain the native dialog focus trap and payment engine. */
.kw-checkout-dialog.kw-funding-dialog,.kw-checkout-dialog.kw-insufficient-dialog{position:fixed;inset:0;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;padding:0!important;background:#fff;box-shadow:none;color:#21123d;font:14px/1.5 Inter,system-ui,-apple-system,sans-serif;overflow:auto;overscroll-behavior:contain}
.kw-checkout-dialog::backdrop{background:#21123d80}.kw-screen{min-height:100%;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
.kw-screen-header{height:70px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;padding:10px max(16px,calc((100vw - 560px)/2));border-bottom:1px solid #eee7f6;background:#fff}
.kw-screen-header>h2,.kw-screen-header>strong{font-size:18px!important;text-align:center;margin:0!important;letter-spacing:-.3px!important}.kw-checkout-dialog .kw-screen-header>button{background:none!important;color:#21123d!important;padding:8px;min-width:44px;min-height:44px;font-size:26px;border:0}
.kw-fund-content{max-width:592px;margin:auto;padding:18px 16px}.kw-pending-payment{font-size:12px;color:#56327a!important;background:#f3ecff;padding:12px 14px;border-radius:10px;margin:0 0 14px!important;overflow-wrap:anywhere}
.kw-checkout-dialog .kw-funding-summary{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e8e1f2;border-radius:12px;margin:0 0 16px!important;padding:14px!important}.kw-funding-summary>div{display:flex;flex-direction:column;gap:3px}.kw-funding-summary>div>span{font-size:12px;color:#776a8b}.kw-funding-summary strong{font-size:20px}.kw-simple-wallet{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;background:#f0e8ff;color:#7c3aed;border-radius:50%}.kw-simple-wallet svg{width:29px;height:29px}
.kw-checkout-dialog form{margin:0 0 10px!important;gap:14px!important}.kw-checkout-dialog label{font-size:13px!important;gap:6px!important;color:#21123d}.kw-checkout-dialog input,.kw-checkout-dialog select{border:1px solid #ddd3ea!important;border-radius:10px!important;min-height:48px;font-size:16px!important;padding:12px!important;background:#fff;color:#21123d}.kw-checkout-dialog button{min-height:44px;border-radius:10px!important;font-size:13px!important;background:#7c3aed;color:white;font-weight:650;border:0;padding:12px 16px}.kw-checkout-dialog [data-kw-pay]{background:linear-gradient(110deg,#7c3aed,#8c48f4)!important;min-height:48px}
.kw-amount-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.kw-checkout-dialog .kw-amount-presets>button{padding:9px 4px!important;background:#fff;color:#21123d;border:1px solid #e8e1f2;min-height:44px;font-size:12px!important}.kw-checkout-dialog .kw-amount-presets>[aria-pressed=true]{background:#7c3aed;color:white;border-color:#7c3aed}
.kw-add-summary{background:#faf8ff;border:1px solid #e8e1f2;border-radius:12px;padding:12px;margin:0}.kw-add-summary>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:12px}.kw-add-summary dd{margin:0;font-weight:700}.kw-add-summary>div:last-child dd{color:#7c3aed}
.kw-checkout-dialog .kw-funding-helper,.kw-checkout-dialog .kw-funding-footer{font-size:11px!important;text-align:center!important;color:#827292!important;margin:10px 0!important}.kw-checkout-dialog .kw-shared-device{display:flex!important;align-items:center!important;gap:8px!important;font-size:11px!important;font-weight:400!important;color:#776a8b;margin:12px 0}.kw-checkout-dialog .kw-shared-device input{width:17px!important;height:17px!important;min-height:17px!important;padding:0!important;accent-color:#7c3aed}
.kw-checkout-dialog .kw-payment-phase{font-size:12px!important;text-align:center;margin:12px 0}.kw-checkout-dialog [data-kw-status]{font-size:12px;overflow-wrap:anywhere}.kw-checkout-dialog .kw-payment-reference{font-size:11px;overflow-wrap:anywhere;background:#f8f5fc;border-radius:9px;padding:10px}.kw-checkout-dialog [data-kw-report]{font-size:11px!important;background:none;color:#7c3aed;text-decoration:underline}.kw-checkout-dialog .kw-checkout-actions{display:grid;gap:8px}.kw-checkout-dialog [data-kw-cancel],.kw-checkout-dialog [data-kw-fund-no]{background:#fff;color:#21123d;border:1px solid #ddd3ea}.kw-checkout-dialog [data-kw-check]{background:#f4eefc;color:#6734aa}.kw-checkout-dialog [data-kw-resume]{background:#7c3aed}
.kw-insufficient-screen{background:#30284699}.kw-insufficient-card{width:calc(100% - 32px);max-width:420px;margin:clamp(30px,10dvh,100px) auto 0;background:#fff;border-radius:16px;padding:24px 20px;box-shadow:0 20px 60px #21123d30}.kw-insufficient-card .kw-simple-wallet{margin:0 auto 16px;width:64px;height:64px}.kw-insufficient-card .kw-simple-wallet svg{width:36px;height:36px}.kw-insufficient-card h2{font-size:20px!important;line-height:1.3!important;text-align:center;margin:0 0 8px!important;letter-spacing:-.5px!important}.kw-insufficient-card #kwInsufficientMessage{font-size:13px!important;line-height:1.5!important;margin:0 0 18px!important;text-align:center;color:#655573!important}.kw-insufficient-card .kw-notice-summary{background:#faf8ff;border:1px solid #e8e1f2;border-radius:10px;padding:12px!important;margin:0 0 16px!important}.kw-insufficient-card .kw-notice-summary>div{display:flex;justify-content:space-between;gap:14px;padding:6px 0}.kw-insufficient-card .kw-notice-summary dt{font-size:12px!important;color:#776a8b;min-width:0;overflow-wrap:anywhere}.kw-insufficient-card .kw-notice-summary dd{font-size:13px!important;margin:0;font-weight:700;flex-shrink:0}.kw-insufficient-card .kw-notice-needed{border-top:1px solid #e8e1f2;margin-top:4px;padding-top:10px!important}.kw-insufficient-card .kw-notice-needed dd{color:#7c3aed}
.kw-funded{text-align:center;padding:14px 0}.kw-funded-check{display:grid;place-items:center;width:75px;height:75px;border-radius:50%;background:#e1f6e9;color:#107442;font-size:44px;margin:0 auto 18px}.kw-funded h2{font-size:24px!important;letter-spacing:-.5px!important;margin:0 0 8px!important}.kw-funded>p{font-size:13px;margin:0 0 22px}.kw-funded-balance{border:1px solid #e8e1f2;border-radius:12px;padding:16px;text-align:left;display:flex;flex-direction:column;gap:5px}.kw-funded-balance small{font-size:12px;color:#776a8b}.kw-funded-balance strong{font-size:22px}.kw-resume-card{text-align:left;border:1px solid #e8e1f2;border-radius:12px;padding:16px;margin-top:12px}.kw-resume-card h3{margin:0;font-size:14px}.kw-resume-card p{margin:10px 0 14px;font-size:13px}.kw-resume-card button{width:100%;background:#7c3aed!important}
/* Retain the established bank verification, identity and PIN flows in the new full-page cashout. */
#cashoutModal.kwp-cashout.open{position:fixed;inset:0;z-index:10010;display:block!important;background:#fff;padding:0;overflow-y:auto;overscroll-behavior:contain}
#cashoutModal.kwp-cashout>.auth-modal{max-width:592px!important;width:100%!important;min-height:100dvh;max-height:none!important;border:0;border-radius:0!important;box-shadow:none!important;background:#fff;padding:18px 16px calc(30px + env(safe-area-inset-bottom));margin:0 auto!important;color:#21123d}
#cashoutModal.kwp-cashout .auth-icon{display:none}#cashoutModal.kwp-cashout h2{font-size:19px;margin:0 0 22px;padding:8px 0 15px;border-bottom:1px solid #eee7f6;text-align:center}
#cashoutModal.kwp-cashout label{font:600 13px/1.5 Inter,system-ui,sans-serif;color:#21123d;margin-bottom:6px}#cashoutModal.kwp-cashout input{min-height:48px;font-size:16px;border:1px solid #ddd3ea;border-radius:10px;background:#fff;color:#21123d;padding:12px;width:100%;box-sizing:border-box}
#cashoutModal.kwp-cashout .auth-button{border-radius:10px;background:#7c3aed;min-height:48px;font-size:14px}#cashoutModal.kwp-cashout .modal-close-text-btn{width:100%;min-height:44px;border:1px solid #ddd3ea;border-radius:10px;color:#21123d;margin-top:12px}#cashoutModal.kwp-cashout .kwp-cashout-note{background:#f1eaff;border-radius:10px;padding:12px;color:#6331a0;font-size:12px;margin:14px 0}#cashoutModal.kwp-cashout .kwp-cashout-balance{border:1px solid #e8e1f2;border-radius:12px;padding:14px;margin:0 0 18px;display:flex;flex-direction:column;gap:4px;font-size:12px}#cashoutModal.kwp-cashout .kwp-cashout-balance strong{font-size:21px;color:#21123d}
@media(min-width:761px){#kwalletFullPage{background:#faf9fe}.kwp-main{padding-top:28px}.kwp-header{background:#fff}.kwp-balance{min-height:155px}.kwp-actions button{min-height:92px}.kw-fund-content{padding-top:28px}.kw-screen{background:#faf9fe}.kw-insufficient-screen{background:#30284699}#cashoutModal.kwp-cashout.open{background:#faf9fe}#cashoutModal.kwp-cashout>.auth-modal{padding:25px 24px}}
@media(prefers-reduced-motion:reduce){#kwalletFullPage *,.kw-checkout-dialog *{scroll-behavior:auto!important;transition:none!important}}
.kw-amount-field{position:relative;display:block}.kw-amount-field>span{position:absolute;left:13px;top:50%;transform:translateY(-50%);font-size:17px;font-weight:700;color:#21123d}.kw-checkout-dialog .kw-amount-field input{padding-left:32px!important;font-weight:700}
html.ks-student-session body:not(.kedu-app)>footer{display:none!important}
body.kwp-active #postLoginSplash{display:none!important}
#kwalletFullPage .kwp-actions svg{width:36px;height:36px;box-sizing:border-box;padding:8px}
body.kwp-active #keduShell{display:none!important}

/* Keep installation prompts clear of the wallet navigation. */
body.kwp-active #pwaIosBanner,
body.kwp-active #pwaInstallBanner { display: none !important; }

.kwp-campus > div { min-width: 0; }
.kwp-campus h2 { margin: 0 0 8px; font-size: 1rem; }
.kwp-campus strong { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.kwp-campus p { margin: 6px 0 0; line-height: 1.5; }
.kwp-campus button[data-kwp] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: #6425ca;
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.kwp-campus button[data-kwp] svg { width: 18px; height: 18px; flex: none; }

#kwalletFullPage:has(.kwp-title){background:#f6f1ff;font-family:Georgia,serif}
.kwp-brandbar,.kwp-main:has(.kwp-title){max-width:1120px;margin:auto;padding:14px clamp(16px,4vw,40px)}
.kwp-brandbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2d4f6}
.kwp-brandbar button{display:flex;align-items:center;gap:10px;border:0;background:transparent;min-height:44px;font-weight:bold!important}
.kwp-brandbar button:first-child{font-size:24px!important}
.kwp-brandbar img{object-fit:contain;border-radius:6px}.kwp-brandbar .kwp-store-logo{width:122px;height:42px}
.kwp-title{font:700 clamp(32px,4vw,48px)/1.2 Georgia,serif;margin:3px 0 16px}
.kwp-main:has(.kwp-title) .kwp-balance{overflow:hidden;background:#762afa url("/kwallet-balance-art.svg") center / 100% 100% no-repeat;padding:18px 26px}
.kwp-balance>strong{font-size:clamp(32px,5vw,54px)}.kwp-balance>small{text-align:left}
.kwp-pockets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0 6px}
.kwp-pockets .kwp-campus{display:block;margin:0;background:white;border:1px solid #e9dff6;padding:20px}
.kwp-pockets .kwp-campus>div{display:flex;height:100%;flex-direction:column}
.kwp-pockets h2{font-size:20px}.kwp-pockets strong{font-size:28px}.kwp-pockets p{font-size:15px;margin-bottom:auto}
#kwalletFullPage .kwp-pockets button{width:100%;background:#7426ed;color:white}
#kwalletFullPage .kwp-pockets button:disabled{background:#e8e6ee;color:#716a7b;cursor:default}
#kwalletFullPage .kwp-plan-link{display:block;margin:4px auto;border:0;background:transparent;color:#6821cf;min-height:44px}
.kwp-plan-link::after{content:' ›'}
.kwp-nav [data-kwp=wallet]{background:#f1e8ff;border-radius:24px}
@media(min-width:640px){.kwp-nav{padding-inline:max(20px,calc((100vw - 1000px)/2))}.kwp-nav button{flex-direction:row;font-size:15px!important}}
@media(max-width:639px){.kwp-pockets{grid-template-columns:1fr;gap:10px}}

body.kwp-active:has(.kwp-brandbar) .ksg-launch{display:none!important}
