/* ecmcore — «Found it cheaper?» / «Personalised offer» (variante A, Federico 16/11/2026). Solo schede ECM e Profitec. */
.ecs-pm{--pm-ink:#32323f;--pm-accent:#ce4636;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;grid-column:1/-1}
.ecs-pm__btn{display:flex;align-items:center;justify-content:center;gap:9px;height:48px;border:1.5px solid var(--pm-ink);border-radius:10px;color:var(--pm-ink);font:600 15px Figtree,sans-serif;background:#fff;cursor:pointer;transition:background .15s,color .15s;padding:0 12px}
.ecs-pm__btn:hover,.ecs-pm__btn:focus-visible{background:var(--pm-ink);color:#fff}
.ecs-pm__btn:hover svg,.ecs-pm__btn:focus-visible svg{stroke:#fff}
.ecs-pm__btn svg{width:19px;height:19px;flex:none;stroke:var(--pm-accent);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:600px){.ecs-pm{grid-template-columns:1fr}}

.ecs-pm-back{position:fixed;inset:0;background:rgba(30,30,40,.45);z-index:100000;display:flex;align-items:center;justify-content:center;padding:16px}
.ecs-pm-dlg{background:#fff;border-radius:16px;width:520px;max-width:100%;max-height:calc(100vh - 32px);overflow:auto;padding:26px 28px 22px;font-family:Figtree,sans-serif;color:#32323f;box-shadow:0 20px 60px rgba(0,0,0,.25);position:relative;box-sizing:border-box}
.ecs-pm-x{position:absolute;right:18px;top:18px;width:32px;height:32px;border-radius:50%;border:1px solid #d8d8de;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.ecs-pm-x svg{width:16px;height:16px}
.ecs-pm-x svg,.ecs-pm-ok svg{fill:none;stroke:#32323f;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ecs-pm-dlg h3{font-size:22px;font-weight:600;margin:0 44px 16px 0;line-height:1.25}
.ecs-pm-dlg[data-tipo="match"] [data-m="offerta"],.ecs-pm-dlg[data-tipo="offerta"] [data-m="match"]{display:none}
.ecs-pm-seg{display:flex;background:#f2f2f5;border-radius:10px;padding:4px;margin-bottom:16px}
.ecs-pm-seg button{flex:1;border:0;background:none;padding:9px 6px;border-radius:8px;font:600 13.5px Figtree,sans-serif;color:#6b6b78;cursor:pointer}
.ecs-pm-dlg[data-tipo="match"] .ecs-pm-seg [data-tipo="match"],.ecs-pm-dlg[data-tipo="offerta"] .ecs-pm-seg [data-tipo="offerta"]{background:#fff;color:#32323f;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.ecs-pm-prod{display:flex;gap:12px;align-items:center;border:1px solid #ececf0;border-radius:10px;padding:10px 12px;margin-bottom:16px;min-height:46px}
.ecs-pm-prod img{width:46px;height:46px;object-fit:contain;flex:none}
.ecs-pm-prod b{display:block;font-size:14px}.ecs-pm-prod small{color:#6b6b78;font-size:12.5px}
.ecs-pm-pr{margin-left:auto;font-weight:700;font-size:15px;white-space:nowrap}
.ecs-pm-f{margin-bottom:12px}
.ecs-pm-f label{display:block;font-size:13px;font-weight:600;margin-bottom:5px}
.ecs-pm-f input,.ecs-pm-f select,.ecs-pm-f textarea{width:100%;box-sizing:border-box;border:1px solid #cfcfd6;border-radius:10px;padding:11px 12px;font:15px Figtree,sans-serif;color:#32323f;background:#fff}
.ecs-pm-f input:focus,.ecs-pm-f select:focus,.ecs-pm-f textarea:focus{outline:2px solid #32323f;outline-offset:-1px;border-color:#32323f}
.ecs-pm-f textarea{height:78px;resize:vertical}
.ecs-pm-f.is-err input,.ecs-pm-f.is-err select,.ecs-pm-f.is-err textarea{border-color:#c0392b}
.ecs-pm-fe{display:block;color:#c0392b;font-size:12.5px;margin-top:4px}.ecs-pm-fe:empty{display:none}
.ecs-pm-2{display:flex;gap:12px}.ecs-pm-2>.ecs-pm-f{flex:1}.ecs-pm-2>[data-cap]{flex:0 0 38%}
.ecs-pm-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.ecs-pm-err{color:#c0392b;font-size:13.5px;margin:0 0 10px}
.ecs-pm-send{width:100%;border:0;border-radius:10px;background:#ce4636;color:#fff;font:600 15px Figtree,sans-serif;padding:14px;margin-top:4px;cursor:pointer}
.ecs-pm-send:hover{background:#b83c2e}.ecs-pm-send[disabled]{opacity:.6;cursor:wait}
.ecs-pm-send--auto{width:auto;padding:12px 34px}
.ecs-pm-small{text-align:center;font-size:12px;margin-top:10px}.ecs-pm-small a{color:#6b6b78}
.ecs-pm-ok{text-align:center;padding:26px 6px 10px}
.ecs-pm-ok svg{width:54px;height:54px;stroke:#2e9e5b;margin-bottom:10px}
.ecs-pm-ok[data-ok="subito"] svg{stroke:#ce4636}
.ecs-pm-ok h3{margin:0 0 8px}.ecs-pm-ok p{font-size:15px;margin:0 0 20px;color:#4a4a57}
.ecs-pm-dlg [hidden]{display:none!important}
body.ecs-pm-open{overflow:hidden}
@media (max-width:600px){
  .ecs-pm-back{align-items:flex-end;padding:0}
  .ecs-pm-dlg{border-radius:18px 18px 0 0;padding:22px 18px 18px;max-height:92vh}
  .ecs-pm-2{flex-direction:column;gap:0}.ecs-pm-2>[data-cap]{flex:1}
}
