.ms-header{margin-bottom:28px}.ms-header small{font:10px Arial;letter-spacing:.12em;color:#7b8580}.ms-header h2{font:30px/1.2 Cardo,Georgia,serif;margin:10px 0}.ms-header p{font:13px/1.6 Arial;color:#78817c}.ms-section{padding:24px 0;border-top:1px solid #e0e4df}.ms-section h3{display:flex;align-items:center;gap:10px;font:600 15px/1.4 Arial;color:#354650;margin:0 0 20px}.ms-section h3 i{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#edf2f8;color:#49688d;font:600 12px Arial;font-style:normal;flex-shrink:0}.ms-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.ms-section-head h3{margin:0 0 16px}.ms-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:16px 0}.ms-section label{display:block;font:12px/1.5 Arial;color:#4e5c55;min-width:0}.ms-section input:not([type=checkbox]),.ms-section select,.ms-section textarea{display:block;box-sizing:border-box;width:100%;padding:10px 12px;margin:7px 0 0;border:1px solid #d6ded8;border-radius:5px;background:#fff;color:#2e3e35;font:14px/1.5 Arial}.ms-section input:focus,.ms-section select:focus,.ms-section textarea:focus{outline:2px solid #b4c5d6;outline-offset:1px}.ms-section input:disabled{color:#869089;background:#f6f7f4}.ms-section label small,.ms-help{display:block;font:11px/1.6 Arial;color:#808b84;margin:7px 0}.ms-section .ms-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0}.ms-toggle input{width:17px;height:17px;accent-color:#57726b;flex-shrink:0}.ms-rule{font:13px/1.6 Arial;color:#46604f;margin:12px 0}.ms-eligibility{border-top:1px solid #e8ece6;margin-top:22px}.ms-eligibility label+label{border-top:1px solid #e8ece6}.ms-level{padding:20px;margin:18px 0;background:#f7f8f5;border:1px solid #e1e5dc;border-radius:10px}.ms-level-top{display:grid;grid-template-columns:28px minmax(0,1fr) 80px auto;align-items:center;gap:14px}.ms-level-top>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;color:white;font:12px Arial}.ms-level-top input[type=color]{height:42px;padding:5px}.ms-level-top>.btn{margin-top:22px;font-size:11px}.ms-calculator output{display:block;padding:18px;background:#edf2ee;border-radius:7px;font:500 15px/1.6 Arial;color:#3e5d47}.ms-section textarea{resize:vertical}#shop-membership-options>fieldset{border:0;padding:0;margin:0;min-width:0}#shop-membership-options .po-footer{border-top:1px solid #e1e5dc;padding-top:18px;margin-top:16px;flex-wrap:wrap}.ms-earn-summary{background:#eff3ef;border-radius:6px;padding:14px;font:12px/1.6 Arial;color:#52664f}.ms-purchase-rule{border-top:1px solid #e1e5dc;padding:14px 0}.ms-purchase-rule>span{display:block;font:12px/1.6 Arial;margin-bottom:8px;overflow-wrap:anywhere}.ms-purchase-rule select{width:100%}.ms-purchase-rule small{display:block;font:11px/1.5 Arial;color:#7c8778;margin-top:6px}
@media(max-width:700px){.ms-fields{grid-template-columns:1fr;gap:12px}.ms-level{padding:16px}.ms-level-top{grid-template-columns:24px minmax(0,1fr) 55px;gap:9px}.ms-level-top>.btn{grid-column:2/-1;justify-self:end;margin:0}.ms-section input:not([type=checkbox]),.ms-section select,.ms-section textarea{font-size:16px}.ms-header h2{font-size:26px}.ms-section-head{align-items:flex-start}.ms-section-head>.btn{font-size:11px;white-space:nowrap}}
.settings-document #shop-membership-options .ms-fields.ms-level-policy{grid-template-columns:minmax(0,290px) minmax(0,260px) 120px;max-width:760px}
.settings-document #shop-membership-options .ms-fields.ms-scenario{grid-template-columns:repeat(4,minmax(0,210px));gap:14px 20px;max-width:900px}
.settings-document #shop-membership-options .ms-scenario label{font-size:12px;color:#435665}
.settings-document #shop-membership-options .ms-level-table input[readonly]{background:#f0f3f7;color:#526578;border-color:#d3dde6}
.settings-document #shop-membership-options .ms-eligibility{margin-top:0;border-top:0}
.ms-history{margin-top:18px;color:#435665;font:12px/1.6 Arial,sans-serif}
.ms-history summary{cursor:pointer;font-weight:600;padding:8px 0}
.ms-history-scroll{overflow:auto;max-width:880px}
.ms-history table{width:100%;border-collapse:collapse;background:#fff;white-space:nowrap}
.ms-history :is(th,td){text-align:left;padding:10px 12px;border-bottom:1px solid #d5dfe7;font-size:12px}
.ms-history th{background:#e5ecf3;color:#344b61}
.settings-document #shop-membership-options .ms-calculator output{padding:18px;background:#edf2f7;border:1px solid #cfdae5;border-radius:6px;font:12px/1.6 Arial,sans-serif;color:#435665}
.ms-result-grid{display:grid;grid-template-columns:1fr 1.6fr 1fr 1fr;gap:18px}
.ms-result-grid :is(small,b){display:block}.ms-result-grid small{font-size:11px;color:#526578}.ms-result-grid b{font-size:14px;color:#344b61;margin-top:5px}
.ms-calculator output p{margin:14px 0 6px}.ms-calculator output>small{font-size:11px}
.settings-document #shop-referral-options .rf-benefits{grid-template-columns:repeat(2,minmax(0,340px));max-width:720px}
.settings-document #shop-referral-options .rf-qualification{grid-template-columns:200px 110px;max-width:340px}
.settings-document #shop-referral-options .rf-terms{max-width:720px}
.rf-program-preview{display:grid;grid-template-columns:repeat(2,minmax(0,340px));gap:16px 24px;max-width:720px;color:#435665}
.rf-program-preview>div{border-left:3px solid #c3d4e5;padding:4px 14px}.rf-program-preview small{font:600 11px/1.5 Arial,sans-serif;color:#526578}.rf-program-preview p{font:13px/1.6 Arial,sans-serif;margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.rf-preview-note{font:12px/1.7 Arial,sans-serif;color:#526578;max-width:720px}
.rf-operations summary{padding:15px 0;cursor:pointer;font:600 13px/1.5 Arial,sans-serif;color:#344b61}.rf-operations form>h3{display:none}
@media(max-width:1100px){.settings-document #shop-membership-options .ms-fields.ms-scenario{grid-template-columns:repeat(3,minmax(0,210px))}.ms-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.settings-document #shop-membership-options .ms-fields.ms-level-policy{grid-template-columns:minmax(0,1fr)}.settings-document #shop-membership-options .ms-fields.ms-scenario{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.settings-document #shop-referral-options .rf-benefits,.rf-program-preview{grid-template-columns:minmax(0,1fr)}.settings-document #shop-referral-options .rf-qualification{grid-template-columns:minmax(0,1fr) 90px}}

.ms-customization{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:32px;align-items:start}.ms-custom-fields{min-width:0}.settings-document #shop-membership-options .ms-custom-fields .ms-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ms-custom-fields>label{margin:14px 0}.ms-custom-fields input[type=color]{max-width:90px;height:40px;padding:4px}.ms-display-options{margin:18px 0}.ms-extra{border-top:1px solid #d6dee5;padding:16px 0}.ms-extra summary{cursor:pointer;font:600 13px/1.5 Arial,sans-serif;color:#344b61;overflow-wrap:anywhere}.ms-extra>label{margin:14px 0}.ms-reward-heading{margin-top:26px}.ms-reward-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.ms-live-preview{position:sticky;top:16px;min-width:0}.ms-preview-head{margin-bottom:12px}.ms-preview-head h3{margin-bottom:3px!important}.ms-preview-head span{font:11px/1.6 Arial,sans-serif;color:#526578}.ms-live-preview iframe,.rf-customer-preview{display:block;width:100%;height:640px;box-sizing:border-box;border:1px solid #d3dce3;border-radius:10px;background:#fff}.settings-document #shop-membership-options .ms-live-preview .ms-fields{grid-template-columns:1fr 110px;gap:12px}.ms-live-preview label{font-size:11px}.settings-document #shop-referral-options .rf-customer-preview{max-width:390px;margin-top:20px}.ms-section [hidden]{display:none!important}@media(max-width:1100px){.ms-customization{grid-template-columns:minmax(0,1fr)}.ms-live-preview{position:static;max-width:390px;width:100%;justify-self:center}}@media(max-width:700px){.settings-document #shop-membership-options .ms-custom-fields .ms-fields{grid-template-columns:minmax(0,1fr)}.ms-live-preview iframe{height:600px}.ms-customization{gap:20px}}

#shop-membership-options .ms-screen-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}#shop-membership-options .ms-screen-head>h3{font:600 18px/1.4 var(--sans,Arial,sans-serif);color:#252525;margin:0}#shop-membership-options .ms-preview-toggle{display:none!important}#shop-membership-options .ms-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,320px);gap:24px;align-items:start}#shop-membership-options .ms-editor{min-width:0}#shop-membership-options .ms-editor .ms-section{padding:20px;margin-bottom:20px}#shop-membership-options .ms-editor .ms-fields{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;gap:14px}#shop-membership-options .ms-editor .ms-level-policy{grid-template-columns:minmax(0,1fr)}#shop-membership-options .ms-editor .ms-level-identity{grid-template-columns:minmax(0,1fr) 95px}#shop-membership-options .ms-level-identity input[type=color]{height:42px;padding:4px}#shop-membership-options .ms-level-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:24px}#shop-membership-options .ms-level-picker>button{display:flex;align-items:center;gap:10px;min-width:0;padding:12px;border:1px solid #dce1e5;border-radius:8px;background:#fff;color:#37424b;text-align:left;cursor:pointer}#shop-membership-options .ms-level-picker>button[aria-pressed=true]{border-color:#42688f;background:#f0f5fa;box-shadow:inset 0 0 0 1px #42688f}#shop-membership-options .ms-level-picker :is(b,small){display:block;overflow-wrap:anywhere}#shop-membership-options .ms-level-picker b{font:600 13px/1.4 var(--sans,Arial,sans-serif)}#shop-membership-options .ms-level-picker small{font:11px/1.4 var(--sans,Arial,sans-serif);color:#59646e;margin-top:3px}#shop-membership-options .ms-level-swatch{display:block;width:10px;height:30px;border-radius:4px;flex-shrink:0}#shop-membership-options .ms-focused-editor{border-top:1px solid #e2e5e8;padding-top:20px}#shop-membership-options .ms-focused-editor>label{display:block;margin:16px 0}#shop-membership-options .ms-status-label{font:11px/1.5 var(--sans,Arial,sans-serif);color:#59646e;white-space:nowrap}#shop-membership-options .ms-programme-status{margin:0;font:13px/1.5 var(--sans,Arial,sans-serif)}#shop-membership-options .ms-programme-status>div{display:grid;grid-template-columns:minmax(100px,.7fr) minmax(0,1fr);gap:16px;padding:14px 0;border-bottom:1px solid #e2e5e8}#shop-membership-options .ms-programme-status>div:first-child{padding-top:0}#shop-membership-options .ms-programme-status>div:last-child{border-bottom:0;padding-bottom:0}#shop-membership-options .ms-programme-status dt{color:#59646e}#shop-membership-options .ms-programme-status dd{margin:0;color:#252525}#shop-membership-options .ms-programme-status small{display:block;margin-top:4px;font-size:11px;color:#59646e}#shop-membership-options .ms-reward-picker{display:grid;gap:0;border:1px solid #e2e5e8;border-radius:8px;overflow:hidden}#shop-membership-options .ms-reward-picker>button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:14px;border:0;border-bottom:1px solid #e2e5e8;background:#fff;text-align:left;color:#37424b;cursor:pointer}#shop-membership-options .ms-reward-picker>button:last-child{border-bottom:0}#shop-membership-options .ms-reward-picker>button[aria-pressed=true]{background:#f0f5fa;box-shadow:inset 3px 0 #42688f}#shop-membership-options .ms-reward-picker b{display:block;font:600 13px/1.5 var(--sans,Arial,sans-serif);overflow-wrap:anywhere}#shop-membership-options .ms-reward-picker small{display:block;font:11px/1.5 var(--sans,Arial,sans-serif);margin-top:3px;color:#59646e}#shop-membership-options .ms-template-button{margin-top:16px}#shop-membership-options .ms-appearance-fields>label{margin:16px 0}#shop-membership-options .ms-appearance-fields input[type=color]{width:90px;height:42px;padding:4px}#shop-membership-options .ms-save-bar{position:sticky;bottom:0;z-index:5;background:#f6f7f9;padding:12px 0 0;border-top:1px solid #dce1e5}#shop-membership-options .ms-save-bar .po-footer{border:0;margin:0;padding:4px 0 12px;min-height:40px}#shop-membership-options .ms-live-preview{position:sticky;top:16px;max-width:none;width:100%}#shop-membership-options .ms-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px}#shop-membership-options .ms-preview-head h3{font:600 14px/1.5 var(--sans,Arial,sans-serif);color:#37424b}#shop-membership-options .ms-preview-head .btn{padding:6px 10px;font-size:11px}#shop-membership-options .ms-live-preview iframe{height:620px}#shop-membership-options .ms-live-preview .ms-fields{margin:10px 0 14px}#shop-membership-options .ms-live-preview :is(input,select){display:block;box-sizing:border-box;width:100%;padding:9px 10px;margin:5px 0 0;border:1px solid #d6ded8;border-radius:6px;background:#fff;color:#252525;font:12px/1.5 var(--sans,Arial,sans-serif)}#shop-membership-options .ms-editor .ms-scenario{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}#shop-membership-options .ms-editor .ms-result-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#shop-membership-options .ms-history-scroll{max-width:100%}#shop-membership-options .ms-level-picker>button:focus-visible,#shop-membership-options .ms-reward-picker>button:focus-visible{outline:2px solid #42688f;outline-offset:2px}
@media(max-width:1100px){#shop-membership-options .ms-workspace{grid-template-columns:minmax(0,1fr)}#shop-membership-options .ms-preview-toggle{display:inline-flex!important}#shop-membership-options .ms-live-preview{display:none;position:static;max-width:390px;justify-self:center}#shop-membership-options .ms-show-preview .ms-live-preview{display:block}#shop-membership-options .ms-show-preview .ms-editor{display:none}#shop-membership-options .ms-save-bar{position:sticky}#shop-membership-options .ms-editor .ms-level-policy{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#shop-membership-options .ms-editor .ms-section{padding:16px}#shop-membership-options .ms-screen-head>h3{font-size:16px}#shop-membership-options .ms-level-picker{grid-template-columns:minmax(0,1fr)}#shop-membership-options .ms-editor .ms-level-policy{grid-template-columns:minmax(0,1fr)}#shop-membership-options .ms-focused-editor .ms-section-head{flex-wrap:wrap}#shop-membership-options .ms-status-label{white-space:normal}#shop-membership-options .ms-live-preview :is(input,select){font-size:16px}#shop-membership-options .ms-programme-status>div{grid-template-columns:minmax(0,1fr);gap:5px}#shop-membership-options .ms-live-preview iframe{height:560px}#shop-membership-options .ms-editor .ms-fields{gap:12px}#shop-membership-options .ms-save-bar .po-footer{gap:8px;flex-wrap:wrap}}

#shop-membership-options .ms-workspace{grid-template-columns:minmax(0,1fr) minmax(340px,43%);gap:28px}
#shop-membership-options .ms-screen-head{margin-bottom:10px;min-height:20px}
#shop-membership-options .ms-editor .ms-section:first-child{border-top:0}
#shop-membership-options .ms-preview-head{display:flex;justify-content:flex-end;align-items:center;min-height:28px;margin:0 0 6px}
#shop-membership-options .ms-preview-status:empty{display:none}
#shop-membership-options .ms-live-preview{max-width:none;position:sticky;top:12px}
#shop-membership-options .ms-live-preview iframe{height:720px;border-radius:8px}
#shop-membership-options .ms-live-preview .ms-fields{margin:0 0 14px}
@media(max-width:1100px){#shop-membership-options .ms-workspace{grid-template-columns:minmax(0,1fr)}#shop-membership-options .ms-live-preview{position:static;max-width:480px;width:100%}}
@media(max-width:700px){#shop-membership-options .ms-live-preview iframe{height:620px}}

.loyalty-phone-stage{display:flex;justify-content:center;min-width:0;padding:0;background:transparent;box-sizing:border-box}
.loyalty-phone-stage .dvf.kq-ph{box-sizing:border-box;width:var(--phw,351.4699px);max-width:100%;height:var(--phh,748px);margin:0;aspect-ratio:312/664}
.loyalty-phone-stage .dvf.kq-ph .dv-screen{position:relative;height:100%;min-height:0;overflow:hidden;border-radius:46px;clip-path:inset(0 round 46px)}
.loyalty-phone-stage .dv-screen>.bq{width:100%;height:100%;min-height:0;padding:0;margin:0;zoom:1;box-sizing:border-box}
#shop-membership-options .loyalty-phone-stage iframe,#shop-referral-options .loyalty-phone-stage iframe{display:block;width:100%;max-width:none;height:100%;margin:0;border:0;border-radius:0;background:white}
.loyalty-phone-stage .dv-home{position:absolute;display:block;bottom:7px;left:50%;transform:translateX(-50%);margin:0;width:110px;pointer-events:none}
#shop-membership-options .ms-preview-head:has(.ms-preview-status:empty){display:none}
#shop-membership-options .ms-preview-controls{display:grid;grid-template-columns:minmax(0,1fr) 88px auto;gap:10px;align-items:end;max-width:390px;margin:18px auto 0}
#shop-membership-options .ms-preview-controls label{min-width:0}
#shop-membership-options .ms-preview-controls .btn{font-size:11px;height:38px;padding:7px 13px}
@media(max-width:700px){.loyalty-phone-stage .dvf.kq-ph{margin:0}.loyalty-phone-stage .dvf.kq-ph .dv-screen{height:100%;overflow:hidden}#shop-membership-options .ms-preview-controls{grid-template-columns:minmax(0,1fr) 76px auto;gap:7px}}

#shop-membership-options .ms-workspace{display:block}
#shop-membership-options .ms-preview-toggle{display:inline-flex!important}
#shop-membership-options .ms-master-detail{display:grid;grid-template-columns:minmax(180px,245px) minmax(0,1fr);align-items:start;gap:28px}
#shop-membership-options .ms-master-detail>:is(aside,nav),#shop-membership-options .ms-detail-panel{min-width:0}
#shop-membership-options .ms-master-detail .ms-level-picker{grid-template-columns:minmax(0,1fr);margin-bottom:0}
#shop-membership-options .ms-master-detail .ms-focused-editor{border:0;padding-top:0}
#shop-membership-options .ms-master-detail .ms-detail-panel>.ms-section{margin:0 0 20px}
#shop-membership-options .ms-points-reward-section .ms-detail-panel>.ms-section{padding:0;border:0}
#shop-membership-options .ms-pane-list{display:grid;gap:5px}
#shop-membership-options .ms-pane-list button{display:block;width:100%;padding:14px 16px;text-align:left;background:transparent;border:1px solid transparent;border-radius:9px;color:#37424b;cursor:pointer}
#shop-membership-options .ms-pane-list button[aria-pressed=true]{background:#fff;border-color:#dce1e5;box-shadow:inset 3px 0 #42688f}
#shop-membership-options .ms-pane-list b{display:block;font:600 13px/1.5 var(--sans,Arial,sans-serif)}
#shop-membership-options .ms-pane-list small{display:block;margin-top:4px;font:12px/1.5 var(--sans,Arial,sans-serif);color:#6b747d}
#shop-membership-options .ms-pane-list button:focus-visible{outline:2px solid #42688f;outline-offset:2px}
#shop-membership-options .ms-detail-panel .ms-page-note+.ms-page-note{margin-top:24px;padding-top:16px;border-top:1px solid #e2e5e8}
#shop-membership-options .ms-detail-panel .ms-history{margin:0}
#shop-membership-options .ms-detail-panel .ms-history summary{padding-top:0}
#shop-membership-options .ms-detail-panel .ms-history-scroll{max-width:100%}
#shop-membership-options .ms-detail-panel .ms-calculator .ms-scenario{grid-template-columns:repeat(2,minmax(0,1fr))}
#shop-membership-options .ms-detail-panel .ms-level-policy{grid-template-columns:repeat(2,minmax(0,1fr))}
#shop-membership-options .ms-detail-panel>.ms-focused-editor{margin-bottom:24px}
#shop-membership-options .ms-section>.ms-section-head:has(>span:empty){margin-bottom:10px}
#shop-membership-options dialog.loyalty-preview-dialog,#shop-referral-options dialog.loyalty-preview-dialog{position:fixed;inset:0;margin:auto;padding:18px 24px 22px;width:460px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);height:fit-content;box-sizing:border-box;border:1px solid #dce1e5;border-radius:20px;background:#f8f9fa;color:#252525;box-shadow:0 20px 70px #1726372b;overflow:auto;z-index:30}
#shop-membership-options dialog.loyalty-preview-dialog:not([open]),#shop-referral-options dialog.loyalty-preview-dialog:not([open]){display:none}
#shop-membership-options dialog.loyalty-preview-dialog[open],#shop-referral-options dialog.loyalty-preview-dialog[open]{display:block}
.loyalty-preview-dialog::backdrop{background:#28374752;backdrop-filter:blur(3px)}
.loyalty-preview-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px;font:600 13px/1.5 var(--sans,Arial,sans-serif);color:#59646e}
.loyalty-preview-head button{display:grid;place-items:center;width:32px;height:32px;padding:0;background:#fff;border:1px solid #dce1e5;border-radius:50%;font:22px/1 Arial,sans-serif;color:#37424b;cursor:pointer}
.loyalty-preview-head button:focus-visible{outline:2px solid #42688f;outline-offset:2px}
@media(max-width:950px){#shop-membership-options .ms-master-detail{grid-template-columns:minmax(150px,200px) minmax(0,1fr);gap:20px}}
@media(max-width:700px){#shop-membership-options .ms-master-detail{grid-template-columns:minmax(0,1fr);gap:18px}#shop-membership-options .ms-pane-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#shop-membership-options .ms-pane-list button{padding:11px}#shop-membership-options .ms-master-detail .ms-level-picker{grid-template-columns:repeat(2,minmax(0,1fr))}#shop-membership-options .ms-detail-panel .ms-level-policy{grid-template-columns:minmax(0,1fr)}#shop-membership-options dialog.loyalty-preview-dialog,#shop-referral-options dialog.loyalty-preview-dialog{padding:14px 12px 18px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:14px}}
#shop-membership-options dialog.loyalty-preview-dialog,#shop-referral-options dialog.loyalty-preview-dialog{padding-top:12px;padding-bottom:12px;max-height:calc(100dvh - 16px)}
.loyalty-preview-dialog .loyalty-preview-head{margin-bottom:6px}
#shop-membership-options .loyalty-preview-dialog .ms-preview-controls{margin-top:12px}
#shop-referral-options .rf-setup-grid{display:block}
#shop-referral-options .rf-preview-control{display:flex!important}
.rf-record-fields{border:0;padding:0;margin:0;min-width:0}
.rf-operation-error{margin:14px 0;padding:14px 16px;border:1px solid #dcbab7;border-radius:8px;background:#fff7f6;color:#883e38;font:12px/1.6 var(--sans,Arial,sans-serif)}
.rf-operation-error p{margin:0 0 10px}
.rf-operation-error .btn{margin-right:8px}
.ms-scheduled-rule{margin:18px 0;padding:16px;background:#f0f5fa;border:1px solid #d1dce7;border-radius:8px;color:#435665;font:12px/1.6 var(--sans,Arial,sans-serif)}
.ms-scheduled-rule b{color:#344b61;font-weight:600}.ms-scheduled-rule p{margin:6px 0 12px}

.loyalty-preview-head [data-ms-retention-example]{display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;min-height:30px;padding:6px 10px;margin-left:auto;border-radius:8px;font:500 11px/1.4 var(--sans,Arial,sans-serif);flex:0 1 auto}
.loyalty-preview-head [data-ms-retention-example][aria-pressed=true]{background:#eaf1fb;border-color:#557caa;color:#274e7d}
.loyalty-preview-head [data-ms-preview-toggle]{flex-shrink:0}

.loyalty-programme-identity{margin:8px 0 18px;max-width:640px}.loyalty-programme-identity .ms-fields{grid-template-columns:minmax(180px,1fr) 130px;margin:0}.loyalty-programme-identity[hidden]{display:none}
.settings-document.settings-reference #loyalty-programme-identity.ms-section{padding:0;margin:10px 0 18px;border:0;border-radius:0;box-shadow:none;background:transparent;max-width:650px}.settings-document .loyalty-programme-identity .ms-fields{grid-template-columns:minmax(180px,1fr) 190px;gap:18px;margin:0}.settings-document .loyalty-programme-identity small{font-size:11px}

#loyalty-editor .rp-section{min-width:0}
#loyalty-editor .rp-row{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;align-items:start;padding:18px 0;border-top:1px solid #e5e9ef}
#loyalty-editor .rp-row-title{font-size:14px;font-weight:600;line-height:1.5;color:#263348;padding-top:8px}
#loyalty-editor .rp-row-title small{display:block;font-size:12px;font-weight:400;color:#657185;line-height:1.5;margin-top:5px}
#loyalty-editor .rp-row-controls{min-width:0;max-width:800px}
#loyalty-editor .rp-row-controls>.ms-fields{margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#loyalty-editor .rp-row-controls>.ms-fields+*{margin-top:14px}
#loyalty-editor .rp-row-controls>label{max-width:390px}
#loyalty-editor .rp-row-controls .lm-radio-group{margin:0 0 14px;padding:0;border:0}
#loyalty-editor .rp-row-controls .ms-toggle{margin:0;padding:8px 0;border:0;background:none;min-height:0}
#loyalty-editor .rp-eligibility{max-width:540px}
#loyalty-editor .rp-eligibility .ms-toggle+.ms-toggle{border-top:1px solid #e5e9ef}
#loyalty-editor .rp-bonuses .ms-section-head{margin-bottom:8px}
#loyalty-editor .rp-bonuses .ms-section-head h3{margin:0}
#loyalty-editor .rp-bonuses>.ms-help{margin:0 0 16px}
#loyalty-editor .rp-bonuses>.lc-comparison-scroll+.ms-help{margin:16px 0 0}
#loyalty-editor .rp-bonus-condition{padding:14px;border:1px solid #dce2eb;border-radius:8px;margin:0 0 14px;background:#fafbfd}
#loyalty-editor .rp-bonus-condition>strong{font-size:12px;color:#394c66}
#loyalty-editor .rp-bonus-condition .ms-fields{grid-template-columns:minmax(0,1fr);gap:12px;margin:12px 0}
#loyalty-editor .rp-bonus-condition>.btn{margin-top:12px}
#loyalty-editor .rp-bonuses [data-ms-multiplier-remove],#loyalty-editor .rp-bonuses [data-ms-condition-remove]{color:#ae4545}
#loyalty-editor .rp-empty{padding:16px;border:1px dashed #d8e0eb;border-radius:8px}
@media(max-width:800px){#loyalty-editor .rp-row{grid-template-columns:minmax(0,1fr);gap:8px}#loyalty-editor .rp-row-title{padding-top:0}#loyalty-editor .rp-row-controls>.ms-fields{grid-template-columns:minmax(0,1fr)}}
.rp-history-dialog{box-sizing:border-box;width:min(980px,calc(100vw - 48px));max-height:85vh;padding:24px;border:1px solid #dce2eb;border-radius:12px;color:#263348;background:white;overflow:auto}
.rp-history-dialog::backdrop{background:#13213966}
.rp-history-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.rp-history-dialog h2{font-size:18px;margin:0}
.rp-history-dialog .ms-history-scroll{overflow:visible;max-width:none}
.rp-history-dialog table{white-space:normal;table-layout:fixed}
.rp-history-dialog :is(th,td){overflow-wrap:anywhere}

.ms-currency-heading{position:relative;display:flex;align-items:center;gap:5px;min-height:18px}.ms-currency-heading>label{margin:0}.ms-currency-info{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:2px;border:0;border-radius:50%;background:transparent;color:#69788a;cursor:pointer}.ms-currency-info:hover,.ms-currency-info[aria-expanded=true]{background:#edf2fa;color:#315fa4}.ms-currency-info:focus-visible{outline:2px solid #4268a8;outline-offset:2px}.ms-currency-help{position:absolute;z-index:20;left:0;top:calc(100% + 6px);width:max-content;max-width:230px;padding:10px 12px;border:1px solid #d8e0eb;border-radius:8px;background:#fff;color:#3d4b5b;box-shadow:0 4px 16px #26395618;font:12px/1.5 Arial,sans-serif}.ms-currency-help[hidden]{display:none!important}
.ms-live-preview .ms-preview-audience{margin:0 20px 14px;display:flex;flex-wrap:nowrap}.ms-live-preview .ms-preview-audience button{flex:1;white-space:nowrap}.ms-live-preview [hidden]{display:none!important}

dialog#ms-customer-preview.loyalty-preview-dialog,#shop-membership-options dialog#ms-customer-preview{width:min(900px,calc(100vw - 32px));padding:16px 24px}
#ms-customer-preview .ms-preview-split{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1fr);align-items:center;gap:28px}
#ms-customer-preview .ms-preview-split aside{min-width:0}
#ms-customer-preview .ms-preview-split>aside{align-self:start;margin-top:clamp(8px,3vh,28px);padding:18px;border:1px solid #dce3e9;border-radius:14px;background:#fff}
#ms-customer-preview .ms-preview-head{margin:0 0 12px}
#ms-customer-preview .ms-preview-controls{margin:16px 0 0;max-width:none}
#ms-customer-preview .ms-preview-extras{margin-top:20px;border-top:1px solid #e1e7ec;padding-top:12px}
#ms-customer-preview .ms-preview-extras summary{cursor:pointer;font:600 13px/1.6 Montserrat,Arial,sans-serif;color:#35485b;padding:6px 0}
#ms-customer-preview .ms-preview-extras>div{padding-top:6px}
#ms-customer-preview :is(.ms-preview-extras,.ms-preview-controls) label{display:grid;gap:5px;margin:0;min-width:0;color:#344b61;font:600 13px/1.45 Montserrat,Arial,sans-serif}
#ms-customer-preview :is(.ms-preview-extras,.ms-preview-controls) :is(input,select){box-sizing:border-box;width:100%;min-width:0;min-height:38px;border:1px solid #c9d2da;border-radius:7px;background:white;color:#243444;padding:7px 10px;font:400 14px Montserrat,Arial,sans-serif}
#ms-customer-preview :is(button,select,summary,input):focus-visible{outline:2px solid #3672bd;outline-offset:2px}
@media(max-width:660px){#ms-customer-preview .ms-preview-split>aside{margin:0;padding:14px}}

#ms-customer-preview{font-family:Montserrat,Arial,sans-serif}
#ms-customer-preview .ms-preview-split>aside>label{display:grid;gap:5px;margin:12px 0;color:#344b61;font:600 13px/1.45 Montserrat,Arial,sans-serif}
#ms-customer-preview .ms-preview-split>aside>label select{box-sizing:border-box;width:100%;min-height:38px;border:1px solid #c9d2da;border-radius:7px;background:white;color:#243444;padding:7px 10px;font:400 14px Montserrat,Arial,sans-serif}
#ms-customer-preview .ms-preview-audience{margin:8px 0 16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}

dialog#ms-customer-preview .ms-preview-split>aside select:not([multiple]){appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%235e7383' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
#ms-customer-preview :is(.loyalty-preview-head,.ms-preview-controls .btn){font-family:Montserrat,Arial,sans-serif}
@media(forced-colors:active){dialog#ms-customer-preview .ms-preview-split>aside select:not([multiple]){appearance:auto;background-image:none}}
#ms-customer-preview .ms-sample-tools{display:grid;gap:10px;margin:18px 0}
#ms-customer-preview .ms-sample-tools label{display:grid;gap:6px;font-weight:600}
#ms-customer-preview .ms-sample-tools select{width:100%;box-sizing:border-box;border:1px solid #c9d2da;background:white;padding:8px;border-radius:7px;font:inherit}
#ms-customer-preview .ms-sample-tools p{font-size:13px;line-height:1.5;margin:0;color:#4b5865}
#ms-customer-preview .ms-sample-actions{display:flex;flex-wrap:wrap;gap:8px}
#ms-customer-preview .ms-sample-actions [aria-pressed=true]{background:#e6edf7;border-color:#6587aa}
#ms-customer-preview .loyalty-phone-stage{height:min(748px,calc(100dvh - 132px));align-items:center}
#ms-customer-preview .loyalty-phone-stage iframe{height:100%;width:100%;margin:0;border:0;background:white}
#ms-customer-preview .loyalty-preview-head [data-ms-retention-example]{width:auto;padding:5px 10px;font:inherit;border-radius:8px;margin-left:auto}
@media(max-width:660px){#ms-customer-preview .ms-preview-split{grid-template-columns:1fr;gap:12px}#ms-customer-preview .loyalty-phone-stage{height:min(640px,80dvh)}}
.settings-document #shop-membership-options .ms-points-reward-section {padding-top:0}
.ms-reward-catalogue {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr));
  gap:14px;
}
.ms-reward-card {
  display:flex;
  flex-direction:column;
  overflow:hidden;
  min-width:0;
  border:1px solid #d9e2df;
  border-radius:13px;
  background:#fbfcfb;
  color:#233431;
}
.ms-reward-card[data-current-reward] {border-color:#78968d}
.ms-reward-thumb {display:block;width:100%;aspect-ratio:16/8;object-fit:cover;background:#eef2f0}
.ms-reward-card-copy {flex:1;padding:16px}
.ms-reward-card-copy h4 {margin:0 0 7px;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.ms-reward-card-copy p {margin:9px 0 0;color:#435750;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.ms-reward-meta,.ms-reward-card-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ms-reward-meta strong {font-size:13px;color:#2f5248}
.ms-reward-status {border:1px solid #d6e4df;border-radius:20px;padding:2px 8px;background:#edf6f0;color:#2b5a48;font-size:11px}
.ms-reward-status[data-visible=false] {border-color:#e0e5e2;background:#f4f5f4;color:#566560}
.ms-reward-card-actions {padding:10px 16px;border-top:1px solid #e5ebe8}
.ms-reward-card-actions .btn {padding:6px 10px;border:1px solid #d2ded8;border-radius:7px;background:#fff;color:#29423c}
.ms-reward-card-actions .btn:hover {background:#edf4f0}
.ms-reward-editor,.ms-points-vouchers ul {
  margin-top:16px;
  padding:17px;
  min-width:0;
  border:1px solid #d9e2df;
  border-radius:13px;
  background:#fff;
  color:#233431;
}
.ms-reward-editor:focus {outline:2px solid #658779;outline-offset:3px}
.ms-reward-edit-fields,.ms-reward-photos {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:14px}
.ms-reward-photos {margin-top:14px}
.ms-reward-photos h4 {margin:0 0 6px;font-size:13px}
.ms-reward-availability {align-self:start;display:grid;justify-items:start;gap:7px;padding-top:2px;font-size:13px}
.ms-reward-catalogue+.ms-template-button,.ms-reward-editor+.ms-template-button {margin-top:14px}
.ms-points-vouchers ul {margin-bottom:0;list-style:none}
.ms-points-vouchers li {display:flex;justify-content:space-between;gap:12px;padding:8px 0;overflow-wrap:anywhere}
.ms-points-vouchers li+li {border-top:1px solid #e1e8e4}

.settings-document #shop-referral-options .rf-recipients {display:grid;grid-template-columns:minmax(0,1fr);gap:13px}
.settings-document #shop-referral-options .rf-recipient {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
  padding:15px;
  min-width:0;
  border:1px solid #d9e2df;
  border-radius:13px;
  background:#fbfcfb;
  color:#233431;
}
.settings-document #shop-referral-options .rf-recipient :is(h4,h5) {margin:0;line-height:1.4}
.settings-document #shop-referral-options .rf-recipient h4 {font-size:15px}
.settings-document #shop-referral-options .rf-recipient h5 {font-size:13px;color:#425650}
.settings-document #shop-referral-options .rf-referral-milestones {display:grid;gap:11px;min-width:0}
.settings-document #shop-referral-options .rf-referral-milestone {display:grid;gap:7px;min-width:0}
.settings-document #shop-referral-options .rf-referral-milestone+.rf-referral-milestone {padding-top:11px;border-top:1px solid #e1e8e4}
.settings-document #shop-referral-options .rf-recipients .rf-grid-cell {max-width:540px;min-width:0}
.settings-document #shop-referral-options .rf-recipients .rf-grid-cell>select {max-width:330px}
.settings-document #shop-referral-options .rf-recipient textarea {width:100%;margin:0}
.settings-document #shop-referral-options .rf-recipients .rf-amount label {display:inline-flex;width:auto;margin:0}
.settings-document #shop-referral-options .rf-recipients .rf-amount .rf-control-label {
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}

.loyalty-edit-dialog {
  box-sizing:border-box;
  width:min(570px,calc(100vw - 28px));
  max-height:calc(100dvh - 28px);
  margin:auto;
  padding:0;
  overflow:auto;
  border:1px solid #d8dcd7;
  border-radius:16px;
  background:#fff;
  color:#252c28;
  box-shadow:0 22px 70px #18211b33;
  font:14px/1.5 "Instrument Sans",system-ui,sans-serif;
}
.loyalty-edit-dialog::backdrop {background:#20282468;backdrop-filter:blur(3px)}
.loyalty-edit-dialog form,.loyalty-edit-dialog fieldset {min-width:0;margin:0;padding:0;border:0}
.loyalty-edit-head,.loyalty-edit-actions {
  position:sticky;
  z-index:2;
  display:flex;
  align-items:center;
  gap:10px;
  padding:17px 22px;
  background:#fff;
}
.loyalty-edit-head {top:0;justify-content:space-between;border-bottom:1px solid #e2e6e1}
.loyalty-edit-dialog .loyalty-edit-head h3 {margin:0;font:650 19px/1.3 "Instrument Sans",system-ui,sans-serif;color:#252c28}
.loyalty-edit-close {
  display:grid;
  width:35px;
  height:35px;
  flex:none;
  place-items:center;
  border:1px solid #dce1da;
  border-radius:8px;
  background:#fff;
  color:#36413a;
  font:22px/1 Arial,sans-serif;
  cursor:pointer;
}
.loyalty-edit-body {
  display:grid;
  gap:15px;
  padding:20px 22px;
}
.loyalty-edit-body>fieldset,.loyalty-edit-body section {display:grid;gap:12px}
.loyalty-edit-body section {padding-top:15px;border-top:1px solid #e3e7e1}
.loyalty-edit-body :is(h4,h5) {margin:0;font-weight:650;color:#252c28}
.loyalty-edit-body label,.ms-preview-options label {display:grid;gap:6px;min-width:0;margin:0;font-weight:580}
.loyalty-edit-body :is(input,select,textarea):not([type=checkbox],[type=radio],[type=file]),.ms-preview-options :is(input,select) {
  box-sizing:border-box;
  width:100%;
  min-height:41px;
  margin:0;
  padding:8px 11px;
  border:1px solid #cdd5cf;
  border-radius:8px;
  background:#fff;
  color:#252c28;
  font:inherit;
}
.loyalty-edit-body input[type=number] {appearance:textfield}
.loyalty-edit-body input::-webkit-inner-spin-button,.loyalty-edit-body input::-webkit-outer-spin-button {appearance:none;margin:0}
.loyalty-edit-body label.loyalty-edit-check {display:flex;align-items:center;gap:8px;font-weight:500}
.loyalty-edit-check input {width:17px;height:17px;margin:0;accent-color:#304838}
.loyalty-edit-body .loyalty-edit-choice {display:grid;gap:8px}
.loyalty-edit-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.loyalty-edit-dialog details>summary {margin:0;padding:7px 0;font-weight:600;cursor:pointer}
.loyalty-edit-actions {bottom:0;justify-content:end;border-top:1px solid #e2e6e1}
.mbs-benefit-secondary>div {display:grid;justify-items:start;gap:10px;padding:6px 0}
.mbs-benefit-secondary label {width:100%}
.loyalty-edit-dialog .btn {
  min-height:38px;
  padding:7px 12px;
  border:1px solid #cdd5cf;
  border-radius:8px;
  background:#fff;
  color:#304038;
  font:600 13px/1.4 "Instrument Sans",system-ui,sans-serif;
}
.loyalty-edit-dialog .btn.pri {border-color:#28362e;background:#28362e;color:#fff}
.loyalty-edit-dialog .btn:not(:disabled):hover,.loyalty-edit-close:hover {filter:brightness(.94)}
.loyalty-edit-dialog :is(button,input,textarea,select,summary):focus-visible {outline:2px solid #496f59;outline-offset:2px}
.loyalty-edit-error {margin:0;color:#903a32}
.rf-overview .rf-recipient :is(p,dl) {margin:0}
.rf-overview .rf-recipient dl {display:grid;gap:6px}
.rf-overview .rf-recipient dl div {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 15px}
.rf-overview .rf-recipient dd {margin:0;font-weight:620}
.rf-settings-status {margin:13px 0 0;color:#43524b}
#shop-referral-options .rf-rules-dialog .rf-inline-setup {
  display:grid;
  gap:15px;
}
#shop-referral-options .rf-rules-dialog .rf-rule-settings,
#shop-referral-options .rf-rules-dialog .rf-rules-fields {display:grid;gap:10px}
#shop-referral-options .rf-rules-dialog .rf-setting-row {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:5px;
  padding:0;
  border:0;
}
#shop-referral-options .rf-rules-dialog .rf-inline-setup section {margin:0}
#shop-referral-options .rf-rules-dialog .rf-recipient {background:#fafbf8}
#shop-referral-options .rf-rules-dialog [data-rf-field=enabled] {accent-color:#304838}

.ms-reward-header,.ms-reward-header-actions {display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
.ms-reward-header {margin-bottom:14px}
.ms-reward-header h3 {margin:0}
.ms-reward-earn-summary {width:fit-content;margin:5px 0 0;padding:4px 9px;border-radius:8px;background:#eee;color:#454545;font-size:12px}
.ms-reward-header-actions .btn.pri {background:#28332b;border-color:#28332b;color:#fff}
.ms-reward-catalogue {grid-template-columns:repeat(auto-fill,minmax(min(100%,225px),1fr));align-items:start}
.ms-reward-card {background:#fcfcfa;border-color:#dbded6;color:#282c28}
.ms-reward-art {margin:8px 8px 0;padding:4px;border:1px solid #dedfd6;border-radius:9px;background:#f3f2ed;overflow:hidden}
.ms-reward-art-inner {aspect-ratio:1.5;display:grid;place-items:center;background:#e9e9e4;border-radius:6px;overflow:hidden}
.ms-reward-thumb {height:100%;object-position:center}
.ms-reward-placeholder {font-size:34px;color:#46534b}
.ms-reward-card-copy {padding:11px 13px}
.ms-reward-card-copy h4 {font:400 clamp(19px,2vw,23px)/1.2 Georgia,serif}
.ms-reward-meta strong {border-radius:20px;padding:3px 9px;background:#e8e9e4;color:#303832}
.ms-reward-redemption {margin-top:9px;padding-top:8px;border-top:1px solid #dfe3da;font-size:13px}
.ms-reward-redemption p {margin:4px 0 0}
.ms-reward-card-actions {margin:0 8px;padding:8px 5px;justify-content:end}
.ms-reward-card-actions .ms-reward-status {margin-right:auto;padding:0;border:0;background:none;color:#56605a}
.ms-reward-presets {margin-top:14px}
.ms-reward-presets .btn {margin-top:8px}
.ms-reward-edit-photo {display:grid;justify-items:start;gap:8px}
.ms-reward-photo-row {display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ms-reward-photo-row .btn[hidden],.ms-reward-edit-photo [data-reward-photo-preview]:empty {display:none}
.ms-reward-edit-photo img {display:block;width:112px;aspect-ratio:1.46;object-fit:cover;border-radius:7px;background:#f0f1eb}
.ms-reward-edit-photo .btn {position:relative;display:inline-flex;align-items:center;cursor:pointer;box-sizing:border-box}
.ms-reward-edit-photo input[type=file] {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.ms-reward-edit-photo label:focus-within {outline:2px solid #496f59;outline-offset:2px}
.loyalty-edit-actions .ms-reward-remove {margin-right:auto}
.ms-reward-order-dialog ol {display:grid;gap:7px;margin:0;padding-left:24px}
.ms-reward-order-dialog li {border-bottom:1px solid #e1e8e4;padding:8px 0}
.ms-reward-order-dialog li div {display:inline-flex;gap:6px;margin-left:10px;vertical-align:middle}
.ms-reward-order-dialog li .btn {min-width:36px;padding:5px 9px}
.ms-reward-order-dialog [data-ms-order-status] {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.loyalty-edit-body .ms-reward-methods {gap:5px}
.ms-reward-methods legend {margin-bottom:6px;font-weight:650}
.ms-reward-methods .loyalty-edit-check {min-height:36px;padding:4px 8px;border:1px solid #d8dcd7;border-radius:7px}
.ms-reward-methods .loyalty-edit-check:has(:checked) {border-color:#4d6558;background:#f1f4ef}
.ms-reward-method-note {margin:0}

dialog#ms-customer-preview.loyalty-preview-dialog,#shop-membership-options dialog#ms-customer-preview {
  width:min(520px,calc(100vw - 24px));
  padding:0;
  background:#f7f8f5;
}
#ms-customer-preview .ms-preview-stack {display:grid;gap:12px;padding:14px 18px 16px}
#ms-customer-preview .ms-preview-tabs {display:flex;gap:4px;overflow:auto;padding:2px 2px 4px;border-bottom:1px solid #d9dfd8}
#ms-customer-preview .ms-preview-tabs button {flex:1 0 auto;padding:8px 7px;border:0;border-bottom:2px solid transparent;background:transparent;color:#45544a;font:600 12px/1.3 var(--sans,Arial,sans-serif);white-space:nowrap;cursor:pointer}
#ms-customer-preview .ms-preview-tabs button[aria-selected=true] {border-bottom-color:#334c3e;color:#1a3729}
#ms-customer-preview .ms-preview-tabs button:focus-visible {outline:2px solid #47634f;outline-offset:-2px;border-radius:4px}
#ms-customer-preview .ms-preview-options {display:flex;flex-wrap:wrap;align-items:end;gap:9px;font-size:12px}
#ms-customer-preview .ms-preview-options label {flex:1;min-width:105px}
#ms-customer-preview .ms-preview-options input {max-width:100px}
#ms-customer-preview .ms-preview-status {display:block;flex-basis:100%;color:#4f5c54}
#ms-customer-preview .loyalty-phone-stage {height:min(748px,calc(100dvh - 240px));min-height:368px}
#ms-customer-preview .ms-preview-options .ms-sample-tools {margin:0}
@media (max-width:480px){
  .loyalty-edit-fields {grid-template-columns:minmax(0,1fr)}
  .loyalty-edit-head,.loyalty-edit-body,.loyalty-edit-actions {padding-left:15px;padding-right:15px}
  .loyalty-edit-actions {flex-wrap:wrap}
  #ms-customer-preview .ms-preview-stack {padding-left:10px;padding-right:10px}
}

#shop-membership-options dialog.ms-points-rules-dialog {width:min(710px,calc(100vw - 28px))}
#shop-membership-options .ms-points-rules-dialog .rp-row {grid-template-columns:minmax(0,1fr);gap:6px}
#shop-membership-options .ms-points-rules-dialog .rp-section {padding:12px 0}
#shop-membership-options .rp-compact {display:grid;gap:16px}
#shop-membership-options .rp-compact .ms-toggle {display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0;min-height:40px;padding:9px 0;background:transparent;border:0}
#shop-membership-options .rp-compact>.ms-toggle {max-width:none;padding:11px 13px;border:1px solid #d9ded8;border-radius:9px;background:#f6f7f4}
#shop-membership-options .rp-compact .ms-toggle input {accent-color:#304838}
#shop-membership-options .rp-compact section {gap:6px}
#shop-membership-options .rp-compact .rp-eligibility {max-width:none}
#shop-membership-options .rp-compact .rp-eligibility .ms-toggle {max-width:none}
#shop-membership-options .rp-compact .ms-help {margin:4px 0 0}
#shop-membership-options .rp-advanced {margin-top:17px;padding-top:8px;border-top:1px solid #e3e7e1}
#shop-membership-options .rp-rate-overview {display:grid;gap:5px;align-self:start;margin:0}
#shop-membership-options .rp-rate-overview span,.rp-scheduled-summary {font-size:13px;color:#4f5c54}
#shop-membership-options .rp-scheduled-summary {margin:16px 0 0}
#shop-membership-options .rp-history-link {margin-top:16px}
#shop-membership-options .ms-points-rules-dialog .loyalty-edit-actions .btn.pri {color:#fff;background:#28362e;border-color:#28362e}

#shop-tier-options .ts-upgrade-bar,.ts-other-offers {
  display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0 0;
  padding:12px 15px;border:1px solid #daddd5;border-radius:9px;background:#fff;color:#343d36;
}
#shop-tier-options .ts-upgrade-bar p,.ts-other-offers h4 {margin:0}
#shop-tier-options .ts-upgrade-actions {display:flex;flex-wrap:wrap;gap:8px}
.ts-calculator-dialog.loyalty-edit-dialog {width:min(570px,calc(100vw - 28px));color:#252c28;font-family:"Instrument Sans",system-ui,sans-serif}
.ts-calculator-dialog.loyalty-edit-dialog .ts-example-result {background:#f6f7f4;border-color:#dce1da}
.ts-calculator-dialog.loyalty-edit-dialog :is(h2,strong,span,small,button,input,select,label) {color:inherit;font-family:inherit}
.ts-calculator-dialog.loyalty-edit-dialog .ts-example-result[data-ts-spend-example-result] .ts-example-stats {grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));gap:14px}
.ts-calculator-dialog.loyalty-edit-dialog .ts-example-result .ms-help {color:#4f5c54}
.ts-calculator-dialog.loyalty-edit-dialog .ts-example-result strong {font-size:19px;line-height:1.24}
.ts-calculator-dialog.loyalty-edit-dialog [data-ts-example-stone][hidden] {display:none}
.ts-other-offers {display:grid;gap:8px}
.ts-other-offers div {display:flex;justify-content:space-between;align-items:center;gap:10px}
#shop-tier-options .ts-upgrade-dialog .loyalty-edit-body .ms-section {margin:0;padding:13px 0 0}
#shop-tier-options .ts-upgrade-dialog .loyalty-edit-body .ms-fields {grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:10px}
#shop-tier-options .ts-upgrade-dialog .loyalty-edit-body .ms-help {margin:0;color:#56605a;font-size:13px}
.ts-tier-editor-dialog .ts-editor-card {width:min(100%,300px);margin:auto}
.ts-tier-editor-dialog .ts-colour-swatch {
  display:flex;align-items:center;gap:8px;min-height:40px;padding:4px 7px;
  border:1px solid #cdd5cf;border-radius:8px;background:#fff;
}
.ts-tier-editor-dialog .ts-colour-swatch input[type=color] {min-height:0;width:35px;height:31px;flex:none;padding:2px}
.ts-tier-editor-dialog .ts-colour-swatch output {font:12px ui-monospace,monospace;text-transform:uppercase;color:#4c5650}
.ts-tier-editor-dialog .ms-help {margin:0}
.ts-tier-editor-dialog .ts-remove-tier {color:#803c34}
.rf-referral-summary {
  padding:15px;border:1px solid #daddd5;border-radius:10px;
  background:#f8f9f6;color:#28352d;
}
.rf-referral-summary .rf-settings-status {display:inline-block;margin:0;padding:4px 10px;border-radius:20px;background:#e8eee7}
.rf-referral-summary h4 {margin:15px 0 4px}
.rf-referral-summary dl {margin:0}
.rf-referral-summary dl div {
  display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:10px;
  padding:7px 0;border-bottom:1px solid #dfe4db;
}
.rf-referral-summary dl div:last-child {border-bottom:0}
.rf-referral-summary dd {margin:0;font-weight:650}
.rf-simple-rewards {display:grid;gap:10px}
.rf-simple-rewards h4 {margin:0}
