/* SGEP_SPECPOP_2511 (25.11.2026): окно «Товар добавлен в спецификацию» с сопутствующим оборудованием (js/sgep_specpop.js).
   Карточки сопутствующих — те же, что в окне «Сопутствующие товары» страницы «Спецификация» (css/spec_fp.css), здесь — только внутри .sspop. */
.modal.modal--sspop{width:min(920px,calc(100% - 24px))}
.sspop [hidden]{display:none!important}
.sspop__head{padding:0 40px 16px 0;margin-bottom:16px;border-bottom:1px solid var(--line)}
.sspop__ok{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:20px;font-weight:700;line-height:1.25;color:var(--text)}
.sspop__okico{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff}
.sspop__okico .ico{width:18px;height:18px}
.sspop__prod{display:flex;align-items:center;gap:12px;min-width:0}
.sspop__img{flex:none;width:64px;height:64px;display:grid;place-items:center;border:1px solid var(--line);border-radius:var(--r-sm);background:#fff;overflow:hidden}
.sspop__img img{max-width:56px;max-height:56px;width:auto;height:auto;object-fit:contain}
.sspop__info{display:flex;flex-direction:column;gap:2px;min-width:0}
.sspop__name{font-size:15px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.sspop__n{font-size:14px;color:var(--muted)}
.sspop .sspop__h{font-size:18px;padding-right:0;margin:0 0 4px}
.sspop .sub{color:var(--muted);font-size:14px;margin-bottom:14px}
.sspop .fps-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 0 14px;padding-bottom:2px}
.sspop .fps-tabs::-webkit-scrollbar{display:none}
.sspop .fps-tabs .chip{flex:none}
.sspop .fps-mgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.sspop .fps-mc{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);padding:12px;background:#fff;min-width:0;transition:border-color .15s,box-shadow .15s}
.sspop .fps-mc.is-in{border-color:var(--navy);box-shadow:inset 0 0 0 1px var(--navy)}
.sspop .fps-mc__img{aspect-ratio:19/15;display:flex;align-items:center;justify-content:center;margin-bottom:10px;overflow:hidden}
.sspop .fps-mc__img img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.sspop .fps-mc__name{font-size:14px;font-weight:500;line-height:1.35;margin-bottom:12px;word-break:break-word}
.sspop .fps-mc__act{margin-top:auto}
.sspop .fps-mc__add{width:100%}
.sspop .fps-mc__in{display:flex;gap:6px;align-items:center}
.sspop .fps-qty{height:34px;width:102px}
.sspop .fps-qty button{width:32px}
.sspop .fps-qty button:hover{color:var(--red)}
.sspop .fps-qty input{width:38px;font-size:14px;font-weight:600}
.sspop .fps-qty input:focus{outline:0;background:var(--bg-soft)}
.sspop .fps-mc__in .fps-qty{flex:1;width:auto;min-width:0}
.sspop .fps-mc__in .fps-qty input{flex:1;width:auto;min-width:0}
.sspop .icon-btn--sm{width:34px;height:34px}
.sspop__foot{position:sticky;bottom:0;z-index:2;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin:18px -28px -26px;padding:14px 28px 18px;border-top:1px solid var(--line);background:#fff;border-radius:0 0 14px 14px}
.sspop__foot .btn{min-width:200px}
.sspop__sm{display:none}
@media (max-width:1280px){
  .sspop__foot{margin:16px -18px -20px;padding:12px 18px 14px}
}
@media (max-width:600px){
  .sspop__head{padding-right:36px;margin-bottom:14px;padding-bottom:14px}
  .sspop__ok{font-size:17px;gap:8px;margin-bottom:10px}
  .sspop__okico{width:28px;height:28px}
  .sspop__img{width:52px;height:52px}
  .sspop__img img{max-width:46px;max-height:46px}
  .sspop__name{font-size:14px}
  .sspop .sspop__h{font-size:16px}
  .sspop .sub{font-size:13px;margin-bottom:12px}
  .sspop .fps-mgrid{grid-template-columns:1fr 1fr;gap:8px}
  .sspop .fps-mc{padding:10px}
  .sspop .fps-mc__name{font-size:13px}
  .sspop .fps-mc__in .fps-qty button{width:28px}
  .sspop__foot{flex-wrap:nowrap;gap:8px}
  .sspop__foot .btn{flex:1 1 0;min-width:0;padding:0 10px;font-size:15px}
  .sspop__foot .btn--primary{flex-grow:1.35}
  .sspop__lg{display:none}
  .sspop__sm{display:inline}
}
