/* 2nd Electronics - Part List widget (floating, product pages only) */
.nde-pl-fab,
.nde-pl-add {
  position: fixed;
  right: 18px;
  z-index: 99990;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.2;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 30, 60, .18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.nde-pl-fab {
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 999px;
  background: #0f2c52;
  color: #fff;
  font-weight: 600;
}
.nde-pl-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15, 30, 60, .26); }
.nde-pl-fab .nde-pl-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #2f7cf6;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.nde-pl-fab.is-empty .nde-pl-count { display: none; }

.nde-pl-add {
  bottom: 68px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: #0f2c52;
  border: 1px solid rgba(15, 44, 82, .18);
  font-weight: 600;
  max-width: 62vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nde-pl-add:hover { background: #f3f7fd; }
.nde-pl-add.is-added { background: #e8f3ea; color: #1c7a3c; border-color: rgba(28, 122, 60, .35); cursor: default; }

/* panel */
.nde-pl-panel {
  position: fixed;
  right: 18px;
  bottom: 118px;
  z-index: 99991;
  width: 284px;
  max-width: calc(100vw - 24px);
  max-height: 62vh;
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 44, 82, .12);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15, 30, 60, .22);
  overflow: hidden;
  font-size: 13.5px;
  color: #16233a;
}
.nde-pl-panel.is-open { display: flex; }
.nde-pl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 44, 82, .08);
  background: #f7fafd;
  font-weight: 700;
}
.nde-pl-x {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; margin: 0;
  border: 0; border-radius: 8px; -webkit-appearance: none; appearance: none;
  background: transparent; color: #55637a;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.nde-pl-x:hover { background: rgba(15, 44, 82, .08); color: #0f2c52; }
.nde-pl-body { overflow-y: auto; padding: 8px 10px; }
.nde-pl-empty { padding: 18px 10px; color: #6b7891; text-align: center; line-height: 1.6; }
.nde-pl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-bottom: 1px dashed rgba(15, 44, 82, .1);
}
.nde-pl-item:last-child { border-bottom: 0; }
.nde-pl-item a {
  flex: 1;
  color: #0f2c52;
  font-size: 12.8px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}
.nde-pl-item a:hover { text-decoration: underline; }
.nde-pl-item .nde-pl-cat { color: #7b879b; font-size: 11px; white-space: nowrap; }
.nde-pl-rm {
  width: 22px; height: 22px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; margin: 0;
  border: 0; border-radius: 6px;
  background: rgba(15, 44, 82, .06);
  color: #7b879b; font-size: 14px; line-height: 1;
  font-family: inherit; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.nde-pl-rm > span { display: block; transform: translateY(-.5px); }
.nde-pl-rm:hover { background: rgba(200, 40, 40, .12); color: #b32d2d; }
.nde-pl-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 10px;
  border-top: 1px solid rgba(15, 44, 82, .08);
  background: #f7fafd;
}
.nde-pl-btn {
  flex: 1 1 auto;
  padding: 7px 6px;
  border-radius: 9px;
  border: 1px solid rgba(15, 44, 82, .16);
  background: #fff;
  color: #0f2c52;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.nde-pl-btn:hover { background: #eef4fc; }
.nde-pl-btn.primary { background: #0f2c52; border-color: #0f2c52; color: #fff; }
.nde-pl-btn.primary:hover { background: #163a6b; }
.nde-pl-btn:disabled { opacity: .45; cursor: default; }
.nde-pl-hint { padding: 0 10px 9px; color: #7b879b; font-size: 11px; line-height: 1.5; }
@media (max-width: 620px) {
  .nde-pl-fab { right: 12px; bottom: 12px; padding: 10px 13px; font-size: 12.5px; }
  .nde-pl-add { right: 12px; bottom: 60px; font-size: 12.5px; }
  .nde-pl-panel { right: 12px; left: 12px; width: auto; bottom: 108px; max-height: 58vh; }
}
