
.wallet_preview{padding: 15px;}
.wallet_preview .wpHead{display: grid; grid-gap: 15px; grid-template-columns: 40px 1fr 15px;}
.wallet_preview .wpHead > div{width: 100%;}
.wallet_preview .wpHead > div:first-child > div{border-radius: 3px; background-color: var(--bg_silvercalm);}
.wallet_preview .wpHead > div:first-child > div.wh100{padding-bottom: 100%;}
.wallet_preview .wpHead > div:first-child > div.wh150{padding-bottom: 150%;}
.wallet_preview .wpHead > div:nth-child(2) > div:first-child{font-size: 15px; margin-top: 5px; font-weight: bold; display: grid;}
.wallet_preview .wpHead > div:nth-child(2) > div:first-child > div{white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;}
.wallet_preview .wpHead > div:nth-child(2) > div:nth-child(2) > span{font-size: 11px; color: var(--text_silver); padding: 2px 7px 3px 7px; border-radius: 5px; background: var(--bg_bluecalm);}
.wallet_preview .wpHead > div:nth-child(3) > div{width: 15px; height: 15px; margin-top: 8px; cursor: pointer;}
.wallet_preview .wpOpt{margin-top: 15px;}
.wallet_preview .wpOpt > div{padding: 15px 20px; border: 1px solid var(--bg_silver); border-radius: 5px; transition: var(--transition); cursor: pointer; position: relative;}
.wallet_preview .wpOpt > div:not(:last-child){margin-bottom: 10px;}
.wallet_preview .wpOpt > div.notavail{opacity: 0.7; color: var(--text_silver); cursor: no-drop;}
.wallet_preview .wpOpt > div.active{background: var(--bg_silvercalm); border: 1px solid var(--bg_blue);}
.wallet_preview .wpOpt > div:not(.notavail):hover:not(.active){background: var(--bg_silvercalm);}
.wallet_preview .wpOpt > div > .wpoInfo{position: relative; z-index: 1;}
.wallet_preview .wpOpt > div > .wpoInfo .wiTitle{font-weight: bold;}
.wallet_preview .wpOpt > div > .wpoInfo .wiDesc{margin-top: 5px; color: var(--text_silver);}
.wallet_preview .wpOpt > div > .wpoInfo .wiNote{margin-top: 5px; color: var(--text_blue); font-size: 17px; font-family: 'bold';}
.wallet_preview .wpOpt > div.notavail > .wpoInfo > div:nth-child(3){color: var(--text_silver);}
.wallet_preview .wpOpt > div > .wpoInfo .wpoiOpt{display: grid; grid-template-columns: 1fr 70px; align-items: center;}
.wallet_preview .wpOpt > div > .wpoInfo .wpoiOpt > div{width: 100%;}
.wallet_preview .wpOpt > div > .wpoInfo .wpoiOpt > div select{width: 100%; text-align: center;}
.wallet_preview .wpOpt > div > .wpoInfo > div:nth-child(4){margin-top: 7px; color: var(--text_red);}
.wallet_preview .wpOpt > div > .wpoSelect{position: absolute; width: 30px; height: 30px; right: 5px; top: 5px;}
.wallet_preview .wpOpt > div > .wpoBg{position: absolute; bottom: 5px; right: 5px; opacity: 0.3; width: 45px; height: 45px; background-size: cover;}
.wallet_preview .wpOpt > div:not(.active) > div:nth-child(2){display: none;}
.wallet_preview .wpBtn{display: flex; gap: 15px; margin-top: 15px;}
.wallet_preview .wpBtn > div{width: 100%; display: grid; grid-template-columns: 20px 1fr; grid-gap: 15px; align-items: center; padding: 10px 15px; border-radius: 5px; color: var(--text_white); background: var(--bg_silver); opacity: 0.5; cursor: no-drop;}
.wallet_preview .wpBtn > div.active{opacity: 1; background: var(--bg_blue); cursor: pointer;}
.wallet_preview .wpBtn > div > div{width: 100%;}
.wallet_preview .wpBtn > div > div:first-child > div{width: 20px; height: 20px;}
.wallet_preview .wpLine{text-align: center; padding: 20px 0px; position: relative;}
.wallet_preview .wpLine:before{content: ''; position: absolute; top: 30px; left: 0px; width: 100%; height: 1.5px; background: var(--bg_line);}
.wallet_preview .wpLine > span{padding: 3px 10px; background: var(--bg_line); font-size: 13px; position: relative; z-index: 1; border-radius: 50px;}
.wallet_preview .wpKunci{border-radius: 6px; cursor: pointer; transition: var(--transition); border: 1.5px solid var(--bg_blue); color: var(--text_blue); padding: 10px;}
.wallet_preview .wpKunci:hover{background: var(--bg_blue);}
.wallet_preview .wpKunci > div:first-child{font-weight: bold; padding-bottom: 5px; margin-bottom: 5px; border-bottom: 1px solid var(--bg_line);}
.wallet_preview .wpKunci:hover > div:first-child{color: var(--text_white);}
.wallet_preview .wpKunci > div:nth-child(2){font-size: 11px; color: var(--text_silver);}
.wallet_preview .wpTopupKunci{margin-top: 5px; font-size: 11px;}
.wallet_preview .wpTopupKunci > span{font-weight: bold;}

#popupWallet > div{display: none;}
#popupWallet > div:first-child{width: 100%; height: 100%; position: fixed; top: 0px; left: 0px; z-index: 87; background: var(--bg_blurblack);}
#popupWallet > div:nth-child(2){position: fixed; top: 20px; right: 420px; width: 25px; height: 25px; z-index: 89; cursor: pointer;}
#popupWallet > div:last-child{position: fixed; overflow: auto; width: 400px; height: 100%; top: 0px; z-index: 88; right: 0px; box-shadow: 0px 0px 100px #4e4e4e; background: var(--bg_white);}

.wallet_confirm{}
.wallet_confirm > div:first-child{height: 100px; overflow: hidden; position: relative;}
.wallet_confirm > div:first-child > div:first-child{position: relative; height: 75px; background: var(--bg_blue);}
.wallet_confirm > div:first-child > div:first-child:before{content: ""; display: block; position: absolute; border-radius: 100% 50%; width: 255px; height: 33px; background-color: var(--bg_white); right: -15px; top: 65px;}
.wallet_confirm > div:first-child > div:first-child:after{content: ""; display: block; position: absolute; border-radius: 100% 50%; width: 255px; height: 33px; background-color: var(--bg_blue); left: -18px; top: 48px;}
.wallet_confirm > div:first-child > div:last-child{height: 60px; width: 100%; position: absolute; top: 0px; left: 0px; color: var(--text_white);}
.wallet_confirm > div:first-child > div:last-child > div:first-child{position: absolute; top: 17px; left: 30px; font-size: 25px; font-family: 'bold';}
.wallet_confirm > div:first-child > div:last-child > div:last-child{position: absolute; top: 14px; right: 20px;}
.wallet_confirm > div:first-child > div:last-child > div:last-child{text-align: right;}
.wallet_confirm > div:first-child > div:last-child > div:last-child > div:first-child > span:first-child{font-size: 17px; font-family: 'bold';}
.wallet_confirm > div:first-child > div:last-child > div:last-child > div:first-child > span:last-child{font-size: 10px;}
.wallet_confirm > div:first-child > div:last-child > div:last-child > div:last-child span{color: #cee6ff; cursor: pointer;}
.wallet_confirm > div:nth-child(2){padding: 5px 20px 15px 20px; font-size: 17px; color: var(--text_silver);}
.wallet_payment > div:first-child{padding: 15px 20px;}
.wallet_payment > div:first-child:hover{color: var(--text_blue);}
.wallet_payment > div:last-child{padding: 15px 20px; font-size: 11px; color: var(--text_silver);}
.wallet_option{border: 1px solid var(--bg_line); border-left: 0px; border-right: 0px;}
.wallet_option > div{padding: 15px 20px; position: relative; cursor: pointer; transition: all 0.2s ease;}
.wallet_option > div.disabled{opacity: 0.2; cursor: no-drop;}
.wallet_option > div:not(:first-child){border-top: 1px solid var(--bg_line);}
.wallet_option > div:hover{background: var(--bg_hover);}
.wallet_option .wo_content{display: table; table-layout: fixed; width: 100%;}
.wallet_option .wo_content > div{display: table-cell; vertical-align: middle;}
.wallet_option .wo_content > div:first-child{font-size: 17px; width: 215px;}
.wallet_option .wo_content > div:first-child > div:first-child{font-family: 'bold';}
.wallet_option .wo_content > div:first-child > div:nth-child(2){margin-top: 5px; height: 15px;}
.wallet_option .wo_content > div:first-child > div:nth-child(2) > img{height: 100%;}
.wallet_option .wo_content > div:nth-child(2){margin-top: 3px; color: var(--text_silver); text-align: right;}
.wallet_option .wo_content .woc_before{font-size: 11px; color: var(--text_red); text-decoration: line-through;}
/* ===== Popup pembayaran karya / chapter ===== */
.wallet_payment_preview{padding: 20px 18px 18px 18px;}
.wallet_payment_preview .wpHead{display: flex; align-items: flex-start; gap: 14px; margin: 0 !important;}
.wallet_payment_preview .wpCoverWrap{flex: 0 0 62px; width: 62px; margin: 0 !important;}
.wallet_payment_preview .wpCover{width: 62px; height: 88px; margin: 0 !important; padding: 0; border-radius: 8px; background-color: var(--bg_silvercalm); box-shadow: 0 6px 16px rgba(0,0,0,.18);}
.wallet_payment_preview .wpMeta{flex: 1; min-width: 0; margin: 0 !important; padding-right: 6px;}
.wallet_payment_preview .wpKind{margin: 2px 0 4px 0 !important; font-size: 11px; font-weight: bold; letter-spacing: .5px; text-transform: uppercase; color: var(--text_silver);}
.wallet_payment_preview .wpTitle{margin: 0 !important; font-size: 16px; font-weight: bold; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word;}
.wallet_payment_preview .wpPriceRow{margin: 6px 0 0 0 !important; font-size: 20px; font-weight: bold; color: var(--text_blue);}
.wallet_payment_preview .wpPriceRow s{font-size: 14px; font-weight: normal;}
.wallet_payment_preview .wpClose{flex: 0 0 32px; width: 32px; height: 32px; margin: 0 !important; position: relative; border-radius: 50%; background: var(--bg_silvercalm); cursor: pointer; transition: background .2s, transform .2s;}
.wallet_payment_preview .wpClose:hover{background: var(--bg_line); transform: rotate(90deg);}
.wallet_payment_preview .wpClose::before, .wallet_payment_preview .wpClose::after{content: ""; position: absolute; top: 15px; left: 9px; width: 14px; height: 2px; border-radius: 2px; background: var(--text_black, #222);}
.wallet_payment_preview .wpClose::before{transform: rotate(45deg);}
.wallet_payment_preview .wpClose::after{transform: rotate(-45deg);}

.wallet_payment_preview .wpVoucher{margin: 16px 0 0 0 !important;}
.wallet_payment_preview .wpVoucher .wvBtn > div{display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 25px; border: 1.5px dashed var(--bg_green); color: var(--text_green); font-size: 13px; font-weight: bold; cursor: pointer; transition: background .2s;}
.wallet_payment_preview .wpVoucher .wvBtn > div::before{content: "+"; font-size: 16px; line-height: 1;}
.wallet_payment_preview .wpVoucher .wvBtn > div:hover{background: var(--bg_silvercalm);}
.wallet_payment_preview .wpVoucher .wvInput{display: none;}
.wallet_payment_preview .wpVoucher .wvInput > div{display: flex; align-items: center; gap: 10px;}
.wallet_payment_preview .wpVoucher .wvInput > div > div:first-child{flex: 1; min-width: 0; margin: 0 !important;}
.wallet_payment_preview .wpVoucher .wvInput > div > div:nth-child(2){flex: 0 0 auto; margin: 0 !important;}
.wallet_payment_preview .wpVoucher .wvInput .wiBtn{padding: 10px 20px; border-radius: 10px; background: var(--bg_green); color: #fff; font-weight: bold; font-size: 14px; text-align: center; cursor: pointer; transition: opacity .2s;}
.wallet_payment_preview .wpVoucher .wvInput .wiBtn:hover{opacity: .85;}
.wallet_payment_preview .wpVoucher .wvItem{display: none; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--bg_blue); background: var(--bg_bluesoft);}
.wallet_payment_preview .wpVoucher .wvItem > div{display: grid; font-size: 13px; font-weight: bold; grid-template-columns: 16px 1fr 16px; grid-gap: 10px; align-items: center;}
.wallet_payment_preview .wpVoucher .wvItem > div > div{width: 100%; margin: 0 !important;}
.wallet_payment_preview .wpVoucher .wvItem .wiCheck{width: 18px; height: 18px; border-radius: 50%; background: var(--bg_blue); position: relative;}
.wallet_payment_preview .wpVoucher .wvItem .wiCheck::before{content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);}
.wallet_payment_preview .wpVoucher .wvItem .wiRemove{width: 18px; height: 18px; border-radius: 50%; position: relative; cursor: pointer; transition: background .2s;}
.wallet_payment_preview .wpVoucher .wvItem .wiRemove:hover{background: var(--bg_line);}
.wallet_payment_preview .wpVoucher .wvItem .wiRemove::before, .wallet_payment_preview .wpVoucher .wvItem .wiRemove::after{content: ""; position: absolute; top: 8px; left: 4px; width: 10px; height: 2px; border-radius: 2px; background: var(--text_blue);}
.wallet_payment_preview .wpVoucher .wvItem .wiRemove::before{transform: rotate(45deg);}
.wallet_payment_preview .wpVoucher .wvItem .wiRemove::after{transform: rotate(-45deg);}

.wallet_payment_preview .wpLabel{margin: 18px 0 10px 0 !important; font-size: 12px; font-weight: bold; letter-spacing: .4px; text-transform: uppercase; color: var(--text_silver);}
.wallet_payment_preview .wpOpt{margin: 0 !important;}
.wallet_payment_preview .wpActionDirect{display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 14px 16px; border-radius: 14px; background: var(--bg_blue); color: #fff; cursor: pointer; box-shadow: 0 8px 20px rgba(58,74,244,.28); transition: transform .18s ease, box-shadow .18s ease;}
.wallet_payment_preview .wpActionDirect:hover{transform: translateY(-2px); box-shadow: 0 12px 26px rgba(58,74,244,.36);}
.wallet_payment_preview .wpActionDirect:active{transform: scale(.98);}
.wallet_payment_preview .wpActionDirect:focus-visible, .wallet_payment_preview .wpKunci:focus-visible{outline: 3px solid rgba(58,74,244,.35); outline-offset: 2px;}
.wallet_payment_preview .wpActionDirect .wpaIcon{flex: 0 0 38px; width: 38px; height: 38px; margin: 0 !important; border-radius: 10px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;}
.wallet_payment_preview .wpActionDirect .wpaIcon .icon{width: 20px; height: 20px; margin: 0 !important;}
.wallet_payment_preview .wpaText{flex: 1; min-width: 0; margin: 0 !important;}
.wallet_payment_preview .wpaText > div{margin: 0 !important;}
.wallet_payment_preview .wpaText > div:first-child{font-size: 15px; font-weight: bold;}
.wallet_payment_preview .wpaText > div:nth-child(2){margin-top: 2px !important; font-size: 12px; opacity: .85;}
.wallet_payment_preview .wpaArrow{flex: 0 0 auto; width: 9px; height: 9px; margin: 0 4px 0 0 !important; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: rotate(45deg);}

.wallet_payment_preview .wpLine{text-align: center; padding: 16px 0px; position: relative;}
.wallet_payment_preview .wpLine:before{content: ''; position: absolute; top: 50%; left: 0px; width: 100%; height: 1.5px; background: var(--bg_line);}
.wallet_payment_preview .wpLine > span{padding: 2px 12px; background: var(--bg_white); color: var(--text_silver); font-size: 12px; position: relative; z-index: 1;}
.wallet_payment_preview .wpKunci{display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 12px 16px; border-radius: 14px; cursor: pointer; border: 1.5px solid var(--bg_blue); background: var(--bg_white); transition: background .2s, transform .18s ease, box-shadow .18s ease;}
.wallet_payment_preview .wpKunci:hover{background: var(--bg_bluesoft); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(58,74,244,.14);}
.wallet_payment_preview .wpKunci:active{transform: scale(.98);}
.wallet_payment_preview .wpKunci .wpkIcon{flex: 0 0 38px; width: 38px; height: 38px; margin: 0 !important; border-radius: 10px; background: var(--bg_bluecalm); display: flex; align-items: center; justify-content: center;}
.wallet_payment_preview .wpKunci .wpkIcon .icon{width: 22px; height: 22px; margin: 0 !important;}
.wallet_payment_preview .wpKunci .wpkText{flex: 1; min-width: 0; margin: 0 !important;}
.wallet_payment_preview .wpKunci .wpkText > div{margin: 0 !important;}
.wallet_payment_preview .wpKunci .wpkText > div:first-child{font-size: 15px; font-weight: bold; color: var(--text_blue);}
.wallet_payment_preview .wpKunci .wpkText > div:nth-child(2){margin-top: 2px !important; font-size: 12px; color: var(--text_silver);}
.wallet_payment_preview .wpKunci .wpkText .wpkLow{display: none; color: var(--bg_red); font-weight: bold;}
.wallet_payment_preview .wpKunci.wpLow{border-color: var(--bg_red); }
.wallet_payment_preview .wpKunci.wpLow .wpkText > div:first-child{color: var(--text_black);}
.wallet_payment_preview .wpKunci.wpLow .wpkLow{display: inline;}
.wallet_payment_preview .wpTopupKunci{margin: 10px 0 0 0 !important; text-align: center; font-size: 13px; color: var(--text_silver);}
.wallet_payment_preview .wpTopupKunci > span{font-weight: bold; color: var(--text_blue);}
.wallet_payment_preview .wpSecure{margin: 16px 0 0 0 !important; text-align: center; font-size: 11px; color: var(--text_silver);}
@media (max-width: 420px){
	.wallet_payment_preview{padding: 16px 14px 14px 14px;}
	.wallet_payment_preview .wpTitle{font-size: 15px;}
	.wallet_payment_preview .wpPriceRow{font-size: 18px;}
}
@media (prefers-reduced-motion: reduce){
	.wallet_payment_preview .wpActionDirect, .wallet_payment_preview .wpKunci, .wallet_payment_preview .wpClose{transition: none;}
	.wallet_payment_preview .wpActionDirect:hover, .wallet_payment_preview .wpKunci:hover{transform: none;}
}


/* ===== Loading & sukses pembayaran ===== */
.payProg{padding: 34px 24px 30px 24px; text-align: center;}
.payProg .ppSpin{width: 54px; height: 54px; margin: 0 auto 18px auto !important; border-radius: 50%; border: 5px solid var(--bg_bluecalm, #e3e6ff); border-top-color: var(--bg_blue, #3a4af4); animation: ppSpin .9s linear infinite;}
.payProg .ppTitle{margin: 0 !important; font-size: 17px; font-weight: bold;}
.payProg .ppSub{margin: 6px 0 0 0 !important; font-size: 13px; color: var(--text_silver);}
.payProg .ppTitle::after{content: ""; display: inline-block; width: 1.2em; text-align: left; animation: ppDots 1.2s steps(4, end) infinite;}
.paySuccess{padding: 30px 24px 24px 24px; text-align: center;}
.paySuccess .psIcon{position: relative; width: 96px; height: 96px; margin: 0 auto 16px auto !important; display: flex; align-items: center; justify-content: center;}
.paySuccess .psIcon svg{position: relative; z-index: 1; margin: 0 !important; overflow: visible;}
.paySuccess .psCircle{fill: var(--bg_blue, #3a4af4); transform-origin: 32px 32px; animation: psPop .5s cubic-bezier(.2,1.3,.3,1) both;}
.paySuccess .psCheck{fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 44; stroke-dashoffset: 44; animation: psDraw .45s ease .35s forwards;}
.paySuccess .psRing{position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: 0 !important; border-radius: 50%; border: 2px solid var(--bg_blue, #3a4af4); opacity: 0; animation: psRipple 1.8s ease-out .5s infinite;}
.paySuccess .psRing2{animation-delay: 1.3s;}
.paySuccess .psTitle{margin: 0 0 6px 0 !important; font-size: 20px; font-weight: bold; animation: psUp .4s ease .45s both;}
.paySuccess .psText{margin: 0 0 18px 0 !important; font-size: 14px; line-height: 1.5; color: var(--text_silver); animation: psUp .4s ease .55s both;}
.paySuccess .psBtn{display: block; width: 100%; margin: 0 !important; padding: 13px 16px; border: 0; border-radius: 12px; background: var(--bg_blue); color: #fff; font-family: inherit; font-size: 15px; font-weight: bold; cursor: pointer; animation: psUp .4s ease .65s both;}
.paySuccess .psBtn:focus-visible{outline: 3px solid rgba(58,74,244,.35); outline-offset: 2px;}
@keyframes ppSpin{to{transform: rotate(360deg)}}
@keyframes ppDots{0%{content: ""}25%{content: "."}50%{content: ".."}75%,100%{content: "..."}}
@keyframes psPop{0%{transform: scale(.3); opacity: 0}100%{transform: scale(1); opacity: 1}}
@keyframes psDraw{to{stroke-dashoffset: 0}}
@keyframes psRipple{0%{opacity: .5; transform: scale(.6)}100%{opacity: 0; transform: scale(1.35)}}
@keyframes psUp{from{opacity: 0; transform: translateY(10px)}to{opacity: 1; transform: none}}
@media (prefers-reduced-motion: reduce){
	.payProg .ppSpin{animation-duration: 2.5s;}
	.payProg .ppTitle::after, .paySuccess .psCircle, .paySuccess .psTitle, .paySuccess .psText, .paySuccess .psBtn{animation: none;}
	.paySuccess .psCheck{animation: none; stroke-dashoffset: 0;}
	.paySuccess .psRing{display: none;}
}
