.jd-freight-modal{padding:16px;box-sizing:border-box;color:#263445;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
.jd-freight-modal>div{box-sizing:border-box;max-height:calc(100dvh - 32px);overflow:auto}
.jd-freight-modal [hidden]{display:none!important}
#jdFreightPanel{padding:14px;margin:14px 0 10px;border:1px solid #cbd5e1;border-radius:6px;background:#fff}
#jdFreightPanel[data-selected=true],#compFreightRowManual[data-selected=true]{border-color:#165dff!important;background:#f0f5ff!important}
.jd-freight-method{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;margin-bottom:14px;cursor:pointer}
.jd-freight-method input{width:18px;height:18px;accent-color:#165dff}
.jd-freight-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.jd-freight-fields label{display:flex;flex-direction:column;gap:5px;min-width:0;font-weight:500}
.jd-freight-fields select,.jd-freight-fields input,.jd-region-search{box-sizing:border-box;width:100%;height:42px;min-width:0;border:1px solid #a8b4c4;border-radius:4px;background:#fff;color:#263445;padding:0 9px;font:inherit}
.jd-freight-fields input::placeholder,.jd-region-search::placeholder{color:#526477}
.jd-freight-fields input{font-variant-numeric:tabular-nums}
.jd-freight-fields :disabled{background:#edf0f4;color:#58677a;cursor:not-allowed}
.jd-freight-weight{grid-column:1/-1}
.jd-freight-rules{margin:12px 0 6px;color:#526477;font-size:12px;max-width:70ch}
#jdFreightStatus{min-height:22px;overflow-wrap:anywhere;font-size:13px;color:#465d76}
#jdFreightStatus[data-state=error]{color:#a32e25}
#jdFreightStatus[data-state=success]{color:#285e44}
#jdFreightRetry{margin-top:8px;font-size:13px}
.jd-freight-modal :focus-visible,.jd-region-list :focus-visible{outline:2px solid #165dff;outline-offset:3px}
.jd-freight-modal input,.jd-region-search{caret-color:#165dff}
.jd-freight-modal ::selection,.jd-region-list ::selection{background:#dce8ff;color:#163962}
#compFreightResultValue{font-family:inherit!important;font-variant-numeric:tabular-nums}
.jd-region-list{width:100%;box-sizing:border-box;min-width:0;color:#263445}
.jd-region-search{margin-bottom:12px;position:sticky;top:0;z-index:1}
.jd-region-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:8px}
.jd-region-option{min-height:40px;padding:9px 12px;text-align:left;background:#fff;color:#263445;border:1px solid #cbd5e1;border-radius:4px;font:inherit;overflow-wrap:anywhere;cursor:pointer}
.jd-region-option:hover{color:#124aa0;border-color:#165dff;background:#f0f5ff}
.jd-region-option:active{background:#dce8ff}
.jd-region-option[data-level="1"]{font-weight:700;background:#edf2f8}
.jd-region-option[data-level="2"]{font-weight:600}
.jd-region-source{margin:12px 16px;padding:10px 12px;background:#edf2f8;color:#40556e;border-radius:4px;font-size:13px}
@media(max-width:540px){.jd-freight-modal{padding:10px}.jd-freight-modal>div{padding:16px!important;width:100%!important;max-width:100%!important;max-height:calc(100dvh - 20px)}.jd-freight-fields{grid-template-columns:1fr;gap:10px}#jdFreightPanel{padding:12px}#compFreightRowManual{flex-wrap:wrap}#compFreightRowManual>div{min-width:0}#compFreightRowManual>div:last-child{flex-basis:100%!important}.jd-freight-rules{font-size:12px}.jd-region-options{grid-template-columns:1fr}}
