
.loyalty-tabs{display:flex;gap:24px;border-bottom:1px solid #d6dee4;margin-bottom:26px}.loyalty-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;padding:14px 2px;font:600 14px Arial;color:#6c7783;cursor:pointer}.loyalty-tabs [aria-selected=true]{color:#435c49;border-bottom-color:#435c49}
#shop-team-options h2{font:28px Cardo,Georgia,serif;margin:0 0 24px}#shop-team-options .small{font-size:12px;line-height:1.6}#shop-team-options .muted{color:#6c7783}#shop-team-options .actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}#shop-team-options button{border:1px solid #ccd6df;background:white;border-radius:6px;padding:9px 14px;font:12px Arial;color:#3c5369;cursor:pointer}#shop-team-options button.primary{background:#1b1c19;color:white;border-color:#1b1c19}#shop-team-options button.danger{color:#a1453d}#shop-team-options .space-top{margin-top:18px}#shop-team-options .table-wrap{overflow:auto}.accounts-table{width:100%;border-collapse:collapse;font:13px/1.6 Arial}.accounts-table th{text-align:left;color:#71818e;font:10px Arial;text-transform:uppercase;letter-spacing:.07em}.accounts-table th,.accounts-table td{padding:16px 12px;border-bottom:1px solid #e1e7eb;vertical-align:top}.accounts-table td:last-child{display:flex;gap:8px;flex-wrap:wrap}.team-field{display:block;font:12px Arial;color:#536676;margin:18px 0}.team-field input,#shop-team-options select{box-sizing:border-box;display:block;width:100%;padding:11px;margin-top:8px;border:1px solid #ccd6df;border-radius:5px;background:white;color:#24394d;font:14px Arial}#shop-team-options form{max-width:720px}#shop-team-options .form-field label{font:12px Arial}.account-access-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.account-access-grid label{display:flex;align-items:center;justify-content:space-between;border:1px solid #dce4eb;background:#f6f8fa;padding:17px;border-radius:8px;font:14px Arial}.account-access-grid input{accent-color:#435c49;width:18px;height:18px}.team-error{color:#a1453d;background:#fff1ed;padding:12px;border-radius:6px}.rf-stats{display:flex;gap:40px;margin:24px 0}.rf-stats b{display:block;font:28px Cardo,Georgia,serif;color:#364f65}.rf-stats span{font:11px Arial;color:#6d7c87}.rf-record{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 0;border-top:1px solid #e0e6ea}.rf-record small{display:block;line-height:1.6;color:#6e7a86}.rf-record .rf-actions{display:flex;gap:8px}.rf-empty{padding:32px 0;color:#75838f;font:14px/1.6 Arial}.rf-customer{margin-top:26px;padding-top:22px;border-top:1px solid #dde5eb}.rf-code{font:12px monospace;overflow-wrap:anywhere}.rf-customer h3{font:22px Cardo,Georgia,serif}.rf-customer p{font:12px/1.6 Arial;color:#70818d}
@media(max-width:700px){.account-access-grid{grid-template-columns:1fr}.accounts-table th{display:none}.accounts-table tr,.accounts-table td{display:block}.accounts-table td{border:0;padding:6px 0}.accounts-table tr{border-bottom:1px solid #e1e7eb;padding:15px 0}.accounts-table td:before{content:attr(data-label);font:10px Arial;color:#758594;display:block}.rf-record{align-items:flex-start;flex-direction:column}.rf-stats{gap:22px}}

#shop-team-options button:disabled,.rf-actions button:disabled{opacity:.42;cursor:not-allowed}
#shop-referral-options .btn{font:12px/1.4 Arial,sans-serif}
#shop-referral-options .rf-setup-grid{display:block}
#shop-referral-options .rf-setup-editor{min-width:0;margin:0;padding:0;border:0}
#shop-referral-options .rf-setup-editor .ms-fields.rf-benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:none}
#shop-referral-options .rf-setup-editor .ms-fields.rf-qualification{grid-template-columns:minmax(0,1fr) 90px;max-width:360px}
#shop-referral-options .rf-live-preview{position:sticky;top:16px;min-width:0}
#shop-referral-options .rf-preview-heading{margin:0 0 14px}
#shop-referral-options .rf-preview-heading h3{margin:0 0 3px;font:600 15px/1.5 Arial,sans-serif;color:#303a43}
#shop-referral-options .rf-preview-heading span{font:11px/1.6 Arial,sans-serif;color:#626c76}
#shop-referral-options .rf-live-preview .rf-program-preview{grid-template-columns:1fr;gap:12px}
#shop-referral-options .rf-live-preview .rf-preview-note{font-size:11px;line-height:1.6;margin:14px 0 18px}
#shop-referral-options .rf-live-preview .rf-customer-preview{width:100%;height:580px;margin:0;max-width:none;border-color:#dce1e6;border-radius:10px}
#shop-referral-options .rf-fulfilment{display:flex;justify-content:space-between;gap:16px;padding:13px 0;margin:18px 0 0;border-top:1px solid #e2e6e9;font:12px/1.5 Arial,sans-serif;color:#626c76}
#shop-referral-options .rf-fulfilment b{color:#36424c;font-weight:500;text-align:right}
#shop-referral-options .rf-settings-footer{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;gap:10px;background:#f6f7f9;border-top:1px solid #dce1e6;padding:14px 0;margin-top:20px}
#shop-referral-options .rf-settings-footer [role=status]{flex:1;min-width:0}
#shop-referral-options .rf-preview-control{display:flex}
.rf-introduction>.rf-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
@media(max-width:1100px){#shop-referral-options .rf-setup-grid{grid-template-columns:minmax(0,1fr);gap:22px}#shop-referral-options .rf-preview-control{display:flex;justify-content:flex-end;margin-bottom:16px}#shop-referral-options .rf-live-preview{display:none;position:static;width:100%;max-width:390px;justify-self:center}#shop-referral-options [data-rf-preview-open=true] .rf-live-preview{display:block}#shop-referral-options [data-rf-preview-open=true] .rf-setup-editor{display:none}#shop-referral-options .rf-settings-footer{flex-wrap:wrap}#shop-referral-options .rf-settings-footer [role=status]{flex-basis:100%}}
@media(max-width:700px){#shop-referral-options .rf-setup-editor .ms-fields.rf-benefits{grid-template-columns:minmax(0,1fr)}#shop-referral-options .rf-settings-footer{padding:12px 0}#shop-referral-options .rf-settings-footer .btn{flex:1}#shop-referral-options .rf-fulfilment{font-size:11px}}

#shop-referral-options .rf-setup-grid{display:block}
#shop-referral-options .rf-live-preview .rf-customer-preview{height:720px}
#shop-referral-options .rf-setup-editor .ms-section:first-child{border-top:0}
@media(max-width:1100px){#shop-referral-options .rf-setup-grid{grid-template-columns:minmax(0,1fr)}#shop-referral-options .rf-live-preview{max-width:480px}}
@media(max-width:700px){#shop-referral-options .rf-live-preview .rf-customer-preview{height:620px}}
#shop-referral-options .rf-preview-control{display:flex;align-items:center;justify-content:space-between;min-height:20px;margin-bottom:10px;gap:12px}
#shop-referral-options [data-rf-preview-toggle]{display:inline-flex}
@media(max-width:1100px){#shop-referral-options [data-rf-preview-toggle]{display:inline-flex}}

#shop-referral-options .rf-process ol{display:grid;gap:18px;list-style:none;counter-reset:referral-step;padding:0;margin:0}
#shop-referral-options .rf-process li{position:relative;counter-increment:referral-step;padding-left:34px;line-height:1.6}
#shop-referral-options .rf-process li:before{content:counter(referral-step);position:absolute;left:0;top:1px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e8eef5;color:#42688f;font:600 11px Arial}
#shop-referral-options .rf-process b,#shop-referral-options .rf-process span{display:block}
#shop-referral-options .rf-process b{font:600 12px/1.5 Arial;color:#344b61}
#shop-referral-options .rf-process span{font:12px/1.7 Arial;color:#596775;margin-top:3px}
#shop-referral-options .rf-example-note{display:block;margin-top:7px;font:11px/1.6 Arial;color:#87633a}
.rf-record-offer{margin:16px 0;font:12px/1.6 Arial;color:#485d6b}.rf-record-offer>div{margin:10px 0}.rf-record-offer dt{font-size:10px;color:#74818b}.rf-record-offer dd{margin:2px 0 0;overflow-wrap:anywhere}
.rf-customer>[data-jp-referral-copy]{margin:10px 8px 0 0}.rf-customer>[data-rf-settings]{margin-top:10px}
.rf-customer [data-rf-code-status]{display:block;margin-top:6px;font:11px/1.6 Arial;color:#526578}

#shop-referral-options .rf-preview-control{display:flex!important;width:100%;margin:0 0 10px;min-height:36px}
#shop-referral-options .rf-live-preview .loyalty-phone-stage .rf-customer-preview{display:block;width:100%;height:100%;max-width:none;margin:0;border:0;border-radius:0}

#loyalty-editor .rf-clear-settings .ms-section{min-width:0}
#loyalty-editor .rf-setting-row{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;padding:18px 0;border-top:1px solid #e5e9ef;align-items:start}
#loyalty-editor .rf-setting-title{font-size:14px;font-weight:600;line-height:1.5;color:#263348;padding-top:8px}
#loyalty-editor .rf-setting-title small{display:block;margin-top:5px;font-size:12px;font-weight:400;line-height:1.5;color:#657185}
#loyalty-editor .rf-setting-controls{min-width:0;max-width:800px}
#loyalty-editor .rf-setting-controls>.ms-fields{margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#loyalty-editor .rf-setting-controls>label{max-width:420px}
#loyalty-editor .rf-setting-controls .ms-toggle{margin:0;min-height:0}
#loyalty-editor .rf-choice{border:0;padding:0;margin:0;min-width:0}
#loyalty-editor .rf-choice legend{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
#loyalty-editor .rf-choice+label{margin-top:14px}
#loyalty-editor .rf-referral-rewards .ms-section-head h3{margin:0}
#loyalty-editor .rf-referral-rewards .ms-section-head{margin-bottom:12px}
#loyalty-editor .rf-reward-comparison .lc-comparison-table{table-layout:fixed}
#loyalty-editor .rf-reward-comparison .lc-comparison-table td{min-width:0}
#loyalty-editor .rf-reward-comparison .rf-reward-row{border:1px solid #dce2eb;border-radius:8px;padding:14px;margin-bottom:14px;background:#fafbfd}
#loyalty-editor .rf-reward-comparison .rf-reward-row .ms-fields{grid-template-columns:minmax(0,1fr);gap:12px;margin:0 0 12px}
#loyalty-editor .rf-reward-comparison .rf-reward-bundle{padding:0;background:none;border:0}
#loyalty-editor .rf-clear-settings [data-rf-reward-remove],#loyalty-editor .rf-clear-settings [data-rf-checkpoint-remove]{color:#ae4545}
#loyalty-editor .rf-clear-settings [data-rf-reward-add]{border-color:#355db5;background:#355db5;color:white}
#loyalty-editor .rf-invitation-wording{border-top:1px solid #e5e9ef;padding-top:4px;margin-top:12px}
#loyalty-editor .rf-invitation-wording>label{margin:16px 0}
#loyalty-editor .rf-enable-action{display:flex;align-items:center;gap:16px}
@media(max-width:800px){#loyalty-editor .rf-setting-row{grid-template-columns:minmax(0,1fr);gap:8px}#loyalty-editor .rf-setting-title{padding-top:0}#loyalty-editor .rf-setting-controls>.ms-fields{grid-template-columns:minmax(0,1fr)}}
#loyalty-editor .rf-clear-settings .btn[data-rf-reward-add]{color:#fff!important}
#loyalty-editor .rf-control-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#loyalty-editor .rf-setting-controls>.ms-fields{align-items:end}

#shop-referral-options .rf-referral-rewards>.rf-reward-comparison>.lc-comparison-table{min-width:640px;width:100%}
#shop-referral-options .rf-milestone-summary{padding:12px 0;border-bottom:1px solid #e1e6ee;display:grid;gap:5px;font-size:13px;line-height:1.6}
#shop-referral-options .rf-milestone-summary:last-of-type{margin-bottom:14px}
#shop-referral-options .rf-invitation-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:32px;align-items:start}
#shop-referral-options .rf-invitation-fields{min-width:0}
#shop-referral-options .rf-invitation-fields .rf-setting-row{grid-template-columns:130px minmax(0,1fr);gap:20px}
#shop-referral-options .rf-invitation-fields .rf-setting-controls>.ms-fields{grid-template-columns:minmax(0,1fr)}
#shop-referral-options .rf-inline-preview{position:sticky;top:24px;min-width:0;align-self:start}
#shop-referral-options .rf-preview-heading{display:grid;gap:4px;margin:0 0 14px;font-size:14px}
#shop-referral-options .rf-preview-heading span{font-size:12px;color:#657185}
#shop-referral-options .rf-inline-preview .loyalty-phone-stage{width:100%;max-width:350px}
#shop-referral-options .rf-inline-preview .rf-customer-preview{display:block;width:100%;height:100%;border:0;background:#f5f5fb}
#shop-referral-options .rf-inline-preview>iframe{height:690px;border:1px solid #dce2eb;border-radius:18px}
#shop-referral-options .rf-options-dialog{width:min(1100px,94vw);max-width:94vw;max-height:88vh;border:1px solid #ccd5e1;border-radius:14px;padding:0;background:#fff;color:#263348;box-shadow:0 20px 70px #17294340}
#shop-referral-options .rf-options-dialog::backdrop{background:#18233266}
#shop-referral-options .rf-options-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;border-bottom:1px solid #dce2eb;position:sticky;top:0;background:#fff;z-index:2}
#shop-referral-options .rf-options-dialog h2{font:600 20px/1.4 'Instrument Sans',Arial,sans-serif;margin:0}
#shop-referral-options .rf-options-content{padding:8px 24px 24px}
#shop-referral-options .rf-options-dialog .rf-reward-comparison{max-height:none;overflow-y:visible}
#shop-referral-options .rf-options-dialog .ms-section:first-child{padding-top:16px}
@media(max-width:1150px){#shop-referral-options .rf-invitation-grid{grid-template-columns:minmax(0,1fr) 310px;gap:24px}#shop-referral-options .rf-invitation-fields .rf-setting-row{grid-template-columns:minmax(0,1fr);gap:8px}}
@media(max-width:800px){#shop-referral-options .rf-invitation-grid{grid-template-columns:minmax(0,1fr)}#shop-referral-options .rf-inline-preview{position:static;max-width:350px}#shop-referral-options .rf-options-content{padding:8px 16px 20px}#shop-referral-options .rf-options-dialog>header{padding:16px}}

#loyalty-editor .rf-reward-comparison .rf-reward-row .ms-fields{gap:16px;margin-bottom:0}
#loyalty-editor .rf-reward-help{margin:0;font-size:12px;line-height:1.6;color:#617084}
#loyalty-editor .rf-reward-actions{display:flex;justify-content:flex-end;border-top:1px solid #dce2eb;margin-top:22px;padding-top:16px}
#loyalty-editor .rf-reward-actions [data-rf-reward-remove]{padding:8px 14px;border-color:#e0c5c5;background:#fff;color:#a23b3b}
#loyalty-editor .rf-referral-limits{margin-top:26px;padding-top:22px;border-top:1px solid #dce2eb}
#loyalty-editor .rf-referral-limits h4{margin:0 0 14px;font-size:16px}
#loyalty-editor .rf-voucher-select{appearance:auto!important;-webkit-appearance:menulist!important;display:block;width:100%;min-height:44px;padding:10px 32px 10px 12px!important;background-color:#fff!important;border:1px solid #b9c6d6!important;border-radius:7px}
#loyalty-editor .rf-voucher-link{justify-self:start;margin-top:0;font-size:12px}
#loyalty-editor .rf-reward-comparison th small{display:block;font-weight:400;font-size:12px;line-height:1.6;margin-top:6px;color:#617084}

/* Tier earning: examples and account-scoped product selection. */
.ts-earning-example{margin-top:16px;padding:14px 16px;border:1px solid #ccdcea;border-radius:10px;background:#f5f9fc;color:#354c60;font:14px/1.6 Arial,sans-serif}.ts-earning-example p{margin:0}.ts-earning-example .ms-help{margin-top:6px}.ts-selected-products{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.ts-selected-products>span{padding:6px 10px;border:1px solid #d8e1e8;background:#f6f8fa;border-radius:7px;font:13px/1.4 Arial,sans-serif}
.ts-products-dialog{width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 48px);box-sizing:border-box;padding:24px;border:2px solid #67849b;border-radius:12px;color:#354c60}.ts-products-dialog::backdrop{background:#18273655}.ts-products-dialog header,.ts-products-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.ts-products-dialog h2{font:600 20px/1.4 Arial,sans-serif;margin:0}.ts-products-dialog>label{display:grid;gap:8px;margin-top:20px;font:13px/1.5 Arial,sans-serif}.ts-products-dialog input[type=search]{width:100%;box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid #b8c9d6;border-radius:7px}.ts-product-list{max-height:45dvh;overflow:auto;margin:16px 0;border-block:1px solid #dce4eb}.ts-product-option{display:flex;gap:12px;align-items:center;padding:14px 4px;border-bottom:1px solid #edf0f3;font:14px/1.5 Arial,sans-serif}.ts-product-option[hidden]{display:none}.ts-product-option input{width:20px;height:20px;flex:none;accent-color:#42688f}.ts-products-dialog footer{justify-content:flex-end;border-top:1px solid #dce4eb;padding-top:16px}.ts-products-dialog [role=status]{font:13px/1.5 Arial,sans-serif;color:#667d8e}
#shop-tier-options [aria-invalid=true]{outline:2px solid #b55248;outline-offset:2px}

.ts-rounding-setting{margin-top:16px;padding-top:14px;border-top:1px solid #e1e7ed}.ts-rounding-setting>label{display:grid;gap:8px;font:13px/1.5 Arial,sans-serif}.ts-rounding-setting>.ms-help{margin:8px 0 0;font-size:12px}

.lc-bonus-table .ts-bonus-rate{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.lc-bonus-table .ts-bonus-rate label{width:90px;flex:none}.lc-bonus-table .ts-bonus-rate input{width:100%;box-sizing:border-box}.lc-bonus-table .mbs-condition-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:14px;margin-bottom:12px;border:1px solid #d6e1ea;border-radius:9px;background:#fafcfe}.lc-bonus-table .mbs-condition-row>label{min-width:0}.lc-bonus-table [data-ts-remove]{color:#a54b43;justify-self:start}.lc-bonus-table [data-ts-condition-add]{border-color:#8da8bf;color:#355f82;background:#f4f8fc}

.rf-ledger-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:12px}.rf-ledger-tools h3{margin:0 auto 0 0}.rf-ledger-scroll{overflow-x:auto}.rf-ledger table{width:100%;text-align:left}.rf-ledger td,.rf-ledger th{vertical-align:top;padding:10px}.rf-ledger td .btn{margin:2px}.rf-entry-dialog{width:min(440px,90vw);box-sizing:border-box;border:1px solid #d5dfdd;padding:20px;border-radius:16px;box-shadow:0 16px 54px #132a3430}.rf-entry-dialog::backdrop{background:#132a3459}.rf-entry-dialog label{display:grid;gap:6px}.rf-entry-dialog select,.rf-entry-dialog input{max-width:100%}.rf-entry-dialog .ms-section{margin:12px 0 0}.rf-entry-dialog .ms-fields{display:grid;gap:12px;margin-bottom:16px}.rf-referral-limits>summary{font-weight:600;cursor:pointer;padding-block:10px}
