.payment-icon{width:54px;height:54px;flex:0 0 54px;display:inline-grid;place-items:center;border-radius:50%;overflow:hidden;background:#e9f8ef}
.payment-icon--alipay{background:#edf4ff}
.payment-icon img{display:block;width:40px;height:40px;object-fit:contain;border-radius:50%}
#billing-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.billing-method{position:relative;display:block;min-width:0;margin:0;color:var(--ink);cursor:pointer}
.billing-method input[type=radio]{position:absolute;width:1px;height:1px;min-height:0;margin:0;padding:0;border:0;opacity:0;clip-path:inset(50%);overflow:hidden}
.payment-option-card{display:flex;align-items:center;gap:16px;min-height:100px;padding:20px;border:1px solid #dfe6dd;border-radius:14px;background:#fff;transition:border-color .16s,background-color .16s,box-shadow .16s}
.payment-option-copy{flex:1;min-width:0;text-align:left;line-height:1.5}
.payment-option-copy strong{display:block;font-size:15px;font-weight:650;letter-spacing:.2px;overflow-wrap:anywhere}
.payment-option-copy>span{display:block;margin-top:5px;font-size:12px;font-weight:400;color:#7a887d;line-height:1.6;overflow-wrap:anywhere}
.payment-choice{display:grid;place-items:center;flex:0 0 21px;width:21px;height:21px;border:1.5px solid #cbd5c8;border-radius:50%;background:#fff;color:#fff}
.payment-choice svg{display:block;width:14px;height:14px;opacity:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.billing-method:hover .payment-option-card{border-color:#9db49f;background:#fbfdf9}
.billing-method input:checked+.payment-option-card{border-color:#4f8060;background:#f2f8ef;box-shadow:0 0 0 1px #4f8060}
.billing-method input:checked+.payment-option-card .payment-choice{border-color:var(--green);background:var(--green)}
.billing-method input:checked+.payment-option-card .payment-choice svg{opacity:1}
.billing-method input:focus-visible+.payment-option-card{outline:3px solid #8cac92;outline-offset:4px}
.billing-method input:disabled+.payment-option-card{opacity:.55;cursor:not-allowed}
.billing-method-panel{padding:26px;background:#fdfefb}
.billing-method-panel>.panel-title{margin-bottom:20px}
.billing-method-panel>.panel-title h2{font-size:16px;font-weight:600}
.billing-method-panel>.panel-title>span{font-size:11px}
.payment-method-name{display:flex;align-items:center;gap:12px}
.payment-method-name .payment-icon{width:36px;height:36px;flex-basis:36px}
.payment-method-name .payment-icon img{width:28px;height:28px}
.payment-icon-editor{margin-top:24px;padding:20px;border:1px solid var(--line);border-radius:12px;background:#f7f9f3}
.payment-icon-editor h3{margin:0;font-size:14px;font-weight:600}
.payment-icon-editor .help{margin-top:5px}
.payment-icon-editor-row{display:flex;align-items:center;gap:18px;margin:16px 0}
#payment-icon-preview .payment-icon{width:64px;height:64px;flex-basis:64px;border:1px solid #e0e8db}
#payment-icon-preview img{width:48px;height:48px}
.payment-icon-source-label{flex:1;min-width:0}
.payment-icon-source-label select{margin-top:5px}
.payment-upload-button{position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden}
.payment-upload-button input[type=file]{position:absolute;width:1px;height:1px;min-height:0;margin:0;padding:0;border:0;opacity:0;clip-path:inset(50%)}
.payment-upload-button:focus-within{outline:2px solid #5c9375;outline-offset:3px}
#payment-icon-filename{overflow-wrap:anywhere;margin-top:10px}
@media(max-width:640px){#billing-methods{grid-template-columns:1fr;gap:12px}.billing-method-panel{padding:20px}.billing-method-panel>.panel-title{align-items:flex-start;gap:8px;flex-wrap:wrap}.payment-option-card{min-height:92px;padding:17px 18px;gap:14px}.payment-option-copy strong{font-size:15px}.payment-icon-editor{padding:16px}.payment-option-copy>span{font-size:11px}}
@media(prefers-reduced-motion:reduce){.payment-option-card{transition:none}}
