/*
 * eDetal design-v3 components.
 *
 * Ported from design-v3/ed.css. Every class is prefixed with "ed-" so it cannot collide with
 * ListingHive / HivePress / WordPress classes (".row", ".col", ".button", ".avatar", ".nav" ...).
 * Mapping rule: ed.css ".btn-primary" -> ".ed-btn-primary". State classes stay as ".is-on", ".is-err",
 * ".is-done", ".is-cur" and are only valid next to an ed- component class.
 *
 * Not ported on purpose: global resets (*, html, body, headings, links: see listinghive-overrides.css),
 * the ".demo" label, documentation-board classes (.doc, .doc-sec, .spec, .swatch, .lbl-chip).
 * Controls (.ed-btn, .ed-inp, .ed-sel, .ed-ta) are written as ":is(tag).ed-x" so they win against the
 * parent theme element selectors (input[type=text], button[type=submit], select, textarea).
 * Tokens: tokens.css. Do not hardcode palette values in templates.
 */

/* scoped base: inherit the page font in controls, neutralise parent heading margins inside ed- trees */
.ed-btn,.ed-inp,.ed-sel,.ed-ta,.ed-pill,.ed-seg-btn,.ed-tab,.ed-hd-btn,.ed-hd-icon,.ed-switch{font-family:inherit}
[class^="ed-"] :is(h1,h2,h3,h4,h5,h6,p),[class*=" ed-"] :is(h1,h2,h3,h4,h5,h6,p),
:is(h1,h2,h3,h4,h5,h6,p)[class^="ed-"],:is(h1,h2,h3,h4,h5,h6,p)[class*=" ed-"]{margin:0}
.ed-hd :is(h1,h2,h3,h4,h5,h6),.ed-dark :is(h1,h2,h3,h4,h5,h6){color:inherit}
.ed-on-dark :focus-visible{outline-color:var(--ed-lime);box-shadow:none}

.ed-num{font-variant-numeric:tabular-nums}
.ed-muted{color:var(--ed-muted)} .ed-subtle{color:var(--ed-subtle-aa)}
.ed-small{font-size:14px;line-height:1.45} .ed-xs{font-size:12px;line-height:1.4}
.ed-b{font-weight:600} .ed-bb{font-weight:700}
.ed-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ed-ic{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.ed-ic-16{width:16px;height:16px} .ed-ic-24{width:24px;height:24px} .ed-ic-32{width:32px;height:32px;stroke-width:1.5} .ed-ic-40{width:40px;height:40px;stroke-width:1.4}

/* type scale */
.ed-h-hero{font-size:56px;line-height:1.04;letter-spacing:-.035em;font-weight:800}
.ed-h1{font-size:40px;line-height:1.1;letter-spacing:-.03em;font-weight:800}
.ed-h2{font-size:30px;line-height:1.15;letter-spacing:-.022em;font-weight:750}
.ed-h3{font-size:20px;line-height:1.3;letter-spacing:-.01em;font-weight:700}
.ed-h4{font-size:16px;line-height:1.35;font-weight:650}
.ed-lead{font-size:18px;line-height:1.5;color:var(--ed-muted)}
.ed-eyebrow{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}

/* layout */
.ed-wrap{max-width:var(--ed-container);margin:0 auto;padding:0 32px}
.ed-row{display:flex;align-items:center;gap:12px}
.ed-row-top{display:flex;align-items:flex-start;gap:12px}
.ed-between{justify-content:space-between}
.ed-wrapf{flex-wrap:wrap}
.ed-col{display:flex;flex-direction:column}
.ed-g4{gap:4px}.ed-g8{gap:8px}.ed-g12{gap:12px}.ed-g16{gap:16px}.ed-g24{gap:24px}.ed-g32{gap:32px}.ed-g48{gap:48px}
.ed-grow{flex:1 1 0;min-width:0}
.ed-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ed-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ed-grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ed-split{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.ed-split>.ed-main{flex:999 1 560px;min-width:0}
.ed-split>.ed-side{flex:1 1 320px;min-width:0}
.ed-section{padding:64px 0}
.ed-hr{height:1px;background:var(--ed-border);border:0;margin:0}

/* header */
.ed-hd{background:var(--ed-petrol);color:#fff}
.ed-hd-in{max-width:var(--ed-container);margin:0 auto;padding:0 32px;height:72px;display:flex;align-items:center;gap:28px}
.ed-logo{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:#fff;font-weight:800;font-size:26px;letter-spacing:-.04em;line-height:1}
.ed-logo svg{width:36px;height:36px;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}
/* brake-disc mark: m-d disc, m-h hub, m-o holes, m-c caliper (accent) */
.ed-logo .ed-m-d{stroke:#FFFFFF;stroke-width:3.5} .ed-logo .ed-m-h{stroke:#FFFFFF;stroke-width:3} .ed-logo .ed-m-o{fill:#FFFFFF;stroke:none} .ed-logo .ed-m-c{stroke:var(--ed-lime);stroke-width:7}
.ed-logo.ed-on-light{color:var(--ed-petrol)} .ed-logo.ed-on-light .ed-m-d,.ed-logo.ed-on-light .ed-m-h{stroke:var(--ed-petrol)} .ed-logo.ed-on-light .ed-m-o{fill:var(--ed-petrol)} .ed-logo.ed-on-light .ed-m-c{stroke:var(--ed-action)}
.ed-logo:hover{color:#fff} .ed-logo.ed-on-light:hover{color:var(--ed-petrol)}
.ed-nav{display:flex;align-items:center;gap:4px}
.ed-nav a{white-space:nowrap;color:#E4EEE8;text-decoration:none;font-size:15px;font-weight:500;padding:10px 12px;border-radius:8px;min-height:44px;display:inline-flex;align-items:center;gap:6px}
.ed-nav a:hover{color:#fff;background:rgba(255,255,255,.08)}
.ed-nav a[aria-current="page"]{color:#fff;background:rgba(216,242,124,.14);box-shadow:inset 0 -2px 0 var(--ed-lime)}
.ed-hd-act{margin-left:auto;display:flex;align-items:center;gap:8px}
.ed-hd-btn{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:8px;border:1px solid rgba(255,255,255,.28);background:transparent;color:#fff;font-size:15px;font-weight:600;text-decoration:none;cursor:pointer}
.ed-hd-btn:hover{background:rgba(255,255,255,.08);color:#fff}
.ed-hd-icon{position:relative;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:#fff;background:transparent;border:0;cursor:pointer}
.ed-hd-icon:hover{background:rgba(255,255,255,.08)}
.ed-hd-dot{position:absolute;top:8px;right:8px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--ed-lime);color:var(--ed-petrol);font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center}
.ed-avatar{width:32px;height:32px;border-radius:50%;background:var(--ed-lime);color:var(--ed-petrol);font-weight:800;font-size:13px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.ed-mode{display:inline-flex;padding:3px;border-radius:10px;background:rgba(255,255,255,.08);gap:2px}
.ed-mode a{font-size:13px;font-weight:600;color:#CFE0D6;text-decoration:none;padding:6px 10px;border-radius:7px;min-height:32px;display:inline-flex;align-items:center}
.ed-mode a[aria-current="true"]{background:var(--ed-lime);color:var(--ed-petrol)}
.ed-burger{display:none}
.ed-subnav{background:var(--ed-surface);border-bottom:1px solid var(--ed-border)}
.ed-subnav-in{max-width:var(--ed-container);margin:0 auto;padding:0 32px;display:flex;gap:4px;overflow-x:auto}
.ed-subnav a{flex:none;color:var(--ed-muted);text-decoration:none;font-weight:600;font-size:15px;padding:14px 12px;min-height:48px;display:inline-flex;align-items:center;gap:8px;border-bottom:2px solid transparent}
.ed-subnav a:hover{color:var(--ed-ink)}
.ed-subnav a[aria-current="page"]{color:var(--ed-ink);border-bottom-color:var(--ed-action)}
.ed-count{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--ed-action);color:#fff;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}

/* footer */
.ed-ft{background:var(--ed-surface);border-top:1px solid var(--ed-border);margin-top:64px}
.ed-ft-in{max-width:var(--ed-container);margin:0 auto;padding:28px 32px;display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px}
.ed-ft a{color:var(--ed-muted);text-decoration:none;font-size:14px;min-height:44px;display:inline-flex;align-items:center}
.ed-ft a:hover{color:var(--ed-ink);text-decoration:underline}

/* buttons */
:is(a,button,input,span,div).ed-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:var(--r-sm);border:1px solid transparent;font-size:15px;font-weight:650;line-height:1.2;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background var(--dur) var(--ease),border-color var(--dur) var(--ease),color var(--dur) var(--ease)}
:is(a,button,input,span,div).ed-btn-lg{min-height:52px;padding:0 24px;font-size:16px}
:is(a,button,input,span,div).ed-btn-sm{min-height:36px;padding:0 12px;font-size:14px}
:is(a,button,input,span,div).ed-btn-block{width:100%}
:is(a,button,input,span,div).ed-btn-primary{background:var(--ed-action);color:#fff}
:is(a,button,input,span,div).ed-btn-primary:hover{background:var(--ed-action-hover);color:#fff}
:is(a,button,input,span,div).ed-btn-primary:active{background:var(--ed-action-press)}
:is(a,button,input,span,div).ed-btn-lime{background:var(--ed-lime);color:var(--ed-petrol)}
:is(a,button,input,span,div).ed-btn-lime:hover{background:var(--ed-lime-hover);color:var(--ed-petrol)}
:is(a,button,input,span,div).ed-btn-secondary{background:var(--ed-surface);color:var(--ed-action);border-color:var(--ed-action)}
:is(a,button,input,span,div).ed-btn-secondary:hover{background:var(--ed-action-soft);color:var(--ed-action-hover)}
:is(a,button,input,span,div).ed-btn-quiet{background:var(--ed-action-soft);color:var(--ed-action)}
:is(a,button,input,span,div).ed-btn-quiet:hover{background:#D5EADC;color:var(--ed-action-hover)}
:is(a,button,input,span,div).ed-btn-ghost{background:transparent;color:var(--ed-ink);border-color:var(--ed-border)}
:is(a,button,input,span,div).ed-btn-ghost:hover{background:var(--ed-surface-2);color:var(--ed-ink)}
:is(a,button,input,span,div).ed-btn-text{background:transparent;color:var(--ed-action);padding:0 8px;text-decoration:underline;text-underline-offset:3px}
:is(a,button,input,span,div).ed-btn-danger{background:var(--ed-surface);color:var(--ed-err);border-color:var(--ed-err-line)}
:is(a,button,input,span,div).ed-btn-danger:hover{background:var(--ed-err-bg);color:var(--ed-err)}
:is(a,button,input,span,div).ed-btn[disabled],:is(a,button,input,span,div).ed-btn[aria-disabled="true"]{background:var(--ed-surface-2);color:#7D8983;border-color:var(--ed-border);cursor:not-allowed;opacity:1}
:is(a,button,input,span,div).ed-btn-icon{width:44px;padding:0}

/* forms */
.ed-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.ed-lbl{font-size:14px;font-weight:600;color:var(--ed-ink)}
.ed-lbl .ed-req{color:var(--ed-err);margin-left:2px}
.ed-lbl .ed-opt{font-weight:500;color:var(--ed-muted)}
.ed-hint{font-size:13px;line-height:1.4;color:var(--ed-muted)}
.ed-err{font-size:13px;line-height:1.4;color:var(--ed-err);display:flex;gap:6px;align-items:flex-start;font-weight:500}
:is(input).ed-inp,:is(select).ed-sel,:is(textarea).ed-ta{width:100%;min-height:48px;padding:0 14px;border:1px solid var(--ed-border-strong);border-radius:var(--r-sm);background:var(--ed-surface);font-size:16px;transition:border-color var(--dur) var(--ease)}
:is(textarea).ed-ta{min-height:96px;padding:12px 14px;resize:vertical;line-height:1.5}
:is(select).ed-sel{appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2352615A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
:is(input).ed-inp::placeholder,:is(textarea).ed-ta::placeholder{color:#6B7A72}
:is(input).ed-inp:hover,:is(select).ed-sel:hover,:is(textarea).ed-ta:hover{border-color:#8E9B93}
:is(input).ed-inp:focus,:is(select).ed-sel:focus,:is(textarea).ed-ta:focus{outline:none;border-color:var(--ed-action);box-shadow:0 0 0 3px rgba(23,107,69,.18)}
:is(input).ed-inp.is-err,:is(select).ed-sel.is-err,:is(textarea).ed-ta.is-err{border-color:var(--ed-err);box-shadow:0 0 0 3px rgba(168,35,26,.10)}
:is(input).ed-inp[disabled],:is(select).ed-sel[disabled]{background:var(--ed-surface-2);color:#6E7A74;border-color:var(--ed-border)}
:is(input).ed-inp-plate{font-size:20px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.ed-ig{display:flex;align-items:stretch;border:1px solid var(--ed-border-strong);border-radius:var(--r-sm);background:var(--ed-surface);overflow:hidden;min-height:48px}
.ed-ig:focus-within{border-color:var(--ed-action);box-shadow:0 0 0 3px rgba(23,107,69,.18)}
.ed-ig .ed-inp{border:0;box-shadow:none;min-height:46px}
.ed-ig-add{display:flex;align-items:center;padding:0 12px;background:var(--ed-surface-2);color:var(--ed-muted);font-size:15px;font-weight:600;flex:none}
.ed-chk{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:10px 0;cursor:pointer;font-size:15px}
.ed-chk input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--ed-action);flex:none}
.ed-radio-card{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid var(--ed-border-strong);border-radius:var(--r-md);background:var(--ed-surface);cursor:pointer;min-height:56px}
.ed-radio-card input{width:20px;height:20px;margin:2px 0 0;accent-color:var(--ed-action);flex:none}
.ed-radio-card.is-on{border-color:var(--ed-action);background:var(--ed-action-soft);box-shadow:inset 0 0 0 1px var(--ed-action)}
.ed-switch{position:relative;width:44px;height:26px;border-radius:13px;background:#B9C4BC;border:0;flex:none;cursor:pointer;padding:0}
.ed-switch::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform var(--dur) var(--ease)}
.ed-switch[aria-checked="true"]{background:var(--ed-action)}
.ed-switch[aria-checked="true"]::after{transform:translateX(18px)}
.ed-seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px;padding:4px;background:var(--ed-surface-2);border-radius:var(--r-md)}
.ed-seg-btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 12px;border-radius:9px;border:1px solid transparent;background:transparent;font-weight:600;font-size:15px;color:var(--ed-muted);cursor:pointer;text-align:center}
.ed-seg-btn:hover{color:var(--ed-ink);background:rgba(255,255,255,.6)}
.ed-seg-btn[aria-pressed="true"]{background:var(--ed-surface);color:var(--ed-ink);border-color:var(--ed-action);box-shadow:var(--sh-1)}
.ed-pills{display:flex;flex-wrap:wrap;gap:8px}
.ed-pill{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:var(--r-pill);border:1px solid var(--ed-border-strong);background:var(--ed-surface);font-size:14px;font-weight:600;color:var(--ed-ink);cursor:pointer}
.ed-pill:hover{border-color:var(--ed-action)}
.ed-pill[aria-pressed="true"]{background:var(--ed-petrol);border-color:var(--ed-petrol);color:#fff}
.ed-errsum{border:1px solid var(--ed-err-line);background:var(--ed-err-bg);border-radius:var(--r-md);padding:16px 18px;color:var(--ed-ink)}
.ed-errsum h3{font-size:16px;color:var(--ed-err);margin-bottom:6px}
.ed-errsum ul{margin:0;padding-left:20px;font-size:14px}
.ed-errsum a{color:var(--ed-err)}
.ed-drop{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1.5px dashed var(--ed-border-strong);border-radius:var(--r-md);background:var(--ed-surface);cursor:pointer}
.ed-drop:hover{border-color:var(--ed-action);background:var(--ed-action-soft)}
.ed-drop:focus-within{outline:2px solid var(--ed-action);outline-offset:2px;box-shadow:0 0 0 5px rgba(216,242,124,.85)}

/* stepper */
.ed-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;list-style:none;margin:0;padding:0}
.ed-step{display:flex;align-items:center;gap:10px;padding:10px 0 12px;border-bottom:3px solid var(--ed-border);font-size:15px;font-weight:600;color:var(--ed-muted)}
.ed-step .ed-dot{width:28px;height:28px;border-radius:50%;border:2px solid var(--ed-border-strong);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;background:var(--ed-surface);flex:none}
.ed-step.is-done{color:var(--ed-ink);border-bottom-color:var(--ed-action)}
.ed-step.is-done .ed-dot{background:var(--ed-action);border-color:var(--ed-action);color:#fff}
.ed-step.is-cur{color:var(--ed-ink);border-bottom-color:var(--ed-action)}
.ed-step.is-cur .ed-dot{border-color:var(--ed-action);color:var(--ed-action);box-shadow:0 0 0 4px var(--ed-action-soft)}

/* tabs */
.ed-tabs{display:flex;gap:4px;border-bottom:1px solid var(--ed-border);overflow-x:auto}
.ed-tab{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 14px;border:0;background:transparent;border-bottom:2px solid transparent;margin-bottom:-1px;font-weight:600;font-size:15px;color:var(--ed-muted);cursor:pointer;text-decoration:none}
.ed-tab:hover{color:var(--ed-ink)}
/* real tablists (buttons, role=tab) use aria-selected; tab-styled navigation links use aria-current="page" */
.ed-tab[aria-selected="true"],.ed-tab[aria-current="page"]{color:var(--ed-ink);border-bottom-color:var(--ed-action)}
.ed-tab .ed-count{background:var(--ed-surface-2);color:var(--ed-ink)}
.ed-tab[aria-selected="true"] .ed-count,.ed-tab[aria-current="page"] .ed-count{background:var(--ed-action);color:#fff}

/* surfaces */
.ed-card{background:var(--ed-surface);border:1px solid var(--ed-border);border-radius:var(--r-lg)}
.ed-card-p{padding:24px}
.ed-card-p-s{padding:16px}
.ed-card-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 24px;border-bottom:1px solid var(--ed-border)}
.ed-card-ft{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;border-top:1px solid var(--ed-border);background:#FBFCFB;border-radius:0 0 var(--r-lg) var(--r-lg)}
.ed-tile{background:var(--ed-surface);border:1px solid var(--ed-border);border-radius:var(--r-md);padding:16px}
.ed-inset{background:var(--ed-canvas);border:1px solid var(--ed-border);border-radius:var(--r-md);padding:16px}
.ed-dark{background:var(--ed-petrol);color:#fff}
.ed-dark .ed-muted{color:#BFD3C8}

/* badges & status */
.ed-badge{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:var(--r-pill);font-size:13px;font-weight:600;white-space:nowrap;background:var(--ed-off-bg);color:var(--ed-off)}
.ed-badge .ed-ic{width:14px;height:14px;stroke-width:2.2}
.ed-b-ok{background:var(--ed-ok-bg);color:var(--ed-ok)}
.ed-b-warn{background:var(--ed-warn-bg);color:var(--ed-warn)}
.ed-b-err{background:var(--ed-err-bg);color:var(--ed-err)}
.ed-b-info{background:var(--ed-info-bg);color:var(--ed-info)}
.ed-b-lime{background:var(--ed-lime);color:var(--ed-petrol)}
.ed-b-petrol{background:var(--ed-petrol);color:#fff}
.ed-b-line{background:var(--ed-surface);border:1px solid var(--ed-border-strong);color:var(--ed-ink)}
.ed-tag{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:6px;background:var(--ed-surface-2);font-size:12.5px;font-weight:600;color:var(--ed-ink)}

/* notices */
.ed-note{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:var(--r-md);border:1px solid var(--ed-info-line);background:var(--ed-info-bg);font-size:14.5px;line-height:1.45}
.ed-note>.ed-ic{margin-top:1px;color:var(--ed-info)}
.ed-note strong{display:block;font-size:15px;margin-bottom:2px}
.ed-note-ok{border-color:#A7D2B8;background:var(--ed-ok-bg)} .ed-note-ok>.ed-ic{color:var(--ed-ok)}
.ed-note-warn{border-color:var(--ed-warn-line);background:var(--ed-warn-bg)} .ed-note-warn>.ed-ic{color:var(--ed-warn)}
.ed-note-err{border-color:var(--ed-err-line);background:var(--ed-err-bg)} .ed-note-err>.ed-ic{color:var(--ed-err)}
.ed-note-neutral{border-color:var(--ed-border);background:var(--ed-surface-2)} .ed-note-neutral>.ed-ic{color:var(--ed-muted)}
.ed-note-lime{border-color:#C6E37A;background:var(--ed-lime-soft)} .ed-note-lime>.ed-ic{color:var(--ed-petrol)}

/* domain pieces */
.ed-ph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:88px;height:72px;border-radius:10px;background:var(--ed-surface-2);border:1px solid var(--ed-border);color:var(--ed-subtle-aa);font-size:11.5px;font-weight:600;text-align:center;flex:none;line-height:1.2}
.ed-ph .ed-ic{width:22px;height:22px}
.ed-cat{width:48px;height:48px;border-radius:12px;background:var(--ed-action-soft);color:var(--ed-action);display:flex;align-items:center;justify-content:center;flex:none}
.ed-cat .ed-ic{width:26px;height:26px;stroke-width:1.6}
.ed-cat img{width:28px;height:28px;object-fit:contain;display:block}
/* category pictograms (assets/categories/cat-<slug>.svg, URL: autoparts_theme_category_icon_url()):
   Material Design Icons (Apache-2.0) + tabler car-suspension (MIT), fill #176B45 */
.ed-thumb{width:88px;height:72px;border-radius:10px;border:1px solid var(--ed-border);background:#fff;object-fit:contain;flex:none;display:block}
.ed-thumb-s{width:40px;height:40px;border-radius:8px;border:1px solid var(--ed-border);background:#fff;object-fit:contain;flex:none;display:block}
/* seller-photo badge. The text is NOT in CSS (it must be translatable): templates set the label via
   data-label, e.g. <span class="ed-photo-tag" data-label="<?php echo esc_attr__( 'Фото продавця', 'autoparts-theme' ); ?>">.
   Without data-label nothing is drawn. Wrap an <img class="ed-thumb"> in the span (::after cannot sit on <img>). */
.ed-photo-tag{position:relative;display:inline-block;max-width:100%}
.ed-photo-tag>img{max-width:100%}
.ed-photo-tag[data-label]::after{content:attr(data-label);position:absolute;left:4px;bottom:4px;max-width:calc(100% - 8px);font-size:10px;font-weight:700;line-height:1.3;background:rgba(255,255,255,.92);color:var(--ed-muted);padding:1px 5px;border-radius:4px;overflow-wrap:anywhere}
.ed-veh{display:flex;align-items:center;gap:14px}
.ed-veh-logo{width:48px;height:48px;border-radius:12px;background:var(--ed-surface);border:1px solid var(--ed-border);display:flex;align-items:center;justify-content:center;flex:none}
.ed-veh-logo img{width:30px;height:30px;object-fit:contain}
.ed-kv{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;font-size:14.5px}
.ed-kv dt{color:var(--ed-muted)} .ed-kv dd{margin:0;font-weight:600;min-width:0;overflow-wrap:anywhere}
.ed-price{font-size:22px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.ed-price-s{font-size:17px;font-weight:750;font-variant-numeric:tabular-nums}
.ed-meta{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13.5px;color:var(--ed-muted)}
.ed-meta span{display:inline-flex;align-items:center;gap:5px}
.ed-meta .ed-ic{width:15px;height:15px}
.ed-list{list-style:none;margin:0;padding:0}
.ed-li{display:flex;align-items:center;gap:14px;padding:14px 0;border-top:1px solid var(--ed-border)}
.ed-li:first-child{border-top:0}
.ed-tbl{width:100%;border-collapse:collapse;font-size:14.5px}
.ed-tbl th{text-align:left;font-size:12.5px;font-weight:600;color:var(--ed-muted);padding:10px 12px;border-bottom:1px solid var(--ed-border);white-space:nowrap}
.ed-tbl td{padding:14px 12px;border-bottom:1px solid var(--ed-border);vertical-align:top}
.ed-tbl tr:last-child td{border-bottom:0}
.ed-scroll-x{overflow-x:auto}
.ed-crumbs{display:flex;flex-wrap:wrap;gap:6px;font-size:13.5px;color:var(--ed-muted);padding:16px 0 4px}
.ed-crumbs a{display:inline-flex;align-items:center;min-height:24px;color:var(--ed-muted);text-decoration:none}
.ed-crumbs a:hover{text-decoration:underline;color:var(--ed-ink)}
.ed-selected-ring{box-shadow:inset 0 0 0 2px var(--ed-action);background:#F6FBF8}
.ed-cover{height:6px;border-radius:3px;background:var(--ed-surface-2);overflow:hidden;display:flex;gap:2px}
.ed-cover i{display:block;flex:1;background:var(--ed-border-strong)}
.ed-cover i.is-on{background:var(--ed-action)}
.ed-cover i.is-sel{background:var(--ed-petrol)}

/* seller queue (T10): the request row and the counters; the make-rule row is shared with the filters editor.
   Layout of a whole page (grid, panels) lives in seller-queue.css / filters.css. */
.ed-qstat{display:flex;align-items:center;gap:14px;padding:20px 24px;min-height:88px}
.ed-qnum{font-size:38px;font-weight:800;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.ed-qrow{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:16px 20px;align-items:center;padding:20px 24px;border-top:1px solid var(--ed-border)}
.ed-qrow.is-skip{background:#FBFCFB}
.ed-qrow.is-skip .ed-qmain{opacity:.72}
.ed-qmain{display:flex;flex-direction:column;gap:12px;min-width:0}
.ed-qmeta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.ed-qt{font-size:20px;line-height:1.2;letter-spacing:-.015em;font-weight:750;color:var(--ed-ink);text-decoration:none;overflow-wrap:anywhere}
.ed-qt:hover{text-decoration:underline;text-underline-offset:3px;color:var(--ed-ink)}
.ed-qchips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.ed-qchip{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 11px;border-radius:8px;background:var(--ed-lime-soft);color:var(--ed-petrol);font-size:14px;font-weight:600;overflow-wrap:anywhere}
.ed-qchip.is-other{background:var(--ed-surface-2);color:var(--ed-muted);font-weight:500}
.ed-qchip.is-relaxed{border:1px dashed var(--ed-border-strong)}
.ed-qchip__note{font-size:12px;font-weight:600;color:var(--ed-muted)}
.ed-qact{display:flex;flex-direction:column;align-items:stretch;gap:2px}
:is(a,button,input,span,div).ed-btn.ed-qskip{color:var(--ed-muted);text-decoration:none;font-weight:600;padding:0 8px}
:is(a,button,input,span,div).ed-btn.ed-qskip:hover{color:var(--ed-ink);text-decoration:underline;background:transparent}
.ed-qundo{grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}
.ed-qundo[hidden],.ed-qrow [hidden]{display:none!important}
.ed-rule{display:grid;grid-template-columns:200px minmax(0,1fr) auto;gap:12px;align-items:start;padding:14px;border:1px solid var(--ed-border);border-radius:var(--r-md);background:#FBFCFB}
@media (max-width:640px){
  .ed-qrow{grid-template-columns:minmax(0,1fr);padding:16px}
  .ed-qact{flex-direction:row;align-items:center}
  .ed-qact>.ed-btn:first-child{flex:1 1 auto}
  .ed-rule{grid-template-columns:minmax(0,1fr)}
}

/* dialogs */
.ed-scrim{background:rgba(12,28,22,.55);display:flex;align-items:center;justify-content:center;padding:24px}
.ed-dlg{background:var(--ed-surface);border-radius:var(--r-lg);box-shadow:var(--sh-3);width:100%;max-width:560px;overflow:hidden}
.ed-dlg-hd{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 24px 12px}
.ed-dlg-bd{padding:4px 24px 20px;display:flex;flex-direction:column;gap:14px}
.ed-dlg-ft{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:16px 24px;border-top:1px solid var(--ed-border);background:#FBFCFB}
.ed-overlay{position:fixed;inset:0;z-index:50}

/* message component (403/404/empty/...) */
.ed-msg{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:40px 24px}
.ed-msg-ic{width:64px;height:64px;border-radius:20px;display:flex;align-items:center;justify-content:center;background:var(--ed-surface-2);color:var(--ed-muted)}
.ed-msg-ic .ed-ic{width:30px;height:30px;stroke-width:1.6}
.ed-msg h3{font-size:19px;font-weight:700}
.ed-msg p{color:var(--ed-muted);max-width:420px;font-size:15px}

/* loading */
.ed-skel{background:linear-gradient(90deg,#E9EDEA 0%,#F4F6F4 40%,#E9EDEA 80%);background-size:200% 100%;border-radius:8px;animation:ed-shim 1.4s linear infinite}
@keyframes ed-shim{to{background-position:-200% 0}}
.ed-spin{width:20px;height:20px;border-radius:50%;border:2.5px solid rgba(23,107,69,.2);border-top-color:var(--ed-action);animation:ed-rot .8s linear infinite;flex:none}
.ed-spin.on-btn{border-color:rgba(255,255,255,.35);border-top-color:#fff}
@keyframes ed-rot{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.ed-skel,.ed-spin{animation:none}[class^="ed-"],[class*=" ed-"]{transition:none!important}}

/* sticky action bar inside forms */
.ed-actionbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* responsive */
@media (max-width:1023px){
  .ed-grid4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ed-h-hero{font-size:44px}
}
/* burger breakpoint: 1180px for all languages (a seller header with 5 items does not fit below it;
   design-v3/ed.css switched at 1024). Keep in step with listinghive-overrides.css section 5. */
@media (max-width:1179px){
  .ed-nav{display:none}
  .ed-burger{display:inline-flex}
}
@media (max-width:767px){
  .ed-wrap,.ed-hd-in,.ed-subnav-in,.ed-ft-in{padding-left:16px;padding-right:16px}
  .ed-hd-in{height:60px;gap:12px}
  .ed-logo{font-size:22px} .ed-logo svg{width:30px;height:30px}
  .ed-hd-btn .ed-lbl-d{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .ed-mode{display:none}
  .ed-grid2,.ed-grid3{grid-template-columns:minmax(0,1fr)}
  .ed-grid4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ed-h-hero{font-size:34px} .ed-h1{font-size:30px} .ed-h2{font-size:24px}
  .ed-section{padding:40px 0}
  .ed-card-p{padding:16px} .ed-card-hd,.ed-card-ft{padding:14px 16px}
  .ed-steps .ed-step span.ed-t{display:none}
  .ed-actionbar .ed-btn{flex:1 1 auto}
  .ed-hide-m{display:none!important}
  /* touch targets: 44px for the compact controls (desktop keeps 36/40) */
  :is(a,button,input,span,div).ed-btn-sm,.ed-pill{min-height:44px}
  :is(a,button,input,span,div).ed-btn-icon.ed-btn-sm,:is(a,button,input,span,div).ed-btn-ghost.ed-btn-icon{min-width:44px}
  .ed-switch::before{content:"";position:absolute;left:0;right:0;top:-9px;bottom:-9px}
}
@media (min-width:768px){.ed-only-m{display:none!important}}

/* narrow desktop: ed.css tightens the header at 1024-1199px; here the burger takes over below 1180px, so only 1180-1199 is left */
@media (min-width:1180px) and (max-width:1199px){
  .ed-hd-in{gap:16px;padding-left:20px;padding-right:20px}
  .ed-nav a{padding:10px 8px}
}

/* adaptive guards (design-v3 render QA 2026-10-12) ----------------------------------------------------
   Cards inside scrolling flex columns (mobile sheets, chat logs) must scroll, not shrink and clip their content. */
.ed-col[style*="overflow:auto"]>*,.ed-col[style*="overflow: auto"]>*,.ed-sheet>*,[role="log"]>*{flex-shrink:0}
/* flex rows: text children may shrink below their content width (no per-letter breaks, no horizontal overflow) */
.ed-li>:not(.ed-btn),.ed-veh>:not(.ed-btn),.ed-card-hd>:not(.ed-btn),.ed-card-ft>:not(.ed-btn),.ed-dlg-hd>:not(.ed-btn),.ed-note>:not(.ed-btn){min-width:0}

/* i18n: long strings (ru) ----------------------------------------------------------------------
   Ported from the "i18n: long strings (ru)" block of design-v3/ed.css. The rules only add behaviour:
   they are visually neutral for short uk text and take effect on overflow, with the modifiers, or in :lang(ru).
   :lang(ru) relies on <html lang="ru-RU"> printed by language_attributes() (Polylang sets the locale on /ru/). */

/* buttons: wrap in narrow containers (.ed-btn-block always wraps) */
:is(a,button,input,span,div).ed-btn-wrap{white-space:normal;text-align:center;line-height:1.25;padding-top:8px;padding-bottom:8px}
:is(a,button,input,span,div).ed-btn-block{white-space:normal;text-align:center}

/* headings, tags, badges must not overflow the container */
.ed-h-hero,.ed-h1,.ed-h2,.ed-h3{overflow-wrap:anywhere}
.ed-tag,.ed-badge{overflow-wrap:anywhere}
.ed-badge-wrap{max-width:100%;height:auto;min-height:26px;padding-top:3px;padding-bottom:3px;white-space:normal;line-height:1.25}
.ed-tag-wrap{max-width:100%;height:auto;min-height:24px;padding-top:2px;padding-bottom:2px;white-space:normal;line-height:1.25}

/* stepper: the step label may wrap, the column does not stretch the grid */
.ed-step{min-width:0;overflow-wrap:anywhere;line-height:1.25}

/* narrow tiles (part groups, long names in .ed-li / .ed-tile) */
.ed-wrap-any{min-width:0;overflow-wrap:anywhere}

/* .ed-tabs (overflow-x:auto, .ed-tab flex:none), .ed-subnav-in (overflow-x:auto, a flex:none) and .ed-pills
   (flex-wrap:wrap) already survive long labels, no rules needed. */

/* ru: hyphenation inside ed- components, tighter hero tracking, compact nav, wrapping table heads.
   (The ed.css rule ":lang(ru) p" is scoped to ed- trees here, so HivePress / WordPress copy keeps its own flow.)
   The photo-tag text is translated through data-label, not through a :lang(ru) content override. */
:lang(ru) :is(.ed-small,.ed-hint,.ed-lead,.ed-note,.ed-wrap-any),
:lang(ru) :is([class^="ed-"],[class*=" ed-"]) p,
:lang(ru) p:is([class^="ed-"],[class*=" ed-"]){hyphens:auto}
:lang(ru) .ed-h-hero{letter-spacing:-.04em}
:lang(ru) .ed-nav a{padding:10px 9px}
:lang(ru) .ed-tbl th{white-space:normal}
/* ed.css also has a ru-only 1024-1179px header block (compact nav, hidden .lbl-d). It is not ported: below 1180px
   the nav is replaced by the burger for every language, so the block would never apply. */

/* offer line (T08, shared with the seller list): one line of an offer. States are classes on the row/article:
   .is-unread (a revision the buyer has not seen: an accent edge), .is-withdrawn (greyed, no terms), .is-off (vendor unavailable). */
.ed-offer-line{position:relative}
.ed-offer-line.is-unread{box-shadow:inset 3px 0 0 var(--ed-action)}
.ed-offer-line.is-withdrawn{background:var(--ed-surface-2)}
.ed-offer-line.is-withdrawn .ed-cmp-vendor__name{color:var(--ed-muted)}
.ed-offer-line.is-off>*{opacity:.72}

/* pause line outside the settings page (seller queue, site inbox; T11) */
.ed-pausebar{align-items:center;flex-wrap:wrap;margin-bottom:16px}
.ed-pausebar>.ed-grow{flex:1 1 220px;min-width:0}
.ed-pausebar .ed-btn{text-decoration:none}
.ed-pausebar [hidden]{display:none!important}
