        .am-pay-mask {
            position: fixed; inset: 0; z-index: 6100;
            background: #fff; display: none; flex-direction: column;
        }

        .am-pay-mask.open { display: flex; }

        .am-pay-mask .am-pay-head {
            display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
            padding: 10px 8px; border-bottom: 1px solid #eee; flex-shrink: 0;
        }

        .am-pay-mask .am-pay-head h2 { margin: 0; text-align: center; font-size: 1.05rem; font-weight: 800; color: #111; }

        .am-pay-mask .am-pay-head button {
            border: none; background: none; width: 44px; height: 44px; cursor: pointer;
            font-size: 1.35rem; color: #424242; display: inline-flex; align-items: center; justify-content: center;
        }

        .am-pay-scroll {
            flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
            padding: 16px 16px 120px; max-width: 520px; width: 100%; margin: 0 auto; box-sizing: border-box;
        }

        .am-pay-scroll .t { font-size: 1.05rem; font-weight: 800; color: #212121; margin: 4px 0 14px; }

        .am-pay-line {
            display: flex; justify-content: space-between; align-items: center;
            padding: 12px 0; font-size: .95rem; color: #757575; border-bottom: 1px solid #eee;
        }

        .am-pay-total {
            display: flex; justify-content: space-between; align-items: center;
            padding: 14px 0; font-size: 1rem; font-weight: 800; color: #212121;
        }

        .am-pay-sep { height: 1px; background: #eee; margin: 8px 0 4px; }

        .am-pay-method {
            width: 100%; display: flex; align-items: center; gap: 12px; text-align: right;
            padding: 14px 12px; margin: 8px 0 0; border: 1.5px solid #e0e0e0; border-radius: 10px;
            background: #fff; font-family: inherit; cursor: pointer; box-sizing: border-box;
        }

        .am-pay-method.on { border-color: #a62626; background: #fffaf9; }

        .am-pay-method .radio {
            width: 20px; height: 20px; border: 2px solid #bdbdbd; border-radius: 50%; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
        }

        .am-pay-method.on .radio { border-color: #a62626; }

        .am-pay-method.on .radio::after {
            content: ''; width: 10px; height: 10px; border-radius: 50%; background: #a62626;
        }

        .am-pay-method .main { flex: 1; min-width: 0; }

        .am-pay-method .mt { font-size: .95rem; font-weight: 700; color: #212121; }

        .am-pay-method .ms { font-size: .82rem; color: #757575; margin-top: 4px; line-height: 1.6; }

        .am-pay-method .ms a { color: #a62626; text-decoration: none; font-weight: 600; }

        .am-pay-method .ico { color: #9e9e9e; font-size: 1.2rem; }

        .am-pay-foot {
            position: sticky; bottom: 0; margin-top: auto; flex-shrink: 0;
            padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
            background: #fff; border-top: 1px solid #eee;
            display: flex; align-items: center; justify-content: space-between; gap: 12px;
            box-sizing: border-box;
        }

        .am-pay-foot .hint { font-size: .9rem; font-weight: 700; color: #424242; }

        .am-pay-foot .btn {
            border: none; border-radius: 8px; background: #a62626; color: #fff;
            font-family: inherit; font-size: .98rem; font-weight: 800;
            padding: 12px 28px; cursor: pointer; min-width: 120px;
        }

        .am-pay-foot .btn:disabled { opacity: .55; cursor: default; }

            .am-pay-mask {
                background: rgba(0,0,0,.4);
                align-items: center; justify-content: center; padding: 24px;
            }

            .am-pay-panel {
                width: 100%; max-width: 480px; max-height: min(90vh, 720px);
                background: #fff; border-radius: 14px; overflow: hidden;
                display: flex; flex-direction: column;
                box-shadow: 0 16px 48px rgba(0,0,0,.22);
            }

            .am-pay-scroll { max-width: none; padding-bottom: 24px; }

            .am-pay-panel {
                display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; background: #fff;
            }