/* 장비 품목 선택기 (js/components/equipment-picker.js) — 강조색은 호스트가 루트에 --eqp-accent / --eqp-line / --eqp-tint로 준다 */
.eqp {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eqp__picker { position: relative; }

.eqp__toggle {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: #FFFFFF;
  font: inherit;
  font-size: 15px;
  color: var(--text-main);
  cursor: pointer;
}

.eqp__toggle > span {
  flex: 1 1 auto;
  text-align: left;
}

.eqp__toggle .fa-plus { color: var(--eqp-accent); }

.eqp__toggle .fa-chevron-down {
  font-size: 12px;
  color: var(--text-desc);
}

.eqp__menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: var(--shadow-float);
}

.eqp__option {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  text-align: left;
  color: var(--text-main);
  cursor: pointer;
}

.eqp__option:not(:disabled):hover { background: var(--gray-50); }

.eqp__price {
  color: var(--text-desc);
  font-variant-numeric: tabular-nums;
}

.eqp__option:disabled,
.eqp__option:disabled .eqp__price {
  color: var(--gray-300);
  cursor: default;
}

.eqp__list {
  display: flex;
  flex-direction: column;
  max-height: 216px; /* 행 약 3줄(마지막 줄이 살짝 잘려 스크롤 신호가 된다) — .eqp__row 높이(머리줄 + 스테퍼)가 바뀌면 같이 맞춘다 */
  overflow-y: auto;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}

.eqp__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

.eqp__row:last-child { border-bottom: 0; }

.eqp__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}

.eqp__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.eqp__remove {
  justify-self: end;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-desc);
  cursor: pointer;
}

.eqp__unit {
  font-size: 12px;
  color: var(--text-desc);
  font-variant-numeric: tabular-nums;
}

.eqp__amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.eqp__stepper {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--eqp-line);
  border-radius: 10px;
  overflow: hidden;
  background: #FFFFFF;
}

.eqp__stepper button {
  width: 28px;
  height: 28px;
  border: 0;
  background: var(--eqp-tint);
  color: var(--eqp-accent);
  font-size: 12px;
  cursor: pointer;
}

.eqp__stepper button:disabled {
  color: var(--gray-300);
  cursor: default;
}

/* 명시도 (0,3,1)은 문의 팝업의 전역 input 규칙(.search-popup .input-div input = 너비 100%·패딩, (0,2,1))을 이기기 위한 것 — 줄이면 칸이 늘어난다 */
.eqp .eqp__stepper input[type="text"] {
  flex: 0 0 auto;
  width: 48px;
  min-width: 0;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #FFFFFF;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}
