/* NoutMarket conversion assistant v1 */

.nm-conv-overlay{
  position:fixed;
  inset:0;
  z-index:100500;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(2,6,23,.62);
  backdrop-filter:blur(8px);
}
.nm-conv-overlay.open{display:flex}

.nm-conv-modal{
  position:relative;
  width:min(470px,100%);
  max-height:calc(100dvh - 36px);
  overflow:auto;
  border:1px solid rgba(203,213,225,.85);
  border-radius:26px;
  background:#fff;
  color:#0f172a;
  box-shadow:0 34px 100px rgba(2,6,23,.38);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.nm-conv-head{
  padding:20px;
  background:linear-gradient(135deg,#0f172a,#172554 55%,#1d4ed8);
  color:#fff;
}
.nm-conv-headrow{
  display:flex;
  align-items:center;
  gap:12px;
  padding-right:32px
}
.nm-conv-robot{
  flex:0 0 48px;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:linear-gradient(135deg,#10b981,#06b6d4);
}
.nm-conv-robot svg{
  width:32px;
  height:32px;
  stroke:#fff;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round
}
.nm-conv-head h3{
  margin:0 0 4px;
  color:#fff;
  font-size:20px
}
.nm-conv-head p{
  margin:0;
  color:#dbeafe;
  font-size:13px;
  line-height:1.4
}
.nm-conv-close{
  position:absolute;
  right:14px;
  top:12px;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  color:#fff;
  background:rgba(255,255,255,.1);
  font-size:24px;
  cursor:pointer
}

.nm-conv-body{padding:18px 20px 20px}
.nm-conv-body > p{
  margin:0 0 15px;
  color:#475569;
  line-height:1.55
}

.nm-conv-actions{
  display:grid;
  gap:9px
}
.nm-conv-actions button,
.nm-conv-actions a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid #dbe4f0;
  background:#fff;
  color:#0f172a;
  font-weight:800;
  font-size:14px;
  text-decoration:none;
  cursor:pointer
}
.nm-conv-actions .primary{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,#0f172a,#1d4ed8)
}
.nm-conv-actions .green{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,#059669,#06b6d4)
}
.nm-conv-actions .quiet{
  background:#f8fafc;
  color:#64748b
}

.nm-conv-form{
  display:grid;
  gap:9px
}
.nm-conv-form input,
.nm-conv-form select,
.nm-conv-form textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid #cbd5e1;
  border-radius:13px;
  background:#fff;
  color:#0f172a;
  padding:11px 12px;
  font:14px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  outline:none
}
.nm-conv-form textarea{
  min-height:105px;
  resize:vertical
}
.nm-conv-form input:focus,
.nm-conv-form select:focus,
.nm-conv-form textarea:focus{
  border-color:#60a5fa;
  box-shadow:0 0 0 3px rgba(37,99,235,.10)
}
.nm-conv-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px
}
.nm-conv-agree{
  display:flex;
  gap:8px;
  align-items:flex-start;
  font-size:12px;
  color:#475569
}
.nm-conv-agree input{
  width:auto;
  margin-top:2px
}
.nm-conv-status{
  display:none;
  margin-top:10px;
  border-radius:12px;
  padding:10px 12px;
  font-size:13px
}
.nm-conv-status.ok{
  display:block;
  color:#047857;
  background:#ecfdf5;
  border:1px solid #a7f3d0
}
.nm-conv-status.err{
  display:block;
  color:#991b1b;
  background:#fff1f2;
  border:1px solid #fecdd3
}

/* Контекст после нескольких просмотренных ноутбуков */
#nm-conv-viewed{
  margin:12px 0 18px;
  padding:15px;
  border:1px solid #bae6fd;
  border-radius:20px;
  background:linear-gradient(135deg,#ecfeff,#eff6ff);
  box-shadow:0 12px 30px rgba(14,116,144,.08)
}
#nm-conv-viewed strong{
  display:block;
  margin-bottom:4px;
  color:#0f172a
}
#nm-conv-viewed p{
  margin:0 0 11px;
  color:#475569;
  font-size:13px
}
.nm-conv-inline-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.nm-conv-inline-actions button{
  border:1px solid #cbd5e1;
  background:#fff;
  color:#0f172a;
  border-radius:11px;
  padding:9px 12px;
  font-weight:750;
  cursor:pointer
}
.nm-conv-inline-actions button.primary{
  border:0;
  color:#fff;
  background:#0f172a
}

/* Пустая выдача */
#nm-conv-empty{
  margin:14px 0;
  padding:17px;
  border:1px solid #bfdbfe;
  border-radius:20px;
  background:#eff6ff;
  text-align:center
}
#nm-conv-empty strong{
  display:block;
  margin-bottom:5px;
  font-size:17px
}
#nm-conv-empty p{
  margin:0 0 12px;
  color:#475569
}

/* Действия на карточке конкретного товара */
.nm-conv-product-actions{
  margin:16px 0;
  padding:14px;
  border:1px solid #dbeafe;
  border-radius:18px;
  background:linear-gradient(135deg,#f8fafc,#eff6ff)
}
.nm-conv-product-actions strong{
  display:block;
  margin-bottom:8px
}
.nm-conv-product-buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px
}
.nm-conv-product-buttons button{
  min-height:44px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  background:#fff;
  color:#0f172a;
  font-weight:800;
  cursor:pointer
}
.nm-conv-product-buttons .reserve{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,#0f172a,#1d4ed8)
}

/* Умная мобильная подсказка */
#nm-conv-mobile-help{
  position:fixed;
  left:12px;
  right:12px;
  bottom:176px;
  z-index:99985;
  padding:14px;
  border:1px solid #bae6fd;
  border-radius:19px;
  background:rgba(255,255,255,.97);
  box-shadow:0 22px 55px rgba(15,23,42,.22);
  backdrop-filter:blur(14px);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
#nm-conv-mobile-help strong{
  display:block;
  color:#0f172a;
  margin-bottom:3px
}
#nm-conv-mobile-help p{
  margin:0 0 10px;
  color:#475569;
  font-size:13px
}
#nm-conv-mobile-help .nm-conv-inline-actions{
  display:grid;
  grid-template-columns:1fr auto
}
#nm-conv-mobile-help .nm-conv-mobile-x{
  position:absolute;
  right:8px;
  top:5px;
  border:0;
  background:transparent;
  color:#64748b;
  font-size:20px;
  cursor:pointer
}

/* Share */
.nm-share-list{
  display:grid;
  gap:9px
}
.nm-share-list button,
.nm-share-list a{
  min-height:48px;
  border:1px solid #dbe4f0;
  border-radius:14px;
  background:#fff;
  color:#0f172a;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  text-decoration:none;
  cursor:pointer
}
.nm-share-list .wa{
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#047857
}
.nm-share-list .tg{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1d4ed8
}

@media(max-width:680px){
  .nm-conv-overlay{padding:9px}
  .nm-conv-modal{
    border-radius:20px;
    max-height:calc(100dvh - 18px)
  }
  .nm-conv-head{padding:17px}
  .nm-conv-body{padding:15px 16px 17px}
  .nm-conv-form-grid{grid-template-columns:1fr}
  .nm-conv-product-buttons{grid-template-columns:1fr}
}
