:root{color-scheme:light;--gold:#C9A14B;--dark:#2F343A;--muted:#66727c;--border:#e8e8e8;--brand-primary:#222425;--brand-secondary:#F3F3F1;--brand-accent:#B8AA7C;--brand-surface:#FAFAFA;
 font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;background:#f5f6f8;color:#29323b}
*{box-sizing:border-box}body{margin:0;min-height:100vh;padding:28px 18px;background:#f5f6f8}
.invite-shell{width:min(550px,100%);margin:0 auto}
.invite-header{display:flex;align-items:center;gap:12px;margin:0 0 42px}
.invite-header img{width:42px;height:50px;object-fit:contain}
.invite-header div{display:flex;flex-direction:column;line-height:1.25}
.invite-header strong{letter-spacing:.14em;font-size:20px;color:var(--dark)}
.invite-header div span{color:#8d6b2d;font-size:11px;letter-spacing:.14em;font-weight:700}
.invite-badge{margin-left:auto;border:1px solid #e7d7b3;border-radius:6px;
 background:#fbf6e9;color:#795d20;padding:5px 8px;font-size:10px;font-weight:700;letter-spacing:.06em}
h1{font-size:1.75rem;line-height:1.25;margin:0 0 12px;color:var(--dark)}
h2{font-size:1.15rem;margin:0 0 12px;color:var(--dark)}
.description{color:var(--muted);line-height:1.65;margin:0 0 26px}
.card{padding:27px 26px;background:white;border:1px solid var(--border);
 border-radius:14px;box-shadow:0 16px 50px #26344112;margin:16px 0}
.card p{color:#5c6872}
label{display:block;font-size:14px;font-weight:600;margin:18px 0 8px}
input{display:block;width:100%;border:1px solid #d4dbe1;border-radius:8px;padding:12px;
 color:#29323b;background:white;font:inherit}
input:focus-visible,button:focus-visible{outline:3px solid #c9a14b99;outline-offset:2px}
button{width:100%;display:block;border:0;border-radius:8px;margin-top:17px;
 background:#b68c36;color:#1d252b;font:inherit;font-weight:700;padding:12px 16px;cursor:pointer}
button.secondary{background:#f0f2f4;color:#36414a;border:1px solid #d9e0e5}
button:disabled{opacity:.55;cursor:wait}
.status:not(:empty){border:1px solid #e7d7b3;background:#fbf6e9;color:#5e4a26;
 border-radius:8px;padding:12px 15px;margin:0 0 14px;overflow-wrap:anywhere}
.status.error{border-color:#e6b9b8;background:#fff1f0;color:#8b2e2e}
.account-label{font-weight:600;overflow-wrap:anywhere}
.manual-key{overflow-wrap:anywhere;font-size:13px}
#invite-qr{display:block;max-width:100%;height:auto;background:white;padding:7px;margin-top:16px}
[hidden]{display:none!important}footer{text-align:center;color:#88939c;font-size:12px;margin-top:30px}
@media(max-width:540px){.card{padding:20px 18px}.invite-badge{font-size:9px}}


/* Password visibility control: shared UX pattern for all authentication forms. */
.password-input-wrap{position:relative;width:100%}
.password-input-wrap>input{padding-right:52px!important}
.password-visibility-toggle{
  position:absolute!important;right:6px!important;top:50%!important;transform:translateY(-50%)!important;
  width:40px!important;height:40px!important;min-width:40px!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:8px!important;background:transparent!important;color:#66727c!important;
  display:grid!important;place-items:center!important;box-shadow:none!important;cursor:pointer!important
}
.password-visibility-toggle:hover{background:#f1f3f5!important;color:#2f343a!important}
.password-visibility-toggle:focus-visible{outline:3px solid #c9a14b99!important;outline-offset:1px!important}
.password-visibility-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.password-visibility-toggle .password-eye-slash{display:none}
.password-visibility-toggle.is-visible .password-eye-slash{display:block}
.password-visibility-toggle.is-visible{color:#8d6b2d!important}

/* Reseller operational portal */
.invite-shell.reseller-open{width:min(960px,100%)}
.reseller-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.reseller-head h2{margin-bottom:4px}.reseller-head .account-label{margin:0}
.reseller-status{display:inline-flex;padding:6px 10px;border:1px solid #e5d3a7;border-radius:999px;background:#fbf6e9;color:#76591d;font-size:11px;font-weight:800;letter-spacing:.05em}
#invite-reseller-tools{display:grid;gap:18px;margin-top:22px}
.reseller-module{border:1px solid #e3e7ea;border-radius:12px;padding:18px;background:#fafbfc}
.module-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:6px}.module-head h3{margin:2px 0 0;font-size:1.08rem}.module-kicker{font-size:10px;font-weight:800;letter-spacing:.11em;color:#9a7429}.module-state{font-size:10px;font-weight:800;color:#76591d;background:#f7eed8;border-radius:999px;padding:5px 8px;text-align:center}
.reseller-module>p{font-size:13px;line-height:1.55;margin:6px 0 14px}.reseller-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}.reseller-grid label{margin:0;font-size:12px}.reseller-grid input,.reseller-grid select{margin-top:6px}
select{display:block;width:100%;border:1px solid #d4dbe1;border-radius:8px;padding:12px;color:#29323b;background:white;font:inherit}
select:focus-visible{outline:3px solid #c9a14b99;outline-offset:2px}
.module-feedback:not(:empty){margin-top:12px;padding:10px 12px;border-radius:8px;background:#eef7f2;color:#285c42;font-size:13px}.module-feedback.error{background:#fff1f0;color:#8b2e2e}
.module-blocker{padding:11px 13px;border-radius:8px;border:1px solid #e7d7b3;background:#fbf6e9;color:#6b5427;font-size:13px;margin-bottom:12px}
.record-list{display:grid;gap:8px;margin-top:18px}.record-list>strong{font-size:13px}.record-list>p{font-size:12px;color:#7a858e;margin:0}
.record-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e5e8eb;border-radius:9px;background:#fff;padding:10px 12px}.record-row>div{display:grid;gap:2px;min-width:0}.record-row strong{font-size:13px;overflow-wrap:anywhere}.record-row span{font-size:11px;color:#75818a;overflow-wrap:anywhere}.record-tag{flex:0 0 auto!important;border-radius:999px;background:#f4efdf;color:#74591f!important;padding:5px 8px;font-weight:700}
@media(max-width:700px){.reseller-head,.module-head{flex-direction:column}.reseller-grid{grid-template-columns:1fr}.record-row{align-items:flex-start;flex-direction:column}.record-tag{align-self:flex-start}}

/* Evidence vault */
.operation-acceptance{display:flex!important;align-items:flex-start;gap:10px;margin:16px 0 4px!important;padding:12px;border:1px solid #e6d7b3;border-radius:9px;background:#fffaf0;font-weight:500!important;line-height:1.45}
.operation-acceptance input{width:auto;flex:0 0 auto;margin:3px 0 0}
.evidence-row{align-items:flex-start}.evidence-row .evidence-hash{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;color:#8a949d}
.evidence-side{display:grid!important;gap:8px!important;justify-items:end}.evidence-download{width:auto!important;margin:0!important;padding:7px 10px!important;font-size:11px!important;background:#f0f2f4!important;border:1px solid #d9e0e5!important;color:#35414a!important}
@media(max-width:700px){.evidence-side{justify-items:start}.evidence-download{width:100%!important}}

/* Hierarchical governance and private documents */
.module-divider{height:1px;background:#e4e8eb;margin:18px 0}
.grant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
.grant-check,.rate-grant-row{display:flex!important;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid #dde3e7;border-radius:9px;background:#fff;font-weight:500!important}
.grant-check input,.rate-grant-row input{width:auto!important;flex:0 0 auto;margin:3px 0 0}
.rate-grant-list{max-height:340px;overflow:auto;display:grid;gap:7px;margin:10px 0 14px;padding-right:4px}
.pricing-rate-list{display:grid;gap:8px;margin:14px 0}
.pricing-rate-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;border:1px solid #dde3e7;border-radius:9px;background:#fff}
.pricing-rate-row>div:first-child{display:grid;gap:4px}.pricing-rate-row span{font-size:12px;color:#69757e}
.pricing-edit{display:flex;align-items:center;gap:7px;min-width:245px}.pricing-edit input{min-width:90px}.pricing-edit button{margin:0!important;width:auto!important;white-space:nowrap}
#reseller-onboarding-documents{margin-top:18px}
#invite-merchant .reseller-module{margin-top:18px}
@media(max-width:720px){.grant-grid{grid-template-columns:1fr}.pricing-rate-row{align-items:flex-start;flex-direction:column}.pricing-edit{width:100%;min-width:0}.pricing-edit input{flex:1}}

/* Reseller terms and acceptance */
.reseller-terms-list{display:grid;gap:10px;margin:14px 0}
.reseller-term-card{display:grid;gap:12px;padding:14px;border:1px solid #dde3e7;border-radius:10px;background:#fff}
.reseller-term-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.reseller-term-card-head>div{display:grid;gap:4px;min-width:0}
.reseller-term-card-head strong{line-height:1.35;overflow-wrap:anywhere}
.reseller-term-card-head span{font-size:12px;color:#6d7983}
.reseller-term-card-head button{width:auto!important;margin:0!important;white-space:nowrap}
.term-consent-row{display:flex!important;align-items:flex-start;gap:9px;padding:11px 12px;border:1px solid #e4e8eb;border-radius:9px;background:#fafbfc;font-weight:600!important}
.term-consent-row input{width:auto!important;flex:0 0 auto;margin:3px 0 0}
.reseller-term-audit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.reseller-term-audit>div{display:grid;gap:3px;padding:9px 10px;border:1px solid #e7eaed;border-radius:8px;background:#fafbfc;min-width:0}
.reseller-term-audit small{color:#74808a}
.reseller-term-audit strong{font-size:12px;overflow-wrap:anywhere}
#reseller-terms-state.accepted{background:#e8f6ee;color:#17633b}
.reseller-term-overlay{position:fixed;inset:0;z-index:300;background:#11192399;display:grid;place-items:center;padding:18px}
.reseller-term-dialog{width:min(920px,96vw);max-height:92vh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fff;border-radius:14px;border:1px solid #dfe4e8;box-shadow:0 22px 70px #10182040;overflow:hidden}
.reseller-term-dialog-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:18px 20px;border-bottom:1px solid #e6eaed}
.reseller-term-dialog-head>div{display:grid;gap:4px}
.reseller-term-dialog-head span{font-size:10px;font-weight:800;letter-spacing:.08em;color:#9a752c}
.reseller-term-dialog-head h3{margin:0;font-size:18px;line-height:1.3}
.reseller-term-dialog-head small{color:#77838c;overflow-wrap:anywhere}
.reseller-term-dialog-head>button{width:38px!important;height:38px!important;margin:0!important;padding:0!important;border-radius:9px!important;font-size:24px!important}
.reseller-term-dialog-body{margin:0;padding:20px;overflow:auto;white-space:pre-wrap;word-break:break-word;font:13px/1.65 Arial,sans-serif;color:#273039;background:#fafbfc}
.reseller-term-dialog-foot{display:flex;justify-content:flex-end;padding:14px 20px;border-top:1px solid #e6eaed;background:#fff}
.reseller-term-dialog-foot button{width:auto!important;margin:0!important}
@media(max-width:720px){.reseller-term-card-head{flex-direction:column}.reseller-term-card-head button{width:100%!important}.reseller-term-audit{grid-template-columns:1fr}.reseller-term-dialog{width:100%;max-height:94vh}}


/* Reseller workspace navigation V2 */
.invite-shell.reseller-open{width:min(1320px,100%)}
#invite-reseller.reseller-workspace{
  position:relative;display:grid;grid-template-columns:230px minmax(0,1fr);
  column-gap:22px;align-items:start;padding:0;background:transparent;border:0;box-shadow:none
}
#invite-reseller.reseller-workspace>.reseller-head{
  grid-column:1/-1;background:#fff;border:1px solid var(--border);border-radius:14px;
  padding:20px 22px;margin-bottom:16px;box-shadow:0 8px 28px #2634410d
}
#invite-reseller.reseller-workspace>.reseller-side-nav{
  grid-column:1;grid-row:2 / span 20;position:sticky;top:18px;
  background:linear-gradient(180deg,var(--brand-primary),#17191a);border-radius:14px;padding:14px 10px;
  min-height:520px;box-shadow:0 16px 38px #1e29331c
}
.reseller-side-title{display:grid;gap:3px;padding:7px 9px 13px;border-bottom:1px solid #ffffff18;margin-bottom:8px}
.reseller-side-title strong{color:#fff;font-size:13px}.reseller-side-title span{color:#aeb8bf;font-size:10px}
.reseller-side-nav nav{display:grid;gap:4px}
.reseller-side-link{
  width:100%!important;margin:0!important;padding:10px 11px!important;text-align:left!important;
  background:transparent!important;color:#d8e0e5!important;border:1px solid transparent!important;
  border-radius:8px!important;font-size:12px!important;font-weight:600!important
}
.reseller-side-link:hover{background:#ffffff10!important;color:#fff!important}
.reseller-side-link.active{background:color-mix(in srgb,var(--brand-accent) 24%,transparent)!important;border-color:color-mix(in srgb,var(--brand-accent) 48%,transparent)!important;color:#fff!important;box-shadow:inset 3px 0 0 var(--brand-accent)}
#invite-reseller.reseller-workspace>#invite-reseller-next,
#invite-reseller.reseller-workspace>#reseller-workspace-home,
#invite-reseller.reseller-workspace>#reseller-terms-module,
#invite-reseller.reseller-workspace>#reseller-onboarding-documents,
#invite-reseller.reseller-workspace>#invite-reseller-tools,
#invite-reseller.reseller-workspace>#invite-reseller-logout{
  grid-column:2
}
#invite-reseller.reseller-workspace>#invite-reseller-next{
  margin:0 0 12px;padding:12px 14px;background:#fff;border:1px solid #e5e9ec;border-radius:10px
}
#invite-reseller.reseller-workspace .reseller-module{display:none;margin:0}
#invite-reseller.reseller-workspace .reseller-module.workspace-active{display:block}
#invite-reseller.reseller-workspace #invite-reseller-tools:not([hidden]){display:block;margin:0}
#invite-reseller.reseller-workspace #invite-reseller-tools[hidden]{display:none!important}
#invite-reseller.reseller-workspace #invite-reseller-tools>.reseller-module{display:none}
#invite-reseller.reseller-workspace #invite-reseller-tools>.reseller-module.workspace-active{display:block}
#invite-reseller.reseller-workspace>#invite-reseller-logout{width:auto;justify-self:end;margin-top:14px}
.reseller-workspace-home{background:#fff!important}
.reseller-home-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0}
.reseller-home-kpi{display:grid;gap:5px;padding:14px;border:1px solid #e5e9ec;border-radius:10px;background:#fff}
.reseller-home-kpi small{font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:#76828a}
.reseller-home-kpi strong{font-size:21px;color:#26313a}.reseller-home-kpi span{font-size:10px;color:#7b868e}
.reseller-home-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.reseller-home-actions button{margin:0!important;background:#f7f8f9!important;border:1px solid #dfe4e7!important;color:#33404a!important;font-size:11px!important;padding:10px!important}
.merchant-onboarding-group,.merchant-onboarding-details,.merchant-onboarding-note{margin-top:17px;padding:14px;border:1px solid #e2e7ea;border-radius:10px;background:#fff}
.merchant-onboarding-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.merchant-onboarding-title strong{font-size:13px;color:#2d3942}.merchant-onboarding-title span{font-size:10px;color:#7b878f}
.merchant-onboarding-details summary{cursor:pointer;font-weight:750;color:#35414a}.merchant-onboarding-details summary span{font-weight:500;color:#88939b;font-size:11px}
.merchant-onboarding-details>p{font-size:12px;color:#69757e}
.merchant-onboarding-note{display:grid;gap:4px;background:#f8f3e8;border-color:#eadbb9}.merchant-onboarding-note strong{font-size:12px;color:#71571e}.merchant-onboarding-note span{font-size:11px;color:#6c6046}
.pricing-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:9px;margin:14px 0}
.pricing-flow>div{display:grid;gap:3px;padding:12px;border:1px solid #e2e7ea;border-radius:10px;background:#fff}
.pricing-flow small{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#f1e5c9;color:#795c1d;font-weight:800}
.pricing-flow strong{font-size:12px}.pricing-flow span{font-size:10px;color:#77838b}.pricing-flow>b{color:#a9853a;text-align:center}
.pricing-summary{display:grid;gap:9px;margin:14px 0}
.pricing-summary-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.pricing-summary-head strong{font-size:13px}.pricing-summary-head span{font-size:10px;color:#7b878f}
.pricing-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pricing-summary-card{display:grid;gap:4px;padding:10px 11px;border:1px solid #e2e7ea;border-radius:9px;background:#fff}
.pricing-summary-card strong{font-size:11px}.pricing-summary-card span,.pricing-summary-card small{font-size:9px;color:#78848c}
@media(max-width:980px){
 #invite-reseller.reseller-workspace{grid-template-columns:1fr}
 #invite-reseller.reseller-workspace>.reseller-side-nav{grid-column:1;grid-row:auto;position:static;min-height:0}
 #invite-reseller.reseller-workspace>#invite-reseller-next,
 #invite-reseller.reseller-workspace>#reseller-workspace-home,
 #invite-reseller.reseller-workspace>#reseller-terms-module,
 #invite-reseller.reseller-workspace>#reseller-onboarding-documents,
 #invite-reseller.reseller-workspace>#invite-reseller-tools,
 #invite-reseller.reseller-workspace>#invite-reseller-logout{grid-column:1}
 .reseller-side-nav nav{grid-template-columns:repeat(4,minmax(0,1fr))}
 .reseller-home-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .reseller-home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pricing-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
 .reseller-side-nav nav{grid-template-columns:repeat(2,minmax(0,1fr))}
 .reseller-home-kpis,.reseller-home-actions,.pricing-summary-grid{grid-template-columns:1fr}
 .pricing-flow{grid-template-columns:1fr}.pricing-flow>b{transform:rotate(90deg)}
 .merchant-onboarding-title,.pricing-summary-head{align-items:flex-start;flex-direction:column}
}

.merchant-list-side{display:grid!important;gap:6px!important;justify-items:end}
.merchant-dossier-progress{font-size:9px!important;color:#69757e!important;background:#eef2f4;border-radius:999px;padding:4px 7px;font-weight:700}
@media(max-width:700px){.merchant-list-side{justify-items:start}}


/* Merchant workspace navigation */
#invite-merchant.merchant-workspace{
  position:relative;display:grid;grid-template-columns:230px minmax(0,1fr);
  column-gap:22px;align-items:start;padding:0;background:transparent;border:0;box-shadow:none
}
#invite-merchant.merchant-workspace>.reseller-head{
  grid-column:1/-1;background:#fff;border:1px solid var(--border);border-radius:14px;
  padding:20px 22px;margin-bottom:16px;box-shadow:0 8px 28px #2634410d
}
#invite-merchant.merchant-workspace>.merchant-side-nav{
  grid-column:1;grid-row:2 / span 20;position:sticky;top:18px;min-height:420px
}
#invite-merchant.merchant-workspace>#invite-merchant-next,
#invite-merchant.merchant-workspace>#merchant-feature-summary,
#invite-merchant.merchant-workspace>#merchant-workspace-home,
#invite-merchant.merchant-workspace>#merchant-module-documents,
#invite-merchant.merchant-workspace>#merchant-module-pricing,
#invite-merchant.merchant-workspace>#invite-merchant-logout{
  grid-column:2
}
#invite-merchant.merchant-workspace>#invite-merchant-next,
#invite-merchant.merchant-workspace>#merchant-feature-summary{
  margin:0 0 12px
}
#invite-merchant.merchant-workspace .reseller-module{display:none;margin:0}
#invite-merchant.merchant-workspace .reseller-module.workspace-active{display:block}
#invite-merchant.merchant-workspace>#invite-merchant-logout{width:auto;justify-self:end;margin-top:14px}
.merchant-workspace-home{background:#fff!important}
@media(max-width:980px){
 #invite-merchant.merchant-workspace{grid-template-columns:1fr}
 #invite-merchant.merchant-workspace>.merchant-side-nav{grid-column:1;grid-row:auto;position:static;min-height:0}
 #invite-merchant.merchant-workspace>#invite-merchant-next,
 #invite-merchant.merchant-workspace>#merchant-feature-summary,
 #invite-merchant.merchant-workspace>#merchant-workspace-home,
 #invite-merchant.merchant-workspace>#merchant-module-documents,
 #invite-merchant.merchant-workspace>#merchant-module-pricing,
 #invite-merchant.merchant-workspace>#invite-merchant-logout{grid-column:1}
}


/* CMPR UX simplification 2026-11-10 */
#invite-reseller.reseller-workspace,
#invite-reseller.reseller-workspace>*,
#invite-reseller.reseller-workspace .reseller-module,
#invite-reseller.reseller-workspace .reseller-grid,
#invite-reseller.reseller-workspace .pricing-rate-row,
#invite-reseller.reseller-workspace .record-row{min-width:0;max-width:100%}
#invite-reseller.reseller-workspace .reseller-module{overflow:hidden}
#invite-reseller.reseller-workspace input,
#invite-reseller.reseller-workspace select,
#invite-reseller.reseller-workspace button,
#invite-reseller.reseller-workspace label{max-width:100%;box-sizing:border-box}
#invite-reseller.reseller-workspace strong,
#invite-reseller.reseller-workspace span,
#invite-reseller.reseller-workspace p{overflow-wrap:anywhere}

.merchant-stepper{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0}
.merchant-step{display:flex!important;align-items:center;gap:8px;width:100%!important;margin:0!important;padding:10px 11px!important;background:#f5f7f8!important;border:1px solid #e0e5e8!important;color:#53606a!important;border-radius:9px!important;text-align:left!important}
.merchant-step small{display:grid;place-items:center;width:23px;height:23px;flex:0 0 23px;border-radius:50%;background:#e4e9ec;color:#65717a;font-size:10px;font-weight:800}
.merchant-step span{font-size:11px;font-weight:700}
.merchant-step.active{background:#fbf5e8!important;border-color:#d7b663!important;color:#6c521d!important}
.merchant-step.active small{background:#d2aa4e;color:#fff}
.merchant-step-panel{display:none;padding:16px;border:1px solid #e4e8eb;border-radius:11px;background:#fff}
.merchant-step-panel.active{display:block}
.merchant-step-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:14px}
.merchant-step-actions button{width:auto!important;margin:0!important;min-width:120px}
.merchant-modality-box{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding:12px;border:1px solid #e4e8eb;border-radius:9px;background:#fafbfc}
.merchant-modality-box>strong{width:100%;font-size:11px;color:#46535c}
.merchant-modality-box label{display:flex!important;align-items:center;gap:6px;width:auto!important;margin:0!important;padding:6px 8px;border:1px solid #e1e6e9;border-radius:999px;background:#fff;font-size:10px!important;font-weight:600!important}
.merchant-modality-box input{width:auto!important;margin:0!important}

.pricing-simple-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:15px 0}
.pricing-simple-flow>div{display:grid;grid-template-columns:26px minmax(0,1fr);column-gap:8px;align-items:center;padding:11px;border:1px solid #e1e6e9;border-radius:10px;background:#f8fafb}
.pricing-simple-flow small{grid-row:1/3;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e8ecef;color:#5f6a72;font-weight:800}
.pricing-simple-flow strong{font-size:11px;color:#34414a}.pricing-simple-flow span{font-size:9px;color:#7c878e}
.pricing-simple-flow>div.active{background:#fbf6e9;border-color:#dfc987}.pricing-simple-flow>div.active small{background:#c99d3f;color:#fff}

.pricing-simple-card{margin-top:12px;padding:15px;border:1px solid #e4e8eb;border-radius:11px;background:#fff}
.pricing-simple-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:11px}
.pricing-simple-head>div{display:grid;gap:2px}.pricing-simple-head small{font-size:9px;font-weight:800;letter-spacing:.08em;color:#a17d34}.pricing-simple-head h4{margin:0;font-size:14px;color:#2e3a43}
.pricing-simple-head>span{font-size:10px;color:#7a858d;max-width:360px;text-align:right}
.pricing-compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.pricing-source-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #e1e6e9;border-radius:9px;background:#f8fafb}
.pricing-source-topline>div{display:grid;gap:3px;min-width:0}.pricing-source-topline strong{font-size:12px}.pricing-source-topline span{font-size:10px;color:#75818a}
.pricing-ok{flex:0 0 auto!important;border-radius:999px;padding:5px 8px!important;background:#e9f6ee!important;color:#17633b!important;font-weight:800!important}
.pricing-example{margin:10px 0 12px;padding:9px 11px;border-radius:8px;background:#f7f3e9;color:#68572e;font-size:11px}
.pricing-plan-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.pricing-plan-overview>div{display:grid;gap:4px;padding:11px;border:1px solid #e2e7ea;border-radius:9px;background:#fafbfc;min-width:0}
.pricing-plan-overview small{font-size:9px;color:#78848c;text-transform:uppercase;letter-spacing:.05em}
.pricing-plan-overview strong{font-size:13px;color:#2f3b44}.pricing-plan-overview span{font-size:10px;color:#7b868e}
.pricing-empty-overview{grid-column:1/-1!important}
.pricing-advanced-details{margin-top:10px;border:1px solid #e1e6e9;border-radius:9px;background:#fbfcfc;overflow:hidden}
.pricing-advanced-details summary{cursor:pointer;padding:11px 12px;font-size:11px;font-weight:750;color:#3f4c55;list-style:none}
.pricing-advanced-details summary::-webkit-details-marker{display:none}
.pricing-advanced-details summary:after{content:'+';float:right;color:#8d7338;font-weight:900}
.pricing-advanced-details[open] summary:after{content:'–'}
.pricing-advanced-details>p{margin:0;padding:0 12px 8px;font-size:10px;color:#78838b}
.pricing-advanced-details .pricing-rate-list{margin:0;padding:0 10px 10px;max-height:480px;overflow:auto}
.pricing-rate-row{min-width:0}
.pricing-rate-row>div:first-child{min-width:0}
.pricing-edit{min-width:0!important;flex:0 0 auto}
.pricing-edit input{width:90px!important;min-width:0!important}

@media(max-width:980px){
 .merchant-stepper{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pricing-simple-flow{grid-template-columns:1fr}
 .pricing-plan-overview{grid-template-columns:1fr}
 .pricing-compact-grid{grid-template-columns:1fr}
 .pricing-simple-head{flex-direction:column}
 .pricing-simple-head>span{text-align:left;max-width:none}
}
@media(max-width:620px){
 .merchant-stepper{grid-template-columns:1fr}
 .merchant-step-actions{display:grid;grid-template-columns:1fr}
 .merchant-step-actions button{width:100%!important}
 .pricing-source-topline{align-items:flex-start;flex-direction:column}
}

.inline-field-action{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}
.inline-field-action .field-action{width:auto!important;margin:0!important;padding:9px 11px!important;white-space:nowrap;font-size:10px!important}
.field-helper{display:block;margin-top:5px;font-size:9px;color:#7c878f;font-weight:500}
.same-holder-option{display:flex!important;align-items:center;gap:8px;grid-column:1/-1;padding:10px 11px;border:1px solid #e2e7ea;border-radius:9px;background:#fafbfc;font-weight:650!important}
.same-holder-option input{width:auto!important;margin:0!important;flex:0 0 auto}
.readonly-field{background:#f1f3f4!important;color:#5f6a72!important}
@media(max-width:620px){.inline-field-action{grid-template-columns:1fr}.inline-field-action .field-action{width:100%!important}}


/* Merchant access flow — permissions -> pricing -> acceptance */
.merchant-access-step-card{display:grid;gap:12px;margin-top:14px;padding:15px;border:1px solid #e1e6e9;border-radius:12px;background:#fff}
.merchant-access-step-head{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center}
.merchant-access-step-head>div{display:grid;gap:3px;min-width:0}
.merchant-access-step-head strong{font-size:13px;color:#2f3b44}
.merchant-access-step-head small{font-size:10px;color:#78838b}
.merchant-access-step-number{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#efe5c9;color:#7a5a18;font-weight:800}
.merchant-access-state{border-radius:999px;padding:5px 9px;background:#f1f3f5;color:#66727b;font-size:10px;font-weight:800;white-space:nowrap}
.merchant-access-state.saved,.merchant-access-state.ready{background:#e8f6ee;color:#17633b}
.merchant-access-state.blocked{background:#fff1f0;color:#8b2e2e}
.merchant-access-step-card>button{margin:0!important}
#merchant-sale-plan-select{margin-top:6px}
#merchant-feature-status:empty,#merchant-governance-status:empty,#merchant-commercial-status:empty{display:none}
@media(max-width:720px){
 .merchant-access-step-head{grid-template-columns:32px minmax(0,1fr)}
 .merchant-access-state{grid-column:2;justify-self:start}
}

.grant-check>span{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}.grant-saved{display:inline-block;padding:2px 6px;border-radius:999px;background:#e8f6ee;color:#17633b;font-size:9px;font-weight:800}

body[data-commercial-brand] button:not(.secondary):not(.reseller-side-link):not(.merchant-step):not(.password-visibility-toggle){background:var(--brand-accent);color:var(--brand-primary)}
body[data-commercial-brand] .module-kicker,body[data-commercial-brand] .pricing-simple-head small{color:var(--brand-accent)}
body[data-commercial-brand] .module-state{color:var(--brand-primary);background:color-mix(in srgb,var(--brand-accent) 18%,white)}
body[data-commercial-brand] .reseller-status{border-color:var(--brand-accent);color:var(--brand-primary)}
body[data-commercial-brand] .invite-header{padding:12px 14px;border-radius:12px;background:var(--brand-surface)}
body[data-commercial-brand] .invite-header strong{color:var(--brand-primary)}
