body.quoteandcut-is-sorting-parts,
body.quoteandcut-is-sorting-parts * {
  cursor: grabbing !important;
}

.quoteandcut-part-drag-handle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.quoteandcut-part-drag-grip {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor;
}

.quoteandcut-part-reorder-buttons {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 4px;
  right: 4px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.quoteandcut-part-reorder-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  min-width: 28px;
  min-height: 24px;
  padding: 0;
  border: 1px solid var(--quoteandcut-shell-border);
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
  cursor: pointer;
}

.quoteandcut-part-reorder-button::before {
  display: block;
  font-size: 10px;
  line-height: 1;
}

.quoteandcut-part-reorder-button--up::before {
  content: "\25B2";
}

.quoteandcut-part-reorder-button--down::before {
  content: "\25BC";
}

.quoteandcut-part-reorder-button:hover,
.quoteandcut-part-reorder-button:focus-visible {
  background: #f8fafc;
  box-shadow: 0 0 0 3px var(--quoteandcut-focus-ring);
  outline: none;
  transform: none;
}

.quoteandcut-part-reorder-button:disabled,
.quoteandcut-part-reorder-button[aria-disabled="true"] {
  opacity: 0.38;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .quoteandcut-part-reorder-button {
    width: 26px;
    min-width: 26px;
  }
}

@media (max-width: 900px) {
  .quoteandcut-part-drag-grip {
    width: 5px;
    height: 5px;
    box-shadow: -9px 0 0 currentColor, 9px 0 0 currentColor;
  }

  .quoteandcut-part-reorder-buttons {
    top: 50%;
    bottom: auto;
    left: 12px;
    right: 12px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    transform: translateY(-50%);
  }

  .quoteandcut-part-reorder-button {
    box-sizing: border-box;
    width: 38px;
    min-width: 38px;
    height: 32px;
    min-height: 32px;
  }
}
