/* EDDM Route Finder — scoped styles (prefixed .eddm-rf to avoid theme clashes). */
.eddm-rf{--eddm-brand:#1d4ed8;--eddm-brand-d:#1e40af;--eddm-line:#e2e8f0;--eddm-muted:#64748b;--eddm-ink:#0f172a;
  border:1px solid var(--eddm-line);border-radius:12px;overflow:hidden;background:#fff;color:var(--eddm-ink);
  font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
.eddm-rf *{box-sizing:border-box}
.eddm-rf .eddm-rf-search{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 14px;background:#0f172a}
.eddm-rf .eddm-rf-zip{flex:0 0 220px;padding:10px 12px;border-radius:8px;border:1px solid #334155;font-size:15px}
.eddm-rf .eddm-rf-resonly{display:flex;align-items:center;gap:6px;color:#cbd5e1;font-size:13px;cursor:pointer}
.eddm-rf .eddm-rf-go{cursor:pointer;border:0;border-radius:8px;padding:10px 18px;font-size:14px;font-weight:600;background:var(--eddm-brand);color:#fff}
.eddm-rf .eddm-rf-go:hover{background:var(--eddm-brand-d)}
.eddm-rf .eddm-rf-body{display:grid;grid-template-columns:minmax(340px,420px) 1fr;height:var(--eddm-rf-h,620px)}
@media (max-width:820px){.eddm-rf .eddm-rf-body{grid-template-columns:1fr;height:auto}.eddm-rf .eddm-rf-map{height:48vh}}
.eddm-rf .eddm-rf-panel{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--eddm-line)}
.eddm-rf .eddm-rf-summary{padding:14px 16px;border-bottom:1px solid var(--eddm-line);background:#f8fafc}
.eddm-rf .eddm-rf-sum-zip{font-size:13px;color:var(--eddm-muted)}
.eddm-rf .eddm-rf-sum-big{font-size:20px;font-weight:800;margin-top:2px}
.eddm-rf .eddm-rf-sum-big b{color:var(--eddm-brand)}
.eddm-rf .eddm-rf-sum-sub{font-size:13px;color:var(--eddm-muted);margin-top:2px}
.eddm-rf .eddm-rf-toolbar{display:flex;gap:8px;align-items:center;padding:10px 16px;border-bottom:1px solid var(--eddm-line);flex-wrap:wrap}
.eddm-rf .eddm-rf-toolbar .eddm-rf-grow{flex:1}
.eddm-rf .eddm-rf-toolbar button{cursor:pointer;border:0;border-radius:6px;padding:5px 10px;font-size:12px;font-weight:600;background:#eef2ff;color:var(--eddm-brand)}
.eddm-rf .eddm-rf-toolbar button:hover{background:#e0e7ff}
.eddm-rf .eddm-rf-list{overflow:auto;min-height:0;flex:1}
.eddm-rf table{border-collapse:collapse;width:100%;font-size:13.5px}
.eddm-rf thead th{position:sticky;top:0;background:#f1f5f9;text-align:right;padding:8px 10px;color:#475569;font-weight:600;border-bottom:1px solid var(--eddm-line);white-space:nowrap}
.eddm-rf thead th:nth-child(1),.eddm-rf thead th:nth-child(2){text-align:left}
.eddm-rf tbody td{padding:7px 10px;border-bottom:1px solid #f1f5f9;text-align:right;white-space:nowrap}
.eddm-rf tbody td:nth-child(1),.eddm-rf tbody td:nth-child(2){text-align:left}
.eddm-rf tbody tr{cursor:pointer}
.eddm-rf tbody tr:hover{background:#eff6ff}
.eddm-rf tbody tr.sel{background:#f0f7ff}
.eddm-rf tbody tr.hl{background:#fef3c7}
.eddm-rf .eddm-rf-rid{font-weight:700}
.eddm-rf .eddm-rf-chip{display:inline-block;font-size:11px;padding:1px 6px;border-radius:999px;background:#e2e8f0;color:#475569;margin-left:6px}
.eddm-rf .eddm-rf-cb{width:16px;height:16px;accent-color:var(--eddm-brand)}
.eddm-rf .eddm-rf-map{height:100%}
.eddm-rf .eddm-rf-state{padding:32px 22px;text-align:center;color:var(--eddm-muted)}
.eddm-rf .eddm-rf-state.err{color:#dc2626}
.eddm-rf .eddm-rf-fallback{margin:16px;padding:16px;border:1px solid #fcd34d;background:#fffbeb;border-radius:10px}
.eddm-rf .eddm-rf-fallback h3{margin:0 0 6px;color:#92400e;font-size:15px}
.eddm-rf .eddm-rf-fallback p{margin:0;color:#92400e;font-size:13.5px}
.eddm-rf .eddm-rf-spin{display:inline-block;width:15px;height:15px;border:2px solid #cbd5e1;border-top-color:var(--eddm-brand);border-radius:50%;animation:eddm-rf-spin .7s linear infinite;vertical-align:-3px;margin-right:6px}
@keyframes eddm-rf-spin{to{transform:rotate(360deg)}}
