/* Scoped affiliate marketplace demo. No global WP or REME styles altered. */
.rmsa-app .rmaf{--af-blue:#245ce8;--af-ink:#132344;--af-light:#f5f8ff;--af-border:#e0e8f5;color:var(--af-ink);font:inherit;max-width:100%;margin:18px 0 30px}
.rmaf *{box-sizing:border-box}.rmaf-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:30px;background:linear-gradient(105deg,#172e64,#1a62b4 72%,#287fa8);border-radius:19px;color:white;box-shadow:0 12px 32px #173f8224}
.rmaf-heading h2{font-size:clamp(24px,3vw,34px);font-weight:850;letter-spacing:-.035em;margin:7px 0 6px;color:#fff}.rmaf-heading p{margin:0;color:#d9e9ff;font-size:14px;max-width:650px}.rmaf-kicker{color:#b4e7ff;letter-spacing:.11em;font-size:11px;font-weight:800}.rmaf-demo-state{border:1px solid #ffffff55;border-radius:999px;background:#ffffff14;padding:10px 14px;font-weight:750;font-size:11px;color:#fff}.rmaf-status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:#52e7b9;margin-inline-end:8px}
.rmaf-tabs{display:flex;gap:9px;margin:20px 0;overflow:auto;padding-bottom:9px;scrollbar-width:thin}.rmaf-tabs a{white-space:nowrap;text-decoration:none!important;color:#475a7d!important;background:white;border:1px solid var(--af-border);border-radius:11px;padding:11px 13px;font-size:12px;font-weight:720}.rmaf-tabs a:hover,.rmaf-tabs a:focus-visible,.rmaf-tabs a.is-active{background:#e7efff;color:#1f54c9!important;border-color:#bed0fc}
.rmaf-tools{display:flex;align-items:end;flex-wrap:wrap;gap:12px;background:#fff;border:1px solid var(--af-border);border-radius:15px;padding:16px;margin-bottom:15px}.rmaf-tools label{font-size:12px;font-weight:800;color:#596886;display:grid;gap:7px;flex:1 1 160px;min-width:0}.rmaf-tools input,.rmaf-tools select{border:1px solid #d6e0f3!important;background:#fff!important;color:#1d315a!important;border-radius:9px!important;height:41px!important;min-width:0;max-width:100%;width:100%;padding:7px 11px!important;font:inherit!important;font-size:13px!important;box-shadow:none!important}
.rmaf button{cursor:pointer;transition:background .15s ease,border .15s ease}.rmaf-reset,.rmaf-actions button{border:1px solid #b9cbed!important;color:#2459bb!important;background:#f5f8ff!important;border-radius:10px!important;padding:11px 14px!important;font:inherit!important;font-size:12px!important;font-weight:750!important;min-height:40px}.rmaf-reset:hover,.rmaf-actions button:hover{background:#dfeafd!important}.rmaf-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}.rmaf-metric{padding:17px;border:1px solid var(--af-border);border-radius:15px;background:#fff;box-shadow:0 5px 20px #234c8220;min-width:0}.rmaf-metric span{display:block;font-size:12px;color:#62728f;font-weight:720;margin:0 0 8px}.rmaf-metric strong{font-size:clamp(19px,2.2vw,29px);color:#142f61;font-weight:830;letter-spacing:-.04em;overflow-wrap:anywhere}.rmaf-metric small{color:#378568;font-size:11px;display:block;margin-top:9px}
.rmaf-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,280px);gap:16px;align-items:start}.rmaf-main,.rmaf-right{min-width:0}.rmaf-board,.rmaf-insight{background:white;border:1px solid var(--af-border);border-radius:16px;box-shadow:0 5px 22px #234c8220;padding:17px}.rmaf-board-head{display:flex;gap:12px;align-items:start;justify-content:space-between;flex-wrap:wrap}.rmaf-board h3,.rmaf-insight h3{font-size:17px;color:#173360;margin:3px 0 6px;font-weight:830}.rmaf-board p,.rmaf-insight p{font-size:12px;color:#71809b;margin:4px 0 14px;line-height:1.7}.rmaf-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.rmaf-count{font-size:11px;font-weight:750;color:#7284a6}.rmaf-chart{display:flex;align-items:end;height:100px;gap:8px;margin:16px 0 18px;border-bottom:1px solid #e4eafa;padding:0 4px;overflow:hidden}.rmaf-bar{display:block;flex:1 1 0;min-width:7px;max-width:60px;border-radius:7px 7px 0 0;background:linear-gradient(180deg,#5aa7f7,#245ed9);height:var(--height);position:relative}.rmaf-bar:hover{background:linear-gradient(180deg,#2cd6b4,#179b90)}
.rmaf-scroll{max-width:100%;overflow:auto;max-height:650px}.rmaf-table{border-collapse:collapse;width:100%;font-size:12px;text-align:start;white-space:nowrap}.rmaf-table th{color:#6d7c99;font-weight:800;padding:13px 11px;background:#f5f8ff;border-bottom:1px solid var(--af-border);text-align:start;position:sticky;top:0;z-index:1}.rmaf-table td{padding:13px 11px;border-bottom:1px solid #eff3fa;color:#2d4065}.rmaf-table tr[data-row] {cursor:pointer}.rmaf-table tr[data-row]:hover,.rmaf-table tr.is-selected{background:#eef4ff}.rmaf-table tr[data-row]:focus-visible{outline:2px solid #2563eb;outline-offset:-3px}.rmaf-pill{display:inline-block;border-radius:999px;padding:4px 9px;background:#e7f1ff;color:#2555aa;font-size:11px;font-weight:750}.rmaf-pill.is-good{background:#e6f7ef;color:#13734c}.rmaf-pill.is-bad{background:#ffeced;color:#be3f53}.rmaf-pill.is-warn{background:#fff5df;color:#aa731b}.rmaf-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 3px 0;font-size:12px;color:#71809b}.rmaf-pagination button{padding:7px 13px;background:#f3f7fd;border:1px solid #d4e1f4;border-radius:8px;color:#1f54ba;font-weight:800}.rmaf-pagination button:disabled{opacity:.4;cursor:default}
.rmaf-right{display:grid;gap:15px}.rmaf-detail-row{border-bottom:1px solid #edf1f7;padding:9px 0;font-size:12px}.rmaf-detail-row b{display:block;color:#74839e;font-size:11px;margin-bottom:5px}.rmaf-detail-row span{overflow-wrap:anywhere;color:#193564}.rmaf-download{display:block;text-decoration:none!important;border-radius:10px;padding:12px;background:#eaf0ff;color:#245bb9!important;font-size:12px;font-weight:800}.rmaf-screenreader-status{color:#6b7c99;font-size:12px;margin:9px 0}.rmaf-rtl .rmaf-table{text-align:right}.rmaf-rtl .rmaf-table th{text-align:right}
@media(max-width:1050px){.rmaf-content{grid-template-columns:minmax(0,1fr)}.rmaf-right{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.rmaf-heading{padding:20px}.rmaf-demo-state{font-size:10px}.rmaf-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.rmaf-metric{padding:12px}.rmaf-tools{padding:12px}.rmaf-tools label{flex:1 1 100%}.rmaf-reset{width:100%}.rmaf-right{grid-template-columns:minmax(0,1fr)}.rmaf-board{padding:11px}.rmaf-table{font-size:11px}.rmaf-table th,.rmaf-table td{padding:11px 8px}.rmaf-tabs a{padding:10px}}
@media(prefers-reduced-motion:reduce){.rmaf button,.rmaf-tabs a{transition:none}}
