/* EDDM Funnel — scoped styles (.eddm-fn). Step 1 palette ported from the old eddm-payment funnel. */
.eddm-fn{--b:#1d4ed8;--bd:#1e40af;--ln:#e2e8f0;--mut:#64748b;--ink:#0f172a;
  /* old funnel "route list" palette */
  --rl-bg:#f5fdff;--rl-accent:#0891b2;--rl-navy:#123b5d;--rl-muted:#52687d;--rl-border:#b9d6e2;
  --rl-sel:#e6f6ff;--rl-cyan:#00aeef;--rl-cyan-d:#008fc5;--rl-teal:#0f766e;
  font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--ink);max-width:1100px;margin:0 auto}
.eddm-fn *{box-sizing:border-box}
.eddm-fn h2{font-size:20px;margin:0 0 6px}
.eddm-fn .eddm-fn-hint{color:var(--rl-muted);font-size:14px}
.eddm-fn .eddm-fn-hint.err{color:#d63638}

/* stepper */
.eddm-fn-steps{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:0 0 16px;font-size:13px}
.eddm-fn-steps li{flex:1 1 auto;text-align:center;padding:8px 6px;border-radius:8px;background:#f1f5f9;color:var(--mut);white-space:nowrap;border:1px solid var(--ln)}
.eddm-fn-steps li.is-active{background:var(--b);color:#fff;border-color:var(--b);font-weight:700}
.eddm-fn-steps li.is-done{background:#dcfce7;color:#166534;border-color:#bbf7d0}
/* completed/back steps are clickable navigation (breadcrumb-style) */
.eddm-fn-steps li.is-clickable{cursor:pointer}
.eddm-fn-steps li.is-clickable:hover{border-color:var(--b);color:var(--b);box-shadow:0 0 0 2px rgba(29,78,216,.18);text-decoration:underline}
.eddm-fn-steps li.is-done.is-clickable:hover{color:#166534;border-color:#16a34a}

/* layout */
.eddm-fn-body{display:grid;grid-template-columns:1fr 320px;gap:20px}
@media (max-width:780px){.eddm-fn-body{grid-template-columns:1fr}.eddm-fn-summary{order:-1}}
.eddm-fn-main{min-width:0}
/* Step 1 runs full width (no side rail — like the old funnel); the totals + per-ZIP headers are the summary. */
.eddm-fn[data-step="1"] .eddm-fn-body{grid-template-columns:1fr}
.eddm-fn[data-step="1"] .eddm-fn-summary{display:none}

/* ===== Step 1 — controls (one row: ZIP | Find | Clear | Residential at end) ===== */
.eddm-fn-zipform{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 14px}
.eddm-fn-zip{flex:1 1 170px;min-width:140px;max-width:230px;height:44px;border:1px solid #9fc4d4;border-radius:6px;padding:0 12px;font-size:16px;background:#fff}
.eddm-fn-btn{height:44px;border:1px solid var(--rl-cyan);border-radius:6px;background:var(--rl-cyan);color:#fff;font-weight:800;font-size:15px;padding:0 20px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:2px;white-space:nowrap;transition:background .15s,color .15s,border-color .15s}
.eddm-fn-btn:hover:not(:disabled){background:var(--rl-cyan-d);border-color:var(--rl-cyan-d)}
.eddm-fn-btn:disabled{cursor:default}
.eddm-fn-btn.is-working{background:var(--rl-cyan-d);border-color:var(--rl-cyan-d);opacity:.9}
.eddm-fn-btn.is-done{background:#fff;color:var(--rl-muted);border-color:#9fc4d4}
.eddm-fn-btn .eddm-fn-spin{border-color:rgba(255,255,255,.45);border-top-color:#fff;margin-right:4px}
.eddm-fn-clear{height:44px;border:1px solid #9fc4d4;border-radius:6px;background:#fff;color:var(--rl-navy);font-weight:800;font-size:15px;padding:0 16px;cursor:pointer;white-space:nowrap}
.eddm-fn-clear:hover{background:#f2fbff}
.eddm-fn-resonly{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--rl-navy);cursor:pointer;white-space:nowrap;padding-left:4px}
.eddm-fn-resonly-note{color:var(--rl-muted)}
.eddm-fn-resonly input{width:18px;height:18px}
/* More prominent before any ZIP is entered (it's easy to miss in the empty state). */
.eddm-fn:not(.has-routes) .eddm-fn-resonly{font-size:15px;font-weight:700}
.eddm-fn:not(.has-routes) .eddm-fn-resonly input{width:20px;height:20px}

/* status bar */
.eddm-fn-status{margin:0 0 10px;padding:11px 12px;border-radius:7px;background:#ecfdf5;border:2px solid #86efac;color:#166534;font-weight:800;font-size:.9rem;line-height:1.35}
.eddm-fn-status.is-loading{background:#fff8e1;border-color:#f6c453;color:#7a4a00}
.eddm-fn-status.is-error{background:#fee2e2;border-color:#fca5a5;color:#991b1b}

/* sort row — a clean control strip (not a data box) */
.eddm-fn-sortbar{display:flex;align-items:center;gap:10px;margin:0 0 4px;flex-wrap:wrap}
.eddm-fn-sortlabel{font-weight:800;color:var(--rl-muted);font-size:13px}
.eddm-fn-sortbar button{cursor:pointer;border:1px solid var(--rl-border);background:#fff;color:var(--rl-navy);border-radius:999px;padding:6px 14px;font-size:12.5px;font-weight:700}
.eddm-fn-sortbar button.is-active{background:var(--rl-navy);color:#fff;border-color:var(--rl-navy)}

/* stat boxes — framed as one shaded "your selection" card, color-coded */
.eddm-fn-routestats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 12px;padding:12px;background:var(--rl-bg);border:1px solid var(--rl-border);border-radius:12px}
.eddm-fn-rstat{background:#fff;border:1px solid var(--rl-border);border-top-width:3px;border-radius:8px;padding:10px 6px;text-align:center}
.eddm-fn-rstat strong{display:block;font-size:1.3rem;color:var(--rl-navy);line-height:1}
.eddm-fn-rstat span{display:block;font-size:.66rem;text-transform:uppercase;color:var(--rl-muted);font-weight:800;letter-spacing:.02em;margin-top:4px}
.eddm-fn-rstat:nth-child(1){border-top-color:var(--rl-navy)}
.eddm-fn-rstat:nth-child(2){border-top-color:var(--rl-teal)}
.eddm-fn-rstat:nth-child(3){border-top-color:var(--rl-cyan-d)}
.eddm-fn-rstat:nth-child(2) strong{color:var(--rl-teal)}
.eddm-fn-rstat:nth-child(3) strong{color:var(--rl-cyan-d)}

/* full-width sort + stats, then list | map side-by-side (desktop); stacked (narrow) */
.eddm-fn-r1{display:grid;grid-template-columns:1fr;gap:12px;position:relative}
@media (min-width:1000px){
  .eddm-fn-r1{grid-template-columns:1fr 1fr;grid-template-areas:"sort sort" "stats stats" "list map";column-gap:18px;row-gap:10px;align-items:start}
  .eddm-fn-r1 .eddm-fn-sortbar{grid-area:sort;margin:0}
  .eddm-fn-r1 .eddm-fn-routestats{grid-area:stats;margin:0}
  .eddm-fn-r1 .eddm-fn-routes{grid-area:list;max-height:520px}
  .eddm-fn-r1 .eddm-fn-map{grid-area:map}
}
/* empty state (no ZIP yet): map full-width with a prompt, no goofy empty list box */
.eddm-fn[data-step="1"]:not(.has-routes) .eddm-fn-routes{display:none}
.eddm-fn[data-step="1"]:not(.has-routes) .eddm-fn-r1{grid-template-columns:1fr;grid-template-areas:"map"}
.eddm-fn-mapprompt{display:none}
.eddm-fn[data-step="1"]:not(.has-routes) .eddm-fn-mapprompt{display:block;position:absolute;top:14px;left:50%;transform:translateX(-50%);z-index:450;pointer-events:none;max-width:88%;text-align:center;background:rgba(255,255,255,.96);border:1px solid var(--rl-border);box-shadow:0 3px 14px rgba(8,68,93,.2);border-radius:999px;padding:9px 18px;font-weight:700;font-size:13.5px;color:var(--rl-navy)}

/* route list */
.eddm-fn-routes{max-height:520px;overflow:auto;border:1px solid var(--rl-border);border-radius:8px;background:#fff;scrollbar-width:thin;scrollbar-color:var(--rl-cyan) #e6f2f7}
.eddm-fn-routes::-webkit-scrollbar{width:11px}
.eddm-fn-routes::-webkit-scrollbar-track{background:#e6f2f7}
.eddm-fn-routes::-webkit-scrollbar-thumb{background:var(--rl-cyan);border-radius:7px;border:3px solid #e6f2f7}
.eddm-fn-routes::-webkit-scrollbar-thumb:hover{background:var(--rl-cyan-d)}
.eddm-fn-zgroup{border-bottom:1px solid var(--rl-border)}
.eddm-fn-zhead{display:flex;align-items:center;gap:10px;padding:9px 12px;background:#eef7fb;border-bottom:1px solid #e2eef4;position:sticky;top:0;z-index:1}
.eddm-fn-zname{font-weight:800;color:var(--rl-navy);font-size:13.5px}
.eddm-fn-zmeta{color:var(--rl-muted);font-size:12px}
.eddm-fn-zacts{margin-left:auto;display:flex;gap:6px}
.eddm-fn-zacts button{cursor:pointer;border:0;border-radius:6px;padding:3px 9px;font-size:12px;font-weight:700;background:#dceefa;color:var(--rl-accent)}
.eddm-fn-zacts .eddm-fn-zremove{background:#fee2e2;color:#b91c1c}
/* route rows = a table: [check+dot] · Route · Homes · Median income, with one header row per ZIP */
.eddm-fn-route,.eddm-fn-rhead{display:grid;grid-template-columns:44px 1fr 76px 116px;align-items:center;column-gap:8px;padding:10px 12px}
.eddm-fn-rhead{background:#f6fbfd;border-bottom:1px solid #e2eef4;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:var(--rl-muted)}
.eddm-fn-rhead .rcol-homes,.eddm-fn-rhead .rcol-income{text-align:right}
.eddm-fn-route{border-bottom:1px solid #e2eef4;cursor:pointer;margin:0}
.eddm-fn-route:last-child{border-bottom:0}
.eddm-fn-route:hover{background:#f2fbff}
.eddm-fn-route.sel{background:var(--rl-sel);box-shadow:inset 3px 0 0 var(--rl-cyan)}
.eddm-fn-rcol{min-width:0;overflow:hidden;text-overflow:ellipsis}
.rcol-check{display:flex;align-items:center;gap:6px;overflow:visible}
.eddm-fn-rcb{width:18px;height:18px;flex:none;margin:0}
.eddm-fn-rdot{width:10px;height:10px;border-radius:50%;flex:none}
.rcol-id{font-weight:800;color:var(--rl-navy);font-size:13.5px;white-space:nowrap}
.rcol-homes{text-align:right;font-weight:800;color:var(--rl-teal);font-size:14px;white-space:nowrap}
.rcol-income{text-align:right;font-size:12.5px;color:var(--rl-muted);white-space:nowrap}
@media (max-width:520px){
  .eddm-fn-route,.eddm-fn-rhead{grid-template-columns:38px 1fr 64px 92px;column-gap:6px;padding:9px 10px}
  .rcol-income{font-size:11.5px}
}

/* map (with header bar) */
.eddm-fn-mapwrap{border:1px solid var(--rl-border);border-radius:8px;overflow:hidden;background:#fff}
.eddm-fn-maphead{display:flex;align-items:center;gap:8px;padding:9px 12px;background:#eef7fb;border-bottom:1px solid #e2eef4;font-size:12.5px;color:var(--rl-navy)}
.eddm-fn-maptitle{font-weight:800}
.eddm-fn-mapcounts{margin-left:auto;color:var(--rl-muted)}
.eddm-fn-map{height:520px;border:1px solid var(--rl-border);border-radius:8px}
/* Mobile-only caption so the map below the list is discoverable (desktop shows it side-by-side). */
.eddm-fn-maplabel{display:none}
@media (max-width:999px){
  .eddm-fn[data-step="1"].has-routes .eddm-fn-maplabel{display:block;margin:4px 0 -4px;font-size:13px;font-weight:700;color:var(--rl-navy)}
  .eddm-fn-map{height:340px}
}
.eddm-fn-rlabel{background:transparent;border:0;box-shadow:none;padding:0;margin:0;color:#0f172a;font-weight:800;font-size:11px;text-shadow:0 0 3px #fff,0 0 3px #fff,0 0 4px #fff,0 0 4px #fff}
.eddm-fn-rlabel:before,.eddm-fn-rlabel:after{display:none !important}
.eddm-fn [hidden]{display:none !important}

/* step 2 dates / step 3 sizes — touch-friendly chips */
.eddm-fn-datewrap{display:flex;flex-wrap:wrap;gap:8px}
.eddm-fn-date,.eddm-fn-size{cursor:pointer;border:1px solid #cbd5e1;background:#fff;border-radius:10px;padding:12px 16px;font-size:15px;font-weight:600;color:var(--ink);min-height:48px}
.eddm-fn-date.sel,.eddm-fn-size.sel{border-color:var(--b);background:#eff6ff;color:var(--bd);box-shadow:0 0 0 2px rgba(29,78,216,.15)}
.eddm-fn-sizes{display:flex;flex-wrap:wrap;gap:10px}
.eddm-fn-size{flex:1 1 160px;text-align:center}

/* step 2 — target delivery date calendar (framed card, like the original) */
.eddm-fn-calcard{max-width:412px;border:1.5px solid var(--rl-accent);border-radius:14px;padding:18px 20px;background:#fff;box-shadow:0 4px 18px rgba(8,145,178,.10)}
.eddm-fn-calcard h2{color:var(--rl-accent)}
.eddm-fn-calsub{margin:-2px 0 14px;color:var(--rl-muted)}
/* once a date is picked, the card collapses to just the chosen-date row (drop header/subtitle/frame) */
.eddm-fn-calcard.is-collapsed{border:0;padding:0;background:none;box-shadow:none;max-width:460px}
.eddm-fn-calcard.is-collapsed h2,.eddm-fn-calcard.is-collapsed .eddm-fn-calsub{display:none}
.eddm-fn-dates{max-width:none}
.eddm-fn-calhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.eddm-fn-calmonth{font-weight:700;color:var(--rl-navy);font-size:16px}
.eddm-fn-calnav{width:34px;height:34px;border:1px solid var(--rl-border);background:#fff;border-radius:8px;color:var(--rl-accent);font-size:20px;line-height:1;cursor:pointer}
.eddm-fn-calnav:hover:not(:disabled){background:var(--rl-sel)}
.eddm-fn-calnav:disabled{opacity:.35;cursor:default}
.eddm-fn-caldow{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-bottom:5px}
.eddm-fn-caldow span{text-align:center;font-size:11px;font-weight:600;color:var(--rl-muted);text-transform:uppercase;letter-spacing:.03em}
.eddm-fn-calgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.eddm-fn-cd{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:8px;background:transparent;font-size:14px;color:#cbd5e1;cursor:default;padding:0}
.eddm-fn-cd.empty{border:none}
.eddm-fn-cd.avail{color:var(--rl-navy);font-weight:700;background:var(--rl-sel);border-color:var(--rl-border);cursor:pointer}
.eddm-fn-cd.avail:hover{background:var(--rl-cyan);color:#fff;border-color:var(--rl-cyan)}
.eddm-fn-cd.sel{background:var(--rl-cyan);color:#fff;border-color:var(--rl-cyan-d);box-shadow:0 0 0 2px var(--rl-cyan-d)}
.eddm-fn-datesel{display:flex;align-items:center;gap:12px;padding:10px 14px;background:var(--rl-sel);border:1px solid var(--rl-border);border-radius:10px}
.eddm-fn-datesel-lbl{font-size:14px;font-weight:700;color:var(--rl-navy)}
.eddm-fn-datechange{margin-left:auto;border:1px solid var(--rl-accent);background:#fff;color:var(--rl-accent);border-radius:8px;padding:6px 14px;font-weight:600;cursor:pointer}
.eddm-fn-datechange:hover{background:var(--rl-accent);color:#fff}

/* nav */
.eddm-fn-nav{display:flex;justify-content:space-between;gap:10px;margin-top:18px}
.eddm-fn-nav .eddm-fn-next{margin-left:auto}
.eddm-fn-next,.eddm-fn-back{cursor:pointer;border:0;border-radius:8px;padding:11px 18px;font-size:15px;font-weight:600;background:var(--b);color:#fff}
.eddm-fn-next:hover{background:var(--bd)}
.eddm-fn-next:disabled{background:#cbd5e1;cursor:not-allowed}
.eddm-fn-back{background:#e2e8f0;color:#0f172a}

/* summary (Steps 2-5) */
.eddm-fn-summary{background:#f8fafc;border:1px solid var(--ln);border-radius:12px;padding:14px 16px;align-self:start}
.eddm-fn-summary h3{margin:0 0 10px;font-size:15px}
.eddm-fn-summary dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:6px 12px}
.eddm-fn-summary dt{color:var(--mut);font-size:13px}
.eddm-fn-summary dd{margin:0;text-align:right;font-weight:600;font-size:13.5px}
/* "Mailing to" spans full width; one numbered row per route in pipe "cell" format */
.eddm-fn-summary dl dt:first-of-type{grid-column:1 / -1;margin-bottom:-3px}
.eddm-fn-summary .eddm-fn-sum-zip{grid-column:1 / -1;text-align:left;font-size:11.5px;line-height:1.45;color:#334155;margin:2px 0 8px;padding:0 0 8px;border-bottom:1px dashed var(--ln);max-height:230px;overflow:auto}
.eddm-fn-sum-zline{margin:0 0 6px;padding:0 0 5px;border-bottom:1px dotted #e2eef4}
.eddm-fn-sum-zline:last-child{margin-bottom:0;border-bottom:0;padding-bottom:0}
.eddm-fn-sum-n{color:var(--mut);font-weight:700;margin-right:2px}
.eddm-fn-sum-zline b{color:var(--rl-accent);font-weight:800}
.eddm-fn-sum-bar{color:#c2d2dd;font-style:normal;margin:0 1px}
.eddm-fn-sum-empty{color:var(--mut)}

.eddm-fn-spin{display:inline-block;width:14px;height:14px;border:2px solid #cbd5e1;border-top-color:var(--rl-cyan);border-radius:50%;animation:eddmfn-spin .7s linear infinite;vertical-align:-2px;margin-right:6px}
@keyframes eddmfn-spin{to{transform:rotate(360deg)}}

/* prominent route-loading banner */
.eddm-fn-loadingzip{position:relative;display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:14px;row-gap:2px;margin:0 0 12px;padding:16px 18px 18px;border:1px solid var(--rl-cyan);border-radius:12px;background:linear-gradient(180deg,#ecfaff 0%,#dff4ff 100%);box-shadow:0 2px 10px rgba(8,145,178,.18);overflow:hidden;animation:eddmfn-pulse 1.4s ease-in-out infinite}
.eddm-fn-loadingzip .eddm-fn-spin{grid-row:1 / span 2;width:26px;height:26px;border-width:3px;border-color:#bfe6f2;border-top-color:var(--rl-cyan);margin:0}
.eddm-fn-loadingtxt{font-weight:800;font-size:16px;color:var(--rl-navy);line-height:1.2}
.eddm-fn-loadingsub{font-size:12.5px;color:var(--rl-accent);font-weight:600}
.eddm-fn-loadingzip::after{content:"";position:absolute;left:0;bottom:0;height:4px;width:35%;background:var(--rl-cyan);border-radius:0 4px 4px 0;animation:eddmfn-bar 1.15s ease-in-out infinite}
@keyframes eddmfn-bar{0%{left:-35%}100%{left:100%}}
@keyframes eddmfn-pulse{0%,100%{box-shadow:0 2px 10px rgba(8,145,178,.14)}50%{box-shadow:0 2px 16px rgba(8,145,178,.34)}}

/* step 1 — email my route selection */
.eddm-fn-emailcta{margin:14px 0 0;padding:16px 18px;border:1px solid var(--rl-border);border-radius:12px;background:linear-gradient(180deg,#fbfeff,#f3fbff)}
.eddm-fn-emailcta-head{margin-bottom:10px}
.eddm-fn-emailcta-head strong{display:block;font-size:15px;color:var(--rl-navy)}
.eddm-fn-emailcta-head span{font-size:13px;color:var(--rl-muted)}
.eddm-fn-emailform{display:flex;gap:8px;flex-wrap:wrap}
.eddm-fn-emailinput{flex:1 1 220px;height:44px;border:1px solid #9fc4d4;border-radius:6px;padding:0 12px;font-size:15px;background:#fff}
.eddm-fn-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.eddm-fn-emailsend{height:44px;border:0;border-radius:6px;background:var(--rl-teal);color:#fff;font-weight:800;font-size:15px;padding:0 18px;cursor:pointer}
.eddm-fn-emailsend:hover:not(:disabled){filter:brightness(1.08)}
.eddm-fn-emailsend:disabled{opacity:.6;cursor:default}
.eddm-fn-codebox{margin-top:12px}
.eddm-fn-codelead{margin:0 0 8px;font-size:14px;color:var(--rl-navy)}
.eddm-fn-coderow{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.eddm-fn-codeinput{width:160px;height:44px;border:1px solid #9fc4d4;border-radius:6px;padding:0 12px;font-size:20px;letter-spacing:6px;text-align:center;font-weight:700;background:#fff}
.eddm-fn-codeverify{height:44px;border:0;border-radius:6px;background:var(--rl-cyan);color:#fff;font-weight:800;font-size:15px;padding:0 18px;cursor:pointer}
.eddm-fn-codeverify:hover:not(:disabled){background:var(--rl-cyan-d)}
.eddm-fn-codeverify:disabled{opacity:.6;cursor:default}
.eddm-fn-coderesend{margin-top:8px;border:0;background:none;color:var(--rl-accent);font-weight:600;font-size:13px;cursor:pointer;text-decoration:underline;padding:0}
.eddm-fn-emailmsg{margin-top:10px;font-size:14px;font-weight:600}
.eddm-fn-emailmsg.ok{color:var(--rl-teal)}
.eddm-fn-emailmsg.err{color:#b91c1c}

/* step 4 — artwork + proof */
.eddm-fn-uploadzone{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:18px;border:2px dashed #cbd5e1;border-radius:12px;background:#f8fafc}
.eddm-fn-file{display:none}
.eddm-fn-filename{font-size:13px;color:var(--mut)}
.eddm-fn-pfresult{margin-top:14px}
.eddm-fn-pfhead{margin-bottom:10px}
.eddm-fn-badge{display:inline-block;padding:5px 12px;border-radius:999px;font-size:13px;font-weight:700}
.eddm-fn-badge.ok{background:#dcfce7;color:#166534}
.eddm-fn-badge.warn{background:#fef3c7;color:#92400e}
.eddm-fn-badge.bad{background:#fee2e2;color:#991b1b}
.eddm-fn-prooftools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.eddm-fn-toollabel{font-size:13px;color:var(--mut);margin-right:2px}
.eddm-fn-prooftools button{cursor:pointer;border:1px solid #cbd5e1;background:#fff;border-radius:6px;padding:5px 10px;font-size:13px;font-weight:600;color:var(--ink)}
.eddm-fn-prooftools .eddm-fn-zoom.on{background:var(--b);color:#fff;border-color:var(--b)}
.eddm-fn-prooftools .eddm-fn-replace{margin-left:auto;color:#b91c1c;border-color:#fecaca}
.eddm-fn-proofwrap{position:relative;border:1px solid var(--ln);border-radius:8px;background:#fff;overflow:auto;max-height:520px}
.eddm-fn-proofimg{display:block;width:100%;height:auto}
.eddm-fn-warn{margin:0 0 12px;padding:12px 14px;border:1px solid #fca5a5;background:#fef2f2;border-radius:10px;color:#991b1b;font-size:14px;line-height:1.5}
.eddm-fn-switch{display:inline-block;margin-top:8px;cursor:pointer;border:0;border-radius:8px;padding:8px 14px;font-size:13.5px;font-weight:700;background:var(--b);color:#fff}
.eddm-fn-switch:hover{background:var(--bd)}
.eddm-fn-concerns{margin:12px 0;padding:12px 14px;border:1px solid #fcd34d;background:#fffbeb;border-radius:10px;color:#78350f;font-size:13.5px}
.eddm-fn-concerns summary{cursor:pointer;font-weight:600}
.eddm-fn-concerns ul{margin:6px 0 0;padding-left:18px}
.eddm-fn-indicia{position:absolute;top:6%;right:5%;background:rgba(255,255,255,.92);border:1.5px solid #0f172a;border-radius:3px;padding:6px 8px;font-size:9px;line-height:1.25;color:#0f172a;text-align:center;font-weight:700;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.eddm-fn-indicia .eddm-fn-ec{font-size:11px}
.eddm-fn-indicia .eddm-fn-indicia2{margin-top:4px;padding-top:4px;border-top:1px solid #0f172a;font-weight:800}
.eddm-fn-toggle{display:flex;align-items:center;gap:8px;margin:10px 0 4px;font-size:14px;font-weight:600}
.eddm-fn-accept{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:15px;font-weight:600}
.eddm-fn-blocked{margin-top:14px;padding:12px 14px;border:1px solid #fca5a5;background:#fef2f2;border-radius:10px;color:#991b1b;font-size:14px;font-weight:600;line-height:1.5}

/* ===== Step 3 — size rows (table: Size · Homes · Est. price) ===== */
.eddm-fn-sizes{display:block}
.eddm-fn-sizehead{display:grid;grid-template-columns:1fr 86px 116px;column-gap:12px;padding:4px 14px 8px;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:var(--rl-muted)}
.eddm-fn-sizehead .scol-homes,.eddm-fn-sizehead .scol-price{text-align:right}
.eddm-fn-size{display:grid;grid-template-columns:1fr 86px 116px;column-gap:12px;align-items:center;width:100%;min-height:56px;padding:12px 14px;margin:0 0 8px;text-align:left;border:1px solid #cbd5e1;border-radius:10px;background:#fff;cursor:pointer}
.eddm-fn-size:hover{border-color:var(--rl-accent);background:#f7fcff}
.eddm-fn-size:focus{outline:none}
.eddm-fn-size:focus-visible{outline:2px solid var(--b);outline-offset:1px}
/* selected = blue (force over theme button styles) */
.eddm-fn .eddm-fn-size.sel{border-color:var(--b)!important;background:#eff6ff!important;box-shadow:0 0 0 2px rgba(29,78,216,.22)!important;color:var(--bd)!important}
.eddm-fn-size-label{font-weight:700;font-size:15.5px;color:var(--rl-navy)}
.eddm-fn .eddm-fn-size.sel .eddm-fn-size-label{color:var(--bd)}
.eddm-fn-size-homes{text-align:right;font-weight:700;color:var(--rl-teal);font-size:14px}
.eddm-fn-size-price{text-align:right;font-size:17px;font-weight:800;color:var(--rl-navy);display:flex;align-items:center;justify-content:flex-end}
.eddm-fn-size-price.loading{color:var(--rl-muted)}
.eddm-fn-spin.sm{width:14px;height:14px;border-width:2px;margin:0;vertical-align:middle}

/* ===== Step 5 — checkout form + confirmation ===== */
.eddm-fn-coform{max-width:460px}
.eddm-fn-cofield{display:flex;flex-direction:column;gap:4px;margin:0 0 12px}
.eddm-fn-cofield label{font-size:13px;font-weight:700;color:var(--rl-navy)}
.eddm-fn-cofield input{height:44px;border:1px solid #9fc4d4;border-radius:6px;padding:0 12px;font-size:15px;background:#fff}
.eddm-fn-copay{width:100%;height:48px;margin-top:4px}
.eddm-fn-conote{margin:10px 0 0;font-size:12px;color:var(--mut)}
.eddm-fn-comsg{margin:4px 0 10px;font-size:14px;font-weight:600}
.eddm-fn-comsg.err{color:#b91c1c}
.eddm-fn-coresult{margin:0 0 8px;padding:18px 20px;border:1px solid var(--rl-border);border-radius:12px;background:#fff;font-size:14.5px;line-height:1.55;color:var(--ink)}
.eddm-fn-coresult.ok{border-color:#86efac;background:#f0fdf4}
.eddm-fn-coresult.warn{border-color:#fcd34d;background:#fffbeb}
.eddm-fn-cobadge{display:inline-block;font-weight:800;color:#166534;background:#dcfce7;border-radius:999px;padding:5px 14px;margin-bottom:8px}
.eddm-fn-cototal{font-size:16px;margin:6px 0}

/* running-summary price block (Steps 3-5) */
.eddm-fn-sumprice{margin-top:12px;padding-top:12px;border-top:1px dashed var(--ln)}
.eddm-fn-sumprice-row{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--mut);margin-bottom:5px}
.eddm-fn-sumprice-row span:last-child{font-weight:700;color:var(--ink)}
.eddm-fn-sumprice-total{display:flex;justify-content:space-between;gap:10px;margin-top:8px;padding-top:8px;border-top:1px solid var(--ln);font-size:15px;font-weight:800;color:var(--rl-navy)}
.eddm-fn-sumprice-total span:last-child{color:var(--rl-teal)}
.eddm-fn-sumprice-note{margin:8px 0 0;font-size:11.5px;color:var(--mut)}
