/* Scoped signup layout, shared by English/Mandarin and both colour themes. */
#template-order{color:var(--ink);padding:clamp(20px,4vw,40px);border-radius:16px;line-height:1.65;min-width:0}
#template-order fieldset{border:0;padding:0;margin:0;min-width:0}
#template-order legend{font-size:clamp(23px,4vw,32px);line-height:1.25;font-weight:650;margin:0 0 20px;padding:0}
#template-order fieldset>p{margin:0 0 24px;line-height:1.7}
#template-order .order-fields{gap:24px;min-width:0;margin:24px 0}
#template-order .order-fields label{display:flex;flex-direction:column;gap:9px;line-height:1.5;font-size:14px;min-width:0}
#template-order .order-fields input,#template-order .order-fields select,#template-order .order-fields textarea{box-sizing:border-box;width:100%;min-width:0;margin:0;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);padding:13px 14px;font:inherit;font-size:16px;line-height:1.5}
#template-order .order-fields small{line-height:1.6;margin-top:2px}
#template-order .signup-button{box-sizing:border-box;appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:13px 20px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink);font:inherit;font-size:15px;font-weight:600;line-height:1.4;text-align:center;text-decoration:none;cursor:pointer;box-shadow:none}
#template-order .signup-primary{background:#ff8800;border-color:#ff8800;color:#151719}
#template-order .signup-primary:hover{background:#ff9b28}
#template-order .signup-secondary:hover,#template-order #order-change-template:hover{border-color:#ff8800;color:var(--ink)}
#template-order .signup-button:focus-visible,#template-order input:focus-visible,#template-order summary:focus-visible{outline:3px solid #ff8800;outline-offset:4px}
#template-order .order-actions{display:flex;gap:12px;margin:28px 0 22px;align-items:stretch}
#template-order #order-back{flex:0 0 auto;min-width:90px}
#template-order #order-next,#template-order #order-send{flex:1}
#template-order .order-note{font-size:13px;line-height:1.75;margin:0;color:var(--muted)}
#template-order .order-check{display:flex;align-items:flex-start;gap:14px;margin:24px 0;line-height:1.65;font-size:15px;letter-spacing:0}
#template-order .order-check input{appearance:auto;flex:0 0 22px;width:22px;height:22px;min-height:22px;margin:3px 0 0;padding:0;accent-color:#ff8800}
#template-order .signup-package,#template-order .signup-terms{padding:24px;border:1px solid var(--line);border-radius:12px;margin:28px 0}
#template-order .signup-package h2{font-size:22px;line-height:1.4;margin:0 0 18px}
#template-order .signup-package>p{margin:16px 0;line-height:1.7}
#template-order .signup-package>p>strong{font-size:30px;color:var(--ink)}
#template-order .signup-package ul,#template-order .signup-terms ul{padding-left:21px;margin:18px 0}
#template-order .signup-package li,#template-order .signup-terms li{margin:12px 0;padding-left:3px;line-height:1.75}
#template-order .signup-terms summary{font-weight:600;line-height:1.5;cursor:pointer}
#template-order .signup-terms a{display:inline-block;margin-top:12px;line-height:1.7;text-underline-offset:4px}
#template-order .signup-review{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,1.4fr);gap:0;margin:24px 0}
#template-order .signup-review dt,#template-order .signup-review dd{font-size:14px;line-height:1.6;margin:0;padding:13px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
#template-order .signup-review dt{color:var(--muted);padding-right:20px}
#template-order .signup-calculation{padding:24px;margin:26px 0 0;border:1px solid var(--line);border-radius:12px;min-width:0}
#template-order .signup-calculation h3{font-size:18px;margin:0 0 20px;line-height:1.4;color:var(--ink)}
#template-order .signup-price-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:start;font-size:14px;line-height:1.6;padding:10px 0}
#template-order .signup-price-row>span:last-child{text-align:right;color:var(--ink);font-variant-numeric:tabular-nums}
#template-order .signup-total-row{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:10px 20px;border-top:1px solid var(--line);padding:22px 0;margin-top:12px;color:var(--ink)}
#template-order #order-total-payable{font-size:30px;line-height:1.2;white-space:nowrap;font-weight:700;letter-spacing:-.03em}
#template-order .signup-split{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#template-order .signup-split>div{display:flex;flex-direction:column;gap:9px;padding:18px;background:var(--bg);border:1px solid var(--line);border-radius:10px;min-width:0}
#template-order .signup-split span{font-size:13px;line-height:1.5;color:var(--muted)}
#template-order .signup-split strong{font-size:24px;line-height:1.3;white-space:nowrap;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
#template-order .signup-split small{font-size:12px;line-height:1.6;color:var(--muted)}
#template-order .signup-calculation .signup-price-note{display:block;font-size:13px;line-height:1.7;color:var(--muted);margin:20px 0 0}
#template-order .order-payment-preview{border:1px solid var(--line);border-radius:12px;padding:24px;margin:28px 0}
#template-order .order-payment-preview h3{font-size:23px;line-height:1.35;margin:0 0 24px;color:var(--ink)}
#template-order .order-qr-layout{display:grid;grid-template-columns:minmax(200px,260px) minmax(0,1fr);gap:28px;align-items:start}
#template-order .order-qr-card{box-sizing:border-box;width:100%;max-width:260px;padding:20px;background:white;color:#17191b;border:0;border-top:6px solid #ffcf00;border-radius:12px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:15px;margin:0 auto}
#template-order .order-qr-card strong{font-size:18px;color:#17191b;line-height:1.4}
#template-order .order-qr-card img{display:block;width:100%;height:auto;max-width:222px;aspect-ratio:1;object-fit:contain;margin:0}
#template-order .order-qr-card span{font-size:14px;line-height:1.5;color:#17191b}
#template-order .order-qr-layout>div>p{margin:0 0 22px;line-height:1.75;font-size:14px}
#template-order .signup-pay-amount{display:flex;flex-direction:column;gap:10px;margin:0 0 24px!important}
#template-order .signup-pay-amount span{font-size:14px;color:var(--muted)}
#template-order #order-qr-amount{font-size:30px;line-height:1.2;color:var(--ink);white-space:nowrap}
#template-order #order-payment-status{font-size:13px;line-height:1.7;padding:14px;border-left:3px solid #ff8800;background:var(--bg);margin:20px 0}
#template-order .signup-payment-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;padding:16px 0!important;margin:0!important;border-top:1px solid var(--line);align-items:baseline}
#template-order .signup-payment-row span{font-size:13px;line-height:1.6}
#template-order .signup-payment-row strong{font-size:18px;line-height:1.4;white-space:nowrap;color:var(--ink)}
@media(max-width:600px){
 #template-order{padding:20px 16px}
 #template-order .signup-package,#template-order .signup-terms,#template-order .order-payment-preview{padding:20px 16px;margin:24px 0}
 #template-order .signup-calculation{padding:20px 16px}
 #template-order .signup-package .signup-calculation{margin:24px -1px 0}
 #template-order .signup-total-row{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
 #template-order #order-total-payable{font-size:32px}
 #template-order .signup-extra-row{grid-template-columns:1fr;gap:4px}
 #template-order .signup-extra-row>span:last-child{text-align:left}
 #template-order .signup-split{grid-template-columns:1fr;gap:12px}
 #template-order .signup-split>div{padding:16px;gap:7px}
 #template-order .signup-split strong{font-size:25px}
 #template-order .order-qr-layout{grid-template-columns:1fr;gap:28px}
 #template-order .order-actions{flex-direction:column-reverse;gap:12px}
 #template-order .order-actions button{width:100%;min-height:50px}
 #template-order .signup-review{grid-template-columns:1fr}
 #template-order .signup-review dt{border:0;padding:14px 0 3px;font-size:12px}
 #template-order .signup-review dd{padding:0 0 14px}
 #template-order .signup-payment-row{grid-template-columns:1fr;gap:7px}
 #template-order .order-selected-template{gap:18px;padding:18px 14px}
 #template-order .order-template-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
}
