.settings-reference .loyalty-toolbar .loyalty-next-button{flex:none;min-height:40px;padding:9px 16px;white-space:nowrap;border:1px solid #3267bb;border-radius:8px;background:#3267bb;color:#fff;font:600 12px/1.5 var(--sans,Arial,sans-serif)}
.settings-reference .loyalty-next-button[hidden]{display:none}
.settings-reference #loyalty-editor .ts-setup-choice{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:14px 16px;margin:0 0 18px;border:1px solid #dbe4ee;border-radius:10px;background:#f7faff}
.settings-reference #loyalty-editor .ts-setup-choice .ms-toggle{display:flex;align-items:center;gap:18px;flex:none;margin:0;padding:0;border:0}
.settings-reference #loyalty-editor .ts-setup-choice p{margin:0;font-size:12px;line-height:1.5;color:#637283}
.ts-new-tier-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 48px);box-sizing:border-box;padding:0;border:1px solid #dce3eb;border-radius:18px;background:#fff;color:#263440;font:14px/1.6 Montserrat,"Instrument Sans",Arial,sans-serif;box-shadow:0 24px 80px #162a4033;overflow:auto}
.ts-new-tier-dialog::backdrop{background:#14223166;backdrop-filter:blur(3px)}
.ts-new-tier-dialog form{margin:0}
.ts-new-tier-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 28px;border-bottom:1px solid #e5eaf0}
.ts-new-tier-dialog h2{margin:0;font-size:21px;font-weight:650;line-height:1.4}
.ts-new-tier-dialog header p{margin:6px 0 0;color:#6a7785;font-size:13px}
.ts-new-tier-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.9fr);align-items:start;gap:32px;padding:26px 28px 6px}
.ts-new-tier-fields label{display:block;font-size:13px;font-weight:550;margin:0 0 20px}
.ts-new-tier-fields input{display:block;box-sizing:border-box;width:100%;margin:8px 0 0;padding:11px 12px;border:1px solid #cdd8e5;border-radius:8px;background:#fff;color:#243445;font:400 15px/1.5 Montserrat,"Instrument Sans",Arial,sans-serif}
.ts-new-tier-fields input:focus{outline:2px solid #3267bb;outline-offset:2px}
.ts-new-tier-fields :is(.ts-new-tier-rate,.ts-new-tier-note){font-size:12px;line-height:1.7;color:#657586;margin:10px 0}
.ts-new-tier-rate p{margin:0}.ts-new-tier-rate .ms-help{margin-top:6px;font-size:11px;color:#657586}
.ts-new-tier-rate{padding:12px;border-radius:8px;background:#f0f5fc}
.ts-new-tier-preview{padding-top:25px;min-width:0;pointer-events:none}
.ts-new-tier-preview .ts-card-preview{width:100%;max-width:300px;margin:0 auto}
.ts-new-tier-preview .mc-member-card{box-sizing:border-box;width:100%;aspect-ratio:1.586;min-height:0;border-radius:14px;padding:20px;display:flex;flex-direction:column;justify-content:space-between;font-size:12px}
.ts-new-tier-preview .mc-card-tier{font-size:18px;font-weight:650}
.ts-new-tier-preview .mc-card-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.ts-new-tier-preview .ts-card-qr{width:64px;height:64px;padding:4px;border-radius:6px;background:#fff}
.ts-new-tier-preview .ts-card-qr svg{display:block;width:100%;height:100%}
.ts-new-tier-error{margin:0;padding:0 28px 18px;min-height:22px;color:#b32636;font-size:13px}
.ts-new-tier-dialog footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:18px 28px;border-top:1px solid #e5eaf0;background:#fafbfd}
.ts-new-tier-dialog footer span{margin-right:auto;color:#657586;font-size:12px}
.ts-new-tier-dialog .btn{min-height:38px;padding:8px 14px;border:1px solid #cdd7e3;border-radius:8px;background:#fff;color:#364f68;cursor:pointer;font:500 13px/1.4 Montserrat,"Instrument Sans",Arial,sans-serif}
.ts-new-tier-dialog .btn.pri{background:#3267bb;border-color:#3267bb;color:#fff}
@media(max-width:800px){.settings-reference .loyalty-toolbar{flex-wrap:wrap}.settings-reference .loyalty-toolbar .loyalty-steps{flex-basis:100%}.settings-reference #loyalty-editor .ts-setup-choice{align-items:flex-start;flex-direction:column;gap:8px}.ts-new-tier-body{gap:20px;padding:20px}.ts-new-tier-dialog header{padding:20px}.ts-new-tier-dialog footer{padding:16px 20px;flex-wrap:wrap}.ts-new-tier-dialog footer span{flex-basis:100%}.ts-new-tier-error{padding:0 20px 14px}}
@media(max-width:520px){.ts-new-tier-body{grid-template-columns:minmax(0,1fr)}.ts-new-tier-preview{padding-top:0}.ts-new-tier-preview .ts-card-preview{max-width:260px}}
