.wallet-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px;border:1px solid #dcc88a;border-radius:16px;background:#fff1c0;color:#174b36}.wallet-summary strong{font-size:26px;font-variant-numeric:tabular-nums}.wallet-summary span{font-size:14px}.wallet-form{display:grid;gap:14px;margin-top:16px;padding:16px;background:#fff;border:1px solid #dce5dc;border-radius:16px}.wallet-form label{font-size:14px;font-weight:650}.wallet-form input{display:block;width:100%;margin-top:8px;min-height:46px;padding:10px 12px;border:1px solid #c4d5c4;border-radius:10px;box-sizing:border-box;font-size:18px}.wallet-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.wallet-presets button{min-width:0;min-height:44px;padding:8px 2px;font-size:14px;background:#f4f8f0;border:1px solid #d4e1ce;border-radius:10px;color:#15573d}.wallet-form>button{min-height:46px;background:#08744a;color:#fff;border:0;border-radius:12px;font-size:15px;font-weight:700}.wallet-history{margin-top:20px}.wallet-history h2{font-size:15px}.wallet-history article{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e1e7df}.wallet-history article strong{font-size:14px}.wallet-history small{display:block;margin-top:4px;color:#758274;font-size:12px}.wallet-history .income{color:#067448}.wallet-history .expense{color:#b02b23}.wallet-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.wallet-pages button{min-height:44px}#walletMessage{font-size:13px;color:#a02b23}#main .referral-commission{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 0;font-size:14px;color:#15573d}#main .referral-commission strong{font-size:20px;font-variant-numeric:tabular-nums}

/* Shared asset header: keep money on one line and give the primary action room. */
#main .account-subpage.assets-page .asset-page-top{grid-template-columns:88px minmax(0,1fr) 88px;gap:0;min-height:56px;padding:6px 12px}
#main .account-subpage.assets-page .asset-page-top>h1{font-size:18px;white-space:nowrap}
#main .account-subpage.assets-page .asset-page-top>:is(.points-exchange-entry,.coupon-exchange-link){width:auto;min-width:0;max-width:none;min-height:44px;padding:0;font-size:13px!important;white-space:nowrap}
#main .account-subpage.assets-page .secondary-content{padding:12px 2px 28px}
#main .assets-page .asset-overview{display:block;margin:0 0 16px;padding:0;border:1px solid #176b51;border-radius:20px;background:linear-gradient(125deg,#096247,#064b37);color:#fff;overflow:hidden;box-shadow:0 6px 14px #084b3710}
#main .assets-page button.asset-balance-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:auto;min-height:100px;margin:0;padding:20px;border:0;border-radius:0;background:transparent;color:#fff;text-align:left;box-shadow:none;transform:none;opacity:1}
#main .assets-page button.asset-balance-row:is(:hover,:active,:focus){background:transparent;color:#fff;box-shadow:none;transform:none;opacity:1}
#main .assets-page .asset-balance-row::before,#main .assets-page .asset-balance-row::after{display:none}
#main .assets-page .asset-balance-copy{display:grid;gap:8px;min-width:0}
#main .assets-page .asset-label{font-size:12px;line-height:18px;font-weight:400;color:#d5e9df}
#main .assets-page [data-asset-balance]{display:block;font-size:30px;line-height:36px;font-weight:700;letter-spacing:-.6px;white-space:nowrap;word-break:normal;font-variant-numeric:tabular-nums}
#main .assets-page .asset-topup{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-width:70px;min-height:44px;padding:0 12px;box-sizing:border-box;border:1px solid #f7d77d;border-radius:12px;background:#f8de94;color:#104e38;font-size:14px;line-height:20px;font-weight:700;white-space:nowrap}
#main .assets-page .asset-topup>span[aria-hidden]{font-size:18px;font-weight:400}
#main .assets-page .asset-secondary{display:grid;grid-template-columns:1fr 1fr;padding:16px 20px;border-top:1px solid #ffffff24;background:#ffffff06}
#main .assets-page .asset-secondary>div{display:grid;gap:5px;min-width:0;text-align:left}
#main .assets-page .asset-secondary>div+div{padding-left:24px;border-left:1px solid #ffffff24}
#main .assets-page .asset-secondary strong{font-size:23px;line-height:28px;font-weight:650;font-variant-numeric:tabular-nums;color:#fff}
#main .assets-page .asset-tabs{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0 0 12px;border-bottom:1px solid #dce5dc}
#main .assets-page .asset-tabs button{position:relative;min-width:0;min-height:48px;padding:12px 6px;border:0;border-radius:0;background:transparent;color:#6b796f;font-size:14px;line-height:22px;font-weight:500;box-shadow:none;transform:none}
#main .assets-page .asset-tabs button::before{display:none}
#main .assets-page .asset-tabs button[aria-selected="true"]{color:#075e3e;font-weight:700}
#main .assets-page .asset-tabs button[aria-selected="true"]::after{content:"";position:absolute;inset:auto calc(50% - 14px) -1px;height:3px;border-radius:3px;background:#b79743}
#main .account-subpage.assets-page .points-list{border-radius:16px;border-color:#e0e7e0}
#main .account-subpage.assets-page .points-record{padding:13px 14px;gap:5px}
#main .account-subpage.assets-page .points-record h2{font-size:14px;line-height:20px}
#main .account-subpage.assets-page .points-record-meta{font-size:12px;line-height:18px;color:#738074}
#main .assets-page .asset-coupon-policy{margin:0 2px 12px;color:#66766b;font-size:12px;line-height:18px}
#main .account-subpage.assets-page .coupon-stack{position:relative;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:16px;margin:0 0 10px;border:1px solid #e0e5dc;border-radius:16px;background:#fff}
#main .account-subpage.assets-page .coupon-stack.is-available{border-color:#dfc68b;background:linear-gradient(100deg,#fff9e9,#fffefa)}
#main .account-subpage.assets-page .coupon-stack>.coupon-face{grid-row:1 / 3;display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:stretch;max-width:none;gap:6px;color:#a72f29}
#main .account-subpage.assets-page .coupon-stack .coupon-face-amount{display:flex;align-items:baseline;gap:2px;white-space:nowrap}
#main .account-subpage.assets-page .coupon-stack .coupon-face strong{font-size:30px;line-height:34px;font-weight:700}
#main .account-subpage.assets-page .coupon-stack .coupon-face small{font-size:12px}
#main .account-subpage.assets-page .coupon-stack .coupon-stack-count{font-size:12px;line-height:18px;font-weight:500;white-space:nowrap}
#main .account-subpage.assets-page .coupon-stack>section{align-self:end;padding:0 0 0 12px;border-left:1px dashed #e0dfd3;min-width:0}
#main .account-subpage.assets-page .coupon-stack h2{margin:0 0 4px;font-size:14px;line-height:20px}
#main .account-subpage.assets-page .coupon-stack p{margin:0;font-size:12px;line-height:18px}
#main .account-subpage.assets-page .coupon-stack section>small{display:block;margin-top:3px;font-size:12px;line-height:18px;color:#7a8278}
#main .account-subpage.assets-page .coupon-stack>.coupon-availability{grid-column:2;justify-self:start;margin-left:12px;padding:0;background:transparent;font-size:12px;line-height:18px;font-weight:600;color:#087448}
#main .account-subpage.assets-page .coupon-stack>.coupon-availability.used{color:#7b847b;font-weight:400}
#main .account-subpage.assets-page .coupon-stack>button{grid-column:2;justify-self:start;min-width:88px;min-height:44px;margin-left:12px;padding:0 14px;font-size:13px}
#main .account-subpage.wallet-page .secondary-content{padding:12px 2px 28px}
#main .wallet-page .wallet-summary{padding:18px;border:1px solid #176b51;border-radius:18px;background:#07553d;color:#fff}
#main .wallet-page .wallet-summary strong{font-size:28px;line-height:36px;white-space:nowrap}
#main .wallet-page .wallet-summary>span{font-size:12px;color:#d5e9df}
#main .wallet-page .wallet-form{margin-top:14px;padding:16px;gap:14px;border-color:#e0e7e0;border-radius:16px}
#main .wallet-page .wallet-history{padding:16px;margin-top:16px;border:1px solid #e0e7e0;border-radius:16px;background:#fff}
#main .wallet-page .wallet-history:empty{display:none}
#main .wallet-page .wallet-history h2{margin:0 0 4px;font-size:14px}
#main .wallet-page .wallet-history article{padding:12px 0}
#main .wallet-page .wallet-history article:last-child{border-bottom:0;padding-bottom:0}
#main .wallet-page #walletMessage:empty{display:none}
@media(max-width:350px){#main .account-subpage.assets-page .secondary-content{padding-inline:0}#main .assets-page button.asset-balance-row{padding:18px 16px;gap:8px}#main .assets-page [data-asset-balance]{font-size:26px}#main .assets-page .asset-topup{padding:0 10px;min-width:62px}#main .assets-page .asset-secondary{padding:14px 16px}#main .account-subpage.assets-page .coupon-stack{padding:14px 12px;grid-template-columns:64px minmax(0,1fr);gap:8px}}

.wallet-pages[hidden]{display:none}

/* Match the editable amount field to the account form controls. */
#main .wallet-form input{height:48px;min-height:48px;font-size:16px;line-height:24px;padding:11px 12px}

/* Short exchange rows keep the quote and its action together. */
#main .account-subpage.exchange-page .secondary-content{padding:12px 2px 28px}
#main .exchange-page .exchange-balance{border-left-width:0;border-color:#176b51;background:#07553d;color:#d5e9df;border-radius:18px;padding:16px 18px}
#main .exchange-page .exchange-balance strong{color:#fff}
#main .exchange-page .exchange-card:not(:has(.exchange-quantity)){position:relative;min-height:80px;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) 64px;align-items:center;column-gap:12px;row-gap:0;padding:12px}
#main .exchange-page .exchange-card:not(:has(.exchange-quantity)) .exchange-item-top{grid-column:1;grid-row:1;align-items:flex-start}
#main .exchange-page .exchange-card:not(:has(.exchange-quantity)) .exchange-item-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%)}
#main .exchange-page .exchange-card:not(:has(.exchange-quantity)) .exchange-item-top>div{margin-left:52px}
#main .exchange-page .exchange-card:not(:has(.exchange-quantity)) .exchange-item-top h2{font-size:14px;line-height:21px}
#main .exchange-page .exchange-card:not(:has(.exchange-quantity)) .exchange-item-action{display:contents}
#main .exchange-page .exchange-card:not(:has(.exchange-quantity)) .exchange-item-action>strong{grid-column:1;grid-row:2;margin-left:52px;font-size:14px;line-height:22px}
#main .exchange-page .exchange-card:not(:has(.exchange-quantity)) .exchange-item-action>button{grid-column:2;grid-row:1 / 3;width:64px;min-height:44px;padding:8px}
#main .wallet-page .wallet-form label{margin:0}
#main .assets-page .asset-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.asset-rm{font-size:.6em;margin-inline-end:.14em;font-weight:650}
#main :is([data-asset-balance],#walletBalance) .asset-rm{line-height:1}
.cash-filters{display:flex;gap:5px;margin:0 0 8px}
.cash-filters button{min-height:44px;padding:6px 14px;border:0;border-radius:14px;color:#52685b;background:transparent;font-weight:600}
.cash-filters button[aria-pressed=true]{color:#0d563d;background:#e6efe4}
.cash-list{border-radius:16px;background:#fff;border:1px solid #dfe7dd;overflow:hidden}
.cash-line+.cash-line{border-top:1px solid #e7ede6}
.cash-line summary{list-style:none;display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;padding:14px;cursor:pointer}
.cash-line summary::-webkit-details-marker{display:none}
.cash-line summary small:not(.asset-rm){display:block;font-size:12px;color:#596d61;margin-top:3px}
.cash-line summary b{font-size:15px}
.cash-direction{font-style:normal;border-radius:10px;display:grid;place-items:center;height:32px;background:#edf4e9;color:#185c43;font-size:18px}
.cash-value{text-align:end;font-variant-numeric:tabular-nums}
.cash-value .income{color:#09643e}
.cash-meta{display:grid;gap:4px;padding:0 14px 14px 56px;color:#506859;overflow-wrap:anywhere;font-size:13px}
.cash-empty{text-align:center;padding:24px 12px;color:#64776a}
.wallet-gap{display:flex;justify-content:space-between;gap:10px}
.wallet-form .wallet-short-hint{margin:0;color:#536658;font-size:13px;line-height:1.5}
/* Recharge sheet and the MYR channel acceptance marks from Fiuu. */
.wallet-pay-dialog {
  position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(420px,calc(100% - 24px));
  height:fit-content;max-height:90vh;max-height:90dvh;overflow:auto;overscroll-behavior:contain;
  padding:0;border:0;border-radius:20px;background:#fff;color:#17392d;box-shadow:0 18px 65px #112e2940;
}
.wallet-pay-dialog::backdrop{background:#0e241f75}
.wallet-pay-head {
  position:relative;display:block;margin:0;padding:18px 65px 20px 22px;
  background:#094c39;color:#fff;border-bottom:3px solid #d6b770;
}
.wallet-pay-head h2{margin:0;font-size:15px;line-height:1.4;font-weight:600;color:#dceee4}
.wallet-pay-amount{margin:5px 0 0;color:#fff;font-size:38px;font-weight:700;line-height:1.1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.wallet-pay-amount .asset-rm{font-size:18px;color:#e8eedf;margin-inline-end:5px;letter-spacing:0}
.wallet-pay-head .wallet-pay-close{position:absolute;inset-inline-end:10px;top:8px;width:44px;height:44px;padding:0;border:0;border-radius:50%;color:#fff;background:transparent;font:400 26px/1 system-ui;cursor:pointer}
.wallet-pay-close span{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#ffffff1f}
.wallet-pay-form{padding:17px 18px 0}
.wallet-pay-dialog #walletPayStatus{margin:14px 18px 17px;font-size:13px;line-height:1.5;color:#51685e}
.wallet-pay-dialog #walletPayStatus:empty{display:none}
.wallet-pay-form fieldset{min-width:0;margin:0;padding:0;border:0}
.wallet-pay-methods legend{padding:0;margin-block-end:9px;font-size:14px;font-weight:700}
#walletPaymentMethods{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid #dbe4de;border-radius:13px;overflow:hidden}
#walletPaymentMethods .wallet-pay-method{
  display:grid;grid-template-columns:66px minmax(0,1fr) 20px;align-items:center;column-gap:12px;
  min-height:54px;margin:0;padding:5px 14px 5px 10px;box-sizing:border-box;color:#203c30;background:#fff;cursor:pointer;
}
#walletPaymentMethods .wallet-pay-method+.wallet-pay-method{border-top:1px solid #e5ebe7}
#walletPaymentMethods .wallet-pay-method:has(:checked){background:#edf7f1;box-shadow:inset 3px 0 #0b7951}
#walletPaymentMethods .wallet-pay-method:has(:focus-visible){outline:2px solid #08754d;outline-offset:-3px}
#walletPaymentMethods .wallet-pay-method-disabled{color:#617268;cursor:default}
.wallet-channel-logo{position:relative;display:block;width:66px;height:38px;overflow:hidden;border-radius:6px;background:#fff}
.wallet-channel-logo img{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:var(--mark-width);max-width:none;height:auto;display:block;
}
#walletPaymentMethods [data-method="tng"]{--mark-width:200px}
#walletPaymentMethods [data-method="grabpay"]{--mark-width:108px}
#walletPaymentMethods [data-method="boost"]{--mark-width:145px}
#walletPaymentMethods [data-method="duitnow_qr"]{--mark-width:148px}
#walletPaymentMethods [data-method="fpx"]{--mark-width:155px}
#walletPaymentMethods input{justify-self:end;width:18px;height:18px;margin:0;accent-color:#08754d}
#walletPaymentMethods strong{font-size:15px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
#walletPaymentMethods small{display:block;margin-block-start:2px;font-size:12px}
.wallet-pay-form .wallet-pay-customer{display:grid;gap:10px;margin-block-start:16px}
.wallet-pay-customer label{display:grid;gap:4px;min-width:0;margin:0;color:#18392d;font-size:14px;font-weight:600}
.wallet-pay-customer :is(input,select){box-sizing:border-box;width:100%;min-width:0;min-height:48px;margin:0;padding:8px;border:1px solid #97b3a5;border-radius:8px;background:#fff;color:#18392d;font:inherit;font-size:16px}
.wallet-pay-actions,.wallet-result-actions{display:flex;flex-wrap:wrap;gap:8px;margin-block-start:16px}
.wallet-pay-actions{
  position:sticky;bottom:0;z-index:1;margin:0;padding:12px 18px max(14px,env(safe-area-inset-bottom));
  border-top:1px solid #e5ebe7;background:#fff;
}
.wallet-pay-dialog:has(#walletPayStatus:empty) .wallet-pay-form:last-of-type{padding-bottom:8px}
.wallet-pay-actions button,.wallet-result-actions button{flex:1 1 auto;min-height:48px;padding:8px 12px;border:1px solid #a9bfaf;border-radius:10px;background:#f4f8f2;color:#184e38;font-weight:650}
.wallet-pay-actions #walletPayConfirm,#main .wallet-result-actions #walletResultContinue{flex-basis:100%;background:#095a3f;color:#fff;border-color:#095a3f}
.wallet-pay-actions #walletPayConfirm:disabled,#main .wallet-result-actions #walletResultRefresh:disabled{border-color:#d8e2da;background:#e8efe9;color:#52685b;opacity:1}
.wallet-pay-dialog :is(input,select,button):focus-visible,.wallet-result-card button:focus-visible{outline:2px solid #076744;outline-offset:2px}

#main .wallet-topup-result .secondary-content{padding:12px 2px 28px}
.wallet-result-card{border:1px solid #e0e7e0;border-radius:16px;padding:16px;background:#fff;color:#18392d}
.wallet-result-card #walletResult{font-size:18px;font-weight:650;line-height:1.4}
.wallet-result-card #walletResult[data-state='success']{color:#076744}
.wallet-result-card #walletResult:is([data-state='failed'],[data-state='expired'],[data-state='error']){color:#a02b23}
.wallet-result-details{display:grid;gap:10px;margin:14px 0 0;padding-block-start:14px;border-top:1px solid #e4ebe3}
.wallet-result-details>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.wallet-result-details dt{color:#415c51;font-size:14px}
.wallet-result-details dd{margin:0;min-width:0;text-align:end;overflow-wrap:anywhere;font-weight:650}
.wallet-pay-form [hidden],.wallet-pay-form[hidden],.wallet-pay-actions [hidden],.wallet-result-details[hidden]{display:none}

.wallet-presets button[aria-pressed="true"] {
  position: relative;
  background: #e0f1e7;
  border-color: #08744a;
  box-shadow: inset 0 0 0 1px #08744a;
  color: #084a31;
  font-weight: 700;
}
.wallet-presets button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset-block-start: 5px;
  inset-inline-end: 6px;
  width: 4px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
