pay-sdk-react 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -19
- package/README.zh-CN.md +37 -19
- package/dist/css/index.css +703 -1
- package/dist/css/index.min.css +1 -0
- package/dist/es/Airwallex/airwallex-button.js +56 -36
- package/dist/es/Airwallex/airwallex-modal.js +41 -34
- package/dist/es/Airwallex/airwallex-popup.js +43 -38
- package/dist/es/Airwallex/airwallex.js +26 -28
- package/dist/es/Airwallex/index.js +1 -1
- package/dist/es/Airwallex/style/index.css +335 -1
- package/dist/es/Airwallex/style/index.min.css +1 -0
- package/dist/es/Alipay/alipay-button.js +39 -24
- package/dist/es/Alipay/alipay-modal.js +37 -31
- package/dist/es/Alipay/alipay.js +22 -15
- package/dist/es/Alipay/index.d.ts +4 -4
- package/dist/es/Alipay/index.js +5 -5
- package/dist/es/Alipay/style/index.css +18 -1
- package/dist/es/Alipay/style/index.min.css +1 -0
- package/dist/es/Button/button.js +62 -37
- package/dist/es/Button/index.d.ts +2 -2
- package/dist/es/Button/index.js +2 -2
- package/dist/es/Button/style/index.css +95 -1
- package/dist/es/Button/style/index.min.css +1 -0
- package/dist/es/FullScreenLoading/index.js +40 -40
- package/dist/es/FullScreenLoading/interface.d.ts +2 -2
- package/dist/es/FullScreenLoading/style/index.css +239 -1
- package/dist/es/FullScreenLoading/style/index.min.css +1 -0
- package/dist/es/MAlipay/index.js +1 -1
- package/dist/es/MAlipay/m-alipay-auto-submit.js +9 -11
- package/dist/es/MAlipay/m-alipay-button.js +71 -51
- package/dist/es/MAlipay/style/index.css +252 -1
- package/dist/es/MAlipay/style/index.min.css +1 -0
- package/dist/es/MWeChat/index.d.ts +2 -2
- package/dist/es/MWeChat/index.js +2 -2
- package/dist/es/MWeChat/m-wechat-button.js +70 -50
- package/dist/es/MWeChat/style/index.css +252 -1
- package/dist/es/MWeChat/style/index.min.css +1 -0
- package/dist/es/Mask/index.d.ts +2 -2
- package/dist/es/Mask/index.js +2 -2
- package/dist/es/Mask/mask.js +48 -45
- package/dist/es/Mask/style/index.css +11 -1
- package/dist/es/Mask/style/index.min.css +1 -0
- package/dist/es/PayButton/index.js +2 -2
- package/dist/es/PayButton/interface.d.ts +9 -9
- package/dist/es/PayButton/interface.js +1 -1
- package/dist/es/PayMask/index.d.ts +2 -2
- package/dist/es/PayMask/index.js +2 -2
- package/dist/es/PayMask/interface.d.ts +2 -2
- package/dist/es/PayMask/pay-mask.js +41 -40
- package/dist/es/PayMask/style/index.css +62 -1
- package/dist/es/PayMask/style/index.min.css +1 -0
- package/dist/es/Paypal/index.d.ts +2 -2
- package/dist/es/Paypal/index.js +2 -2
- package/dist/es/Paypal/paypal-button.js +55 -36
- package/dist/es/Paypal/style/index.css +207 -1
- package/dist/es/Paypal/style/index.min.css +1 -0
- package/dist/es/Payssion/index.d.ts +2 -2
- package/dist/es/Payssion/index.js +2 -2
- package/dist/es/Payssion/payssion-button.js +56 -37
- package/dist/es/Payssion/style/index.css +157 -1
- package/dist/es/Payssion/style/index.min.css +1 -0
- package/dist/es/Stripe/index.d.ts +5 -5
- package/dist/es/Stripe/index.js +6 -6
- package/dist/es/Stripe/stripe-button.js +47 -33
- package/dist/es/Stripe/stripe-modal.js +38 -32
- package/dist/es/Stripe/stripe-popup.js +42 -37
- package/dist/es/Stripe/stripe.js +15 -15
- package/dist/es/Stripe/style/index.css +365 -1
- package/dist/es/Stripe/style/index.min.css +1 -0
- package/dist/es/Wechat/index.d.ts +4 -4
- package/dist/es/Wechat/index.js +5 -5
- package/dist/es/Wechat/style/index.css +25 -1
- package/dist/es/Wechat/style/index.min.css +1 -0
- package/dist/es/Wechat/wechat-button.js +38 -23
- package/dist/es/Wechat/wechat-modal.js +37 -31
- package/dist/es/Wechat/wechat.js +16 -12
- package/dist/es/confirm-modal/index.js +38 -39
- package/dist/es/confirm-modal/interface.d.ts +2 -2
- package/dist/es/confirm-modal/style/index.css +95 -1
- package/dist/es/confirm-modal/style/index.min.css +1 -0
- package/dist/es/dot-loading/dot-loading.js +25 -23
- package/dist/es/dot-loading/index.d.ts +2 -2
- package/dist/es/dot-loading/index.js +2 -2
- package/dist/es/dot-loading/style/index.css +3 -1
- package/dist/es/dot-loading/style/index.min.css +1 -0
- package/dist/es/hooks/use-initialized.js +2 -2
- package/dist/es/hooks/use-inner-visible.js +8 -4
- package/dist/es/hooks/use-lock-scroll.d.ts +2 -2
- package/dist/es/hooks/use-lock-scroll.js +30 -34
- package/dist/es/hooks/use-touch.d.ts +1 -1
- package/dist/es/hooks/use-touch.js +35 -31
- package/dist/es/hooks/usePayWindowOpen.d.ts +1 -1
- package/dist/es/hooks/usePayWindowOpen.js +31 -27
- package/dist/es/icons/IconAlipay/index.js +18 -16
- package/dist/es/icons/IconClose/index.js +24 -22
- package/dist/es/icons/IconPaypalText/index.js +24 -22
- package/dist/es/icons/IconPaypalWhite/index.js +19 -17
- package/dist/es/icons/IconPayssionPay/index.js +47 -45
- package/dist/es/icons/IconStripe/index.js +19 -17
- package/dist/es/icons/IconStripeText/index.js +19 -17
- package/dist/es/icons/IconWechatPay/index.js +18 -16
- package/dist/es/icons/interface.d.ts +1 -1
- package/dist/es/icons/style/index.css +45 -1
- package/dist/es/icons/style/index.min.css +1 -0
- package/dist/es/pay-modal/index.d.ts +2 -2
- package/dist/es/pay-modal/index.js +2 -2
- package/dist/es/pay-modal/pay-modal.js +45 -48
- package/dist/es/pay-modal/style/index.css +95 -1
- package/dist/es/pay-modal/style/index.min.css +1 -0
- package/dist/es/pay-popup/index.js +51 -53
- package/dist/es/pay-popup/interface.d.ts +6 -6
- package/dist/es/pay-popup/style/index.css +145 -1
- package/dist/es/pay-popup/style/index.min.css +1 -0
- package/dist/es/shared/enums/index.js +1 -1
- package/dist/es/shared/index.d.ts +1 -1
- package/dist/es/shared/index.js +1 -1
- package/dist/es/utils/can-use-dom.js +1 -1
- package/dist/es/utils/classNames.js +15 -11
- package/dist/es/utils/dom.js +18 -18
- package/dist/es/utils/get-container.js +2 -2
- package/dist/es/utils/get-scroll-parent.js +8 -9
- package/dist/es/utils/is.js +54 -32
- package/dist/es/utils/native-props.d.ts +2 -2
- package/dist/es/utils/native-props.js +7 -9
- package/dist/es/utils/omit.js +3 -5
- package/dist/es/utils/qrcode.js +5 -5
- package/dist/es/utils/render-to-container.d.ts +1 -1
- package/dist/es/utils/render-to-container.js +4 -4
- package/dist/es/utils/should-render.d.ts +1 -1
- package/dist/es/utils/should-render.js +4 -4
- package/dist/es/utils/supports-passive.js +8 -7
- package/dist/es/utils/warning.js +0 -1
- package/dist/es/utils/with-default-props.js +6 -4
- package/dist/es/utils/with-stop-propagation.d.ts +3 -3
- package/dist/es/utils/with-stop-propagation.js +27 -14
- package/dist/lib/Airwallex/airwallex-button.js +12 -15
- package/dist/lib/Airwallex/airwallex-modal.js +11 -14
- package/dist/lib/Airwallex/airwallex-popup.js +16 -23
- package/dist/lib/Airwallex/airwallex.js +20 -25
- package/dist/lib/Airwallex/index.js +1 -1
- package/dist/lib/Airwallex/style/index.css +335 -1
- package/dist/lib/Airwallex/style/index.min.css +1 -0
- package/dist/lib/Alipay/alipay-button.js +12 -15
- package/dist/lib/Alipay/alipay-modal.js +9 -12
- package/dist/lib/Alipay/alipay.js +19 -23
- package/dist/lib/Alipay/index.js +1 -1
- package/dist/lib/Alipay/style/index.css +18 -1
- package/dist/lib/Alipay/style/index.min.css +1 -0
- package/dist/lib/Button/button.js +13 -13
- package/dist/lib/Button/index.js +1 -1
- package/dist/lib/Button/style/index.css +95 -1
- package/dist/lib/Button/style/index.min.css +1 -0
- package/dist/lib/FullScreenLoading/index.js +28 -29
- package/dist/lib/FullScreenLoading/style/index.css +239 -1
- package/dist/lib/FullScreenLoading/style/index.min.css +1 -0
- package/dist/lib/MAlipay/index.js +1 -1
- package/dist/lib/MAlipay/m-alipay-auto-submit.js +3 -4
- package/dist/lib/MAlipay/m-alipay-button.js +34 -44
- package/dist/lib/MAlipay/style/index.css +252 -1
- package/dist/lib/MAlipay/style/index.min.css +1 -0
- package/dist/lib/MWeChat/index.js +2 -2
- package/dist/lib/MWeChat/m-wechat-button.js +34 -44
- package/dist/lib/MWeChat/style/index.css +252 -1
- package/dist/lib/MWeChat/style/index.min.css +1 -0
- package/dist/lib/Mask/index.js +1 -1
- package/dist/lib/Mask/mask.js +6 -11
- package/dist/lib/Mask/style/index.css +11 -1
- package/dist/lib/Mask/style/index.min.css +1 -0
- package/dist/lib/PayButton/index.js +10 -10
- package/dist/lib/PayMask/index.js +1 -1
- package/dist/lib/PayMask/pay-mask.js +20 -23
- package/dist/lib/PayMask/style/index.css +62 -1
- package/dist/lib/PayMask/style/index.min.css +1 -0
- package/dist/lib/Paypal/index.js +2 -2
- package/dist/lib/Paypal/paypal-button.js +17 -22
- package/dist/lib/Paypal/style/index.css +207 -1
- package/dist/lib/Paypal/style/index.min.css +1 -0
- package/dist/lib/Payssion/index.js +2 -2
- package/dist/lib/Payssion/payssion-button.js +17 -22
- package/dist/lib/Payssion/style/index.css +157 -1
- package/dist/lib/Payssion/style/index.min.css +1 -0
- package/dist/lib/Stripe/index.js +1 -1
- package/dist/lib/Stripe/stripe-button.js +14 -17
- package/dist/lib/Stripe/stripe-modal.js +10 -13
- package/dist/lib/Stripe/stripe-popup.js +16 -23
- package/dist/lib/Stripe/stripe.js +8 -11
- package/dist/lib/Stripe/style/index.css +365 -1
- package/dist/lib/Stripe/style/index.min.css +1 -0
- package/dist/lib/Wechat/index.js +1 -1
- package/dist/lib/Wechat/style/index.css +25 -1
- package/dist/lib/Wechat/style/index.min.css +1 -0
- package/dist/lib/Wechat/wechat-button.js +12 -15
- package/dist/lib/Wechat/wechat-modal.js +9 -12
- package/dist/lib/Wechat/wechat.js +11 -12
- package/dist/lib/confirm-modal/index.js +17 -26
- package/dist/lib/confirm-modal/style/index.css +95 -1
- package/dist/lib/confirm-modal/style/index.min.css +1 -0
- package/dist/lib/dot-loading/dot-loading.js +3 -4
- package/dist/lib/dot-loading/index.js +1 -1
- package/dist/lib/dot-loading/style/index.css +3 -1
- package/dist/lib/dot-loading/style/index.min.css +1 -0
- package/dist/lib/hooks/use-lock-scroll.js +11 -12
- package/dist/lib/hooks/use-touch.js +10 -10
- package/dist/lib/hooks/usePayWindowOpen.js +14 -15
- package/dist/lib/icons/IconAlipay/index.js +6 -6
- package/dist/lib/icons/IconClose/index.js +8 -8
- package/dist/lib/icons/IconPaypalText/index.js +7 -7
- package/dist/lib/icons/IconPaypalWhite/index.js +6 -6
- package/dist/lib/icons/IconPayssionPay/index.js +13 -13
- package/dist/lib/icons/IconStripe/index.js +6 -6
- package/dist/lib/icons/IconStripeText/index.js +6 -6
- package/dist/lib/icons/IconWechatPay/index.js +6 -6
- package/dist/lib/icons/index.js +2 -2
- package/dist/lib/icons/style/index.css +45 -1
- package/dist/lib/icons/style/index.min.css +1 -0
- package/dist/lib/index.js +2 -2
- package/dist/lib/pay-modal/index.js +1 -1
- package/dist/lib/pay-modal/pay-modal.js +24 -30
- package/dist/lib/pay-modal/style/index.css +95 -1
- package/dist/lib/pay-modal/style/index.min.css +1 -0
- package/dist/lib/pay-popup/index.js +24 -28
- package/dist/lib/pay-popup/style/index.css +145 -1
- package/dist/lib/pay-popup/style/index.min.css +1 -0
- package/dist/lib/utils/can-use-dom.js +1 -1
- package/dist/lib/utils/classNames.js +6 -7
- package/dist/lib/utils/dom.js +9 -11
- package/dist/lib/utils/get-scroll-parent.js +2 -3
- package/dist/lib/utils/getPrefixCls.js +1 -1
- package/dist/lib/utils/is.js +16 -14
- package/dist/lib/utils/native-props.js +10 -10
- package/dist/lib/utils/omit.js +3 -6
- package/dist/lib/utils/qrcode.js +1 -1
- package/dist/lib/utils/supports-passive.js +4 -3
- package/dist/lib/utils/warning.js +2 -6
- package/dist/lib/utils/with-default-props.js +4 -8
- package/dist/lib/utils/with-stop-propagation.js +6 -9
- package/dist/umd/pay-sdk-react.umd.js +61 -63
- package/dist/umd/pay-sdk-react.umd.js.map +1 -1
- package/package.json +5 -2
package/dist/css/index.css
CHANGED
|
@@ -1 +1,703 @@
|
|
|
1
|
-
.pay-dot-loading{display:inline-block}.pay-fullscreen-loading{position:fixed;z-index:9999;left:0;top:0;right:0;bottom:0;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center;pointer-events:auto;user-select:none}.pay-fullscreen-loading__center{display:flex;flex-direction:column;align-items:center;justify-content:center}.pay-fullscreen-loading__spinner-box{display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:rgba(17,17,17,.8);border-radius:16px;transition:width .2s,height .2s;box-sizing:border-box;padding:8px}.pay-fullscreen-loading__spinner-box--no-text{padding:4px}.pay-fullscreen-loading__spinner{margin-bottom:8px}.pay-fullscreen-loading__spinner-box--no-text .pay-fullscreen-loading__spinner{margin-bottom:0}.pay-fullscreen-loading__circle{border:3px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin 1.2s linear infinite}.pay-fullscreen-loading__text{color:#fff;font-weight:600;letter-spacing:.25px;text-align:center;width:100%;word-break:break-all;line-height:1.2;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pay-fullscreen-loading__dots{display:flex;align-items:center;gap:10px}.pay-fullscreen-loading__dot{background:#fff;border-radius:50%;animation:bounce .5s ease-in-out infinite}.pay-fullscreen-loading__dot:nth-child(2){animation-delay:.1s}.pay-fullscreen-loading__dot:nth-child(3){animation-delay:.2s}.pay-fullscreen-loading__spin-dots{position:relative;animation:spin 1.2s steps(12) infinite}.pay-fullscreen-loading__spin-dot{position:absolute;top:0;left:50%;background:#fff;border-radius:50%}.pay-fullscreen-loading--small .pay-fullscreen-loading__spinner-box{width:88px;height:88px}.pay-fullscreen-loading--small .pay-fullscreen-loading__spinner-box--no-text{width:48px;height:48px}.pay-fullscreen-loading--small .pay-fullscreen-loading__circle{width:24px;height:24px;border-width:3px}.pay-fullscreen-loading--small .pay-fullscreen-loading__text{font-size:14px}.pay-fullscreen-loading--small .pay-fullscreen-loading__dot{width:6px;height:6px}.pay-fullscreen-loading--small .pay-fullscreen-loading__spin-dots{width:28px;height:28px}.pay-fullscreen-loading--small .pay-fullscreen-loading__spin-dot{width:3.5px;height:3.5px;margin-left:-1.75px;transform-origin:50% 14px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__spinner-box{width:112px;height:112px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__spinner-box--no-text{width:62px;height:62px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__circle{width:36px;height:36px;border-width:4px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__text{font-size:16px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__dot{width:10px;height:10px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__spin-dots{width:40px;height:40px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__spin-dot{width:4.5px;height:4.5px;margin-left:-2.25px;transform-origin:50% 20px}.pay-fullscreen-loading--large .pay-fullscreen-loading__spinner-box{width:144px;height:144px}.pay-fullscreen-loading--large .pay-fullscreen-loading__spinner-box--no-text{width:80px;height:80px}.pay-fullscreen-loading--large .pay-fullscreen-loading__circle{width:42px;height:42px;border-width:5px}.pay-fullscreen-loading--large .pay-fullscreen-loading__text{font-size:18px}.pay-fullscreen-loading--large .pay-fullscreen-loading__dot{width:12px;height:12px}.pay-fullscreen-loading--large .pay-fullscreen-loading__spin-dots{width:48px;height:48px}.pay-fullscreen-loading--large .pay-fullscreen-loading__spin-dot{width:5.5px;height:5.5px;margin-left:-2.75px;transform-origin:50% 24px}.pay-fullscreen-loading--default .pay-fullscreen-loading__spinner-box{width:100px;height:100px}.pay-fullscreen-loading--default .pay-fullscreen-loading__spinner-box--no-text{width:56px;height:56px}.pay-fullscreen-loading--default .pay-fullscreen-loading__circle{width:32px;height:32px;border-width:4px}.pay-fullscreen-loading--default .pay-fullscreen-loading__text{font-size:16px}.pay-fullscreen-loading--default .pay-fullscreen-loading__dot{width:9px;height:9px}.pay-fullscreen-loading--default .pay-fullscreen-loading__spin-dots{width:32px;height:32px}.pay-fullscreen-loading--default .pay-fullscreen-loading__spin-dot{width:4px;height:4px;margin-left:-2px;transform-origin:50% 16px}.pay-fullscreen-loading__container{position:relative;display:block}.pay-fullscreen-loading__mask{position:absolute;left:0;top:0;right:0;bottom:0;background:hsla(0,0%,100%,.8);z-index:10;display:flex;align-items:center;justify-content:center}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}.pay-button{display:inline-block;padding:7px 12px;font-size:16px;border-radius:4px;border:1px solid #eee;background:#fff;color:#333;cursor:pointer;transition:all .2s;user-select:none;position:relative;text-align:center}.pay-button-content{display:flex;align-items:center;justify-content:center;gap:6px}.pay-button-block{display:block;width:100%}.pay-button-disabled{opacity:.4;cursor:not-allowed}.pay-button-loading{cursor:wait}.pay-button-loading-wrapper{display:flex;align-items:center;justify-content:center;gap:6px}.pay-button-primary{background:#1677ff;border-color:#1677ff;color:#fff}.pay-button-primary:hover{background:#409eff}.pay-button-success{background:#00b578;border-color:#00b578;color:#fff}.pay-button-danger{background:#ff3141;border-color:#ff3141;color:#fff}.pay-button-warning{background:#ff8f1f;border-color:#ff8f1f;color:#fff}.pay-button-default{background:#fff;border-color:#eee;color:#333}.pay-button-fill-outline{background:0 0;color:inherit}.pay-button-fill-none{background:0 0;border:none;color:inherit}.pay-button-mini{font-size:12px;padding:2px 8px}.pay-button-small{font-size:14px;padding:4px 10px}.pay-button-large{font-size:18px;padding:10px 18px}.pay-button-shape-rounded{border-radius:1000px}.pay-button-shape-rectangular{border-radius:0}.pay-popup{position:fixed;z-index:1001}.pay-popup-body{position:fixed;display:flex;flex-direction:column;background-color:#fff;z-index:1010;box-sizing:border-box}.pay-popup-body.pay-popup-body-position-bottom{width:100%;left:0;bottom:0}.pay-popup-body.pay-popup-body-position-top{width:100%;left:0;top:0}.pay-popup-body.pay-popup-body-position-left{height:100%;width:80vw;left:0;top:0}.pay-popup-body.pay-popup-body-position-right{height:100%;width:80vw;right:0;top:0}.pay-popup-body.pay-popup-body-round.pay-popup-body-position-bottom{border-radius:16px 16px 0 0}.pay-popup-body.pay-popup-body-round.pay-popup-body-position-top{border-radius:0 0 16px 16px}.pay-popup-body.pay-popup-body-round.pay-popup-body-position-left{border-radius:0 16px 16px 0}.pay-popup-body.pay-popup-body-round.pay-popup-body-position-right{border-radius:16px 0 0 16px}.pay-popup-close-icon{position:absolute;z-index:1;cursor:pointer;padding:4px;font-size:18px;line-height:1;color:#999}.pay-popup-body.pay-popup-body-position-bottom .pay-popup-close-icon,.pay-popup-body.pay-popup-body-position-left .pay-popup-close-icon{top:8px;right:8px}.pay-popup-body.pay-popup-body-position-top .pay-popup-close-icon{bottom:8px;right:8px}.pay-popup-body.pay-popup-body-position-right .pay-popup-close-icon{top:8px;left:8px}.pay-popup-content{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-bottom .pay-popup-content,.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-left .pay-popup-content{padding-top:40px}.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-right .pay-popup-content{padding-top:40px}.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-top .pay-popup-content{padding-bottom:40px}.pay-mask-content{position:relative;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 88px}.pay-mask-close{position:absolute;right:12px;top:12px;background:0 0;border:none;font-size:28px;color:#fff;cursor:pointer;z-index:1}.pay-mask-title{display:flex;align-items:center;gap:4px;font-weight:700;font-size:28px;color:#fff;margin-bottom:16px;text-shadow:0 2px 8px #000}.pay-mask-title>.pay-icon-paypal-white{width:36px;height:36px}.pay-mask-desc{color:#fff;text-align:center;margin-bottom:24px;line-height:1.5;white-space:pre-line}.pay-mask-continue{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:4px;cursor:pointer;text-align:center;font-size:18px}.pay-icon{display:inline-block;color:inherit;width:16px;vertical-align:-2px;stroke:currentColor}.pay-icon[fill=currentColor]{fill:currentColor;stroke:none}.pay-icon[stroke=currentColor]{stroke:currentColor;fill:none}.pay-icon[fill=currentColor][stroke=currentColor]{fill:currentColor;stroke:currentColor}.pay-icon-paypal-text{width:64px;height:26px;max-width:72px;max-height:32px}.pay-icon-close{width:18px;height:18px}.pay-icon-stripe-text{width:24px;height:24px}.pay-icon-alipay{width:20px;height:20px}.pay-icon-wechat-pay{width:20px;height:20px}.pay-icon-payssion-pay{width:36px;height:20px}.pay-mask{position:fixed;z-index:1000;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.pay-modal{position:fixed;z-index:9999;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.pay-modal__mask{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.55);z-index:0}.pay-modal__content{position:relative;z-index:1;background:#fff;border-radius:16px;padding:42px 20px 20px 20px;min-width:280px;max-width:80vw;box-shadow:0 4px 24px #0001;text-align:center;max-height:60vh;display:flex;flex-direction:column}.pay-modal__close{position:absolute;right:12px;top:12px;background:0 0;border:none;font-size:28px;cursor:pointer;text-align:left}.pay-modal__icon{margin-bottom:8px;font-size:40px}.pay-modal__title{font-size:20px;font-weight:700;color:#222;margin-bottom:12px}.pay-modal__desc{color:#222;font-size:15px;margin-bottom:24px;line-height:1.7;text-align:left}.pay-modal__content-wrapper{position:relative;z-index:1;text-align:center;overflow-y:auto;flex:1;min-height:0}.pay-modal__actions{display:flex;justify-content:center;gap:16px;margin-top:16px}.pay-modal__btn{min-width:96px;padding:8px 0;border-radius:24px;border:none;font-size:15px;font-weight:600;cursor:pointer;transition:background .2s}.pay-modal__btn--retry{background:#fff;color:#f25a5a;border:1.5px solid #f25a5a}.pay-modal__btn--finish{background:#f25a5a;color:#fff;border:none}.pay-paypal-btn.pay-button>span{display:flex;align-items:center;gap:.5rem}@media (min-width:576px){.pay-stripe-modal.pay-modal .pay-modal__content{width:72%}}@media (min-width:768px){.pay-stripe-modal.pay-modal .pay-modal__content{width:50%}}@media (min-width:992px){.pay-stripe-modal.pay-modal .pay-modal__content{width:40%}}@media (min-width:1200px){.pay-stripe-modal.pay-modal .pay-modal__content{width:27%}}@media (min-width:1600px){.pay-stripe-modal.pay-modal .pay-modal__content{width:26%}}@media (min-width:2000px){.pay-stripe-modal.pay-modal .pay-modal__content{width:20%}}.pay-alipay-qr-iframe{display:flex;flex-direction:column;align-items:center}.pay-alipay-qr-iframe__iframe{border:none;width:210px;height:210px;margin-top:10px;margin-bottom:8px}.pay-alipay-qr-iframe__tip{text-align:center;color:#333;font-size:14px;line-height:20px}.pay-wechat-qrcode{display:flex;flex-direction:column;align-items:center}.pay-wechat-qrcode__container{background-color:#fff;border-radius:8px;display:flex;justify-content:center;align-items:center;width:210px;height:210px}.pay-wechat-qrcode__image{width:100%;height:100%;object-fit:cover}.pay-wechat-qrcode__tip{text-align:center;color:#333;font-size:14px;line-height:20px}
|
|
1
|
+
.pay-dot-loading {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
}
|
|
4
|
+
.pay-fullscreen-loading {
|
|
5
|
+
position: fixed;
|
|
6
|
+
z-index: 9999;
|
|
7
|
+
left: 0;
|
|
8
|
+
top: 0;
|
|
9
|
+
right: 0;
|
|
10
|
+
bottom: 0;
|
|
11
|
+
background: hsla(0, 0%, 100%, 0.8);
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
pointer-events: auto;
|
|
16
|
+
user-select: none;
|
|
17
|
+
}
|
|
18
|
+
.pay-fullscreen-loading__center {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
}
|
|
24
|
+
.pay-fullscreen-loading__spinner-box {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
background-color: rgba(17, 17, 17, 0.8);
|
|
30
|
+
border-radius: 16px;
|
|
31
|
+
transition: width 0.2s, height 0.2s;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
padding: 8px;
|
|
34
|
+
}
|
|
35
|
+
.pay-fullscreen-loading__spinner-box--no-text {
|
|
36
|
+
padding: 4px;
|
|
37
|
+
}
|
|
38
|
+
.pay-fullscreen-loading__spinner {
|
|
39
|
+
margin-bottom: 8px;
|
|
40
|
+
}
|
|
41
|
+
.pay-fullscreen-loading__spinner-box--no-text .pay-fullscreen-loading__spinner {
|
|
42
|
+
margin-bottom: 0;
|
|
43
|
+
}
|
|
44
|
+
.pay-fullscreen-loading__circle {
|
|
45
|
+
border: 3px solid rgba(255, 255, 255, 0.3);
|
|
46
|
+
border-top-color: #fff;
|
|
47
|
+
border-radius: 50%;
|
|
48
|
+
animation: spin 1.2s linear infinite;
|
|
49
|
+
}
|
|
50
|
+
.pay-fullscreen-loading__text {
|
|
51
|
+
color: #fff;
|
|
52
|
+
font-weight: 600;
|
|
53
|
+
letter-spacing: 0.25px;
|
|
54
|
+
text-align: center;
|
|
55
|
+
width: 100%;
|
|
56
|
+
word-break: break-all;
|
|
57
|
+
line-height: 1.2;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
display: -webkit-box;
|
|
60
|
+
-webkit-box-orient: vertical;
|
|
61
|
+
-webkit-line-clamp: 2;
|
|
62
|
+
}
|
|
63
|
+
.pay-fullscreen-loading__dots {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
gap: 10px;
|
|
67
|
+
}
|
|
68
|
+
.pay-fullscreen-loading__dot {
|
|
69
|
+
background: #fff;
|
|
70
|
+
border-radius: 50%;
|
|
71
|
+
animation: bounce 0.5s ease-in-out infinite;
|
|
72
|
+
}
|
|
73
|
+
.pay-fullscreen-loading__dot:nth-child(2) {
|
|
74
|
+
animation-delay: 0.1s;
|
|
75
|
+
}
|
|
76
|
+
.pay-fullscreen-loading__dot:nth-child(3) {
|
|
77
|
+
animation-delay: 0.2s;
|
|
78
|
+
}
|
|
79
|
+
.pay-fullscreen-loading__spin-dots {
|
|
80
|
+
position: relative;
|
|
81
|
+
animation: spin 1.2s steps(12) infinite;
|
|
82
|
+
}
|
|
83
|
+
.pay-fullscreen-loading__spin-dot {
|
|
84
|
+
position: absolute;
|
|
85
|
+
top: 0;
|
|
86
|
+
left: 50%;
|
|
87
|
+
background: #fff;
|
|
88
|
+
border-radius: 50%;
|
|
89
|
+
}
|
|
90
|
+
.pay-fullscreen-loading--small .pay-fullscreen-loading__spinner-box {
|
|
91
|
+
width: 88px;
|
|
92
|
+
height: 88px;
|
|
93
|
+
}
|
|
94
|
+
.pay-fullscreen-loading--small .pay-fullscreen-loading__spinner-box--no-text {
|
|
95
|
+
width: 48px;
|
|
96
|
+
height: 48px;
|
|
97
|
+
}
|
|
98
|
+
.pay-fullscreen-loading--small .pay-fullscreen-loading__circle {
|
|
99
|
+
width: 24px;
|
|
100
|
+
height: 24px;
|
|
101
|
+
border-width: 3px;
|
|
102
|
+
}
|
|
103
|
+
.pay-fullscreen-loading--small .pay-fullscreen-loading__text {
|
|
104
|
+
font-size: 14px;
|
|
105
|
+
}
|
|
106
|
+
.pay-fullscreen-loading--small .pay-fullscreen-loading__dot {
|
|
107
|
+
width: 6px;
|
|
108
|
+
height: 6px;
|
|
109
|
+
}
|
|
110
|
+
.pay-fullscreen-loading--small .pay-fullscreen-loading__spin-dots {
|
|
111
|
+
width: 28px;
|
|
112
|
+
height: 28px;
|
|
113
|
+
}
|
|
114
|
+
.pay-fullscreen-loading--small .pay-fullscreen-loading__spin-dot {
|
|
115
|
+
width: 3.5px;
|
|
116
|
+
height: 3.5px;
|
|
117
|
+
margin-left: -1.75px;
|
|
118
|
+
transform-origin: 50% 14px;
|
|
119
|
+
}
|
|
120
|
+
.pay-fullscreen-loading--medium .pay-fullscreen-loading__spinner-box {
|
|
121
|
+
width: 112px;
|
|
122
|
+
height: 112px;
|
|
123
|
+
}
|
|
124
|
+
.pay-fullscreen-loading--medium .pay-fullscreen-loading__spinner-box--no-text {
|
|
125
|
+
width: 62px;
|
|
126
|
+
height: 62px;
|
|
127
|
+
}
|
|
128
|
+
.pay-fullscreen-loading--medium .pay-fullscreen-loading__circle {
|
|
129
|
+
width: 36px;
|
|
130
|
+
height: 36px;
|
|
131
|
+
border-width: 4px;
|
|
132
|
+
}
|
|
133
|
+
.pay-fullscreen-loading--medium .pay-fullscreen-loading__text {
|
|
134
|
+
font-size: 16px;
|
|
135
|
+
}
|
|
136
|
+
.pay-fullscreen-loading--medium .pay-fullscreen-loading__dot {
|
|
137
|
+
width: 10px;
|
|
138
|
+
height: 10px;
|
|
139
|
+
}
|
|
140
|
+
.pay-fullscreen-loading--medium .pay-fullscreen-loading__spin-dots {
|
|
141
|
+
width: 40px;
|
|
142
|
+
height: 40px;
|
|
143
|
+
}
|
|
144
|
+
.pay-fullscreen-loading--medium .pay-fullscreen-loading__spin-dot {
|
|
145
|
+
width: 4.5px;
|
|
146
|
+
height: 4.5px;
|
|
147
|
+
margin-left: -2.25px;
|
|
148
|
+
transform-origin: 50% 20px;
|
|
149
|
+
}
|
|
150
|
+
.pay-fullscreen-loading--large .pay-fullscreen-loading__spinner-box {
|
|
151
|
+
width: 144px;
|
|
152
|
+
height: 144px;
|
|
153
|
+
}
|
|
154
|
+
.pay-fullscreen-loading--large .pay-fullscreen-loading__spinner-box--no-text {
|
|
155
|
+
width: 80px;
|
|
156
|
+
height: 80px;
|
|
157
|
+
}
|
|
158
|
+
.pay-fullscreen-loading--large .pay-fullscreen-loading__circle {
|
|
159
|
+
width: 42px;
|
|
160
|
+
height: 42px;
|
|
161
|
+
border-width: 5px;
|
|
162
|
+
}
|
|
163
|
+
.pay-fullscreen-loading--large .pay-fullscreen-loading__text {
|
|
164
|
+
font-size: 18px;
|
|
165
|
+
}
|
|
166
|
+
.pay-fullscreen-loading--large .pay-fullscreen-loading__dot {
|
|
167
|
+
width: 12px;
|
|
168
|
+
height: 12px;
|
|
169
|
+
}
|
|
170
|
+
.pay-fullscreen-loading--large .pay-fullscreen-loading__spin-dots {
|
|
171
|
+
width: 48px;
|
|
172
|
+
height: 48px;
|
|
173
|
+
}
|
|
174
|
+
.pay-fullscreen-loading--large .pay-fullscreen-loading__spin-dot {
|
|
175
|
+
width: 5.5px;
|
|
176
|
+
height: 5.5px;
|
|
177
|
+
margin-left: -2.75px;
|
|
178
|
+
transform-origin: 50% 24px;
|
|
179
|
+
}
|
|
180
|
+
.pay-fullscreen-loading--default .pay-fullscreen-loading__spinner-box {
|
|
181
|
+
width: 100px;
|
|
182
|
+
height: 100px;
|
|
183
|
+
}
|
|
184
|
+
.pay-fullscreen-loading--default .pay-fullscreen-loading__spinner-box--no-text {
|
|
185
|
+
width: 56px;
|
|
186
|
+
height: 56px;
|
|
187
|
+
}
|
|
188
|
+
.pay-fullscreen-loading--default .pay-fullscreen-loading__circle {
|
|
189
|
+
width: 32px;
|
|
190
|
+
height: 32px;
|
|
191
|
+
border-width: 4px;
|
|
192
|
+
}
|
|
193
|
+
.pay-fullscreen-loading--default .pay-fullscreen-loading__text {
|
|
194
|
+
font-size: 16px;
|
|
195
|
+
}
|
|
196
|
+
.pay-fullscreen-loading--default .pay-fullscreen-loading__dot {
|
|
197
|
+
width: 9px;
|
|
198
|
+
height: 9px;
|
|
199
|
+
}
|
|
200
|
+
.pay-fullscreen-loading--default .pay-fullscreen-loading__spin-dots {
|
|
201
|
+
width: 32px;
|
|
202
|
+
height: 32px;
|
|
203
|
+
}
|
|
204
|
+
.pay-fullscreen-loading--default .pay-fullscreen-loading__spin-dot {
|
|
205
|
+
width: 4px;
|
|
206
|
+
height: 4px;
|
|
207
|
+
margin-left: -2px;
|
|
208
|
+
transform-origin: 50% 16px;
|
|
209
|
+
}
|
|
210
|
+
.pay-fullscreen-loading__container {
|
|
211
|
+
position: relative;
|
|
212
|
+
display: block;
|
|
213
|
+
}
|
|
214
|
+
.pay-fullscreen-loading__mask {
|
|
215
|
+
position: absolute;
|
|
216
|
+
left: 0;
|
|
217
|
+
top: 0;
|
|
218
|
+
right: 0;
|
|
219
|
+
bottom: 0;
|
|
220
|
+
background: hsla(0, 0%, 100%, 0.8);
|
|
221
|
+
z-index: 10;
|
|
222
|
+
display: flex;
|
|
223
|
+
align-items: center;
|
|
224
|
+
justify-content: center;
|
|
225
|
+
}
|
|
226
|
+
@keyframes spin {
|
|
227
|
+
0% {
|
|
228
|
+
transform: rotate(0deg);
|
|
229
|
+
}
|
|
230
|
+
100% {
|
|
231
|
+
transform: rotate(360deg);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
@keyframes bounce {
|
|
235
|
+
0%,
|
|
236
|
+
100% {
|
|
237
|
+
transform: translateY(0);
|
|
238
|
+
}
|
|
239
|
+
50% {
|
|
240
|
+
transform: translateY(-12px);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
.pay-button {
|
|
244
|
+
display: inline-block;
|
|
245
|
+
padding: 7px 12px;
|
|
246
|
+
font-size: 16px;
|
|
247
|
+
border-radius: 4px;
|
|
248
|
+
border: 1px solid #eee;
|
|
249
|
+
background: #fff;
|
|
250
|
+
color: #333;
|
|
251
|
+
cursor: pointer;
|
|
252
|
+
transition: all 0.2s;
|
|
253
|
+
user-select: none;
|
|
254
|
+
position: relative;
|
|
255
|
+
text-align: center;
|
|
256
|
+
}
|
|
257
|
+
.pay-button-content {
|
|
258
|
+
display: flex;
|
|
259
|
+
align-items: center;
|
|
260
|
+
justify-content: center;
|
|
261
|
+
gap: 6px;
|
|
262
|
+
}
|
|
263
|
+
.pay-button-block {
|
|
264
|
+
display: block;
|
|
265
|
+
width: 100%;
|
|
266
|
+
}
|
|
267
|
+
.pay-button-disabled {
|
|
268
|
+
opacity: 0.4;
|
|
269
|
+
cursor: not-allowed;
|
|
270
|
+
}
|
|
271
|
+
.pay-button-loading {
|
|
272
|
+
cursor: wait;
|
|
273
|
+
}
|
|
274
|
+
.pay-button-loading-wrapper {
|
|
275
|
+
display: flex;
|
|
276
|
+
align-items: center;
|
|
277
|
+
justify-content: center;
|
|
278
|
+
gap: 6px;
|
|
279
|
+
}
|
|
280
|
+
.pay-button-primary {
|
|
281
|
+
background: #1677ff;
|
|
282
|
+
border-color: #1677ff;
|
|
283
|
+
color: #fff;
|
|
284
|
+
}
|
|
285
|
+
.pay-button-primary:hover {
|
|
286
|
+
background: #409eff;
|
|
287
|
+
}
|
|
288
|
+
.pay-button-success {
|
|
289
|
+
background: #00b578;
|
|
290
|
+
border-color: #00b578;
|
|
291
|
+
color: #fff;
|
|
292
|
+
}
|
|
293
|
+
.pay-button-danger {
|
|
294
|
+
background: #ff3141;
|
|
295
|
+
border-color: #ff3141;
|
|
296
|
+
color: #fff;
|
|
297
|
+
}
|
|
298
|
+
.pay-button-warning {
|
|
299
|
+
background: #ff8f1f;
|
|
300
|
+
border-color: #ff8f1f;
|
|
301
|
+
color: #fff;
|
|
302
|
+
}
|
|
303
|
+
.pay-button-default {
|
|
304
|
+
background: #fff;
|
|
305
|
+
border-color: #eee;
|
|
306
|
+
color: #333;
|
|
307
|
+
}
|
|
308
|
+
.pay-button-fill-outline {
|
|
309
|
+
background: transparent;
|
|
310
|
+
color: inherit;
|
|
311
|
+
}
|
|
312
|
+
.pay-button-fill-none {
|
|
313
|
+
background: transparent;
|
|
314
|
+
border: none;
|
|
315
|
+
color: inherit;
|
|
316
|
+
}
|
|
317
|
+
.pay-button-mini {
|
|
318
|
+
font-size: 12px;
|
|
319
|
+
padding: 2px 8px;
|
|
320
|
+
}
|
|
321
|
+
.pay-button-small {
|
|
322
|
+
font-size: 14px;
|
|
323
|
+
padding: 4px 10px;
|
|
324
|
+
}
|
|
325
|
+
.pay-button-large {
|
|
326
|
+
font-size: 18px;
|
|
327
|
+
padding: 10px 18px;
|
|
328
|
+
}
|
|
329
|
+
.pay-button-shape-rounded {
|
|
330
|
+
border-radius: 1000px;
|
|
331
|
+
}
|
|
332
|
+
.pay-button-shape-rectangular {
|
|
333
|
+
border-radius: 0;
|
|
334
|
+
}
|
|
335
|
+
.pay-popup {
|
|
336
|
+
position: fixed;
|
|
337
|
+
z-index: 1001;
|
|
338
|
+
}
|
|
339
|
+
/* Base container for the animated popup body */
|
|
340
|
+
.pay-popup-body {
|
|
341
|
+
position: fixed;
|
|
342
|
+
display: flex;
|
|
343
|
+
flex-direction: column;
|
|
344
|
+
background-color: #ffffff;
|
|
345
|
+
z-index: 1010;
|
|
346
|
+
box-sizing: border-box;
|
|
347
|
+
}
|
|
348
|
+
/* --- Sizing and Positioning --- */
|
|
349
|
+
.pay-popup-body.pay-popup-body-position-bottom {
|
|
350
|
+
width: 100%;
|
|
351
|
+
left: 0;
|
|
352
|
+
bottom: 0;
|
|
353
|
+
}
|
|
354
|
+
.pay-popup-body.pay-popup-body-position-top {
|
|
355
|
+
width: 100%;
|
|
356
|
+
left: 0;
|
|
357
|
+
top: 0;
|
|
358
|
+
}
|
|
359
|
+
.pay-popup-body.pay-popup-body-position-left {
|
|
360
|
+
height: 100%;
|
|
361
|
+
width: 80vw;
|
|
362
|
+
left: 0;
|
|
363
|
+
top: 0;
|
|
364
|
+
}
|
|
365
|
+
.pay-popup-body.pay-popup-body-position-right {
|
|
366
|
+
height: 100%;
|
|
367
|
+
width: 80vw;
|
|
368
|
+
right: 0;
|
|
369
|
+
top: 0;
|
|
370
|
+
}
|
|
371
|
+
/* --- Round Corners Modifier --- */
|
|
372
|
+
.pay-popup-body.pay-popup-body-round.pay-popup-body-position-bottom {
|
|
373
|
+
border-radius: 16px 16px 0 0;
|
|
374
|
+
}
|
|
375
|
+
.pay-popup-body.pay-popup-body-round.pay-popup-body-position-top {
|
|
376
|
+
border-radius: 0 0 16px 16px;
|
|
377
|
+
}
|
|
378
|
+
.pay-popup-body.pay-popup-body-round.pay-popup-body-position-left {
|
|
379
|
+
border-radius: 0 16px 16px 0;
|
|
380
|
+
}
|
|
381
|
+
.pay-popup-body.pay-popup-body-round.pay-popup-body-position-right {
|
|
382
|
+
border-radius: 16px 0 0 16px;
|
|
383
|
+
}
|
|
384
|
+
/* --- Close Icon --- */
|
|
385
|
+
.pay-popup-close-icon {
|
|
386
|
+
position: absolute;
|
|
387
|
+
z-index: 1;
|
|
388
|
+
cursor: pointer;
|
|
389
|
+
padding: 4px;
|
|
390
|
+
font-size: 18px;
|
|
391
|
+
line-height: 1;
|
|
392
|
+
color: #999;
|
|
393
|
+
}
|
|
394
|
+
.pay-popup-body.pay-popup-body-position-bottom .pay-popup-close-icon,
|
|
395
|
+
.pay-popup-body.pay-popup-body-position-left .pay-popup-close-icon {
|
|
396
|
+
top: 8px;
|
|
397
|
+
right: 8px;
|
|
398
|
+
}
|
|
399
|
+
.pay-popup-body.pay-popup-body-position-top .pay-popup-close-icon {
|
|
400
|
+
bottom: 8px;
|
|
401
|
+
right: 8px;
|
|
402
|
+
}
|
|
403
|
+
.pay-popup-body.pay-popup-body-position-right .pay-popup-close-icon {
|
|
404
|
+
top: 8px;
|
|
405
|
+
left: 8px;
|
|
406
|
+
}
|
|
407
|
+
/* --- Content Area --- */
|
|
408
|
+
.pay-popup-content {
|
|
409
|
+
flex: 1;
|
|
410
|
+
overflow-y: auto;
|
|
411
|
+
-webkit-overflow-scrolling: touch;
|
|
412
|
+
}
|
|
413
|
+
/* --- Padding adjustment when close icon is visible --- */
|
|
414
|
+
.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-bottom .pay-popup-content,
|
|
415
|
+
.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-left .pay-popup-content {
|
|
416
|
+
padding-top: 40px;
|
|
417
|
+
}
|
|
418
|
+
.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-right .pay-popup-content {
|
|
419
|
+
padding-top: 40px;
|
|
420
|
+
}
|
|
421
|
+
.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-top .pay-popup-content {
|
|
422
|
+
padding-bottom: 40px;
|
|
423
|
+
}
|
|
424
|
+
.pay-mask-content {
|
|
425
|
+
position: relative;
|
|
426
|
+
width: 100%;
|
|
427
|
+
height: 100%;
|
|
428
|
+
display: flex;
|
|
429
|
+
flex-direction: column;
|
|
430
|
+
align-items: center;
|
|
431
|
+
justify-content: center;
|
|
432
|
+
padding: 0 88px;
|
|
433
|
+
}
|
|
434
|
+
.pay-mask-close {
|
|
435
|
+
position: absolute;
|
|
436
|
+
right: 12px;
|
|
437
|
+
top: 12px;
|
|
438
|
+
background: none;
|
|
439
|
+
border: none;
|
|
440
|
+
font-size: 28px;
|
|
441
|
+
color: #fff;
|
|
442
|
+
cursor: pointer;
|
|
443
|
+
z-index: 1;
|
|
444
|
+
}
|
|
445
|
+
.pay-mask-title {
|
|
446
|
+
display: flex;
|
|
447
|
+
align-items: center;
|
|
448
|
+
gap: 4px;
|
|
449
|
+
font-weight: 700;
|
|
450
|
+
font-size: 28px;
|
|
451
|
+
color: #fff;
|
|
452
|
+
margin-bottom: 16px;
|
|
453
|
+
text-shadow: 0 2px 8px #000;
|
|
454
|
+
}
|
|
455
|
+
.pay-mask-title > .pay-icon-paypal-white {
|
|
456
|
+
width: 36px;
|
|
457
|
+
height: 36px;
|
|
458
|
+
}
|
|
459
|
+
.pay-mask-desc {
|
|
460
|
+
color: #fff;
|
|
461
|
+
text-align: center;
|
|
462
|
+
margin-bottom: 24px;
|
|
463
|
+
line-height: 1.5;
|
|
464
|
+
white-space: pre-line;
|
|
465
|
+
}
|
|
466
|
+
.pay-mask-continue {
|
|
467
|
+
color: #fff;
|
|
468
|
+
font-weight: 700;
|
|
469
|
+
text-decoration: underline;
|
|
470
|
+
text-underline-offset: 4px;
|
|
471
|
+
cursor: pointer;
|
|
472
|
+
text-align: center;
|
|
473
|
+
font-size: 18px;
|
|
474
|
+
}
|
|
475
|
+
.pay-icon {
|
|
476
|
+
display: inline-block;
|
|
477
|
+
color: inherit;
|
|
478
|
+
width: 16px;
|
|
479
|
+
vertical-align: -2px;
|
|
480
|
+
stroke: currentColor;
|
|
481
|
+
}
|
|
482
|
+
.pay-icon[fill='currentColor'] {
|
|
483
|
+
fill: currentColor;
|
|
484
|
+
stroke: none;
|
|
485
|
+
}
|
|
486
|
+
.pay-icon[stroke='currentColor'] {
|
|
487
|
+
stroke: currentColor;
|
|
488
|
+
fill: none;
|
|
489
|
+
}
|
|
490
|
+
.pay-icon[fill='currentColor'][stroke='currentColor'] {
|
|
491
|
+
fill: currentColor;
|
|
492
|
+
stroke: currentColor;
|
|
493
|
+
}
|
|
494
|
+
.pay-icon-paypal-text {
|
|
495
|
+
width: 64px;
|
|
496
|
+
height: 26px;
|
|
497
|
+
max-width: 72px;
|
|
498
|
+
max-height: 32px;
|
|
499
|
+
}
|
|
500
|
+
.pay-icon-close {
|
|
501
|
+
width: 18px;
|
|
502
|
+
height: 18px;
|
|
503
|
+
}
|
|
504
|
+
.pay-icon-stripe-text {
|
|
505
|
+
width: 24px;
|
|
506
|
+
height: 24px;
|
|
507
|
+
}
|
|
508
|
+
.pay-icon-alipay {
|
|
509
|
+
width: 20px;
|
|
510
|
+
height: 20px;
|
|
511
|
+
}
|
|
512
|
+
.pay-icon-wechat-pay {
|
|
513
|
+
width: 20px;
|
|
514
|
+
height: 20px;
|
|
515
|
+
}
|
|
516
|
+
.pay-icon-payssion-pay {
|
|
517
|
+
width: 36px;
|
|
518
|
+
height: 20px;
|
|
519
|
+
}
|
|
520
|
+
.pay-mask {
|
|
521
|
+
position: fixed;
|
|
522
|
+
z-index: 1000;
|
|
523
|
+
left: 0;
|
|
524
|
+
top: 0;
|
|
525
|
+
right: 0;
|
|
526
|
+
bottom: 0;
|
|
527
|
+
display: flex;
|
|
528
|
+
align-items: center;
|
|
529
|
+
justify-content: center;
|
|
530
|
+
}
|
|
531
|
+
.pay-modal {
|
|
532
|
+
position: fixed;
|
|
533
|
+
z-index: 9999;
|
|
534
|
+
left: 0;
|
|
535
|
+
top: 0;
|
|
536
|
+
right: 0;
|
|
537
|
+
bottom: 0;
|
|
538
|
+
display: flex;
|
|
539
|
+
align-items: center;
|
|
540
|
+
justify-content: center;
|
|
541
|
+
}
|
|
542
|
+
.pay-modal__mask {
|
|
543
|
+
position: absolute;
|
|
544
|
+
left: 0;
|
|
545
|
+
top: 0;
|
|
546
|
+
right: 0;
|
|
547
|
+
bottom: 0;
|
|
548
|
+
background: rgba(0, 0, 0, 0.55);
|
|
549
|
+
z-index: 0;
|
|
550
|
+
}
|
|
551
|
+
.pay-modal__content {
|
|
552
|
+
position: relative;
|
|
553
|
+
z-index: 1;
|
|
554
|
+
background: #fff;
|
|
555
|
+
border-radius: 16px;
|
|
556
|
+
padding: 42px 20px 20px 20px;
|
|
557
|
+
min-width: 280px;
|
|
558
|
+
max-width: 80vw;
|
|
559
|
+
box-shadow: 0 4px 24px #0001;
|
|
560
|
+
text-align: center;
|
|
561
|
+
max-height: 60vh;
|
|
562
|
+
display: flex;
|
|
563
|
+
flex-direction: column;
|
|
564
|
+
}
|
|
565
|
+
.pay-modal__close {
|
|
566
|
+
position: absolute;
|
|
567
|
+
right: 12px;
|
|
568
|
+
top: 12px;
|
|
569
|
+
background: none;
|
|
570
|
+
border: none;
|
|
571
|
+
font-size: 28px;
|
|
572
|
+
cursor: pointer;
|
|
573
|
+
text-align: left;
|
|
574
|
+
}
|
|
575
|
+
.pay-modal__icon {
|
|
576
|
+
margin-bottom: 8px;
|
|
577
|
+
font-size: 40px;
|
|
578
|
+
}
|
|
579
|
+
.pay-modal__title {
|
|
580
|
+
font-size: 20px;
|
|
581
|
+
font-weight: 700;
|
|
582
|
+
color: #222;
|
|
583
|
+
margin-bottom: 12px;
|
|
584
|
+
}
|
|
585
|
+
.pay-modal__desc {
|
|
586
|
+
color: #222;
|
|
587
|
+
font-size: 15px;
|
|
588
|
+
margin-bottom: 24px;
|
|
589
|
+
line-height: 1.7;
|
|
590
|
+
text-align: left;
|
|
591
|
+
}
|
|
592
|
+
.pay-modal__content-wrapper {
|
|
593
|
+
position: relative;
|
|
594
|
+
z-index: 1;
|
|
595
|
+
text-align: center;
|
|
596
|
+
overflow-y: auto;
|
|
597
|
+
flex: 1;
|
|
598
|
+
min-height: 0;
|
|
599
|
+
}
|
|
600
|
+
.pay-modal__actions {
|
|
601
|
+
display: flex;
|
|
602
|
+
justify-content: center;
|
|
603
|
+
gap: 16px;
|
|
604
|
+
margin-top: 16px;
|
|
605
|
+
}
|
|
606
|
+
.pay-modal__btn {
|
|
607
|
+
min-width: 96px;
|
|
608
|
+
padding: 8px 0;
|
|
609
|
+
border-radius: 24px;
|
|
610
|
+
border: none;
|
|
611
|
+
font-size: 15px;
|
|
612
|
+
font-weight: 600;
|
|
613
|
+
cursor: pointer;
|
|
614
|
+
transition: background 0.2s;
|
|
615
|
+
}
|
|
616
|
+
.pay-modal__btn--retry {
|
|
617
|
+
background: #fff;
|
|
618
|
+
color: #f25a5a;
|
|
619
|
+
border: 1.5px solid #f25a5a;
|
|
620
|
+
}
|
|
621
|
+
.pay-modal__btn--finish {
|
|
622
|
+
background: #f25a5a;
|
|
623
|
+
color: #fff;
|
|
624
|
+
border: none;
|
|
625
|
+
}
|
|
626
|
+
.pay-paypal-btn.pay-button > span {
|
|
627
|
+
display: flex;
|
|
628
|
+
align-items: center;
|
|
629
|
+
gap: 0.5rem;
|
|
630
|
+
}
|
|
631
|
+
@media (min-width: 576px) {
|
|
632
|
+
.pay-stripe-modal.pay-modal .pay-modal__content {
|
|
633
|
+
width: 72%;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
@media (min-width: 768px) {
|
|
637
|
+
.pay-stripe-modal.pay-modal .pay-modal__content {
|
|
638
|
+
width: 50%;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
@media (min-width: 992px) {
|
|
642
|
+
.pay-stripe-modal.pay-modal .pay-modal__content {
|
|
643
|
+
width: 40%;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
@media (min-width: 1200px) {
|
|
647
|
+
.pay-stripe-modal.pay-modal .pay-modal__content {
|
|
648
|
+
width: 27%;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
@media (min-width: 1600px) {
|
|
652
|
+
.pay-stripe-modal.pay-modal .pay-modal__content {
|
|
653
|
+
width: 26%;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
@media (min-width: 2000px) {
|
|
657
|
+
.pay-stripe-modal.pay-modal .pay-modal__content {
|
|
658
|
+
width: 20%;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
.pay-alipay-qr-iframe {
|
|
662
|
+
display: flex;
|
|
663
|
+
flex-direction: column;
|
|
664
|
+
align-items: center;
|
|
665
|
+
}
|
|
666
|
+
.pay-alipay-qr-iframe__iframe {
|
|
667
|
+
border: none;
|
|
668
|
+
width: 210px;
|
|
669
|
+
height: 210px;
|
|
670
|
+
margin-top: 10px;
|
|
671
|
+
margin-bottom: 8px;
|
|
672
|
+
}
|
|
673
|
+
.pay-alipay-qr-iframe__tip {
|
|
674
|
+
text-align: center;
|
|
675
|
+
color: #333;
|
|
676
|
+
font-size: 14px;
|
|
677
|
+
line-height: 20px;
|
|
678
|
+
}
|
|
679
|
+
.pay-wechat-qrcode {
|
|
680
|
+
display: flex;
|
|
681
|
+
flex-direction: column;
|
|
682
|
+
align-items: center;
|
|
683
|
+
}
|
|
684
|
+
.pay-wechat-qrcode__container {
|
|
685
|
+
background-color: #fff;
|
|
686
|
+
border-radius: 8px;
|
|
687
|
+
display: flex;
|
|
688
|
+
justify-content: center;
|
|
689
|
+
align-items: center;
|
|
690
|
+
width: 210px;
|
|
691
|
+
height: 210px;
|
|
692
|
+
}
|
|
693
|
+
.pay-wechat-qrcode__image {
|
|
694
|
+
width: 100%;
|
|
695
|
+
height: 100%;
|
|
696
|
+
object-fit: cover;
|
|
697
|
+
}
|
|
698
|
+
.pay-wechat-qrcode__tip {
|
|
699
|
+
text-align: center;
|
|
700
|
+
color: #333;
|
|
701
|
+
font-size: 14px;
|
|
702
|
+
line-height: 20px;
|
|
703
|
+
}
|